Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
dynamo
Commits
a24221d4
Unverified
Commit
a24221d4
authored
Aug 26, 2025
by
Hyeonki Hong
Committed by
GitHub
Aug 25, 2025
Browse files
feat: support HF_HOME/_ENDPOINT env for Hugging Face models (#2642)
Signed-off-by:
Hyeonki Hong
<
hhk7734@gmail.com
>
parent
225aee52
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
lib/llm/src/hub.rs
lib/llm/src/hub.rs
+1
-1
No files found.
lib/llm/src/hub.rs
View file @
a24221d4
...
...
@@ -42,7 +42,7 @@ fn is_weight_file(filename: &str) -> bool {
pub
async
fn
from_hf
(
name
:
impl
AsRef
<
Path
>
,
ignore_weights
:
bool
)
->
anyhow
::
Result
<
PathBuf
>
{
let
name
=
name
.as_ref
();
let
token
=
env
::
var
(
HF_TOKEN_ENV_VAR
)
.ok
();
let
api
=
ApiBuilder
::
new
()
let
api
=
ApiBuilder
::
from_env
()
.with_progress
(
true
)
.with_token
(
token
)
.high
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment