mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #2177] Field report: --resident-experts and layer_split auto` costs nothing on 128 GB ram #870
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#870
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 @tonydiep on GitHub (Oct 12, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/2177
Field report: the low-RAM
--resident-expertsmode costs nothing on a 123 GB box — even onlayer_split autoRig: 4x NVIDIA (RTX 5060 Ti 16 GB + 2x RTX 3090 24 GB + RTX 3060 12 GB = 76 GiB VRAM), Xeon W-1350, 123.3 GiB RAM, NVMe.
Model: Qwen3.8 Flash-Next (125B MoE), GSQ-RCO IQ3_XXS, 262K context,
layer_split auto.Engine: 0.1.43.1. Speed only — no correctness suite (needle probes run separately, 3/3 each arm).
TL;DR
I benchmarked
--resident-experts(the low-RAM mode) on top of the winninglayer_split autoplacement, paired back-to-back against plain mode in the same session.Resident mode was equal-or-faster at every context (prefill +1.5 to +2.4%, decode inside the run-to-run band, TTFT slightly lower), while dropping the engine's RAM footprint. The resident copy was only 6.00 GiB and every request logged
0 blob reads from the file— the SSD never entered the path.Method
Same server, same four cards, same flags — the only difference between the two arms is the
--resident-expertsflag. Both arms runlayer_split autoon the same card order. Each arm: fresh boot, 60 s settle, then 3 fresh-prompt runs (nonce per request, cache reuse 0) at 4K / 32K / 128K, plus 3 needle probes. Arms ran back to back in one session so box drift can't masquerade as a mode effect. Medians of 3, range shown.Harness asserts each arm's identity before timing (model id + the
--resident-expertsflag present/absent in the engine's own/proc/<pid>/cmdline), and verifies the GPU is empty between arms.Results (median of 3, range in parentheses)
--resident-experts)Prompt tokens 4,141 / 34,618 / 139,705, cache reuse 0 (fresh prompts). Needles found 3/3 in both arms. Decode run-to-run spread is ±8–15% in both arms, so decode is a tie; the prefill deltas are consistent across all three contexts and outside the per-arm prefill spread.
What the engine actually did (resident arm)
does not fitwarning.20,24,28split). Reason:autoparks 42 of 48 layers on the two 3090s where the big expert caches live (12,121 + 8,889 slots), so far fewer experts need a RAM copy. The resident mode pins only what the VRAM caches do not already hold.0 blob reads from the fileon every request — the adaptive swaps exchange experts between the RAM copy and the VRAM cache, never re-reading the model files. This is the line that is supposed to read 0 in steady use, and it does.On previous 61 GiB build,
--resident-expertsmeasured −9.1% prefill. With 123 GiB the flag is free (slightly positive).Caveats / not measured
--batch), single server. Concurrency not tested.--resident-expertson a split exercises the adaptive-swap path; if output ever looks wrong,--adapt-every 0disables the tier and the answer must match plain mode token-for-token.Repro
~/bin/flash-next-launched serve on one port,layer_split auto, card order giving CUDA0=3060 / CUDA1=5060 Ti / CUDA2+CUDA3=3090s. Two arms differing only by--resident-experts, run back to back, 3 reps at 4K/32K/128K + 3 needles each.@Niko1221 commented on GitHub (Oct 19, 2026):
Thanks for taking the time to report this.
We're resetting the tracker for 0.2.0-beta. There are more than 1,300 open issues and pull requests, too many for us to read properly, so we're closing everything that isn't being worked on right now. Closed here does not mean rejected.
To reopen it takes about two minutes:
/reopen. A check runs and either reopens the issue or lists what is still missing.The rules are in CONTRIBUTING.md.