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
e33ae5ab
Commit
e33ae5ab
authored
Jun 14, 2023
by
FarzanehNakhaee
Browse files
Update until in greedy_until
parent
c08b2d9d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
lm_eval/models/hf_causal.py
lm_eval/models/hf_causal.py
+2
-0
No files found.
lm_eval/models/hf_causal.py
View file @
e33ae5ab
...
...
@@ -372,6 +372,8 @@ class HFLM(LM):
raise
ValueError
(
f
"Expected `gen_kwargs['until']` to be of type Union[str,list] but got
{
until
}
"
)
else
:
until
=
None
else
:
raise
ValueError
(
f
"Expected `gen_kwargs` to be of type `dict` but got
{
gen_kwargs
}
"
...
...
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