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
80358e5a
Commit
80358e5a
authored
Jul 18, 2023
by
haileyschoelkopf
Browse files
add assert for passing generation_kwargs w/ output_type neq greedy_until
parent
fc63c7af
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
lm_eval/api/task.py
lm_eval/api/task.py
+2
-1
No files found.
lm_eval/api/task.py
View file @
80358e5a
...
@@ -104,8 +104,9 @@ class TaskConfig(dict):
...
@@ -104,8 +104,9 @@ class TaskConfig(dict):
if
self
.
generation_kwargs
is
not
None
:
if
self
.
generation_kwargs
is
not
None
:
if
self
.
output_type
!=
"greedy_until"
:
if
self
.
output_type
!=
"greedy_until"
:
eval_logger
.
warning
(
eval_logger
.
warning
(
"passed `generation_kwargs`, but not using
a generation request type
!"
"passed `generation_kwargs`, but not using
`output_type: greedy_until`
!"
)
)
assert
self
.
output_type
!=
"greedy_until"
if
"temperature"
in
self
.
generation_kwargs
:
if
"temperature"
in
self
.
generation_kwargs
:
self
.
generation_kwargs
[
"temperature"
]
=
float
(
self
.
generation_kwargs
[
"temperature"
]
=
float
(
...
...
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