Repository navigation
Conversation
All features are opt-in through environment variables and default off. - DFlash disaggregated GEN admit (K3_PUB_GENGAP_ADMIT=1): admitting a request on a GEN server no longer stalls the host behind the running decode step, and batches the per-layer KDA replay-slot reset/relocate/seed work instead of launching many tiny kernels. - MoE router overlap (KIMI_K3_ROUTER_OVERLAP=1): with multi-stream active, the router GEMM runs on the auxiliary stream concurrently with the latent down projection. Same kernels, same numerics. - Routed-latent all-reduce quant (K3_PUB_AR_QUANT=1): folds the FP8 1x128 activation quant into the MNNVL all-reduce + RMSNorm epilogue for decode-sized messages (K3_PUB_AR_QUANT_MAX_M). - MLA context-K Triton kernel (TRTLLM_MLA_TRITON_CTX_K=1): fused Triton path for building the context K in MLA. - Context shared-expert all-reduce overlap (K3_PUB_CTX_SHARED_AR_OVERLAP=1): chunks and overlaps the shared-expert all-reduce in large context steps (K3_PUB_CTX_SHARED_AR_OVERLAP_MIN_TOKENS, _CHUNKS). Signed-off-by: Viraat Chandra <[email protected]>
Signed-off-by: Viraat Chandra <[email protected]>
Resolve conflicts with "Kimi K3 on Rubin: second performance preview". - modeling_kimi_linear.py: keep the new base forward path; re-apply KIMI_K3_ROUTER_OVERLAP, K3_PUB_AR_QUANT and K3_PUB_CTX_SHARED_AR_OVERLAP on top of it, still opt-in. - mla.py: take base. Base now builds the MLA context K with its own Triton kernel (mla_context_k) at every K-build site, so drop TRTLLM_MLA_TRITON_CTX_K, mla_ctx_k_triton.py and its test. - mamba_cache_manager.py, dflash.py: take base. Base now resets the KDA replay slots and the DFlash ctx_len slots without a host sync, and has its own batched replay seed, so drop K3_PUB_GENGAP_ADMIT. Signed-off-by: Viraat Chandra <[email protected]>
3 tasks done
viraatc
marked this pull request as ready for review
November 3, 2026 22:32
1 task done
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.
Description
Kimi-K3 serving optimizations for GB300 on top of
feat/k3_26.08. Each feature is opt-in through an environment variable and is off by default, so default behavior is unchanged.KIMI_K3_ROUTER_OVERLAP=1K3_PUB_AR_QUANT=1(K3_PUB_AR_QUANT_MAX_M)K3_PUB_CTX_SHARED_AR_OVERLAP=1(_MIN_TOKENS,_CHUNKS)Updated for
feat/k3_26.08ate8a5275c4f(merge commit). Two features of the first revision are dropped because the base now ships an equivalent:TRTLLM_MLA_TRITON_CTX_K(Triton MLA context-K kernel): the base now builds the context K with its ownmla_context_kTriton kernel at every K-build site.K3_PUB_GENGAP_ADMIT(host-sync-free KDA replay-slot / DFlash slot reset and batched seed on GEN admit): the base now does these resets without a host sync and has its own batched replay seed.Test Coverage
tensorrt_llm/_torch/models/modeling_kimi_linear.pyonly. With every switch unset, the code path equals the base.45c5ae4150. The merged revision has not been re-run on GPU yet.PR Checklist