Commit 95360bc2 authored by lintangsutawika's avatar lintangsutawika
Browse files

Merge branch 'big-refactor' of https://github.com/EleutherAI/lm-evaluation-harness into add-readme

parents 545fb8fc 30aa9c33
# 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
# 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
# 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
# Generated by utils.py
dataset_name: vi
doc_to_choice: '{{[premise+", đúng? Vâng, "+hypothesis,premise+", đúng? vậy, "+hypothesis,premise+",
đúng? Không, "+hypothesis]}}'
doc_to_text: ''
include: xnli_common_yaml
task: xnli_vi
# 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
group: xstorycloze
task: xstorycloze_ar
dataset_path: juletxara/xstory_cloze
dataset_name: ar
output_type: multiple_choice
training_split: train
validation_split: eval
doc_to_text: "{{[input_sentence_1, input_sentence_2, input_sentence_3, input_sentence_4]|join(' ')}}"
doc_to_target: "{{answer_right_ending-1}}"
doc_to_choice: "{{[sentence_quiz1, sentence_quiz2]}}"
should_decontaminate: true
doc_to_decontamination_query: "{{[input_sentence_1, input_sentence_2, input_sentence_3, input_sentence_4]|join(' ')}}"
metric_list:
- metric: acc
aggregation: mean
higher_is_better: true
include: default_ar.yaml
task: xstorycloze_en
dataset_name: en
include: default_ar.yaml
task: xstorycloze_es
dataset_name: es
include: default_ar.yaml
task: xstorycloze_eu
dataset_name: eu
include: default_ar.yaml
task: xstorycloze_hi
dataset_name: hi
include: default_ar.yaml
task: xstorycloze_id
dataset_name: id
include: default_ar.yaml
task: xstorycloze_my
dataset_name: my
include: default_ar.yaml
task: xstorycloze_ru
dataset_name: ru
include: default_ar.yaml
task: xstorycloze_sw
dataset_name: sw
include: default_ar.yaml
task: xstorycloze_te
dataset_name: te
include: default_ar.yaml
task: xstorycloze_zh
dataset_name: zh
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"],
},
) )
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment