mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #5143] [Engine] Windows support for the all-cards split engine (strata-split-N): opt-in packaging and three integration blockers #2407
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#2407
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?
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
ffa80d73(main at the time), vendored split engine sFNX @f9ba1e9, built asstrata-split-2-sm89.exe--batch 4, contexts 96K/120K/128K/130K/131072,--spec 6Works: 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 encounteredduring 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.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 wherecommit_rowsbuilds a device job table and runscopy_many. We instrumented the table: 73 jobs per card at T=5, 146 when two lanes are cut, all 16-byte aligned, none empty, capacityMAXT*CJ= 1552 entries. No bad entry ever appeared.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
cudaStreamSynchronizeon that stream before the rollback made 20/20 runs pass. But when we then probedcudaStreamQueryon the same stream at the same point, it returnedcudaSuccessin 12/12 later runs - there was nothing to wait for. The sync had been acting as a timing perturbation, not as a missing dependency.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.
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.The actual cause was the Windows event log. In the audited window, 13 of 13 failing runs ended at the exact second of an
nvlddmkmEvent 153 (\Device\Video8) GPU reset; no passing run did.TdrDelayis 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.Control experiment. Replacing the batched
copy_manywith per-jobcudaMemcpyAsyncchanged 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.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 gatedocs/SPLIT_ENGINE.md:9,37describes..exe-strata_cli/launch/runner.py:1639-1650builds candidate names likestrata-split-2-sm89andstrata-split-2and tests them withPath.is_file(); a colocatedstrata-split-2.exedoes not match. For contrast,runner.py:2596-2599does try.exefor the dsv41 engine.serve/server.py:3551-3552appends--layer-split <value>whenever more than one GPU is configured and--peer-deviceis absent. The split config drops thelayer_splitkey (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
Request
Opt-in Windows support for the all-cards engine, scoped to: platform selection,
.exediscovery, 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.
@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
cudaStreamQueryat the same point and findingcudaSuccessin 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 statescudaHostRegister 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)