mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #1023] [CLOSED] layer split: the hand-off over peer access on NVLink (3.3 -> 48 GB/s, +1.0% e2e) #2972
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#2972
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/1023
Author: @ATIVX928
Created: 10/6/2026
Status: ❌ Closed
Base:
main← Head:v100/split-p2p📝 Commits (10+)
749d957setup (--backend hip): a system ROCm without the HIP development files falls back to the wheels (#446)5a30024calibrate: the engine's arguments come from the server's engine_args; a failed tuning says why (#447)9f60d13serve, setup: name the small split card that caps the prompt chunk; setup recommends the big card alone (#448)eb8da1d/metrics: each request's speculative draft counts, and their sums in the totals (#457)6a09387setup (--gguf-dir): GGUFs Strata cannot run are named as such, with the --family/--model to use (#444)d6a91e2docs: the Coder is weaker outside code, Chinese/CJK text included; the unpruned sizes for that (#438)d8d4ad3Merge branch 'f-135-eng' into rel-0.1.357b600d5Merge branch 'f-135-small' into rel-0.1.35d9ab843Engine 0.1.35: Windows AMD uses its bundled HIP runtime (#468 #461), the low-RAM resident mode on Windows 32 GB PCs (#467), fixes #460 #459 #446 #447 #457 #448 #444; setup requires it57bd713sycl: pipeline the expert cache's profile fill (model load 3-4x faster)📊 Changes
7 files changed (+175 additions, -29 deletions)
View changed files
📝
bench/results/2026-10-02-v100-split-p2p/README.md(+6 -3)📝
docs/MULTI_GPU.md(+11 -4)📝
include/strata/core/device.hpp(+10 -0)📝
include/strata/prefill/prefill.hpp(+14 -3)📝
src/core/device.cu(+52 -0)📝
src/prefill/prefill.cpp(+26 -8)📝
src/program/generate.cpp(+56 -11)📄 Description
What
The layer-split hand-off goes through pinned host RAM today. This adds the peer-access path (
split_handoff_p2p), split out of #627:cudaMemcpyPeerAsyncis rejected inside a capture, the bench records this)cudaMemcpyPeerAsyncon the source stage, with the receiving stage's chunk buffers on its own cardsplit_p2p_benchand the MULTI_GPU.md sectionThe pinned-RAM path remains the default outside the measured configuration.
Gating
STRATA_SPLIT_P2P=0forces the pinned path,=1forces the link, unset means auto only on an sm_70 + sm_70 pair inside theSTRATA_EXPERIMENTAL_SM60build. HIP always keeps the pinned path. The ready-made engine is unchanged.Measured
2x V100-SXM2-16GB (NVLink nv2), CUDA 12.8,
split_p2p_bench, useful bandwidth per hand-off:One hand-off: 0.137 ms -> 0.018 ms for the window; 25.33 ms -> 1.738 ms for the 2048-token chunk. Every path is checked byte-for-byte in the bench before it is timed.
Tests
split_p2p_benchbuilt and run on 2x V100 (both GPUs), all paths byte-identical.32K end-to-end
Same setup; the same binary with
STRATA_SPLIT_P2P=0as the control, interleaved (3 rounds each, two pairs): dual-card prefill 2190.7 -> 2212.9 tok/s (+1.0%). Decode is unchanged (within its +-15% session noise).🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.