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
767c58b9
Commit
767c58b9
authored
Aug 16, 2023
by
lintangsutawika
Browse files
Merge branch 'big-refactor' into update_docs
parents
3bfbddc4
759da8d5
Changes
265
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
43 additions
and
27 deletions
+43
-27
lm_eval/tasks/xwinograd/README.md
lm_eval/tasks/xwinograd/README.md
+7
-1
lm_eval/tasks/xwinograd/xwinograd_common_yaml
lm_eval/tasks/xwinograd/xwinograd_common_yaml
+1
-3
lm_eval/utils.py
lm_eval/utils.py
+1
-1
setup.py
setup.py
+24
-18
templates/new_yaml_task/README.md
templates/new_yaml_task/README.md
+10
-4
No files found.
lm_eval/tasks/xwinograd/README.md
View file @
767c58b9
...
...
@@ -31,7 +31,13 @@ Homepage: `https://huggingface.co/datasets/Muennighoff/xwinograd`
}
```
### Subtasks
### Groups and Tasks
#### Groups
*
`xwinograd`
#### Tasks
List or describe tasks defined in this folder, and their names here:
*
`xwinograd_en`
: Winograd schema challenges in English.
...
...
lm_eval/tasks/xwinograd/xwinograd_common_yaml
View file @
767c58b9
...
...
@@ -2,9 +2,7 @@
# It doesn't have a yaml file extension as it is not meant to be imported directly
# by the harness.
group:
- winograd
- commonsense
- multilingual
- xwinograd
dataset_path: Muennighoff/xwinograd
dataset_name: null # Overridden by language-specific config.
output_type: multiple_choice
...
...
lm_eval/utils.py
View file @
767c58b9
...
...
@@ -456,7 +456,7 @@ env = Environment(loader=BaseLoader, undefined=StrictUndefined)
env
.
filters
[
"regex_replace"
]
=
regex_replace
def
apply_template
(
template
,
doc
)
:
def
apply_template
(
template
:
str
,
doc
:
dict
)
->
str
:
rtemplate
=
env
.
from_string
(
template
)
return
rtemplate
.
render
(
**
doc
)
...
...
setup.py
View file @
767c58b9
import
setuptools
import
itertools
with
open
(
"README.md"
,
"r"
,
encoding
=
"utf-8"
)
as
fh
:
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
(
name
=
"lm_eval"
,
version
=
"1.0.0"
,
...
...
@@ -36,7 +59,6 @@ setuptools.setup(
"evaluate>=0.4.0"
,
"jsonlines"
,
"numexpr"
,
"openai>=0.6.4"
,
"omegaconf>=2.2"
,
"peft>=0.2.0"
,
"pybind11>=2.6.2"
,
...
...
@@ -51,21 +73,5 @@ setuptools.setup(
"transformers>=4.1"
,
"zstandard"
,
],
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"
],
},
extras_require
=
extras_require
,
)
templates/new_yaml_task/README.md
View file @
767c58b9
...
...
@@ -2,7 +2,8 @@
### Paper
Title:
`paper title goes here`
Title:
`paper titles goes here`
Abstract:
`link to paper PDF or arXiv abstract goes here`
`Short description of paper / benchmark goes here:`
...
...
@@ -16,11 +17,16 @@ Homepage: `homepage to the benchmark's website goes here, if applicable`
BibTeX-formatted citation goes here
```
### Subtasks
### Groups and Tasks
#### Groups
*
`group_name`
:
`Short description`
#### Tasks
List or describe tasks defined in this folder, and their names here:
*
`task_name`
:
`1-sentence description of what this particular task does`
*
`task_name2`
: ...
..
*
`task_name2`
: ...
### Checklist
...
...
Prev
1
…
10
11
12
13
14
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