Repository navigation
[gfx1250] Add gfx1250 ReplaySSM KDA verification - #7992
Open
Liang-jianhao97 wants to merge 1 commit into
Open
Liang-jianhao97 wants to merge 1 commit into
Liang-jianhao97 wants to merge 1 commit into
Conversation
Add checkpoint replay and fused token verification with a Gluon kernel. Use the shared fast launcher and JSON config loaders. Keep the existing one-token decode interface unchanged. Cover flushes, strided beta, FP16 and FP32 output, graph capture and state updates. Add a benchmark for standard do_bench and graph/event timing. Validation on gfx1250: 24 ReplaySSM tests and 36 existing decode/ATOM tests passed. Ruff and Black checks passed.
Contributor
|
No activity for 15 days, so this is now labelled |
gbyu-amd
pushed a commit
that referenced
this pull request
Dec 3, 2026
…-15T03:50:39Z) Applied as the diff 33ae4ce..9c0c33e (5 files) onto the rebased 1116 tree; PR state: open, author Liang-jianhao97, base feat/gfx1250-kda-packed-writeback. (cherry picked from commit abf0b0f) Rebase onto main 12-03: imports fast_launch from aiter.ops.triton.utils.fast_launch; main's #8061 moved it there from _triton_kernels/kimi_delta_attn/.
This branch has not been deployed
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Add a gfx1250 Gluon implementation of ReplaySSM KDA verification.
The new public entry rebuilds committed state from checkpoint and history records, processes the current tokens, and writes output and updated records.
Motivation
The existing one-token decode entry does not implement ReplaySSM checkpoint and history-buffer semantics.
This change adds an optimized path for speculative verification, including the M128 workload with four draft tokens and one verification token per active request.
Changes
replayssm_sigmoid_gating_delta_rulefor gfx1250 with K=V=128.do_bench()and Graph/Event timing.Performance
Hardware: gfx1250.
Configuration:
Before is the frozen ATOM ReplaySSM implementation, not the ordinary one-token decode kernel. After is this AITER implementation. Before and After were collected in separate runs on the same machine and software stack; speedups are representative cross-run comparisons.
do_bench()uses 25 ms warmup and 100 ms measurement. Graph/Event uses 64 calls per graph and nine event samples.These are standalone operator measurements, not full-model speedups.
Testing
Documentation
The public wrapper docstring defines supported inputs, state updates, output behavior, and limits. No separate
docs/changes are included.Dependencies
Uses the existing PyTorch, Triton/Gluon, launcher, and config utilities.
Breaking Changes
None. This adds a separate public entry and does not change existing decode APIs.
PR Self-Review
Reviewed revision
Candidate HEAD:
9c0c33ec038abdb449dfdd932bbb67db2272a88f.Automated PR Self-Review revision confirmation is pending.
Behavior and intent
The entry reconstructs committed state, flushes the checkpoint when required, processes the current tokens, and appends k/u/g records.
It does not advance
write_pos; the caller commits accepted tokens separately. Negative slots and empty sequences write nothing. Slot zero remains valid.The implementation requires gfx1250, K=V=128, and the input constraints documented in the wrapper.
Validation and unverified scope
Executed on d01-3, gfx1250:
Result: 24 passed.
Result: 36 passed.
Both benchmarks completed with standard do_bench and Graph/Event timing for state pools of 1 and 16.
Ruff, Black, and Git whitespace checks passed.
Software:
MI250X and MI300X were not tested. This kernel uses gfx1250-specific instructions. Other architectures and full-model integration remain unverified.
PR-specific question
Pending the path-specific question from the automated PR Self-Review comment.
Changed op tests
op_tests/triton_tests/attention/test_kda_replayssm.pyop_tests/op_benchmarks/triton/bench_kda_replayssm.py