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
6843c5d7
Unverified
Commit
6843c5d7
authored
Nov 20, 2023
by
Lintang Sutawika
Committed by
GitHub
Nov 20, 2023
Browse files
Merge pull request #1004 from EleutherAI/py3.8
Adds Python 3.8 Compatibility
parents
008fc2a2
c5fc2b19
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
lm_eval/tasks/bigbench.py
lm_eval/tasks/bigbench.py
+5
-1
setup.py
setup.py
+2
-1
No files found.
lm_eval/tasks/bigbench.py
View file @
6843c5d7
...
...
@@ -229,7 +229,11 @@ def create_task_from_path(json_path):
def
create_all_tasks
():
resources_dir
=
importlib
.
resources
.
files
(
"lm_eval.datasets"
)
/
"bigbench_resources"
try
:
resources_dir
=
importlib
.
resources
.
files
(
"lm_eval.datasets"
)
/
"bigbench_resources"
except
:
import
importlib_resources
resources_dir
=
importlib_resources
.
files
(
"lm_eval.datasets"
)
/
"bigbench_resources"
supported_tasks
=
[
os
.
path
.
splitext
(
x
)[
0
]
for
x
in
os
.
listdir
(
resources_dir
)]
res
=
{}
for
task_name
in
supported_tasks
:
...
...
setup.py
View file @
6843c5d7
...
...
@@ -21,10 +21,11 @@ setuptools.setup(
"License :: OSI Approved :: MIT License"
,
"Operating System :: OS Independent"
,
],
python_requires
=
">=3.
9
"
,
python_requires
=
">=3.
8
"
,
install_requires
=
[
"datasets>=2.0.0"
,
"einops"
,
"importlib-resources"
,
"jsonlines"
,
"numexpr"
,
"openai>=0.6.4"
,
...
...
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