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
fcaea0e3
Unverified
Commit
fcaea0e3
authored
Mar 06, 2022
by
Leo Gao
Committed by
GitHub
Mar 06, 2022
Browse files
Merge pull request #296 from jon-tow/gsm8k-fix
Add positional args to `gsm8k` `download_file`
parents
cec2fe23
f91a70d6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
lm_eval/tasks/gsm8k.py
lm_eval/tasks/gsm8k.py
+2
-1
No files found.
lm_eval/tasks/gsm8k.py
View file @
fcaea0e3
...
...
@@ -56,7 +56,8 @@ class GradeSchoolMath8K(Task):
]
for
split
in
splits
:
file
=
self
.
DATASET_PATH
/
f
"
{
split
[
'name'
]
}
.jsonl"
download_file
(
f
"
{
base_url
}
/
{
split
[
'name'
]
}
.jsonl"
,
str
(
file
),
split
[
"checksum"
])
url
=
f
"
{
base_url
}
/
{
split
[
'name'
]
}
.jsonl"
download_file
(
url
,
local_file
=
str
(
file
),
expected_checksum
=
split
[
"checksum"
])
def
has_training_docs
(
self
):
return
True
...
...
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