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
b8665383
Unverified
Commit
b8665383
authored
Mar 27, 2026
by
Gregory Shtrasberg
Committed by
GitHub
Mar 27, 2026
Browse files
[ROCm] Fix GPT-OSS import for triton 3.6 (#37453)
Signed-off-by:
Gregory Shtrasberg
<
Gregory.Shtrasberg@amd.com
>
parent
0e9358c1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
vllm/model_executor/layers/quantization/utils/mxfp4_utils.py
vllm/model_executor/layers/quantization/utils/mxfp4_utils.py
+9
-2
No files found.
vllm/model_executor/layers/quantization/utils/mxfp4_utils.py
View file @
b8665383
...
...
@@ -48,9 +48,16 @@ def _swizzle_mxfp4(quant_tensor, scale, num_warps=8):
value_layout
=
StridedLayout
if
on_gfx950
():
from
triton_kernels.tensor_details.layout
import
GFX950MXScaleLayout
try
:
# triton < 3.6
from
triton_kernels.tensor_details.layout
import
GFX950MXScaleLayout
scale_layout
=
GFX950MXScaleLayout
scale_layout
=
GFX950MXScaleLayout
except
ImportError
:
# triton >= 3.6
from
triton_kernels.tensor_details.layout
import
CDNA4MXScaleLayout
scale_layout
=
CDNA4MXScaleLayout
else
:
scale_layout
=
StridedLayout
else
:
...
...
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