Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
8b9e8b74
Unverified
Commit
8b9e8b74
authored
Mar 02, 2026
by
Micah Williamson
Committed by
GitHub
Mar 03, 2026
Browse files
[ROCm][CI] Fix Assertion Logic For `test_gpt_oss` (#35806)
Signed-off-by:
Micah Williamson
<
micah.williamson@amd.com
>
parent
c21d0039
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
tests/models/quantization/test_gpt_oss.py
tests/models/quantization/test_gpt_oss.py
+5
-5
No files found.
tests/models/quantization/test_gpt_oss.py
View file @
8b9e8b74
...
@@ -12,8 +12,8 @@ Config:
...
@@ -12,8 +12,8 @@ Config:
Run: pytest tests/models/quantization/test_gpt_oss.py
Run: pytest tests/models/quantization/test_gpt_oss.py
"""
"""
import
importlib
import
importlib.metadata
import
importlib.metadata
import
importlib.util
from
dataclasses
import
dataclass
from
dataclasses
import
dataclass
import
huggingface_hub
import
huggingface_hub
...
@@ -104,7 +104,7 @@ def test_gpt_oss_attention_quantization(
...
@@ -104,7 +104,7 @@ def test_gpt_oss_attention_quantization(
)
)
rtol
=
0.02
rtol
=
0.02
assert
(
assert
measured_accuracy
>=
expected_accuracy
-
rtol
,
(
measured_accuracy
-
rtol
<
expected_accuracy
f
"Accuracy
{
measured_accuracy
:.
4
f
}
is below threshold "
and
measur
ed_accuracy
+
rtol
>
expected_accuracy
f
"
{
expect
ed_accuracy
-
rtol
:.
4
f
}
(expected >=
{
expected_accuracy
}
-
{
rtol
}
)"
)
,
f
"Expected:
{
expected_accuracy
}
| Measured:
{
measured_accuracy
}
"
)
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