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
e35386d9
Unverified
Commit
e35386d9
authored
Jul 02, 2021
by
Leo Gao
Committed by
GitHub
Jul 02, 2021
Browse files
Fix version issue
parent
db85d5ae
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
lm_eval/tasks/lambada_multilingual.py
lm_eval/tasks/lambada_multilingual.py
+4
-1
No files found.
lm_eval/tasks/lambada_multilingual.py
View file @
e35386d9
...
...
@@ -40,5 +40,8 @@ class MultilingualLAMBADA(lambada.LAMBADA):
def
construct_tasks
():
tasks
=
{}
for
lang
in
LANGS
:
tasks
[
f
"lambada_mt_
{
lang
}
"
]
=
partial
(
MultilingualLAMBADA
,
lang
=
lang
)
class
MultilingualLAMBADAInstance
(
MultilingualLAMBADA
):
def
__init__
(
self
):
super
().
__init__
(
lang
)
tasks
[
f
"lambada_mt_
{
lang
}
"
]
=
MultilingualLAMBADAInstance
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