Repository navigation
Conversation
Collaborator
|
We have not merged that yet, but STRATA_PEER_AUTONOMOUS=1 with the scatter hung right after the 1-token window capture, both cards were busy with no token and it had to be stopped. It also sits on top of 274 so it also carries 274's change to the default peer path. STRATA_PEER_AUTONOMOUS is not in the settings register, and in that mode experts that are on neither card are skipped. Could you rebase that once 274 is sorted out and look at the hang? |
cobra91
force-pushed
the
pr-p2p-autonomous-window
branch
2 times, most recently
from
November 23, 2026 20:34
aebe2bb to
2163e30
Compare
…PU decode window - Rebase on PR simplexai-labs#274 (direct hardware flag handoff opt-in via STRATA_PEER_DIRECT_SIGNAL=1) - Add system fences (__threadfence_system) on PCIe doorbells and scatter completion signals to prevent mutual wait_flag_ge deadlocks - Add all_gpu_resident check in Verifier::init and refresh_ar to gracefully disable autonomous mode when host expert fallback is required - Ensure safe pre-launch gather for PLE and propagate return status from peer_->launch_window
cobra91
force-pushed
the
pr-p2p-autonomous-window
branch
from
November 24, 2026 08:37
2163e30 to
64c09eb
Compare
Contributor
Author
|
PR rebased on top of updated PR #274 ( 1. Root Cause of the 100% Busy Hang (Eliminated)Investigated the hang right after the 1-token window capture:
2. Guard for Non-GPU (Host Fallback) Experts
3. Settings Register and Documentation
4. Empirical Verification (RTX 5080 sm_120 + RTX 4060 Ti sm_89, Windows 11)Verified on
|
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.
Problem and result
Builds on PR #272 (
pr-p2p-fused-scatter) and PR #274 (pr-p2p-flag-handoff).Even with direct hardware flag handoff (
PR #274), when any layer has missed experts or when the CPU pool orchestrates each layer (steps = (le - lb) * G), the host thread still has to wake up per layer to inspect routing, build the peer plan, and launch peer kernels (PeerExperts::launch). On dual-GPU setups where the majority of routed experts fit across GPU 0 + GPU 1, this per-layer host orchestration limits decode throughput.This PR adds an opt-in (
STRATA_PEER_AUTONOMOUS=1, off by default) autonomous hardware-synchronized dual-GPU decode window:Verifier) and GPU 1 (PeerExperts::launch_window) execute the entire(le - lb) * Glayer window on-device in lockstep via mapped host doorbells (d_seq_andd_target_flag_p_).resident_plan(AllowPartial = true) plans GPU 0's resident experts on-device, whilepeer_plan(elementwise.cu) plans GPU 1's resident experts on-device andscatter_rows_and_signal_fixed_f32scatters GPU 1's outputs directly into mappedm_ymiss_before signalingd_flag = wantto GPU 0.Use-case impact & zero-regression guarantees
--peer-devicesetups where the working set fits across GPU 0 + GPU 1 VRAM and the user opts intoSTRATA_PEER_AUTONOMOUS=1(+STRATA_P2P_DECODE_SCATTER=1,--peer-hot 0.0on asymmetric pairs) for maximum decode throughput.--peer-device, single-GPU, low-VRAM hybrid CPU/SSD offload,--layer-split, HIP, Metal, SYCL, CPU):STRATA_PEER_AUTONOMOUSis off by default (e != nullptr && std::atoi(e) != 0), and additionally requiresdirect_mode()(STRATA_PEER_DIRECTnot0).STRATA_PEER_AUTONOMOUSis unset or0,peer_autonomous_isfalseandAllowPartialisfalse: every default run, hybrid CPU/SSD offload run, andresident_planpath behaves identically toPR #274.AllowPartial = trueskips CPU/SSD cold-expert fallback during the decode window (0.00 mspool wait), soSTRATA_PEER_AUTONOMOUS=1should only be used when GPU 0 + GPU 1 hold the working set (or with--tail-skip/STRATA_ROUTE_TAIL_SKIP).Approach
engine/include/strata/kernels/verify_kernels.hpp&engine/src/kernels/cuda/verify_kernels.cu: AddedAllowPartialtemplate parameter (defaultfalse) toresident_plan_kernel/resident_plan.engine/include/strata/kernels/elementwise.hpp&engine/src/kernels/cuda/elementwise.cu: Addedpeer_plan_kernel/peer_planandscatter_rows_and_signal_fixed_f32.engine/include/strata/core/peer_experts.hpp&engine/src/core/peer_experts.cpp: AddedPeerPlanDevice,bind_verifier_buffers,launch_window,autonomous_(gated onSTRATA_PEER_AUTONOMOUS=1 && direct_mode()), and device-sided_res_peer_sync inapply_pending.engine/include/strata/core/verify.hpp,engine/src/core/verify.cpp, &engine/src/program/generate.cpp: AddedVerifier::set_peer, wiredlaunch_windowinrun/pl_launch/service, and bound verifier buffers for both parities (verandver_b).Validation & Gains
Testbed: Windows 11, Ninja + CUDA 13.4 (
sm_89;120),RTX 5080 16 GB+RTX 4060 Ti 16 GB(PCIe Gen4 x2)Workload:
Swift-Qwen3.8-Flash-Next-GSQ-RCO-IQ2_XS(--peer-device 1 --kv q4_0 --spec 4 --resident-experts --resident-budget-gib 8, 511-token prompt, 64 generated tokens)upstream/mainupstream/main)20.65 tok/s3099.2 msSTRATA_PEER_AUTONOMOUSunset — zero regression)24.22 tok/s2642.1 ms45/54(83.3%)+17.3%STRATA_PEER_AUTONOMOUS=1+SCATTER=1+PEER_HOT=0)60.76 tok/s1053.3 ms40/56(71.4%)+194%(2.94x)verify window:pool 0.000 ms/round,wait for rings 0.000 ms/round.