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
2266c4f3
Commit
2266c4f3
authored
Jan 31, 2025
by
Baber
Browse files
handle chat kwargs for `construct_requests`
parent
1208afd3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
lm_eval/tasks/squad_completion/task.py
lm_eval/tasks/squad_completion/task.py
+2
-1
lm_eval/tasks/squadv2/task.py
lm_eval/tasks/squadv2/task.py
+2
-1
No files found.
lm_eval/tasks/squad_completion/task.py
View file @
2266c4f3
...
...
@@ -44,7 +44,8 @@ class SQUADCompletion(ConfigurableTask):
language description, as well as the few shot examples, and the question
part of the document for `doc`.
"""
kwargs
.
pop
(
"apply_chat_template"
,
None
)
kwargs
.
pop
(
"chat_template"
,
None
)
return
[
Instance
(
request_type
=
"generate_until"
,
...
...
lm_eval/tasks/squadv2/task.py
View file @
2266c4f3
...
...
@@ -116,7 +116,8 @@ class SQuAD2(ConfigurableTask):
language description, as well as the few shot examples, and the question
part of the document for `doc`.
"""
kwargs
.
pop
(
"apply_chat_template"
,
None
)
kwargs
.
pop
(
"chat_template"
,
None
)
return
[
Instance
(
request_type
=
"generate_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