This commit is contained in:
Nicolas Patry 2024-08-09 14:39:49 +02:00
parent d84b98b40f
commit 379e1659a9
No known key found for this signature in database
GPG Key ID: 64AF4752B2967863

View File

@ -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
}; };