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
33d52483
Unverified
Commit
33d52483
authored
Sep 18, 2023
by
Lintang Sutawika
Committed by
GitHub
Sep 18, 2023
Browse files
Merge pull request #860 from EleutherAI/cleanup-deps
[Refactor] Cleanup dependencies
parents
cc547c7b
4ff8260d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
8 deletions
+5
-8
lm_eval/tasks/translation/utils.py
lm_eval/tasks/translation/utils.py
+1
-1
lm_eval/utils.py
lm_eval/utils.py
+2
-3
pyproject.toml
pyproject.toml
+2
-4
No files found.
lm_eval/tasks/translation/utils.py
View file @
33d52483
...
...
@@ -10,7 +10,7 @@ try:
except
ModuleNotFoundError
:
raise
Exception
(
"`pycountry` is required for generating translation task prompt templates.
\
please install pycountry via pip install lm-eval[multilingua] or pip install -e .[multilingual]"
,
please install pycountry via pip install lm-eval[multilingua
l
] or pip install -e .[multilingual]"
,
)
...
...
lm_eval/utils.py
View file @
33d52483
...
...
@@ -16,7 +16,6 @@ import gc
import
torch
import
transformers
from
omegaconf
import
OmegaConf
from
jinja2
import
BaseLoader
,
Environment
,
StrictUndefined
from
itertools
import
islice
...
...
@@ -55,8 +54,8 @@ def simple_parse_args_string(args_string):
args_string
=
args_string
.
strip
()
if
not
args_string
:
return
{}
arg_list
=
args_string
.
split
(
","
)
args_dict
=
OmegaConf
.
to_object
(
OmegaConf
.
from_dot
li
s
t
(
arg_list
))
arg_list
=
[
arg
for
arg
in
args_string
.
split
(
","
)
if
arg
]
args_dict
=
{
k
:
v
for
k
,
v
in
[
arg
.
sp
lit
(
"="
)
for
arg
in
arg_list
]}
return
args_dict
...
...
pyproject.toml
View file @
33d52483
...
...
@@ -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,8 @@ 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"
]
sentencepiece
=
[
"sentencepiece>=0.1.98"
,
"protobuf>=4.22.1"
]
promptsource
=
[
"promptsource @ git+https://github.com/bigscience-workshop/promptsource.git#egg=promptsource"
]
...
...
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