You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refresh 16 gfx950 A8W8 MLA code objects with 448-scaled softmax numerators and compensated output normalization. Align the QH64 non-persistent output flag with the host ABI.
Add uniform and long-tail underflow regression coverage with persistent, LSE, and CP options.
Validation: all 16 updated code objects passed uniform and long-tail checks, including direct legacy-kernel and non-LSE CP tests.
The same batch/KV matrix and 100-round alternating method were used. Latencies are medians in microseconds; nhead=16 measurements above are unchanged. Both 32-head groups loaded their own commit-snapshot code objects, not the 16-head kernels.
Query = 1
Kernel: mla_a8w8_qh32_qseqlen1_gqaratio32_ps.co
Identical binary in both commits: A/A control, not a measurement of the fix's overhead.
Refresh 16 gfx950 A8W8 MLA code objects with 448-scaled softmax numerators and compensated output normalization. Align the QH64 non-persistent output flag with the host ABI.
Add uniform and long-tail underflow regression coverage with persistent, LSE, and CP options.
Validation: all 16 updated code objects passed uniform and long-tail checks, including direct legacy-kernel and non-LSE CP tests.
ATOM accuracy suite for PR and main models from ATOM models_accuracy.json
ci:vllm
vLLM benchmark: DeepSeek-V4-Pro, MiniMax-M3-MXFP4
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 6422 --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.
github-actionsBot
changed the title
fix(mla): prevent gfx950 FP8 softmax underflow
[ASM] fix(mla): prevent gfx950 FP8 softmax underflow
Oct 12, 2026
Forcing return_lse=True means the gfx950 non-LSE CP code objects are never exercised by this underflow regression: the default (16, 4, ..., 2) and (32, 4, ..., 2) cases can only select the LSE variants. Because those non-LSE binaries were refreshed independently, they could retain the original numerator-underflow bug unnoticed. Preserve the requested mode and merge/check non-LSE rank outputs using independently computed rank LSEs (as test_mla_flydsl.py does).
This issue also appears on line 301 of the same file.
Integrate the underflow checks into test_mla.py and test_mla_persistent.py, sharing the reference and metadata setup, and remove the standalone test file.
Keep the original parameter-driven random test loops and reference defaults. Run underflow checks only with explicit CLI options and supported head/query configurations.
Validated non-persistent and persistent/LSE/CP underflow cases, CLI dispatch, original-loop AST equivalence, and Ruff/diff checks.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refresh 16 gfx950 A8W8 MLA code objects with 448-scaled softmax numerators and compensated output normalization. Align the QH64 non-persistent output flag with the host ABI.
Add uniform and long-tail underflow regression coverage with persistent, LSE, and CP options.
Validation: all 16 updated code objects passed uniform and long-tail checks, including direct legacy-kernel and non-LSE CP tests.
Motivation
Technical Details
Test Plan
Test Result
Summary
Query = 1
Kernel:
mla_a8w8_qh16_qseqlen1_gqaratio16_ps.coKV = 1K
KV = 2K
KV = 4K
KV = 8K
KV = 16K
Query = 4
Kernel:
mla_a8w8_qh16_qseqlen4_gqaratio16_v3_ps.coKV = 1K
KV = 2K
KV = 4K
KV = 8K
KV = 16K
Persistent Latency: nhead=32
The same batch/KV matrix and 100-round alternating method were used. Latencies are medians in microseconds; nhead=16 measurements above are unchanged. Both 32-head groups loaded their own commit-snapshot code objects, not the 16-head kernels.
Query = 1
Kernel:
mla_a8w8_qh32_qseqlen1_gqaratio32_ps.coIdentical binary in both commits: A/A control, not a measurement of the fix's overhead.
KV = 1K
KV = 2K
KV = 4K
KV = 8K
KV = 16K
Query = 4
Kernel:
mla_a8w8_qh32_qseqlen4_gqaratio32_ps.coThis code object differs between the two commits.
KV = 1K
KV = 2K
KV = 4K
KV = 8K
KV = 16K
Submission Checklist