mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-07-30 20:00:16 +00:00
fix: include logit_bias in all ValidGenerateRequest's
This commit is contained in:
parent
e44703d542
commit
61a50a81c0
@ -12,6 +12,7 @@ use text_generation_router::validation::{
|
|||||||
use tokio::sync::{mpsc, oneshot};
|
use tokio::sync::{mpsc, oneshot};
|
||||||
use tokio::time::Instant;
|
use tokio::time::Instant;
|
||||||
use tracing::{info_span, instrument, Span};
|
use tracing::{info_span, instrument, Span};
|
||||||
|
use std::collections::HashMap;
|
||||||
|
|
||||||
/// Queue entry
|
/// Queue entry
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
@ -429,6 +430,7 @@ mod tests {
|
|||||||
frequency_penalty: 0.0,
|
frequency_penalty: 0.0,
|
||||||
watermark: false,
|
watermark: false,
|
||||||
grammar: None,
|
grammar: None,
|
||||||
|
logit_bias: HashMap::new(),
|
||||||
},
|
},
|
||||||
stopping_parameters: ValidStoppingParameters {
|
stopping_parameters: ValidStoppingParameters {
|
||||||
ignore_eos_token: false,
|
ignore_eos_token: false,
|
||||||
|
@ -16,6 +16,7 @@ use text_generation_router::validation::{
|
|||||||
use tokio::sync::{mpsc, oneshot};
|
use tokio::sync::{mpsc, oneshot};
|
||||||
use tokio::time::Instant;
|
use tokio::time::Instant;
|
||||||
use tracing::{info_span, instrument, Instrument, Span};
|
use tracing::{info_span, instrument, Instrument, Span};
|
||||||
|
use std::collections::HashMap;
|
||||||
|
|
||||||
/// Queue entry
|
/// Queue entry
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
@ -577,6 +578,7 @@ mod tests {
|
|||||||
frequency_penalty: 0.0,
|
frequency_penalty: 0.0,
|
||||||
watermark: false,
|
watermark: false,
|
||||||
grammar: None,
|
grammar: None,
|
||||||
|
logit_bias: HashMap::new(),
|
||||||
},
|
},
|
||||||
stopping_parameters: ValidStoppingParameters {
|
stopping_parameters: ValidStoppingParameters {
|
||||||
ignore_eos_token: false,
|
ignore_eos_token: false,
|
||||||
|
Loading…
Reference in New Issue
Block a user