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
change
sglang
Commits
98a2cfa9
Unverified
Commit
98a2cfa9
authored
Mar 27, 2025
by
Daniel Holanda
Committed by
GitHub
Mar 27, 2025
Browse files
Basic Cleanup (#4833)
parent
2a882e8f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
3 deletions
+0
-3
benchmark/gsm8k/bench_sglang.py
benchmark/gsm8k/bench_sglang.py
+0
-3
No files found.
benchmark/gsm8k/bench_sglang.py
View file @
98a2cfa9
...
@@ -97,9 +97,6 @@ def main(args):
...
@@ -97,9 +97,6 @@ def main(args):
for
i
in
range
(
len
(
states
)):
for
i
in
range
(
len
(
states
)):
preds
.
append
(
get_answer_value
(
states
[
i
][
"answer"
]))
preds
.
append
(
get_answer_value
(
states
[
i
][
"answer"
]))
# print(f"{preds=}")
# print(f"{labels=}")
# Compute accuracy
# Compute accuracy
acc
=
np
.
mean
(
np
.
array
(
preds
)
==
np
.
array
(
labels
))
acc
=
np
.
mean
(
np
.
array
(
preds
)
==
np
.
array
(
labels
))
invalid
=
np
.
mean
(
np
.
array
(
preds
)
==
INVALID
)
invalid
=
np
.
mean
(
np
.
array
(
preds
)
==
INVALID
)
...
...
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