Skip to content

Commit

Permalink
Fix tests mod in queue.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
njhill committed Mar 26, 2023
1 parent f934d01 commit 9895569
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions router/src/queue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -219,9 +219,10 @@ enum QueueCommand {
mod tests {
use super::*;
use std::sync::Arc;
use text_generation_client::{NextTokenChooserParameters, StoppingCriteriaParameters};
use text_generation_client::NextTokenChooserParameters;
use tokio::sync::{mpsc, Semaphore};
use tracing::info_span;
use crate::validation::StoppingCriteria;

fn default_entry() -> Entry {
let semaphore = Arc::new(Semaphore::new(1));
Expand All @@ -241,9 +242,10 @@ mod tests {
repetition_penalty: 0.0,
watermark: false,
},
stopping_parameters: StoppingCriteriaParameters {
stopping_criteria: StoppingCriteria {
max_new_tokens: 0,
stop_sequences: vec![],
deadline: None,
},
},
response_tx,
Expand Down

0 comments on commit 9895569

Please sign in to comment.