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
72d619ff
Unverified
Commit
72d619ff
authored
Sep 26, 2024
by
Baber Abbasi
Committed by
GitHub
Sep 26, 2024
Browse files
fix writeout script (#2350)
parent
f378f306
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
scripts/write_out.py
scripts/write_out.py
+3
-3
No files found.
scripts/write_out.py
View file @
72d619ff
...
...
@@ -5,6 +5,7 @@ import random
import
numpy
as
np
from
lm_eval
import
tasks
from
lm_eval.evaluator_utils
import
get_task_list
from
lm_eval.tasks
import
TaskManager
from
lm_eval.utils
import
eval_logger
,
join_iters
...
...
@@ -51,9 +52,8 @@ def main():
task_dict
=
tasks
.
get_task_dict
(
task_names
,
task_manager
)
os
.
makedirs
(
args
.
output_base_path
,
exist_ok
=
True
)
for
task_name
,
task
in
task_dict
.
items
():
if
isinstance
(
task
,
tuple
):
_
,
task
=
task
for
task
in
[
x
.
task
for
x
in
get_task_list
(
task_dict
)]:
task_name
=
task
.
config
.
task
rnd
=
random
.
Random
()
rnd
.
seed
(
args
.
seed
)
...
...
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