perf(flydsl): add Kimi-K3 FP8 latent MoE tail - #18
Open
JohnQinAMD wants to merge 1 commit into
Open
JohnQinAMD wants to merge 1 commit into
JohnQinAMD wants to merge 1 commit into
Conversation
Add the incremental gfx950 FP8-weight latent-tail variant while preserving the BF16 parent and exact fail-closed dispatch contract. Assisted-by: OpenAI Codex Signed-off-by: Yanyuan Qin <yanyuan.qin@amd.com>
This was referenced Jul 31, 2026
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 an incremental rowwise OCP-E4M3 prepack and gfx950 batch-one persistent
kernel for the Kimi-K3 latent-MoE tail. The kernel fuses RMSNorm, FP8-weight
GEMV, BF16 materialization, and the shared-expert add.
This PR is stacked on #17. It keeps FP32 RMS/dot-product
accumulation, FP32 per-row scales, and BF16 activation/output, and fails closed
outside the exact contiguous
(1, 3584) -> (1, 7168)gfx950 contract.Correctness
The real-weight rotating-bank campaign checked 24 cases:
Tests cover support/quantizer/schedule rejection, both numerical oracles, graph
replay, output reuse, and changed input.
Performance
MI355X/gfx950, 92 rotating real weights, 11 trials, 30 graph replays/trial:
Speedup is 1.376673x. The component is below the 0.300 ms/token standalone
endpoint floor, so it receives no isolated endpoint credit. In the Wave40
bundle, TPOT improved 12.194182 -> 11.886058 ms and throughput 82.006322 ->
84.132180 tok/s/GPU; GSM8K first 100 was 100/100 with zero invalid and zero
paired changes.
Validation
validation image.
git diff --checkpasses.Disclosure
Developed with assistance from OpenAI Codex. The author reviewed the precision
contract, tests, schedule, and performance evidence.