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
732f7ed2
"llm/llama.cpp/.github/vscode:/vscode.git/clone" did not exist on "f00757db2784510506f52c629624ebe040183692"
Commit
732f7ed2
authored
Jun 28, 2023
by
haileyschoelkopf
Browse files
change generation_kwargs -> kwargs
parent
7ffb74ce
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
lm_eval/models/huggingface.py
lm_eval/models/huggingface.py
+2
-2
No files found.
lm_eval/models/huggingface.py
View file @
732f7ed2
...
...
@@ -511,11 +511,11 @@ class HFLM(LM):
until
=
[
kwargs
]
elif
not
isinstance
(
until
,
list
):
raise
ValueError
(
f
"Expected `
generation_
kwargs['until']` to be of type Union[str,list] but got
{
until
}
"
f
"Expected `kwargs['until']` to be of type Union[str,list] but got
{
until
}
"
)
else
:
raise
ValueError
(
f
"Expected `
generation_
kwargs` to be of type `dict` but got
{
kwargs
}
"
f
"Expected `kwargs` to be of type `dict` but got
{
kwargs
}
"
)
if
not
until
:
until
=
[
self
.
tok_decode
(
self
.
eot_token_id
)]
...
...
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