Repository navigation
Conversation
kpham-sgl
requested review from
CatherineSue,
JustinTong0323,
ispobock,
merrymercy and
slin1237
as code owners
September 21, 2026 22:19
Collaborator
Author
|
/rerun-test test_kimi_k3_bfa_overlap.py test_kimi_k3_b300.py test_kimi_k3_b300_low_latency.py |
Contributor
|
Results for 🚀 🚀 |
Collaborator
Author
|
/rerun-test test_kimi_k3_bfa_overlap.py test_kimi_k3_b300.py test_kimi_k3_b300_low_latency.py |
Contributor
|
Results for 🚀 🚀 |
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.
Motivation
Kimi K3 target CUDA graph replay expands to 96 streams on B300. Repeated attention forks move subsequent layers onto new replay streams. Record the main attention branches before their auxiliary kernels to fix this stream explosion: the same workload now uses 4 target streams on all eight TP ranks.
Modifications
Accuracy Tests
python test/registered/unit/models/test_kimi_k3_bfa_overlap.py: 5 tests passed on B300. Overlap unit CI and B300 end-to-end CI also passed on the current PR head; both Kimi K3 B300 end-to-end files passed two tests each.KDA bitwise parity covers token counts 1, 4, and 12, both
defer_f_bsettings, and three changed-input replays. MLA checks an in-graph input producer and changed-input parity, including eager and breakable-graph fallback selection. Full-model traces retain identical kernel-name/count multisets: 1,950 target kernels per replay on every rank.Speed Tests and Profiling
In TP8/DCP1 traces, target replay streams fall from 96 to 4 on all eight TP ranks, with stable assignments across 16 profiled replays and identical kernel-name/count multisets. This is reproduced with both real and dummy weights.
Separate N=5 unprofiled runs per variant and batch size, using dummy MXFP4 target and dummy draft weights: 8× B300, CUDA 13.0, TP8, 60k input / 1k output, DSpark block 7, simulated acceptance 5.5, FP8 E4M3 KV, FP32 SSM, CuTe DSL MLA, FlashInfer MXFP4 MoE, connections=8.
TP8/DCP1:
BS1 improves in all five matched pairs (+0.77% to +1.14%). The BS16 mean is distorted by one slow baseline sample (2689.09 tok/s), retained in the results. The other four matched pairs differ by −0.10% to −0.15%; these results do not establish a BS16 speedup. Full-batch steady-state throughput gives the same interpretation.
Order: baseline (3 samples), patched (3), patched (2), baseline (2), each with a fresh server and a full-shape warmup pair excluded in advance. Client/server seeds are 42; actual acceptance lengths match in every corresponding pair. All requests generated the requested tokens. Measurements share two server launches per variant, so N=5 is limited evidence. Dummy weights and simulated acceptance do not test model accuracy.
TP8/DCP8, same N=5 design and workload, with
fi_a2aand replicated Q projection:Every BS1 matched pair improves (+0.72% to +0.88%); BS16 decode is unchanged (paired changes −0.028% to +0.001%). Acceptance matches in every pair. All samples are retained and all requests complete their requested output length with a valid full-batch decode window.
BS16 mean total latency is 44.845 → 45.105 s (+0.58%), driven by last-TTFT/prefill time (39.617 → 39.876 s), including one slower patched prefill sample. N=5 does not establish whether the small prefill difference is noise; the flat decode result is not a claim about all end-to-end timings.
The DCP benchmark uses
--skip-token-capacity-checkbecause the client guard reads physical capacity while DCP exposes eight times the logical capacity; server memory settings are unchanged. Both repeated comparisons use baseline0f6761b54with the PR patch applied for the patched runs. DCP8 was not profiled in this timing experiment.Profile
Before

After

Checklist
CI States
Latest PR Test (Base): ❌ Run #35662490950
Latest PR Test (Extra): ❌ Run #35662490698
Latest PR Test (AMD ROCm 10): ❌ Run #35662491074