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
89618bf8
Unverified
Commit
89618bf8
authored
Jan 12, 2024
by
Hailey Schoelkopf
Committed by
GitHub
Jan 13, 2024
Browse files
apply process_docs() to fewshot_split too (#1276)
parent
653217a7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
lm_eval/api/task.py
lm_eval/api/task.py
+2
-0
No files found.
lm_eval/api/task.py
View file @
89618bf8
...
...
@@ -759,6 +759,8 @@ class ConfigurableTask(Task):
def
fewshot_docs
(
self
):
if
self
.
config
.
fewshot_split
is
not
None
:
if
self
.
config
.
process_docs
is
not
None
:
return
self
.
config
.
process_docs
(
self
.
dataset
[
self
.
config
.
fewshot_split
])
return
self
.
dataset
[
self
.
config
.
fewshot_split
]
else
:
if
(
self
.
config
.
num_fewshot
is
not
None
)
and
(
self
.
config
.
num_fewshot
>
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