mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
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#3944
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/2240
Author: @YukihiroHemmi
Created: 10/13/2026
Status: 🔄 Open
Base:
main← Head:remote-stage📝 Commits (10+)
cc6f1c9Remote stage: run the later layers of a layer split on another PC over TCPab4bc33Remote stage tools: a node agent, a layer shipper and a split tuner02d1cdfRemote stage docs and measurements: two and three PCs, two models24cbe2dstage_ship: pieces in flight at once; the agent checks each piece's sha256dd4147fRemote stage: follow 0.1.43's decode defaults on both PCse60bd8aRemote stage: images (--vision) - the worker's layers get the main's positionsb454037Remote stage docs: images, and the checks after the rebase onto 0.1.43758cbecRemote stage: a stuck worker ends as a stuck main process does; parking turned off, not refused9793561Remote stage: a worker's agent starts an ended worker againae00e38Remote stage: the main process connects again, a new main takes a silent worker over📊 Changes
39 files changed (+11868 additions, -469 deletions)
View changed files
📝
CMakeLists.txt(+20 -1)📝
docs/INTEL.md(+37 -0)📝
docs/MULTI_GPU.md(+14 -1)➕
docs/REMOTE_STAGE.md(+846 -0)➕
docs/remote-stage/CHECKPOINTS.md(+390 -0)➕
docs/remote-stage/ENGINEERING.md(+846 -0)📝
include/strata/core/conversation_cache.hpp(+3 -0)📝
include/strata/core/conversation_snapshot.hpp(+7 -0)📝
include/strata/core/expert_source.hpp(+10 -1)➕
include/strata/core/logpos_ids.hpp(+205 -0)📝
include/strata/core/verify.hpp(+43 -0)➕
include/strata/net/stage_ckpt_store.hpp(+87 -0)➕
include/strata/net/stage_link.hpp(+320 -0)📝
include/strata/prefill/prefill.hpp(+28 -0)📝
serve/server.py(+21 -1)📝
serve/test_server.py(+84 -1)📝
src/core/conversation_copy.hpp(+1 -0)📝
src/core/conversation_state.cpp(+50 -24)📝
src/core/conversation_validation_test.cpp(+45 -0)📝
src/core/expert_source.cpp(+47 -31)...and 19 more files
📄 Description
Stacked on lask3802's
remote-stage-rowfmt(618d8f99: #1748 with5c454ed6and--pipeline-windows 2on a remote main, #1887's conversation checkpoints, therow_formatshello, protocol 7), unchanged. Rebased onto it on 2026-10-14; the branch before that is taggedremote-stage-v5-cc7af052in this fork (its own bf16 opt-in,STRATA_STAGE_ROWS_BF16, is dropped in favour ofSTRATA_REMOTE_ROWS). This adds a worker for the SYCL build (Intel Arc) and two measurement-only environment variables. Nothing changes unless--stage-workeris given to the SYCL build, orSTRATA_LOGPOS_IDS/STRATA_LOGPOS_SPLIT_ATare set.What it changes
sycl/src/program/generate.cpp: the SYCL engine can run as the last stage worker (--serve --stage-worker PORT --stage-begin K --stream-experts): layers [K, 48) with all their experts in VRAM (read from the GGUF; it stops at start with the count if they do not fit), its own dense weights and session, no head, MTP, PLE table or embedding table. The main process (and any relay) is the CUDA or HIP build. On protocol 7 it keeps its layers' part of the conversation checkpoints (reset(keep),CkptSave/CkptRestore,kStageCkptMax,stage_ckpt_ram_ok) as the CUDA/HIP last worker does, and reads and sends whatever row format the main process asks for (serve_stagelists every format;stage_link.cppconverts). A relay worker,--remote-stage,--vision,--mtpand--pipeline-windowsare refused at start on the SYCL build. The SYCLVerifiergetsset_no_head,GgufExpertSourcegetsset_layer_range,sycl/src/core/conversation_state.cppgets the explicit-length checkpoint save/restore that #1887 added tosrc/core.include/strata/core/logpos_ids.hpp(new, shared):STRATA_LOGPOS_IDS=<baseline dump>makesSTRATA_LOGPOSalso write the log-probabilities of the baseline's top-k ids at each position, so two engines' distributions can be compared by KL without the ids drifting out of the top-k;STRATA_LOGPOS_SPLIT_AT=Nreads [0, N) of a prompt as chunks and the rest as windows (both trees). Off by default;src/core/logpos_ids_test.cppcovers the header.docs/REMOTE_STAGE.md(an "Intel Arc as a worker" section and the measurements below),docs/INTEL.md(a note).What it leaves alone
Every CUDA/HIP source of the base except the one-line
logpos::write_idscall insrc/core/verify.cppand theSTRATA_LOGPOS_SPLIT_ATbranch insrc/program/generate.cpp; both are inert without the variable. No defaults change.Checks
stage_link_test,stage_ckpt_store_testandlogpos_ids_testpass on the CUDA (sm_89, sm_120), HIP (gfx1100, ROCm 7.10) and SYCL (bmg-g31) builds of this branch.4bbcb16eand of this branch, started without the new options, wrote byte-identicalSTRATA_LOGPOSdumps for both the CUDA engine (4070) and the SYCL engine (B70).Measured
2026-10-14, this branch, four GPUs on three PCs over 2.5 GbE (main RTX 5070 Ti layers 0-10 → HIP relay RX 7900 XT 11-22 → CUDA relay RTX 4070 23-29 → SYCL last worker Arc Pro B70 30-47), OrcaRouter Q4_K_S, served settings (
--max-context 262144 --kv-resident 32768 --prefill 2048):STRATA_REMOTE_ROWS=bf16--pipeline-windows 2--prompt-cache 6): two 4-turn chats on a 30,783-token shared system prompt, sent twice: time to first token 27.4-30.5 s for every request without checkpoints, 0.25-2.6 s with them (after the first); 15 restores on both sides, 0 errors; at exact flags 8 of 8 repeats byte-identical.Earlier (2026-10-13, before the rebase): one PC, loopback (4070 main, B70 worker, IQ2_XS, K=12): decode 73-109 tok/s vs 44-74 on the B70 alone, KL 0.135 against the B70 alone with a backend floor of 0.152. Two PCs (5070 Ti main, B70 worker, IQ3_XXS, K=23): decode 78-108 vs 81-104 on the 5070 Ti alone, KL 0.015.
Not run: HIP as the main process, a relay through a SYCL worker, images, Windows builds of this branch. Raw data and the measurement scripts (
kl_run.py,kl_check.py,speed_bench.py) are available on request.YukihiroHemmi@🐜
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
STRATA_PIPELINE_SNAP_RING=1) #4843