Repository navigation
[ROCm][Perf] Enable HCA dual-stream overlap for DeepSeek-V4 - #56853
Merged
shen-shanshan merged 3 commits intoSep 17, 2026
Merged
Conversation
24 of 30 tasks
Signed-off-by: Shanshan Shen <87969357+shen-shanshan@users.noreply.github.com>
shen-shanshan
force-pushed
the
rocm-dsv4-hca-dual-stream
branch
from
September 15, 2026 07:07
de96a98 to
f6b0554
Compare
shen-shanshan
marked this pull request as ready for review
September 15, 2026 10:31
shen-shanshan
requested review from
dllehr-amd,
hongxiayang,
tjtanaa and
zyongye
as code owners
September 15, 2026 10:31
Member
|
@shen-shanshan can you provide gsm8k conc 256 numshot 30 acc results ? LGTM. As long as accuracy passed. 🙌 |
Member
Author
@tjtanaa Sorry for late reply, since I have just fixed the DSV4 acc issue on main in #57132 yesterday. I have attached the |
Member
Author
|
/ci run |
|
❌ This PR is 128 commits behind upstream |
tjtanaa
approved these changes
Sep 17, 2026
Member
Author
|
/ci run |
|
✅ Triggered Buildkite CI #89542 for commit |
shen-shanshan
enabled auto-merge (squash)
September 17, 2026 05:12
3 tasks done
2 tasks done
3 of 4 tasks
6 tasks done
Merged
5 of 6 tasks
michael-gpu
pushed a commit
to practical-inference/vllm-ampere-extended
that referenced
this pull request
Oct 20, 2026
…ject#56853) Signed-off-by: Shanshan Shen <87969357+shen-shanshan@users.noreply.github.com>
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.
Purpose
#51794 enabled multi-stream overlap for CSA layers on ROCm but left HCA layers (main compressor present, no indexer) single-stream, because the ROCm attention subclass dropped its aux streams whenever no indexer exists. On
gfx950the HCA main compressor is a large fraction of the attention-layer decode time and is fully independent of the query/KV chain: both branches only read the layer input (hidden_states) plus their own weights and state, and nothing on the default-stream chain consumes the compressor's outputs until the sparse attention.For HCA layers the attention forward now forks inside the gated region:
The streams join before the sparse MLA attention, which reads the compressed KV cache and the SWA window. The serial MHC fused post+pre prelude keeps running on the default stream ahead of the fork; the fork's start event orders the aux chain after it.
Trace Comparison (take
conc=4as an example)Before:
After (7.47% faster for HCA layer):
Test Plan
Benchmark with SA InferenceX
8k1kworkload with server launch commands below:Accuracy test with
gsm8kdataset usinglm_eval:Note
All tests based on latest
nightly-rocm100image.Test Result
Benchmark
In summary, the PR provides a positive overall performance impact, primarily through higher output token throughput and lower TPOT. The improvements are particularly noticeable at low concurrency, while at high concurrency the throughput and TPOT gains remain positive but become smaller. The TTFT results at high concurrency are essentially neutral, with no meaningful regression.
Accuracy Test
Conc=64, numshot=5 (default):
Conc=256, numshot=30:
Full GSM8K evaluation on this change (1,319 examples) and both results exceed the required 94% threshold.
Essential Elements of an Effective PR Description Checklist
supported_models.mdandexamplesfor a new model.