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
c478e20a
Commit
c478e20a
authored
Aug 14, 2023
by
lintangsutawika
Browse files
Merge branch 'big-refactor' of
https://github.com/EleutherAI/lm-evaluation-harness
into toxicity
parents
88511112
64c76fc3
Changes
33
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
108 additions
and
18 deletions
+108
-18
lm_eval/tasks/xnli/xnli_el.yaml
lm_eval/tasks/xnli/xnli_el.yaml
+7
-0
lm_eval/tasks/xnli/xnli_en.yaml
lm_eval/tasks/xnli/xnli_en.yaml
+7
-0
lm_eval/tasks/xnli/xnli_es.yaml
lm_eval/tasks/xnli/xnli_es.yaml
+7
-0
lm_eval/tasks/xnli/xnli_fr.yaml
lm_eval/tasks/xnli/xnli_fr.yaml
+7
-0
lm_eval/tasks/xnli/xnli_hi.yaml
lm_eval/tasks/xnli/xnli_hi.yaml
+7
-0
lm_eval/tasks/xnli/xnli_ru.yaml
lm_eval/tasks/xnli/xnli_ru.yaml
+7
-0
lm_eval/tasks/xnli/xnli_sw.yaml
lm_eval/tasks/xnli/xnli_sw.yaml
+7
-0
lm_eval/tasks/xnli/xnli_th.yaml
lm_eval/tasks/xnli/xnli_th.yaml
+7
-0
lm_eval/tasks/xnli/xnli_tr.yaml
lm_eval/tasks/xnli/xnli_tr.yaml
+7
-0
lm_eval/tasks/xnli/xnli_ur.yaml
lm_eval/tasks/xnli/xnli_ur.yaml
+7
-0
lm_eval/tasks/xnli/xnli_vi.yaml
lm_eval/tasks/xnli/xnli_vi.yaml
+7
-0
lm_eval/tasks/xnli/xnli_zh.yaml
lm_eval/tasks/xnli/xnli_zh.yaml
+7
-0
setup.py
setup.py
+24
-18
No files found.
lm_eval/tasks/xnli/xnli_el.yaml
0 → 100644
View file @
c478e20a
# Generated by utils.py
dataset_name
:
el
doc_to_choice
:
'
{{[premise+",
σωστός?
Ναί,
"+hypothesis,premise+",
σωστός?
Έτσι,
"+hypothesis,premise+",
σωστός?
όχι,
"+hypothesis]}}'
doc_to_text
:
'
'
include
:
xnli_common_yaml
task
:
xnli_el
lm_eval/tasks/xnli/xnli_en.yaml
0 → 100644
View file @
c478e20a
# Generated by utils.py
dataset_name
:
en
doc_to_choice
:
'
{{[premise+",
right?
Yes,
"+hypothesis,premise+",
right?
Also,
"+hypothesis,premise+",
right?
No,
"+hypothesis]}}'
doc_to_text
:
'
'
include
:
xnli_common_yaml
task
:
xnli_en
lm_eval/tasks/xnli/xnli_es.yaml
0 → 100644
View file @
c478e20a
# Generated by utils.py
dataset_name
:
es
doc_to_choice
:
'
{{[premise+",
correcto?
Sí,
"+hypothesis,premise+",
correcto?
Asi
que,
"+hypothesis,premise+",
correcto?
No,
"+hypothesis]}}'
doc_to_text
:
'
'
include
:
xnli_common_yaml
task
:
xnli_es
lm_eval/tasks/xnli/xnli_fr.yaml
0 → 100644
View file @
c478e20a
# Generated by utils.py
dataset_name
:
fr
doc_to_choice
:
'
{{[premise+",
correct?
Oui,
"+hypothesis,premise+",
correct?
Aussi,
"+hypothesis,premise+",
correct?
Non,
"+hypothesis]}}'
doc_to_text
:
'
'
include
:
xnli_common_yaml
task
:
xnli_fr
lm_eval/tasks/xnli/xnli_hi.yaml
0 → 100644
View file @
c478e20a
# Generated by utils.py
dataset_name
:
hi
doc_to_choice
:
'
{{[premise+",
सही?
हाँ,
"+hypothesis,premise+",
सही?
इसलिए,
"+hypothesis,premise+",
सही?
नहीं,
"+hypothesis]}}'
doc_to_text
:
'
'
include
:
xnli_common_yaml
task
:
xnli_hi
lm_eval/tasks/xnli/xnli_ru.yaml
0 → 100644
View file @
c478e20a
# Generated by utils.py
dataset_name
:
ru
doc_to_choice
:
'
{{[premise+",
правильно?
Да,
"+hypothesis,premise+",
правильно?
Так,
"+hypothesis,premise+",
правильно?
Нет,
"+hypothesis]}}'
doc_to_text
:
'
'
include
:
xnli_common_yaml
task
:
xnli_ru
lm_eval/tasks/xnli/xnli_sw.yaml
0 → 100644
View file @
c478e20a
# Generated by utils.py
dataset_name
:
sw
doc_to_choice
:
'
{{[premise+",
sahihi?
Ndiyo,
"+hypothesis,premise+",
sahihi?
Hivyo,
"+hypothesis,premise+",
sahihi?
Hapana,
"+hypothesis]}}'
doc_to_text
:
'
'
include
:
xnli_common_yaml
task
:
xnli_sw
lm_eval/tasks/xnli/xnli_th.yaml
0 → 100644
View file @
c478e20a
# Generated by utils.py
dataset_name
:
th
doc_to_choice
:
'
{{[premise+",
ถูกต้อง?
ใช่,
"+hypothesis,premise+",
ถูกต้อง?
ดังนั้น,
"+hypothesis,premise+",
ถูกต้อง?
ไม่,
"+hypothesis]}}'
doc_to_text
:
'
'
include
:
xnli_common_yaml
task
:
xnli_th
lm_eval/tasks/xnli/xnli_tr.yaml
0 → 100644
View file @
c478e20a
# Generated by utils.py
dataset_name
:
tr
doc_to_choice
:
'
{{[premise+",
doğru?
Evet,
"+hypothesis,premise+",
doğru?
Böylece,
"+hypothesis,premise+",
doğru?
Hayır,
"+hypothesis]}}'
doc_to_text
:
'
'
include
:
xnli_common_yaml
task
:
xnli_tr
lm_eval/tasks/xnli/xnli_ur.yaml
0 → 100644
View file @
c478e20a
# Generated by utils.py
dataset_name
:
ur
doc_to_choice
:
'
{{[premise+",
صحیح?
جی
ہاں,
"+hypothesis,premise+",
صحیح?
اس
لئے,
"+hypothesis,premise+",
صحیح?
نہیں,
"+hypothesis]}}'
doc_to_text
:
'
'
include
:
xnli_common_yaml
task
:
xnli_ur
lm_eval/tasks/xnli/xnli_vi.yaml
0 → 100644
View file @
c478e20a
# Generated by utils.py
dataset_name
:
vi
doc_to_choice
:
'
{{[premise+",
đúng?
Vâng,
"+hypothesis,premise+",
đúng?
Vì
vậy,
"+hypothesis,premise+",
đúng?
Không,
"+hypothesis]}}'
doc_to_text
:
'
'
include
:
xnli_common_yaml
task
:
xnli_vi
lm_eval/tasks/xnli/xnli_zh.yaml
0 → 100644
View file @
c478e20a
# Generated by utils.py
dataset_name
:
zh
doc_to_choice
:
'
{{[premise+",
正确?
是的,
"+hypothesis,premise+",
正确?
所以,
"+hypothesis,premise+",
正确?
不是的,
"+hypothesis]}}'
doc_to_text
:
'
'
include
:
xnli_common_yaml
task
:
xnli_zh
setup.py
View file @
c478e20a
import
setuptools
import
setuptools
import
itertools
with
open
(
"README.md"
,
"r"
,
encoding
=
"utf-8"
)
as
fh
:
with
open
(
"README.md"
,
"r"
,
encoding
=
"utf-8"
)
as
fh
:
long_description
=
fh
.
read
()
long_description
=
fh
.
read
()
extras_require
=
{
"dev"
:
[
"black"
,
"flake8"
,
"pre-commit"
,
"pytest"
,
"pytest-cov"
],
"linting"
:
[
"flake8"
,
"pylint"
,
"mypy"
,
"pre-commit"
,
],
"testing"
:
[
"pytest"
,
"pytest-cov"
,
"pytest-xdist"
],
"multilingual"
:
[
"nagisa>=0.2.7"
,
"jieba>=0.42.1"
],
"sentencepiece"
:
[
"sentencepiece>=0.1.98"
,
"protobuf>=4.22.1"
],
"promptsource"
:
[
"promptsource @ git+https://github.com/bigscience-workshop/promptsource.git#egg=promptsource"
],
"gptq"
:
[
"auto-gptq[triton] @ git+https://github.com/PanQiWei/AutoGPTQ"
],
"anthropic"
:
[
"anthropic"
],
"openai"
:
[
"openai"
,
"tiktoken"
],
}
extras_require
[
"all"
]
=
list
(
itertools
.
chain
.
from_iterable
(
extras_require
.
values
()))
setuptools
.
setup
(
setuptools
.
setup
(
name
=
"lm_eval"
,
name
=
"lm_eval"
,
version
=
"1.0.0"
,
version
=
"1.0.0"
,
...
@@ -50,22 +73,5 @@ setuptools.setup(
...
@@ -50,22 +73,5 @@ setuptools.setup(
"transformers>=4.1"
,
"transformers>=4.1"
,
"zstandard"
,
"zstandard"
,
],
],
extras_require
=
{
extras_require
=
extras_require
,
"dev"
:
[
"black"
,
"flake8"
,
"pre-commit"
,
"pytest"
,
"pytest-cov"
],
"linting"
:
[
"flake8"
,
"pylint"
,
"mypy"
,
"pre-commit"
,
],
"testing"
:
[
"pytest"
,
"pytest-cov"
,
"pytest-xdist"
],
"multilingual"
:
[
"nagisa>=0.2.7"
,
"jieba>=0.42.1"
],
"sentencepiece"
:
[
"sentencepiece>=0.1.98"
,
"protobuf>=4.22.1"
],
"promptsource"
:
[
"promptsource @ git+https://github.com/bigscience-workshop/promptsource.git#egg=promptsource"
],
"gptq"
:
[
"auto-gptq[triton] @ git+https://github.com/PanQiWei/AutoGPTQ"
],
"anthropic"
:
[
"anthropic"
],
"openai"
:
[
"openai"
,
"tiktoken"
],
},
)
)
Prev
1
2
Next
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