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
11f0e6d8
Unverified
Commit
11f0e6d8
authored
Jun 20, 2021
by
Leo Gao
Committed by
GitHub
Jun 20, 2021
Browse files
Indicate that it's machine translated in task name and comments
parent
40bdb0c4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
lm_eval/tasks/lambada_multilingual.py
lm_eval/tasks/lambada_multilingual.py
+3
-1
No files found.
lm_eval/tasks/lambada_multilingual.py
View file @
11f0e6d8
...
@@ -4,6 +4,8 @@ from lm_eval.metrics import mean, perplexity
...
@@ -4,6 +4,8 @@ from lm_eval.metrics import mean, perplexity
from
lm_eval.utils
import
sh
from
lm_eval.utils
import
sh
from
best_download
import
download_file
from
best_download
import
download_file
# This task is lambada but machine-translated to the other languages.
LANGS
=
[
"en"
,
"fr"
,
"de"
,
"it"
,
"es"
]
LANGS
=
[
"en"
,
"fr"
,
"de"
,
"it"
,
"es"
]
CHECKSUMS
=
{
"en"
:
"4aa8d02cd17c719165fc8a7887fddd641f43fcafa4b1c806ca8abc31fabdb226"
,
CHECKSUMS
=
{
"en"
:
"4aa8d02cd17c719165fc8a7887fddd641f43fcafa4b1c806ca8abc31fabdb226"
,
"fr"
:
"941ec6a73dba7dc91c860bf493eb66a527cd430148827a4753a4535a046bf362"
,
"fr"
:
"941ec6a73dba7dc91c860bf493eb66a527cd430148827a4753a4535a046bf362"
,
...
@@ -36,5 +38,5 @@ class MultilingualLAMBADA(lambada.LAMBADA):
...
@@ -36,5 +38,5 @@ class MultilingualLAMBADA(lambada.LAMBADA):
def
construct_tasks
():
def
construct_tasks
():
tasks
=
{}
tasks
=
{}
for
lang
in
LANGS
:
for
lang
in
LANGS
:
tasks
[
f
"lambada_
{
lang
}
"
]
=
partial
(
MultilingualLAMBADA
,
lang
=
lang
)
tasks
[
f
"lambada_
mt_
{
lang
}
"
]
=
partial
(
MultilingualLAMBADA
,
lang
=
lang
)
return
tasks
return
tasks
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