Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
lm-evaluation-harness
Commits
a604f05c
Unverified
Commit
a604f05c
authored
Feb 18, 2024
by
Michael Feil
Committed by
GitHub
Feb 18, 2024
Browse files
improve hf_hub activation (#1438)
parent
f3b79170
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
lm_eval/models/__init__.py
lm_eval/models/__init__.py
+4
-5
No files found.
lm_eval/models/__init__.py
View file @
a604f05c
...
...
@@ -11,12 +11,11 @@ from . import neuron_optimum
# TODO: implement __all__
import
os
try
:
# enabling faster model download
import
hf_transfer
# enable hf hub transfer if available
import
hf_transfer
# type: ignore # noqa
import
huggingface_hub.constants
# type: ignore
os
.
environ
[
"
HF_HUB_ENABLE_HF_TRANSFER
"
]
=
"1"
huggingface_hub
.
constants
.
HF_HUB_ENABLE_HF_TRANSFER
=
True
except
ImportError
:
pass
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