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
d4b8fc13
Unverified
Commit
d4b8fc13
authored
Mar 20, 2024
by
achervyakov
Committed by
GitHub
Mar 19, 2024
Browse files
fix until arg processing (#1608)
parent
0d920e82
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
lm_eval/models/huggingface.py
lm_eval/models/huggingface.py
+1
-1
lm_eval/models/neuron_optimum.py
lm_eval/models/neuron_optimum.py
+1
-1
No files found.
lm_eval/models/huggingface.py
View file @
d4b8fc13
...
...
@@ -1163,7 +1163,7 @@ class HFLM(TemplateLM):
if
"until"
in
kwargs
.
keys
():
until
=
kwargs
.
pop
(
"until"
)
if
isinstance
(
until
,
str
):
until
=
[
kwargs
]
until
=
[
until
]
elif
not
isinstance
(
until
,
list
):
raise
ValueError
(
f
"Expected `kwargs['until']` to be of type Union[str,list] but got
{
until
}
"
...
...
lm_eval/models/neuron_optimum.py
View file @
d4b8fc13
...
...
@@ -664,7 +664,7 @@ class NEURON_HF(TemplateLM):
if
"until"
in
kwargs
.
keys
():
until
=
kwargs
.
pop
(
"until"
)
if
isinstance
(
until
,
str
):
until
=
[
kwargs
]
until
=
[
until
]
elif
not
isinstance
(
until
,
list
):
raise
ValueError
(
f
"Expected `kwargs['until']` to be of type Union[str,list] but got
{
until
}
"
...
...
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