mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #578] [CLOSED] Improve multi-GPU decode performance via optimized expert-helper execution #2703
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#2703
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/578
Author: @zhedang
Created: 10/3/2026
Status: ❌ Closed
Base:
main← Head:feat/remote-expert-opt-pr📝 Commits (1)
b28121fcore: optimize remote expert helper decode📊 Changes
11 files changed (+370 additions, -32 deletions)
View changed files
📝
CMakeLists.txt(+1 -0)📝
docs/SECOND_GPU.md(+32 -0)📝
include/strata/core/expert_cache.hpp(+7 -0)➕
include/strata/core/remote_expert_opt.hpp(+53 -0)📝
include/strata/core/remote_experts.hpp(+5 -1)📝
include/strata/core/verify.hpp(+3 -0)📝
src/core/expert_source.cpp(+8 -6)➕
src/core/remote_expert_opt.cu(+194 -0)📝
src/core/remote_experts.cpp(+28 -15)📝
src/core/verify.cpp(+9 -1)📝
src/program/generate.cpp(+30 -9)📄 Description
Summary
This PR improves multi-GPU decode performance by making the primary GPU and
expert-helper GPUs cooperate more efficiently.
The optimized v2.2 expert-helper path delivers substantial decode speedups
over both the previous expert-helper path and the automatic layer-split path.
Speedup summary
Benchmarks
RTX 5090 + RTX 4090 — 0.1.38
Decode throughput, in tokens/s:
Dual RTX 4090 — 0.1.37
Decode throughput, in tokens/s:
What changed
Complementary expert caches
Keep the primary and helper GPU expert caches complementary, reducing
duplicated experts and CPU fallback.
Lower inter-GPU transfer volume
Reduce weighted expert outputs on helper GPUs before returning results.
Skip unnecessary CPU quantization
Avoid CPU activation quantization when all selected experts are served by GPUs.
Automatic helper-cache sizing
Add
autosizing based on available VRAM, removing the need to manually tuneexpert counts.
The existing primary/helper GPU layout remains unchanged.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.