Repository navigation
[Triton/Gluon] Fall back to Triton quant kernels when Gluon lacks scaled_downcast - #10
amd-sriram wants to merge 1 commit into
Conversation
…caled_downcast Triton 3.8 lacks gl.amd.cdna4.scaled_downcast; fall back to the Triton kernels there.
🏷️ CI GuideRuns automatically on every PR:
Extended tests (opt-in via labels):
One backend per PR: PR title tags & labels: |
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configuration
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
ROCm#4383 made
dynamic_mxfp4_quantanddynamic_mxfp8_quantdefault to the gfx950 Gluon kernels for bf16 input. Those kernels callgl.amd.cdna4.scaled_downcast, which Triton 3.8.0 does not have, so on that Triton every caller fails to compile:The current vLLM ROCm nightlies (ROCm 7.2 and ROCm 10 builds) ship Triton 3.8.0, so a vLLM server running an MXFP4 model (vLLM's AITER MXFP4 linear calls
dynamic_mxfp4_quant) dies in its startup profiling run.The default now also requires that the installed Triton's Gluon has
cdna4.scaled_downcast; without it the existing Triton kernels are used.backend="gluon"still forces Gluon and raises a clear error when the requirement is not met. Behaviour on a Triton that hasscaled_downcastis unchanged.aiter/ops/triton/quant/quant.py_gluon_has_scaled_downcast()(cached) added to the gfx950 Gluon conditions ofdynamic_mxfp4_quantanddynamic_mxfp8_quantTests
MI355X (gfx950), Triton 3.8.0 (vLLM ROCm nightly), GLM-5.3 MXFP4 at TP8: before, the server fails at startup with the error above; after, it starts and serves.