mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-09-12 12:54:52 +00:00
Clippy.
This commit is contained in:
parent
d84b98b40f
commit
379e1659a9
@ -36,7 +36,7 @@ impl BackendV3 {
|
|||||||
speculate: u32,
|
speculate: u32,
|
||||||
) -> Self {
|
) -> Self {
|
||||||
let attention = if let Ok(attention) = std::env::var("ATTENTION") {
|
let attention = if let Ok(attention) = std::env::var("ATTENTION") {
|
||||||
attention.parse().expect(&format!("Invalid attention was specified :`{attention}`"))
|
attention.parse().unwrap_or_else(|_| panic!("Invalid attention was specified :`{attention}`"))
|
||||||
} else {
|
} else {
|
||||||
Attention::Paged
|
Attention::Paged
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user