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
f88ffeee
Unverified
Commit
f88ffeee
authored
Sep 21, 2023
by
Hailey Schoelkopf
Committed by
GitHub
Sep 21, 2023
Browse files
Merge branch 'big-refactor' into add-fewshot-config
parents
2d5d94da
0f6cd358
Changes
64
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
8 deletions
+8
-8
main.py
main.py
+0
-1
mypy.ini
mypy.ini
+1
-1
pyproject.toml
pyproject.toml
+4
-5
scripts/write_out.py
scripts/write_out.py
+3
-1
No files found.
main.py
View file @
f88ffeee
...
...
@@ -11,7 +11,6 @@ from lm_eval import evaluator, utils
from
lm_eval.api.registry
import
ALL_TASKS
from
lm_eval.logger
import
eval_logger
,
SPACING
from
lm_eval.tasks
import
include_task_folder
from
lm_eval.benchmarks
import
include_benchmarks
os
.
environ
[
"TOKENIZERS_PARALLELISM"
]
=
"false"
...
...
mypy.ini
View file @
f88ffeee
[mypy]
python_version
=
3.
9
python_version
=
3.
8
show_traceback
=
True
check_untyped_defs
=
True
no_implicit_reexport
=
True
...
...
pyproject.toml
View file @
f88ffeee
...
...
@@ -16,7 +16,7 @@ classifiers = [
"License :: OSI Approved :: MIT License"
,
"Operating System :: OS Independent"
,
]
requires-python
=
">=3.
9
"
requires-python
=
">=3.
8
"
license
=
{
"text"
=
"MIT"
}
dependencies
=
[
"accelerate>=0.21.0"
,
...
...
@@ -25,10 +25,8 @@ dependencies = [
"evaluate>=0.4.0"
,
"jsonlines"
,
"numexpr"
,
"omegaconf>=2.2"
,
"peft>=0.2.0"
,
"pybind11>=2.6.2"
,
"pycountry"
,
"pytablewriter"
,
"rouge-score>=0.0.4"
,
"sacrebleu>=1.5.0"
,
...
...
@@ -65,8 +63,9 @@ linting = [
"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"
,
"pycountry"
]
multilingual
=
[
"nagisa>=0.2.7"
,
"jieba>=0.42.1"
,
"pycountry"
]
math
=
[
"sympy>=1.12"
,
"antlr4-python3-runtime==4.11"
]
sentencepiece
=
[
"sentencepiece>=0.1.98"
,
"protobuf>=4.22.1"
]
promptsource
=
[
"promptsource @ git+https://github.com/bigscience-workshop/promptsource.git#egg=promptsource"
]
...
...
scripts/write_out.py
View file @
f88ffeee
...
...
@@ -50,7 +50,9 @@ def main():
docs
=
join_iters
(
iters
)
with
open
(
os
.
path
.
join
(
args
.
output_base_path
,
task_name
),
"w"
)
as
f
:
with
open
(
os
.
path
.
join
(
args
.
output_base_path
,
task_name
),
"w"
,
encoding
=
"utf8"
)
as
f
:
for
i
,
doc
in
(
zip
(
range
(
args
.
num_examples
),
docs
)
if
args
.
num_examples
>
0
...
...
Prev
1
2
3
4
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