mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-04-25 20:12:07 +00:00
Update clippy.
This commit is contained in:
parent
1a8c4a773c
commit
e50e47eb92
@ -947,7 +947,7 @@ impl ChatRequest {
|
||||
let stop = stop.unwrap_or_default();
|
||||
// enable greedy only when temperature is 0
|
||||
let (do_sample, temperature) = match temperature {
|
||||
Some(temperature) if temperature == 0.0 => (false, None),
|
||||
Some(0.0) => (false, None),
|
||||
other => (true, other),
|
||||
};
|
||||
|
||||
@ -1010,7 +1010,7 @@ impl ChatRequest {
|
||||
seed,
|
||||
top_n_tokens: top_logprobs,
|
||||
grammar,
|
||||
adapter_id: model.filter(|m| *m != "tgi").map(String::from),
|
||||
adapter_id: model.filter(|m| *m != "tgi"),
|
||||
},
|
||||
},
|
||||
using_tools,
|
||||
|
@ -723,7 +723,7 @@ pub(crate) async fn completions(
|
||||
let stop = stop.unwrap_or_default();
|
||||
// enable greedy only when temperature is 0
|
||||
let (do_sample, temperature) = match temperature {
|
||||
Some(temperature) if temperature == 0.0 => (false, None),
|
||||
Some(0.0) => (false, None),
|
||||
other => (true, other),
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user