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
60b2a44a
"docs/vscode:/vscode.git/clone" did not exist on "7408cb51151cfb5b04653f9aa6c141030d3e8795"
Unverified
Commit
60b2a44a
authored
Jan 20, 2025
by
Lianmin Zheng
Committed by
GitHub
Jan 20, 2025
Browse files
Fix flaky tests in test_programs.py (#3022)
parent
949b3fbf
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
python/sglang/test/test_programs.py
python/sglang/test/test_programs.py
+1
-1
No files found.
python/sglang/test/test_programs.py
View file @
60b2a44a
...
@@ -535,7 +535,7 @@ def test_hellaswag_select():
...
@@ -535,7 +535,7 @@ def test_hellaswag_select():
# Compute accuracy
# Compute accuracy
accuracy_gen
=
np
.
mean
(
np
.
array
(
preds_gen
)
==
np
.
array
(
labels
))
accuracy_gen
=
np
.
mean
(
np
.
array
(
preds_gen
)
==
np
.
array
(
labels
))
assert
np
.
abs
(
accuracy_gen
-
accuracy
)
<
0.
05
assert
np
.
abs
(
accuracy_gen
-
accuracy
)
<
0.
1
assert
np
.
abs
(
latency_gen
-
latency
)
<
1
assert
np
.
abs
(
latency_gen
-
latency
)
<
1
return
accuracy
,
latency
return
accuracy
,
latency
...
...
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