mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-09-12 04:44:52 +00:00
fix: cargo fmt lint for pre commit
This commit is contained in:
parent
e6e87a2e26
commit
884ebabfd3
@ -64,9 +64,7 @@ impl Infer {
|
|||||||
.find(|t| t.name == "default")
|
.find(|t| t.name == "default")
|
||||||
.map(|t| t.template),
|
.map(|t| t.template),
|
||||||
})
|
})
|
||||||
.map(|t| {
|
.map(|t| ChatTemplate::new(t, tokenizer_config.bos_token, tokenizer_config.eos_token));
|
||||||
ChatTemplate::new(t, tokenizer_config.bos_token, tokenizer_config.eos_token)
|
|
||||||
});
|
|
||||||
|
|
||||||
// Inference limit with a semaphore
|
// Inference limit with a semaphore
|
||||||
let semaphore = Arc::new(Semaphore::new(max_concurrent_requests));
|
let semaphore = Arc::new(Semaphore::new(max_concurrent_requests));
|
||||||
|
Loading…
Reference in New Issue
Block a user