mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-09-09 11:24:53 +00:00
Fix HF cache default value in server.rs
This commit is contained in:
parent
e3b3eecc96
commit
790a3b5ed2
@ -1577,7 +1577,7 @@ pub async fn run(
|
||||
let cache = std::env::var("HUGGINGFACE_HUB_CACHE")
|
||||
.map_err(|_| ())
|
||||
.map(|cache_dir| Cache::new(cache_dir.into()))
|
||||
.unwrap_or_else(|_| Cache::default());
|
||||
.unwrap_or_else(|_| Cache::from_env());
|
||||
tracing::warn!("Offline mode active using cache defaults");
|
||||
Type::Cache(cache)
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user