Skip to content

[Triton/Gluon] Fall back to Triton quant kernels when Gluon lacks scaled_downcast - #10

Closed
amd-sriram wants to merge 1 commit into
mainfrom
fix/gluon-quant-needs-scaled-downcast
Closed

amd-sriram wants to merge 1 commit into
mainfrom
fix/gluon-quant-needs-scaled-downcast

Conversation

@amd-sriram

@amd-sriram amd-sriram commented Oct 6, 2026 •

Copy link
Copy Markdown
Owner

Summary

ROCm#4383 made dynamic_mxfp4_quant and dynamic_mxfp8_quant default to the gfx950 Gluon kernels for bf16 input. Those kernels call gl.amd.cdna4.scaled_downcast, which Triton 3.8.0 does not have, so on that Triton every caller fails to compile:

AttributeError: module 'triton.experimental.gluon.language.amd.cdna4' has no attribute 'scaled_downcast'

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 has scaled_downcast is unchanged.

File What
aiter/ops/triton/quant/quant.py _gluon_has_scaled_downcast() (cached) added to the gfx950 Gluon conditions of dynamic_mxfp4_quant and dynamic_mxfp8_quant

Tests

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.

Check (after) Result
Server startup, including the profiling run that failed ok
Random prompts at 1, 2, 4 and 8 concurrent (NaN probe) no NaN
Needle-in-a-haystack, 8K/32K/60K, 4 concurrent 15/15
GSM8K, 250 questions, 5-shot strict 0.888

…caled_downcast

Triton 3.8 lacks gl.amd.cdna4.scaled_downcast; fall back to the Triton kernels there.
@github-actions

github-actions Bot commented Oct 6, 2026

Copy link
Copy Markdown

🏷️ CI Guide

Runs automatically on every PR:

  • ✅ Pre-checks (submodule verification, code formatting)
  • ✅ Aiter op tests (gfx942 + gfx950)
  • ✅ Triton tests on MI35X (only when aiter/ops/triton/** or related paths are changed)

Extended tests (opt-in via labels):

Label Tests
ci:gfx1250-ffm-triton Run the five-shard gfx1250 FFM Triton test suite
ci:triton-300x Run an additional Triton test job on MI300X in PRs (added automatically when gfx942 configs change); main branch always runs both MI35X and MI300X
ci:triton-355 Run the full Triton test suite on MI35X, not only the tests the change affects
multigpu Aiter multi-GPU tests on the 8-GPU runner
ci:sglang SGLang integration tests: DeepSeek-R1-MXFP4 accuracy, Qwen 3.5 accuracy
ci:atom ATOM benchmark: DeepSeek-R1-0528, GPT-OSS-120B
ci:atom_full ATOM accuracy suite for PR and main models from ATOM models_accuracy.json
ci:vllm vLLM benchmark: GPT-OSS-120B, DeepSeek-R1-0528, Kimi-K2.5
ci:all All standard extended tests (excludes ci:atom_full)

Only add ci:atom_full for FlyDSL or Triton upgrades.
Add labels via the sidebar or gh pr edit 10 --add-label <label>

One backend per PR:
A PR changes one kernel backend: [Triton/Gluon] (Triton and Gluon count as one), [HIP], [ASM], [CK], [OPUS] or [FlyDSL]. If the title ends up with two backend tags, split the PR -- as stacked pull requests when one part cannot merge without the other.

PR title tags & labels:
Component tags ([Triton/Gluon], [HIP], [CK], [ASM], ...) are added to the PR title and as PR labels automatically from the changed files and re-synced on every push — change-type tags like [fix]/[Perf], op tags like [MLA], and human labels (ci:*) are left untouched. Add the no-auto-title label to stop the title rewrites; labels stay in sync either way.

@coderabbitai

coderabbitai Bot commented Oct 6, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 056f5ff6-731e-4e7e-b495-e328d0ef9f81
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@amd-sriram

Copy link
Copy Markdown
Owner Author

Superseded by upstream ROCm#6181 (merged 2026-10-06, 4da9350), which fixes the same Triton 3.8 scaled_downcast fallback in aiter/ops/triton/quant/quant.py.

@amd-sriram amd-sriram closed this Oct 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant