We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dacbd8a commit 736fffeCopy full SHA for 736fffe
lib/llm/src/hub.rs
@@ -42,7 +42,7 @@ fn is_weight_file(filename: &str) -> bool {
42
pub async fn from_hf(name: impl AsRef<Path>, ignore_weights: bool) -> anyhow::Result<PathBuf> {
43
let name = name.as_ref();
44
let token = env::var(HF_TOKEN_ENV_VAR).ok();
45
- let api = ApiBuilder::new()
+ let api = ApiBuilder::from_env()
46
.with_progress(true)
47
.with_token(token)
48
.high()
0 commit comments