[GH-ISSUE #5143] [Engine] Windows support for the all-cards split engine (strata-split-N): opt-in packaging and three integration blockers #2407

Open
opened 2026-11-04 01:59:02 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @daifeiya on GitHub (Nov 3, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/5143

Strata advertises Windows and consumer GPUs as first-class targets, and the all-cards split engine is the one path that still says Linux-only. I built it on Windows and it runs. This is a request to make that an opt-in supported path, plus the three integration blockers I hit, plus the reasoning that shows the failures I hit were not engine code.

Related: I also asked upstream at johnfink8/sfnx#13 whether a Windows port is wanted there, since the engine is vendored from sFNX.

What actually ran

  • Windows 11 23H2 (10.0.22631), 2x RTX 4090 (48 GB), driver 617.42, CUDA 13.4.59, MSVC 14.44 (VS 2022 BuildTools)
  • Strata sources at ffa80d73 (main at the time), vendored split engine sFNX @ f9ba1e9, built as strata-split-2-sm89.exe
  • 2 cards, host-ring exchange (peer access never enabled), --batch 4, contexts 96K/120K/128K/130K/131072, --spec 6

Works: weight placement and load, prompt path, window verification, 4-lane warm-up (T=2..16), two-slot serving at 131072. The kernels and the stream/event graph needed no changes; a POSIX shim (pread, mincore, mlock, posix_memalign, mmap) plus an sm_89/MSVC build were enough.

Not done here: sustained inference, more than 2 cards, installer/update lifecycle, Linux regression (no Linux machine).

How we concluded the failures were not engine code

We hit an intermittent an illegal memory access was encountered during the load-time warm-up with --batch 4. It failed roughly 40% of runs overall, varying wildly by build (0% to 60%), and a clean rebuild moved which context failed. Here is the elimination, in case it saves someone else the week.

  1. Localized to the first batched rollback. The failing iteration was always the first one where a lane is cut back (T=5: counts [2,1,1,1], keep 1). That is where commit_rows builds a device job table and runs copy_many. We instrumented the table: 73 jobs per card at T=5, 146 when two lanes are cut, all 16-byte aligned, none empty, capacity MAXT*CJ = 1552 entries. No bad entry ever appeared.

  2. A second-stream race looked convincing, and was wrong. The shared-expert chain runs on a second stream joined into the main stream before the layer sum. Adding one cudaStreamSynchronize on that stream before the rollback made 20/20 runs pass. But when we then probed cudaStreamQuery on the same stream at the same point, it returned cudaSuccess in 12/12 later runs - there was nothing to wait for. The sync had been acting as a timing perturbation, not as a missing dependency.

  3. A source audit found no aliasing. The rollback restores lane recurrent state, conv history and PLE history from snapshots. It does not touch expert-cache slots, the router plan or shared-expert buffers, and the shared-expert weights are separate allocations from the routed-cache pools.

  4. The error labels were misleading. The same fault surfaced at four different sync sites (ple, R0, lane rows, post-commit_rows). CUDA errors are sticky per context, so the label names the first synchronize after the fault, not the kernel that faulted. Every earlier "localization" was therefore suspect.

  5. The actual cause was the Windows event log. In the audited window, 13 of 13 failing runs ended at the exact second of an nvlddmkm Event 153 (\Device\Video8) GPU reset; no passing run did. TdrDelay is unset on this machine, so the 2 s default applies. Once the resets stopped (we began stopping the other process holding the GPUs before each run), 54 runs across 5 builds passed.

  6. Control experiment. Replacing the batched copy_many with per-job cudaMemcpyAsync changed nothing: both arms passed equally. That is what you would expect if the fault is outside the copy path.

Conclusion: a WDDM watchdog reset destroys the CUDA context, and the next synchronize reports an illegal address, which points at innocent code. Same class as #961 and #3489 (the driver had lost the card). It is not evidence of a defect in the all-cards engine.

The three integration blockers

File:line at ffa80d73.

  1. Selection refuses non-Linux before probing - strata_control/split_engine.py:176-184: if system != "linux": why.append("the all-cards split engine runs on Linux only"). Probing is skipped too (:456,477). This is the gate docs/SPLIT_ENGINE.md:9,37 describes.
  2. Executable discovery never tries .exe - strata_cli/launch/runner.py:1639-1650 builds candidate names like strata-split-2-sm89 and strata-split-2 and tests them with Path.is_file(); a colocated strata-split-2.exe does not match. For contrast, runner.py:2596-2599 does try .exe for the dsv41 engine.
  3. Generic serving arguments re-add layer-split - serve/server.py:3551-3552 appends --layer-split <value> whenever more than one GPU is configured and --peer-device is absent. The split config drops the layer_split key (split_engine.py:256-259), but the default for an absent value is "auto" (serve/server.py:3400-3402), so the flag comes back at launch (engine_args, serve/server.py:9114).

These are separable; lifting only the platform gate does not produce a working path.

Two qualification dimensions, not one

The documented supported pairs do not include a GeForce/Ada pair either, so Windows support and sm_89/GeForce support are separate qualifications. My run covers the combination, not each dimension independently.

  • AMD layer-split Windows work: #4991, #4883, #4990
  • All-cards engine support expansion precedent: #5119 (sm_70/V100)
  • Linux-gated functionality measured on Windows: #5037
  • Windows multi-GPU WDDM memory: #3725

Request

Opt-in Windows support for the all-cards engine, scoped to: platform selection, .exe discovery, split-config argument handling, and a packaged build. I am happy to contribute the shim and the build integration, and to run the same load/warm-up matrix and report exactly what ran, as CONTRIBUTING asks. I cannot do Linux regression or a wider card matrix here.

I searched the tracker for an existing Windows all-cards request and did not find one. If there is a canonical thread, please point me at it and I will move there.

Originally created by @daifeiya on GitHub (Nov 3, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/5143 Strata advertises Windows and consumer GPUs as first-class targets, and the all-cards split engine is the one path that still says Linux-only. I built it on Windows and it runs. This is a request to make that an opt-in supported path, plus the three integration blockers I hit, plus the reasoning that shows the failures I hit were not engine code. Related: I also asked upstream at johnfink8/sfnx#13 whether a Windows port is wanted there, since the engine is vendored from sFNX. ## What actually ran - Windows 11 23H2 (10.0.22631), 2x RTX 4090 (48 GB), driver 617.42, CUDA 13.4.59, MSVC 14.44 (VS 2022 BuildTools) - Strata sources at `ffa80d73` (main at the time), vendored split engine sFNX @ `f9ba1e9`, built as `strata-split-2-sm89.exe` - 2 cards, host-ring exchange (peer access never enabled), `--batch 4`, contexts 96K/120K/128K/130K/131072, `--spec 6` Works: weight placement and load, prompt path, window verification, 4-lane warm-up (T=2..16), two-slot serving at 131072. The kernels and the stream/event graph needed no changes; a POSIX shim (pread, mincore, mlock, posix_memalign, mmap) plus an sm_89/MSVC build were enough. Not done here: sustained inference, more than 2 cards, installer/update lifecycle, Linux regression (no Linux machine). ## How we concluded the failures were not engine code We hit an intermittent `an illegal memory access was encountered` during the load-time warm-up with `--batch 4`. It failed roughly 40% of runs overall, varying wildly by build (0% to 60%), and a clean rebuild moved which context failed. Here is the elimination, in case it saves someone else the week. 1. **Localized to the first batched rollback.** The failing iteration was always the first one where a lane is cut back (T=5: counts `[2,1,1,1]`, keep 1). That is where `commit_rows` builds a device job table and runs `copy_many`. We instrumented the table: 73 jobs per card at T=5, 146 when two lanes are cut, all 16-byte aligned, none empty, capacity `MAXT*CJ` = 1552 entries. No bad entry ever appeared. 2. **A second-stream race looked convincing, and was wrong.** The shared-expert chain runs on a second stream joined into the main stream before the layer sum. Adding one `cudaStreamSynchronize` on that stream before the rollback made 20/20 runs pass. But when we then probed `cudaStreamQuery` on the same stream at the same point, it returned `cudaSuccess` in 12/12 later runs - there was nothing to wait for. The sync had been acting as a timing perturbation, not as a missing dependency. 3. **A source audit found no aliasing.** The rollback restores lane recurrent state, conv history and PLE history from snapshots. It does not touch expert-cache slots, the router plan or shared-expert buffers, and the shared-expert weights are separate allocations from the routed-cache pools. 4. **The error labels were misleading.** The same fault surfaced at four different sync sites (`ple`, `R0`, `lane rows`, `post-commit_rows`). CUDA errors are sticky per context, so the label names the first synchronize after the fault, not the kernel that faulted. Every earlier "localization" was therefore suspect. 5. **The actual cause was the Windows event log.** In the audited window, 13 of 13 failing runs ended at the exact second of an `nvlddmkm` Event 153 (`\Device\Video8`) GPU reset; no passing run did. `TdrDelay` is unset on this machine, so the 2 s default applies. Once the resets stopped (we began stopping the other process holding the GPUs before each run), 54 runs across 5 builds passed. 6. **Control experiment.** Replacing the batched `copy_many` with per-job `cudaMemcpyAsync` changed nothing: both arms passed equally. That is what you would expect if the fault is outside the copy path. Conclusion: a WDDM watchdog reset destroys the CUDA context, and the next synchronize reports an illegal address, which points at innocent code. Same class as #961 and #3489 (the driver had lost the card). It is not evidence of a defect in the all-cards engine. ## The three integration blockers File:line at `ffa80d73`. 1. **Selection refuses non-Linux before probing** - `strata_control/split_engine.py:176-184`: `if system != "linux": why.append("the all-cards split engine runs on Linux only")`. Probing is skipped too (`:456,477`). This is the gate `docs/SPLIT_ENGINE.md:9,37` describes. 2. **Executable discovery never tries `.exe`** - `strata_cli/launch/runner.py:1639-1650` builds candidate names like `strata-split-2-sm89` and `strata-split-2` and tests them with `Path.is_file()`; a colocated `strata-split-2.exe` does not match. For contrast, `runner.py:2596-2599` does try `.exe` for the dsv41 engine. 3. **Generic serving arguments re-add layer-split** - `serve/server.py:3551-3552` appends `--layer-split <value>` whenever more than one GPU is configured and `--peer-device` is absent. The split config drops the `layer_split` key (`split_engine.py:256-259`), but the default for an absent value is `"auto"` (`serve/server.py:3400-3402`), so the flag comes back at launch (`engine_args`, `serve/server.py:9114`). These are separable; lifting only the platform gate does not produce a working path. ## Two qualification dimensions, not one The documented supported pairs do not include a GeForce/Ada pair either, so Windows support and sm_89/GeForce support are separate qualifications. My run covers the combination, not each dimension independently. ## Related - AMD layer-split Windows work: #4991, #4883, #4990 - All-cards engine support expansion precedent: #5119 (sm_70/V100) - Linux-gated functionality measured on Windows: #5037 - Windows multi-GPU WDDM memory: #3725 ## Request Opt-in Windows support for the all-cards engine, scoped to: platform selection, `.exe` discovery, split-config argument handling, and a packaged build. I am happy to contribute the shim and the build integration, and to run the same load/warm-up matrix and report exactly what ran, as CONTRIBUTING asks. I cannot do Linux regression or a wider card matrix here. I searched the tracker for an existing Windows all-cards request and did not find one. If there is a canonical thread, please point me at it and I will move there.
Author
Owner

@udqe commented on GitHub (Nov 5, 2026):

Two years of Windows multi-GPU tuning behind us, and this is written like the failure mode we always feared with the elimination actually done. Three things from our logs, one structural note, all read-only for us.

Bullet 2 is the season's cleanest example of the trap we keep writing about, caught by its own author. A sync that turns 20/20 failing runs green is the single most persuasive false positive in this space, and you did the expensive thing - probing cudaStreamQuery at the same point and finding cudaSuccess in 12/12 - which is exactly what separates a missing dependency from a timing perturbation. Our own version of this discipline is A/B/A windows with a control arm, because a control that moves timing is not a control; your 20/20 -> 12/12 pair belongs quoted beside that rule wherever the project writes it down.

Your Event 153 oracle is the third thread this week where the platform broke CUDA state and CUDA blamed innocent code. Here: 13/13 failing runs ending at the exact second of the reset, 54 passes once the contender stopped. Today in #3463 the long-running "machine restarts under serving" thread got its first clean fix report (1350 W PSU installed, -50 mV session runs clean), and yesterday #5259 reported a router-NaN on RTX 40 cards that no one can reproduce byte-identically. Same shape all three: the platform layer resets, degrades or starves something, and the sticky per-context error surfaces at the next synchronize under an unrelated name. Your sentence "the label names the first synchronize after the fault, not the kernel that faulted" is the one line a Windows multi-GPU user most needs and, as far as our grep goes, no doc currently says in those words - #3725 (in your own related list) is where it belongs beside the memory behavior.

On blocker 1's premise - probing being skipped on Windows - our box is an existence proof that the probe machinery itself is not the problem. Our production engine prints, at every auto-search boot: layer split auto: CUDA0 link 26.4 GB/s -> miss cost x1.00 - the link probe runs on Windows 11 with a 2x 4090 pair today - 59 auto-search starts on this machine, both slots' lines, informative values. The caveat we learned the hard way and re-learned this morning in #5265: single-boot probe values are fragile inputs - CUDA0 read 6.7 GB/s in 15 of those 59 lines (CUDA1 never read below 13.2), and a selection that inherits a misprobe runs with it all day. If the split-engine selection ever lifts the platform gate, print the numbers it used at selection time, and a misprobe becomes at least reviewable. The memory side of WDDM remains a real qualification though: our own boot line states cudaHostRegister limited to 40 GiB by the engine (multi-GPU under WDDM, or remote experts) verbatim - that shape travels with the platform, so #3725's behavior should ship inside the Windows qualification, not as a discovered surprise.

Structural note: your two-dimensions section is the right guard and worth making unmissable. One run covering (Windows, sm_89) qualifies neither dimension alone - our season matrix files every report as its regime's column and the failure mode you are pre-empting (acceptance read as "Windows and GeForce now qualified") is exactly what those columns prevent. No data from us on the shim or the engine itself - our production is the layer-split path, we have never run the all-cards engine - but if the opt-in packaging lands, this box is a second Windows pair for your load/warm-up matrix, reported in your format, and that offer is gated on the package existing, not a promise to test anything today.

Scope: this comment ran nothing new; quoted lines are from our production engine log (boots through 2026-11-05) and the three issues as published today/yesterday.

(ai-assisted; our log quotes verbatim, external numbers from #3463/#5259/#5265 as posted there)

<!-- gh-comment-id:6650153668 --> @udqe commented on GitHub (Nov 5, 2026): Two years of Windows multi-GPU tuning behind us, and this is written like the failure mode we always feared with the elimination actually done. Three things from our logs, one structural note, all read-only for us. **Bullet 2 is the season's cleanest example of the trap we keep writing about, caught by its own author.** A sync that turns 20/20 failing runs green is the single most persuasive false positive in this space, and you did the expensive thing - probing `cudaStreamQuery` at the same point and finding `cudaSuccess` in 12/12 - which is exactly what separates a missing dependency from a timing perturbation. Our own version of this discipline is A/B/A windows with a control arm, because a control that moves timing is not a control; your 20/20 -> 12/12 pair belongs quoted beside that rule wherever the project writes it down. **Your Event 153 oracle is the third thread this week where the platform broke CUDA state and CUDA blamed innocent code.** Here: 13/13 failing runs ending at the exact second of the reset, 54 passes once the contender stopped. Today in #3463 the long-running "machine restarts under serving" thread got its first clean fix report (1350 W PSU installed, -50 mV session runs clean), and yesterday #5259 reported a router-NaN on RTX 40 cards that no one can reproduce byte-identically. Same shape all three: the platform layer resets, degrades or starves something, and the sticky per-context error surfaces at the next synchronize under an unrelated name. Your sentence "the label names the first synchronize after the fault, not the kernel that faulted" is the one line a Windows multi-GPU user most needs and, as far as our grep goes, no doc currently says in those words - #3725 (in your own related list) is where it belongs beside the memory behavior. **On blocker 1's premise - probing being skipped on Windows - our box is an existence proof that the probe machinery itself is not the problem.** Our production engine prints, at every auto-search boot: `layer split auto: CUDA0 link 26.4 GB/s -> miss cost x1.00` - the link probe runs on Windows 11 with a 2x 4090 pair today - 59 auto-search starts on this machine, both slots' lines, informative values. The caveat we learned the hard way and re-learned this morning in #5265: single-boot probe values are fragile inputs - CUDA0 read 6.7 GB/s in 15 of those 59 lines (CUDA1 never read below 13.2), and a selection that inherits a misprobe runs with it all day. If the split-engine selection ever lifts the platform gate, print the numbers it used at selection time, and a misprobe becomes at least reviewable. The memory side of WDDM remains a real qualification though: our own boot line states `cudaHostRegister limited to 40 GiB by the engine (multi-GPU under WDDM, or remote experts)` verbatim - that shape travels with the platform, so #3725's behavior should ship inside the Windows qualification, not as a discovered surprise. **Structural note: your two-dimensions section is the right guard and worth making unmissable.** One run covering (Windows, sm_89) qualifies neither dimension alone - our season matrix files every report as its regime's column and the failure mode you are pre-empting (acceptance read as "Windows and GeForce now qualified") is exactly what those columns prevent. No data from us on the shim or the engine itself - our production is the layer-split path, we have never run the all-cards engine - but if the opt-in packaging lands, this box is a second Windows pair for your load/warm-up matrix, reported in your format, and that offer is gated on the package existing, not a promise to test anything today. Scope: this comment ran nothing new; quoted lines are from our production engine log (boots through 2026-11-05) and the three issues as published today/yesterday. (ai-assisted; our log quotes verbatim, external numbers from #3463/#5259/#5265 as posted there)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#2407
No description provided.