Repository navigation
Conversation
…he indexer In the decode target's attention block, the query projection with SSMax, the K-B absorption, and the owner's kv_a latent with its rope and fp8_ds_mla append now run on a side stream under CUDA-graph capture, concurrently with the indexer (key append, scoring, TopK) and the slot conversion on the main stream. They join before the sparse decode, which reads both halves. The selection writes only the indexer key pool and the TopK buffer; the query half writes only the step scratch and the latent pool. Outside capture both halves run in order on the main stream. Signed-off-by: yt0428 <[email protected]>
Closed
1 task done
yt0428
marked this pull request as ready for review
November 17, 2026 06:29
yt0428
requested review from
Wanli-Jiang,
WeiHaocheng and
litaotju
as code owners
November 17, 2026 06:29
Collaborator
Author
|
/bot skip --comment "Format check only" |
1 task
Collaborator
|
PR_Github #85380 [ skip ] triggered by Bot. Commit: |
Collaborator
|
PR_Github #85380 [ skip ] completed with state |
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.
@coderabbitai summary
Description
In the Mistral Large 4 SM107 (VR200) TP4/TP8 decode target, each layer's attention block now runs its query half on a side stream, overlapped with the indexer.
wqFP8 projection with SSMax, the K-B absorption and, on layers that own a latent, the kv_a projection with RMSNorm, rope and the fp8_ds_mla append.What changes (
mistral_large_4_nvfp4__sm_107__tp4/modeling.pyonly)DecodeTarget._attentionsplits intoselect()andquery()closures, run throughmaybe_execute_in_parallelwith a per-target side stream and fork/join events.maybe_execute_in_paralleluses the side stream only under CUDA graph capture, so eager steps and steps with context rows are unchanged.VR200 results
Same-build A/B, TP4, with natural DSpark acceptance. This compares the side stream against the serial order, in the run order serial / side / side / serial. The metric is the median GPU forward time of generation-only steps:
End to end, against the current
feat/mistral-large-4tree (this PR's base). Setup: DSpark K3 with a synthetic acceptance length of 2.772, 20 min per point,stream_interval=1, one run per point, on a different node pair from the baseline. Step time is 2.772 / (1/ITL p50).Numerics
Not measured yet
Test Coverage
No new unit tests. The change only moves work inside the decode target's attention block onto a second stream; the computed values do not change.
The existing accuracy tests run this target on SM107 at tp4 and tp8, with and without DSpark. They were not run for this PR:
accuracy/modeling_v2/test_mistral_large4.py::TestModelingV2MistralLarge4Nvfp4Accuracy::test_accuracyaccuracy/modeling_v2/test_mistral_large4.py::TestModelingV2MistralLarge4Nvfp4Accuracy::test_accuracy_without_dsparkPR Checklist
Please review the following before submitting your PR:
PR description clearly explains what and why. If using CodeRabbit's summary, please make sure it makes sense.
PR Follows TRT-LLM CODING GUIDELINES to the best of your knowledge.
Test cases are provided for new code paths (see test instructions)
If PR introduces API changes, an appropriate PR label is added - either
api-compatibleorapi-breaking. Forapi-breaking, includeBREAKINGin the PR title.Any new dependencies have been scanned for license and vulnerabilities
CODEOWNERS updated if ownership changes
Documentation updated as needed
Update tava architecture diagram if there is a significant design change in PR.
The reviewers assigned automatically/manually are appropriate for the PR.
Please check this after reviewing the above items as appropriate for this PR.
GitHub Bot Help
To see a list of available CI bot commands, please comment
/bot help.🤖 Generated with Claude Code