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
b3a8c985
Commit
b3a8c985
authored
Aug 04, 2023
by
lintangsutawika
Browse files
reformat
parent
881fcf15
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
3 deletions
+8
-3
lm_eval/evaluator.py
lm_eval/evaluator.py
+6
-1
lm_eval/models/__init__.py
lm_eval/models/__init__.py
+1
-1
setup.py
setup.py
+1
-1
No files found.
lm_eval/evaluator.py
View file @
b3a8c985
...
...
@@ -114,7 +114,12 @@ def simple_evaluate(
task_dict
=
lm_eval
.
tasks
.
get_task_dict
(
tasks
)
for
task_name
in
task_dict
.
keys
():
config
=
task_dict
[
task_name
].
_config
task_obj
=
task_dict
[
task_name
]
if
type
(
task_obj
)
==
tuple
:
group
,
task_obj
=
task_obj
config
=
task_obj
.
_config
if
num_fewshot
is
not
None
:
if
config
[
"num_fewshot"
]
>
0
:
default_num_fewshot
=
config
[
"num_fewshot"
]
...
...
lm_eval/models/__init__.py
View file @
b3a8c985
...
...
@@ -6,7 +6,7 @@ from . import dummy
try
:
import
anthropic
from
.
import
anthropic_llms
except
Exception
as
err
:
except
Exception
:
raise
"anthropic library is not yet installed"
# TODO: implement __all__
setup.py
View file @
b3a8c985
...
...
@@ -28,7 +28,7 @@ setuptools.setup(
"License :: OSI Approved :: MIT License"
,
"Operating System :: OS Independent"
,
],
python_requires
=
">=3.
9
"
,
python_requires
=
">=3.
8
"
,
install_requires
=
[
"accelerate>=0.18.0"
,
"evaluate"
,
...
...
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