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
a1b665d9
"tests/pipelines/kandinsky2_2/test_kandinsky_inpaint.py" did not exist on "03b7a84cbee11fa1cff98e5275050f284da168df"
Commit
a1b665d9
authored
Mar 11, 2024
by
LucWeber
Browse files
Add ordering of outputs for data-parallel
parent
c6b5510c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
lm_eval/tasks/tinyBenchmarks/README.md
lm_eval/tasks/tinyBenchmarks/README.md
+5
-1
No files found.
lm_eval/tasks/tinyBenchmarks/README.md
View file @
a1b665d9
...
@@ -48,10 +48,14 @@ benchmark = 'hellaswag' # possible benchmarks:
...
@@ -48,10 +48,14 @@ benchmark = 'hellaswag' # possible benchmarks:
# ['lb','mmlu','alpaca','helm_lite','truthfulqa',
# ['lb','mmlu','alpaca','helm_lite','truthfulqa',
# 'gsm8k', 'winogrande', 'arc', 'hellaswag']
# 'gsm8k', 'winogrande', 'arc', 'hellaswag']
# Get score vector from output-file (the metric `acc_norm` depends on the benchmark)
# Get score vector from output-file (the metric
[here
`acc_norm`
]
depends on the benchmark)
file_path
=
'<your-output-file.jsonl>'
file_path
=
'<your-output-file.jsonl>'
with
open
(
file_path
,
'r'
)
as
file
:
with
open
(
file_path
,
'r'
)
as
file
:
outputs
=
json
.
load
(
file
)
outputs
=
json
.
load
(
file
)
# Ensuring correct order of outputs
outputs
=
sorted
(
outputs
,
key
=
lambda
x
:
x
[
'doc_id'
])
y
=
np
.
array
([
float
(
item
[
'acc_norm'
])
for
item
in
outputs
])
y
=
np
.
array
([
float
(
item
[
'acc_norm'
])
for
item
in
outputs
])
### Evaluation
### Evaluation
...
...
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