Repository navigation
perf(mla): fuse expanded K/V packing and FP8 quantization - #105
Open
Stone749990226 wants to merge 1 commit into
Open
Stone749990226 wants to merge 1 commit into
Stone749990226 wants to merge 1 commit into
Conversation
Port pack_mla_kv_fp8 from feat/mlacp into TRTLLM FP8 prefill for both the current chunk and cached prefix chunks. Preserve per-tensor scales and avoid repeated quantization of packed K/V. Include core dispatch and quantization regressions plus CUDA numerical cases.
Stone749990226
marked this pull request as ready for review
November 5, 2026 14:36
Nozom1ff
added a commit
that referenced
this pull request
Nov 7, 2026
The per-node MLA host tests (ported with the #99-#105 net diff) still passed v0.5.23's mamba_layer_mapping/use_mla and unpacked two values; the day-0 assembler takes start_layer and returns (group, controller, config). The pool-host mocks are unchanged and still need a run on GPU. Co-Authored-By: Claude <[email protected]>
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.
perf(mla): fuse expanded K/V packing and FP8 quantization
Base:
Infrawaves/sglang:infrawaves_ppu/prod/v0.5.21Head:
feat/expand-mha-fp8-packMotivation
TRTLLM FP8 expanded-MHA prefill materializes K in BF16/FP16 before converting K/V to FP8. Fuse these steps to reduce intermediate allocations and memory traffic for both the current chunk and cached prefix chunks.
Modifications
pack_mla_kv_fp8: concatenate KNope and broadcast positional K, copy V, optionally gather token rows, and quantize K/V in one Triton launch.