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
7ff13e9e
"Doc/vscode:/vscode.git/clone" did not exist on "aaa34fb674c7640e7467e046b739f598108eaa6f"
Unverified
Commit
7ff13e9e
authored
Aug 05, 2024
by
Hailey Schoelkopf
Committed by
GitHub
Aug 05, 2024
Browse files
fix revision type (#2184)
parent
d8506db0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
lm_eval/models/huggingface.py
lm_eval/models/huggingface.py
+3
-3
lm_eval/models/neuron_optimum.py
lm_eval/models/neuron_optimum.py
+1
-0
No files found.
lm_eval/models/huggingface.py
View file @
7ff13e9e
...
...
@@ -154,6 +154,7 @@ class HFLM(TemplateLM):
else
torch
.
device
(
device
)
)
revision
=
str
(
revision
)
# cast to string if not already one
# TODO: update this to be less of a hack once subfolder is fixed in HF
revision
=
revision
+
(
"/"
+
subfolder
if
subfolder
is
not
None
else
""
)
...
...
@@ -333,10 +334,9 @@ class HFLM(TemplateLM):
del
max_memory_all_gpus
[
"cpu"
]
if
not
hasattr
(
self
,
"accelerator"
):
max_memory_per_gpu_map
=
{
k
:
v
for
k
,
v
in
max_memory_all_gpus
.
items
()
k
:
v
for
k
,
v
in
max_memory_all_gpus
.
items
()
}
else
:
else
:
# use only 1 / num_processes of the GPUs if we are running under accelerate launch
max_memory_per_gpu_map
=
{
k
:
v
...
...
lm_eval/models/neuron_optimum.py
View file @
7ff13e9e
...
...
@@ -231,6 +231,7 @@ class NEURON_HF(TemplateLM):
" For inf2.48xlarge, set it to `24`."
)
revision
=
str
(
revision
)
# cast to string if not already one
# TODO: update this to be less of a hack once subfolder is fixed in HF
revision
=
revision
+
(
"/"
+
subfolder
if
subfolder
is
not
None
else
""
)
...
...
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