Repository navigation
Conversation
cobra91
force-pushed
the
lab/p2p-turbo
branch
from
November 26, 2026 14:00
8adc7b0 to
c234774
Compare
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.
Note
Draft / Lab RFC: This pull request is an opt-in experimental banc d'essai shared for community testing and feedback on asymmetric dual-GPU MoE setups. All features are opt-in behind explicit environment flags (
STRATA_ADAPT_OVERLAP,STRATA_ADAPT_SIGNAL, etc.) and default behavior is completely preserved.This branch demonstrates the complete end-to-end acceleration combining our earlier isolated PRs (#6089, #6303, #6304, #6382) with the hardware P2P synchronization layer. Once discussed with maintainers, we will decompose and isolate the P2P direct hardware handoff into smaller, focused PRs.
Live run video & monitor telemetry: https://x.com/cobrax91310/status/2123745844575006791?a=vEQfkD0GhG41No3QjMs&s=20
Problem and result
On asymmetric dual-GPU systems (such as RTX 5080 16 GB + RTX 4060 Ti 16 GB on a constrained PCIe Gen4 x2 slot), MoE expert offloading suffers from heavy host synchronization latency:
Before and after:
Related discussion
--peer-device--peer-deviceApproach
This draft introduces an autonomous, hardware-synchronized P2P execution window for dual-GPU configurations:
STRATA_ADAPT_SIGNAL=copy).engine/src/kernels/cuda/verify_kernels.cu,elementwise.cu) that fuse token scatter and signal notification in a single launch, reducing kernel dispatch overhead.STRATA_ADAPT_OVERLAP=1).STRATA_ADAPT_OVERLAPis not set, all code paths revert to the standard upstream execution pipeline.--peer-hotdefaults and route tail-skipping logic.Environment variables used for reproduction
Validation
Passed:
pytest terminal/tests/terminal/(all 75 tests passed).Failed:
none observed
Not run:
Non-CUDA backends (ROCm / Metal / SYCL) on actual hardware execution (build checks run in CI).
Limits