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
feee4ed4
Unverified
Commit
feee4ed4
authored
Sep 03, 2021
by
sdtblck
Committed by
GitHub
Sep 03, 2021
Browse files
Merge pull request #216 from EleutherAI/fix_download_if_exists
fix file download for existing files
parents
49dc058d
031677b6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
lm_eval/tasks/lambada_multilingual.py
lm_eval/tasks/lambada_multilingual.py
+1
-1
No files found.
lm_eval/tasks/lambada_multilingual.py
View file @
feee4ed4
...
@@ -29,7 +29,7 @@ class MultilingualLAMBADA(lambada.LAMBADA):
...
@@ -29,7 +29,7 @@ class MultilingualLAMBADA(lambada.LAMBADA):
f
=
f
"data/lambada/lambada_test_
{
self
.
LANG
}
.jsonl"
f
=
f
"data/lambada/lambada_test_
{
self
.
LANG
}
.jsonl"
url
=
f
"http://eaidata.bmk.sh/data/lambada_test_
{
self
.
LANG
}
.jsonl"
url
=
f
"http://eaidata.bmk.sh/data/lambada_test_
{
self
.
LANG
}
.jsonl"
try
:
try
:
if
not
os
.
path
.
exists
():
if
not
os
.
path
.
exists
(
f
):
download_file
(
download_file
(
url
,
url
,
f
,
f
,
...
...
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