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
59b047fb
"sgl-kernel/vscode:/vscode.git/clone" did not exist on "f11481b921bb7f3eb7b1a9080667549326b7fd17"
Unverified
Commit
59b047fb
authored
Jul 05, 2023
by
Lintang Sutawika
Committed by
GitHub
Jul 05, 2023
Browse files
Update task.py
parent
633fb458
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
lm_eval/api/task.py
lm_eval/api/task.py
+3
-1
No files found.
lm_eval/api/task.py
View file @
59b047fb
...
@@ -116,7 +116,9 @@ class TaskConfig(dict):
...
@@ -116,7 +116,9 @@ class TaskConfig(dict):
if
self
.
output_type
==
"greedy_until"
:
if
self
.
output_type
==
"greedy_until"
:
# ensure that we greedily generate in absence of explicit arguments otherwise
# ensure that we greedily generate in absence of explicit arguments otherwise
self
.
generation_kwargs
=
{
self
.
generation_kwargs
=
{
"until"
:
None
if
self
.
target_delimiter
is
None
else
[
self
.
target_delimiter
],
"until"
:
None
if
self
.
target_delimiter
is
None
else
[
self
.
target_delimiter
],
"do_sample"
:
False
,
"do_sample"
:
False
,
"temperature"
:
0.0
,
"temperature"
:
0.0
,
}
}
...
...
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