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
898e0ace
Commit
898e0ace
authored
Jan 17, 2025
by
Baber
Browse files
nit
parent
37f17c3a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
lm_eval/api/task.py
lm_eval/api/task.py
+9
-3
No files found.
lm_eval/api/task.py
View file @
898e0ace
...
...
@@ -822,8 +822,12 @@ class ConfigurableTask(Task):
self
.
download
(
self
.
config
.
dataset_kwargs
)
else
:
self
.
dataset
=
self
.
config
.
download_dataset
(
self
.
config
.
metadata
.
get
(
"tokenizer"
,
self
.
config
.
metadata
.
get
(
"pretrained"
)
metadata
=
self
.
config
.
metadata
.
get
(
"tokenizer"
,
self
.
config
.
metadata
.
get
(
"pretrained"
),
**
self
.
config
.
dataset_kwargs
if
self
.
config
.
dataset_kwargs
is
not
None
else
{},
)
)
self
.
_training_docs
=
None
...
...
@@ -931,7 +935,9 @@ class ConfigurableTask(Task):
f
'Both target_delimiter "
{
self
.
config
.
target_delimiter
}
" and target choice: "
{
choice
}
" do not have whitespace, ignore if the language you are evaluating on does not require/use whitespace'
)
def
download
(
self
,
dataset_kwargs
:
Optional
[
Dict
[
str
,
Any
]]
=
None
)
->
None
:
def
download
(
self
,
dataset_kwargs
:
Optional
[
Dict
[
str
,
Any
]]
=
None
,
**
kwargs
)
->
None
:
self
.
dataset
=
datasets
.
load_dataset
(
path
=
self
.
DATASET_PATH
,
name
=
self
.
DATASET_NAME
,
...
...
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