mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #5059] [GUI] 0.2.10 + engine 0.1.56 on 64 GB RAM / 16 GB VRAM Windows laptop: the engine finishes its load but the app never marks IQ3_S as started (no-budget mmap path + 43 GiB page-locked copy) #2348
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#2348
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 @frankcoffee0-glitch on GitHub (Nov 3, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/5059
Area
[GUI]
Desktop app, Terminal or source?
Desktop app (Windows, Linux or Mac)
Reproduction status
Reproduced locally
Strata version
Strata 0.2.10 · engine 0.1.56 (fails) — Strata 0.2.9 · engine 0.1.56 (works). The 0.2.9 install also runs Control 0.1.55, commit
c62d5e3a15b40ea51c96aae9e8d36928965f53ab.Graphics card, memory and system
RTX 4090 Laptop 16 GB (sm_89, driver 617.42) · 64 GB RAM (the app reports
63 GB) · Windows 10.0.26300. Models on an NVMe volume (F:\Strata-data).Model, size and settings
Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S(2 GGUF shards + PLE shard, native packpacks\iq3_s) · 131072 context ·--kv int8· pictures on (--vision) ·--pool-workers 13·--vram-reserve-mib 1536·--mtp F:\Strata-data\mtp\rt·--expert-cache auto --prefill auto --spec 4 --spec-min-p 0.5.IQ3_XXSon the same engine does start (see the comparison below).What happened
Since 0.2.10,
Qwen3.8-Flash-Next GSQ RCO IQ3_Swill not come up as a started model on this 64 GB PC: the start job runs, the app reports that the start timed out, and the instance never appears as ready in the app. Rolling the app back to 0.2.9 fixes it — with the same engine, 0.1.56. The engine command line the app writes differs in exactly one place: 0.2.9 adds--resident-budget-gib 40, 0.2.10 adds no RAM setting of its own and additionally removes the--resident-budget-gibthat was already in my run config. Without that flag the engine takes a different path — a 20 s arena wait, themmapfallback, then a ~43 GiB page-locked copy — and that is the run the app does not accept as started.Smallest steps or command that reproduce it
work(ui_resource_profile: "work"), modelIQ3_S, default RAM settings (I never chose a RAM mode myself).IQ3_S. The app reports a start timeout; two attempts, at 10:37:06 and 10:40:08, neither of which the app accepts as started.IQ3_S. It comes up; the launch line now carries--resident-budget-gib 40.The engine component is untouched between 2 and 4, and the engine version is fixed in both cases by
components\.updates\state.json, which pinsactiveandpinnedto0.1.56-windows-x86_64-cuda-cuda13(with0.1.55underprevious). So the app version is the only variable between the failing and the working start.The two launch lines, from
strata-iq3_s.log10:37:06, app 0.2.10 (the desktop log shows
Strata desktop 0.2.10 startingat 10:34:04), engine 0.1.56, no RAM setting:12:59:39, app 0.2.9 (desktop log:
Strata desktop 0.2.9 startingat 12:44:19), same engine 0.1.56, and the only difference in the arguments is the flag before the last one:and that run's environment carries
STRATA_RESIDENT_HEADROOM_GIB=13.What the engine then does with no budget (the 10:37:06 run)
The second attempt (10:40:08) is the same up to the point where it stops:
54.84 GiB ... 51.73 GiB is available, four wait lines,experts via mmap,--resident-budget-gib 44.35 exceeds available RAM (51.82 GiB minus 8 GiB headroom and a 0.25 GiB margin): 43.57 GiB,allocating 43.57 GiB page-locked cache complement, and the log stops mid-copy atcopied cache complement through layer 32/48 (30.86 GiB, 20 s).Let me be exact about what the engine logs and what the app shows, because they are not the same thing. Both failed runs do log
session is up(lines 1149 and 1230), and the first one also reachesstrata serve: 1496 MiB of VRAM free with everything loaded(line 1182) — the engine process is alive and serving. What never happens is that the app marks the instance as started: it stays in its loading state, the app reports the start as timed out, and the second attempt's process ends while it is page-locking (the log stops mid-copy). That is the failure I am reporting, and it is an app-side one: the same engine, with--resident-budget-gib 40in its arguments, comes up asreadyand serves (below).For the record, the app's own windows are these:
apps/host/server/native-control.mjscalls Control withwaitSeconds: startWaitFor(...), which for this model works out to a few hundred seconds from itsdownload_gb, and then pollsGET /healthon the instance port (2 s request budget, 1.2 s between tries) untilDate.now()+300000, after which it raisesLoading took more than five minutes. Check the engine log and free memory.(line 580 in 0.2.10, and the same rule exists in 0.2.9). Counting from the10:37:06line,session is uplands roughly 45–50 s later and the pinned copy about 30 s after that, so the load time alone does not fill five minutes — which is why I think the readiness handshake during the page-locking phase is where to look, and I cannot see the probe's result from these files: the engine's own lines carry no timestamps, and the host's log for that session records nothing about the start. If it helps I will re-run 0.2.10 once and paste the app's exact wording and the host log around it.Note the sizing: the arena asked for 54.84 GiB, which is this PC's total (63.1 GiB) less the 8 GiB it was asked to keep. The engine's own available-RAM line for the same decision reads 51.25 GiB. So the keep was not met before the wait even began, it spent 20 s waiting for RAM that was never going to appear, and only then fell back to the file source plus a 43 GiB page-locked complement that costs another 25–31 s to copy. Roughly 50 s of that start goes on a decision the engine already had the numbers to make, and the RAM it ends up with afterwards is thinner than the budget path leaves it (9.3 GiB available here, against 13 GiB of headroom by design on the 0.2.9 run).
What 0.2.9 does differently, and how the flag gets removed
The config in
install\strata-iq3_s.jsonthat the 0.2.9 app writes today (13:00) contains, among the launch arguments,--resident-budget-gib 40, the environmentSTRATA_RESIDENT_HEADROOM_GIB: "13", andIn 0.2.10's host rule (
apps/host/server/native-resources.mjs,resourceSettings) the block that handles "leave 20% for my work" now reads, in order:if (baseline.ramBudget) remove('--resident-budget-gib');,dropEnv('STRATA_RESIDENT_HEADROOM_GIB')whenbaseline.ramHeadroom, and then, whenengineKnowsRamKeep(...)is true for the engine in use,env.STRATA_RAM_KEEP_GIB = ramKeepGib(ram)instead of the budget. The engine-in-use version comes from the folder named in the run config'sexe(exehere iscomponent:strata-engine, resolved to the active component: 0.1.56) or frommodel.engineVersion, andRAM_KEEP_MIN_ENGINE = '0.1.56'. So a config that 0.2.9 wrote for itself — where the budget is app-owned, markedramBudget: true— loses both the budget and the headroom the moment the app is 0.2.10 and the engine is 0.1.56 or newer, andSTRATA_RAM_KEEP_GIB=8(min(8, max(5, ceil(ram*0.2)))) replaces it. The engine log'sthe 8.00 GiB --ram-keep-gibis consistent with that value; the engine's own--helpdocuments--ram-keep-gibas default 0, so the 8 in the failing run is not the engine default.Two related observations from the same log: the last 0.2.9 start (10:13:13, engine 0.1.55) honoured a 13 GiB headroom —
--resident-budget-gib 40.00 exceeds available RAM (50.26 GiB minus 13 GiB headroom and a 0.25 GiB margin): 37.01 GiB— while at 10:37 the engine used 8 GiB. Whether the app droppedSTRATA_RESIDENT_HEADROOM_GIBas the code above does, or 0.1.56 lets--ram-keep-gibwin over that variable, I cannot tell from the log alone.The 0.2.10 notes list this platform line for engine 0.1.56:
not run yet; the plan for a 12 GB card with 64 GB of RAM says about 3 GB of the experts stay on the card and the rest come from RAM and the SSD— that is the same RAM band as this PC (16 GB card, 64 GB RAM), so it seems the configuration that triggers this was not exercised before release.The comparison run that works (same engine 0.1.56, app 0.2.9, 12:59:39)
No arena wait at all, and the copy finishes in 11 s instead of 31 s. Both runs end up on the same expert source —
strata generate: experts via mmapat lines 1131 and 1262 — the difference is only how they get there: with a budget the engine goes straight to that source, without one it first tries the 54.84 GiB arena, spends the 20 s wait, and then falls back to it.IQ3_XXSon the same engine with--resident-budget-gib 39starts and settles withresident RAM: 36.10 GiB of experts in RAM ... 0 blob reads from the file.The host comment's stated intent is that the engine "decides from the RAM that is free at its start, not from the PC's total". What this PC shows is an arena request that is
total − keep, an available-RAM figure the engine itself prints a line later, a fixed 20 s wait between the two, and then a fallback whose pinned copy alone takes about half a minute. Also worth noting: the--resident-budget-gib 43.86/44.35in the fallback lines is not something I set — the engine sizes it itself once the app has taken the budget away, and that number is what theFileExpertSourceline then clamps.What would help from my side
resourceSettings, when the engine knows the setting but the full arena is clearly not holdable on this PC (herearena 54.84 GiBagainstavailable 51.25 GiBat the engine's own measurement), do not replace the 0.2.9 budget withSTRATA_RAM_KEEP_GIB=8; keep the budget rule. The comment says the engine decides from free RAM — but the app already knows, from the model'sarenaGb, that the arena is bigger than the machine.STRATA_ARENA_RAM_WAIT_Sis set). Today that 20 s is dead time on every start here.ramKeepGib's 8 GiB cap for PCs in this band: withkeep = 8, the engine's fallback sizes a 43 GiB page-locked complement on a 63 GB PC and ends the copy with 9.3 GiB available, which is a thin margin to land on after a failed arena attempt.As a workaround I re-added
--resident-budget-gib 40to the run config's ownargs; per the code themodesguard (['--resident-experts','--mmap-experts','--resident-budget-gib','--ram-keep-gib']) leaves an argument inargsalone, so the budget should survive on 0.2.10 as well. I have not re-tested that on 0.2.10 — the machine is on 0.2.9 right now — so treat that as unverified. Pinning the engine to 0.1.55 also avoids it, since the old rule applies to an engine older thanRAM_KEEP_MIN_ENGINE.Related threads
I searched the tracker before filing, so let me be explicit about what is and is not already here.
The closest match in symptom is #4116 (open, no reply yet):
IQ3_Swill not start on Windows on a 64 GB PC, because "the engine copies every expert into RAM (about 55 GB)" and the copy fails (error 1453). Same model, same 64 GB ceiling, the same ~55 GiB full-arena figure I get on 0.1.56 — but it is a source/.batinstall, and the reporter's engine dies with exit code 1 instead of falling back; on my engine build the arena wait plus themmapfallback happens and the app's start window runs out first. #4117 (open PR, no reply) is the engine-side answer to exactly that sizing decision: "when the arena cannot fit the RAM available at start with 1 GiB to spare, the engine enables--resident-experts". That guard would also have saved this start, which is why I am reporting the app-side half rather than only the engine-side half: 0.2.9 never let the engine size the arena itself, because the app always passed--resident-budget-gib; since 0.2.10 it does, on engine 0.1.56, and the result on this PC is the sequence above. #4846 is the same arena path under a different shape (arena wait plus the PLE lock, 92 GiB Linux rig, engine 0.1.55). #5020 is the opposite end of the same sizing: the arena holding experts the VRAM cache already has.That a manual budget is the practical fix is not my guess, it is already established in the tracker: in #4388 (3090 + 96 GB,
UD-Q4_K_XL, "Loading model forever") the reporter's own fix was--resident-budget-gib 40in the advanced config, and the maintainer reply there explains the flag and then asks people, after an engine update, to "try once withoutSTRATA_ARENA_THP=1and without the manual budget". On this PC that experiment is exactly what fails: with no budget in the arguments the start goes through the arena wait, themmapfallback and a 43 GiB pinned copy, and the app never marks the instance as started. So the question underneath all of this is: on 63 GB of RAM with a 46.8 GiB expert set, what is the supported configuration on the desktop app, and shouldresourceSettingsbe the place that guarantees it?I also checked that this combination has not been reported for 0.2.10: the issues mentioning 0.2.10 are #5054, #5052, #5048, #4904, #4730 and #4144, and none is a model-start failure. A search for
STRATA_RAM_KEEP_GIBin open and closed issues returns nothing, so as far as I can tell this rule change has no thread of its own yet. If there is one, point me at it and I will move this evidence there.Logs
My comment below attaches
strata-iq3_s.log: the first 1324 lines, unedited, with the line numbers of the original file (both failed attempts, the working 12:59 run, and its first served request). The live file was 2466 lines when I attached and grows while the model serves, so I cut it at a clean point rather than keep moving the target; the line index in that comment matches what is attached. I can also attachstrata-iq3_xxs.log, the desktop logs (their first lines areStrata desktop 0.2.10 startingat 10:34 andStrata desktop 0.2.9 startingat 12:44 withupdate · rollback started (app 0.2.9); the file names are UTC),components\.updates\state.json(engine pinned to 0.1.56,previous0.1.55, tworollbackhistory entries), and the staged update's own test-start logcomponents\.updates\logs\test-start-0.1.56.log, which does start IQ3_S successfully on engine 0.1.56 — with--resident-budget-gib 40in its arguments, nine minutes before the first failing start at 10:37.@github-actions[bot] commented on GitHub (Nov 3, 2026):
Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing:
Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment
/reopen.Details: CONTRIBUTING.md
@github-actions[bot] commented on GitHub (Nov 3, 2026):
Thanks, this follows the format now.
@frankcoffee0-glitch commented on GitHub (Nov 3, 2026):
Small correction first. When I filed this I wrote that the two failed runs never reach
session is up. They do — lines 1149 and 1230 of the log attached below. I have edited the description to say what the log actually shows: the engine comes up and even finishes its 43 GiB page-locked copy in the first attempt, and what fails is that the app never marks the instance as started. Everything else in the description stands, including the one-argument difference between the two launch lines.Attaching
strata-iq3_s.log— the first 1324 lines, unedited, with the line numbers of the original file. The live file was 2466 lines when I attached and keeps growing while the model serves, so I cut at a clean point instead of chasing it. Line numbers below are in the attachment.--resident-budget-gib 40 --vram-reserve-mib 1536. Starts normally; L1062 clamps the 40 GiB to 37.01 GiB by the 13 GiB headroom.--pool-workers 13 --vram-reserve-mib 1536, no RAM setting.--ram-keep-gib; available 51.25 / 51.32 / 51.21 / 51.24 GiB at 0 / 5 / 10 / 15 s.3.61 GiB short, after waiting→experts via mmap.session is up (engine 0.1.56). The app does not show it as started.allocating 43.01 GiB page-locked cache complement,copied cache complement through layer 32/48 (30.58 GiB, 18 s),mapped pinned cache complement ready: resident 43.01 GiB, pinned 43.01 GiB in 31 s.strata serve: 1496 MiB of VRAM free with everything loaded.--resident-budget-gib 44.35 exceeds available RAM (51.82 GiB minus 8 GiB headroom and a 0.25 GiB margin): 43.57 GiB; the log stops mid-copy at L1241copied cache complement through layer 32/48 (30.86 GiB, 20 s)— that process ends while page-locking.--resident-budget-gib 40: no arena wait at all (the engine goes to the sameexperts via mmapsource at L1262 without trying the arena first), L1277session is up, L1280 clamps 40 → 35.16 GiB, L1283–L1291allocating 35.16 GiB page-locked cache complement…mapped pinned cache complement ready: resident 35.16 GiB, pinned 35.16 GiB in 11 s, and the app shows it as started. It serves from there: L1319prompt 53 tokens = 0 reused + 53 read in 879 ms (60.3 tok/s), L1322resident RAM: 35.16 GiB of experts in RAM, 0 exchanged with the VRAM tier, 193 blob reads from the file. Inruntime\app-1.server.logthe same instance reports decode at 29–41 tok/s on real requests.One comparison that isolates the app from the engine:
components\.updates\logs\test-start-0.1.56.logis the updater's own staged test start of 0.1.56, and it passes because it carries--resident-budget-gib 40—resident RAM: 40.00 GiB of experts in RAM, 0 exchanged with the VRAM tier, 0 blob reads from the file. Last write 10:28, nine minutes before the first failing start.And the app-side rule:
apps/host/server/native-resources.mjsin 0.2.10 writesSTRATA_RAM_KEEP_GIBfor engines ≥ 0.1.56 and no budget flag, and drops the app-written--resident-budget-gib/STRATA_RESIDENT_HEADROOM_GIBthroughui_resource_baseline(ramBudget/ramHeadroom). In the working 12:59 run that baseline came from 0.2.9, whoseresourceSettingswrote the flag instead. The person's own--resident-budget-gibin the advanced config does survive 0.2.10 (themodescheck inresourceSettingssees it first), which is why #4388's manual fix still works there — it is the app's own resource settings that stop sizing the RAM.Privacy note on the attachment: it contains local paths under
C:\Users\frankCoffee\andF:\Strata-data\, and the onlytokenstrings in it are llama.cpp token counters — no API keys or secrets. Say the word and I will replace it with a redacted copy. Happy to add the desktop logs,strata-iq3_s.jsonandcomponents\.updates\state.jsontoo.strata-iq3-s attached.log
[GH-ISSUE #5059] [GUI] 0.2.10 stops passing --resident-budget-gib to engine 0.1.56: IQ3_S on a 64 GB Windows PC falls into the mmap + 43 GiB pinned-complement path and the app never marks it startedto [GH-ISSUE #5059] [GUI] 0.2.10 + engine 0.1.56 on 64 GB RAM / 16 GB VRAM Windows laptop: the engine finishes its load but the app never marks IQ3_S as started (no-budget mmap path + 43 GiB page-locked copy)@udqe commented on GitHub (Nov 3, 2026):
Source reading (static audit of app 0.2.10 + old installed copies, main as of 2026-11-03; no repro on our side) reframes the first half of your finding: the missing argument is deliberate at engine 0.1.56, not a lost pass-through.
apps/host/server/native-resources.mjs:93-98 keeps the 0.2.9 rule only for older engines: the new branch (:95-96) pushes the reservation as env
STRATA_RAM_KEEP_GIBinstead, gated byengineKnowsRamKeepagainstRAM_KEEP_MIN_ENGINE = '0.1.56'(:111). The intent is stated in their own test names: tests/resource-ram.test.mjs:26 "the engine decides from the RAM free at its start, not from the total: no budget from the app" (and :69 keeps "old engine: the 0.2.9 budget" for < 0.1.56). The engine side reads it: src/program/generate.cpp:1285 documents--ram-keep-gib/STRATA_RAM_KEEP_GIB. So your two launch lines differ exactly as designed - the interesting half of your report is the second half, which the flag does not explain.What the code does explain: the app decides "started" only from /health within a fixed wait - native-control.mjs:487-490, 300 s deadline, then "did not start". Your log's first attempt does the full ~43 GiB page-locked copy before that verdict, and your live log kept growing while serving (2,466 lines at attach) - a heavy first load against a fixed deadline is the shape I would chase: same build, same config, does the SAME instance report healthy if you just keep the process and let it finish loading (your attachment shows where
session is upappears relative to the app's verdict timestamp)? If yes, the bug is the deadline/slow-first-load, not the RAM budget - worth a title edit so the maintainer does not chase the (intended) argument diff.Two practical notes while it is open: adding any one of
--resident-experts/--mmap-experts/--resident-budget-gib/--ram-keep-gibto your own args disables the app's RAM pass entirely (native-resources.mjs:93!modes.some(f => args.includes(f))), so restoring your 0.2.9 parity is a one-argument edit in the config that survives; and our box (2x RTX 4090, Windows, engine 0.1.56, UD-Q4_K_XL, a multi-tens-of-GB host store) has never failed the started-marking across 154 engine starts, so 0.1.56 + 0.2.10 is not universally broken on Windows - your 16 GB laptop card with 64 GB RAM is a corner worth pinning down with your (excellent, line-numbered) logs.(ai-assisted; citations: udqe static audit of v0.2.10-era main, our own production config as the contrast)
@frankcoffee0-glitch commented on GitHub (Nov 4, 2026):
Thanks - the most useful reply on the thread. I re-read every citation you gave against the v0.2.10 tag:
native-resources.mjs:93-98with theengineKnowsRamKeepbranch at:95-96,RAM_KEEP_MIN_ENGINEat:111,native-control.mjs:487-490andRAM_KEEP_MIN_ENGINE's gate all land exactly. Only!modes.some(f => args.includes(f))sits one line later there (:94; themodesarray is the:93you quote). One thing for you and one against myself.The argument half is the designed rule - agreed, with an ordering detail that decides whether the one-argument fix works. I will stop presenting the dropped flag as the finding. But the removal runs before the guard you cite, and it is keyed on a marker the previous app wrote into the run config, not on who typed the flag:
My
install\strata-iq3_s.jsonhas"ramBudget": trueinui_resource_baseline(0.2.9 wrote it) andargs_writtenbyte-identical toargs- i.e. a budget the app itself put there, which is the shape that file had at 10:37; the file has since been rewritten by the later 0.2.9 starts, so I am describing the state 0.2.9 leaves, not the exact bytes 0.2.10 read. On a 0.2.10 start a budget sitting inargsis treated as app-written and removed at:85before:94ever reads it - which is what my two failing launch lines show: the flag is simply not in them. This is also a correction of my own workaround paragraph: I wrote there that themodesguard leaves an argument inargsalone. That is only true of a flag that survives:85, and--resident-budget-gibin a config 0.2.9 wrote does not. The person-owned channel isuser_args(native-user-args.mjs:4:USER_KEY='user_args',WRITTEN_KEY='args_written'):captureUserArgspicks the person's own arguments out of the config (native-control.mjs:287), they are merged last over everything the app generated (:297), andwriteModelConfigre-merges them on every save (:593). So your "one argument, survives" is right for the box in the app that fillsuser_args, and wrong for the config'sargsfield - worth saying out loud, becauseargsis where it looks natural to put it.Against your deadline reading: there are three timers in this file and only one of them has the wording my PC showed. Your
native-control.mjs:487-490is the post-start handshake, not the load budget: the app accepts a start onresponse.okand nothing else, never reads theloadedfield the engine publishes in that same payload ({"status":"ok","loaded":true,"max_context":131072,"service":"strata"}on my instance port right now), swallows a failed probe incatch{}and retries every 1.2 s; the same 300 s window reappears in the restore path (:578-580). The load itself is gated elsewhere:startWaitFor(:272-277) computessized = gb>40 ? max(300, 600+(gb-40)*8) : 300, which for this model (77.88 GiB across its two shards) comes out near 900 s before:277clamps it tostartWaitCeiling()-START_WAIT_CEILING = 600at:243, which:252-265can raise by reading Control's own files, so I do not know the exact figure on my install; what is certain is that it is not the 300 s of the health loop.:453raises the engine's ownengine_ready_sonly whenstartWait+60beatsmax(900, engine_ready_s). And the only place in 0.2.10 that says Loading took more than five minutes. Check the engine log and free memory. is the restore path (:580) - which has no automatic second try at all, because the retry lives in the start path's catch (:466-480), where the sentence on screen is whateverhumanStartError(:466) makes of the error Control returned. I did not keep the sentence my desktop showed (it was the Chinese UI), and I would like to know which of those two lines it came from, because my symptom was a timeout and the two paths have different timers and different retry behaviour.The second start was mine, not the app's automatic try - so my log contains no observation of that retry at all. I clicked Start again at 10:40:08, 182 s after the first spawn - inside every one of the three windows above, so if the desktop had already told me the first start had failed by then, it cannot have done so by letting a timer expire. That closes one question and opens a useful one: on this PC the one-shot retry at
native-control.mjs:468-479never produced a start - there is no third engine spawn anywhere between 10:40:08 and 12:59:39 - andsaferStart(native-resources.mjs:126) could not have produced my second launch line even if it had run. It returnsnullunless the failure text matches one of its signatures (:131), and every branch that does run changes the command line: the VRAM branch rewrites--vram-reserve-miband may halve--max-context(:136-144); the pin branch caps the locked copy atfloor(ram/2)-8= 23 GiB on this machine (:153-156), where my second attempt was already at 30.86 GiB when it stopped mid-copy; the budget branches put--resident-budget-gibinto the arguments (:160-168) where it is absent. My two launch lines are identical token for token - 29 tokens, zero differences - so the only retry shape that could hide here iswithoutParallel(native-parallel.mjs:154-158, which deletes theparallelfield and a--batch-mtpflag my line does not carry, leaving the engine command unchanged).native-parallel.mjs:148writesparallelinto the config only when the chosen slots are above 1, and the config I hold for this model has noparallelfield at all, so that path may have been off for this model too - but the file was rewritten by the later successful starts, so I cannot say what 0.2.10 had at 10:37. I should say plainly what I cannot see: the app's own sentences for those two starts were never in the engine file -append(native-control.mjs:69) writes them into a 400-entry in-memory buffer, which is what the diagnostics view shows - and the host log covering that session has since rotated out. If that view carries the retry wording for a start like this one, it is a fact I do not have and would like.Your direct question - same build, same config, does the same instance report healthy if you let it finish - is answerable from my files only halfway, and I would rather say which half. Attempt 1 reaches
strata serve: 1496 MiB of VRAM free with everything loaded(line 1182) and the vision tower (1189-1190) but never logs a verify window or a served request; attempt 2 stops mid page-lock (1241). Whether/healthanswered 200 during the page-locking phase is recorded nowhere I still hold: apart from theengine started:line, the engine's own lines carry no timestamps, and the host log for that session has since rotated out. One candidate I can rule out while I am in there, so nobody spends time on it: the picture tower.ggml_cuda_init: failed to initialize CUDA: no CUDA-capable device is detectedfollowed bystrata-vision: on the CPU, 16 threads, no warm-upappears at seven places in this file - in four starts that worked (the blocks beginning at lines 8, 106, 1028 and 2797) and in both failures - and is absent from several other successful starts, so it tracks neither success nor failure. All times quoted here and in the description are this machine's local time (UTC+8); only the desktop log file names are UTC.So here is the measurement I would add, and it does not need 0.2.10 installed: with 0.2.9 pinned to the same engine, poll
/healthon the instance port every second with timestamps through a cold start ofIQ3_S, and paste the raw transcript. That pins down whether the endpoint answers while the pinned copy is being built, with what, and how long after the spawn - which is the one number the deadline discussion is missing. Say the word and I will run it. Say the word about re-installing 0.2.10 as well and I will paste the app's wording verbatim too.Your box is part of the picture rather than a counterexample: 128 GB of RAM gives the no-budget path room to land, and on this PC the same engine and model logged
session is upon all ten starts from 12:59 to 18:59 on 11/03, each of them carrying--resident-budget-gib; the last one served until 20:03 withresident RAM: 40.00 GiB of experts in RAM, a 46 828-token prompt reused in 895 ms and 1 453 tokens at 27 tok/s. The corner is the one you named - 16 GB of VRAM against 64 GB of RAM - where the no-budget path lands on the file source plus a 43 GiB page-locked copy that ends with 9.3 GiB available, against 13 GiB of headroom by design on the budgeted run.I will take your title suggestion. New title:
with the argument difference kept inside the description, where the
:85ordering above explains why the workaround has to go intouser_argsrather thanargs.@udqe commented on GitHub (Nov 4, 2026):
Verified everything new you wrote, in two sources this time: our local
maincheckout (a 11-03 extraction, not a git tree) and the v0.2.10 tag fetched straight from the repo where line numbers mattered. Twelve of your thirteen points land exactly. One does not, and it changes your conclusion in a way that helps you.Your ordering correction is right, and it beats my paragraph.
native-resources.mjs:85readsif(baseline.ramBudget)remove('--resident-budget-gib');in our tree verbatim, and it does run before the:94guard, keyed on theui_resource_baseline.ramBudgetmarker the previous app wrote. So a budget typed into the config'sargsis stripped on a 0.2.10 start regardless of the guard, and the person-owned channel isuser_args- your three citations there check out too:native-user-args.mjs:4(USER_KEY='user_args',WRITTEN_KEY='args_written'), capture atnative-control.mjs:287, merge-last at:297, re-merge on every save at:593. I withdraw the flat form of my "one argument, survives" and adopt yours: right foruser_args, wrong forargs, andargsis exactly where it looks natural to put it. That is a better finding than the one I came to comment on.Confirmed against both sources, substance exact (line pairs = yours vs ours, deltas only cosmetic):
START_WAIT_CEILING=600at:243; the ceiling raiser at:251-266reading Control'smanagement.py/journal.pythenruntime.py'sMAX_START_WAIT(my range starts one line earlier at the function name);startWaitForat:272-277with your formula verbatim -gb>40?Math.max(300,600+(gb-40)*8):300at:276and the clamp throughstartWaitCeiling()at:277; theengine_ready_srule at:453verbatim;humanStartErrorat:466, the one-automatic-try gate at:468-475(retrySafer!==false,!ownEngine, memory-signature-or-drop-parallel, rethrow at:474) and the retry call at:479; the restore path's 300 s window at:577-580; theappendto a 400-entry in-memory buffer at:69- that part answers my own curiosity too: the app's sentences really never reach the engine file; the handshake at:487-491- 300 s, 1.2 s retries,response.okonly,catch{}, and nothing in the loop reads theloadedfield;saferStartatnative-resources.mjs:126-168with the signature gate at:131, the VRAM branch rewriting--vram-reserve-mib(:139) and halving--max-context(:143), the pin branch at:153-156(Math.max(4,Math.floor(ram/2)-8)), the budget branches at:160-168; andnative-parallel.mjs:148/:154-158exactly as you describe -withoutParallelis command-line-invisible, so it is indeed the only retry shape your two identical launch lines cannot exclude.The one that does not hold: the sentence is not unique to the restore path. You wrote that the only place 0.2.10 says "Loading took more than five minutes. Check the engine log and free memory." is
:580. I grepped the tag itself, not just our checkout: the identical sentence is at two live sites -:580as you said, and:493, the end of the start path's handshake loop. The full line at:493is 250 characters - easy to truncate in a viewer, and I made exactly that mistake in our checkout first and had to re-read the whole line - and it reads:if(instance.profile)await control.stop(instance.profile).catch(()=>{});else await stopProcess(proc);instance.status='error';instance.error='Loading took more than five minutes. Check the engine log and free memory.';throw new Error(instance.error);Which upgrades your point rather than weakening it. The sentence your Chinese UI showed cannot distinguish start-handshake from restore by wording at all - they are byte-identical. What distinguishes them is what happens after:
:493throws, so it reaches the outer catch at:466, runshumanStartError, and is eligible for the one safer retry whenever the text matches a signature (so your saferStart analysis of what could or could not have produced your second line still does its work);:580has no retry after it, as you said. And your timeline observation survives untouched: at 182 s no 300 s timer had fired, so whatever your screen showed when you clicked Start the second time was not an expired timer on either path.So your proposed measurement is the right one and I will take the word: please run it - 0.2.9 pinned to the same engine,
/healthon the instance port polled every second with timestamps through a coldIQ3_Sstart, raw transcript pasted. Whether the endpoint answers during the 43 GiB page-locked copy, with what body, and how long after spawn, is the number the whole deadline discussion has been missing; nothing in our 128 GB corner can produce that number because the no-budget path simply lands there. And if you do reinstall 0.2.10 for the verbatim UI sentence, there is a discriminator for the:493-vs-:580question that costs you nothing extra: the diagnostics buffer line "The first start stopped (...). Starting once more: ..." (native-control.mjs:478) appears only after a:493-style stop that reached the retry gate - present alongside that sentence means start path, absent with the same sentence points at restore.One caveat to keep the record clean: our checkout is a
mainextraction from 11-03, not a git tree, so where branch-versus-tag mattered (:493vs:580) I checked the tag over the API and say so here; everything else was checked in both and matched. And my:93/:94slip from the last comment was real - your correction stands.(ai-assisted; verification: udqe, local main@11-03 + v0.2.10 tag via API; contrast box: 2x RTX 4090 Windows, engine 0.1.56, app 0.2.10, 161 starts, no failure of the started-marking)
@frankcoffee0-glitch commented on GitHub (Nov 4, 2026):
I ran a dedicated test session against 0.2.10 today (2026-11-04) on this machine — four starts on 0.2.9 and three on 0.2.10, back to back under an external observer, so everything below is measured rather than inferred. Here is what I could pin down, the claims of mine that I am correcting, and the one thing I still cannot explain.
What I measured today (0.2.9 vs 0.2.10, same machine, same model, same engine)
Machine: Windows, 64 GB RAM / 16 GB VRAM. Model:
iq3_spack. Engine 0.1.56-windows-x86_64-cuda-cuda13 and Control 0.1.55 are identical under both app versions —strata-desktop.exeis the only component that changes (5B953177…B8631→9F17A2BF…CB7DF).I ran 0.2.9 four times and 0.2.10 three times under an external observer that polls
/healthon every port seen during the run (3 s cadence, 2 s timeout, tolerant of a missing/wrong API key) and records process spawns, instance-config writes,*.ready.jsonwrites, engine-log deltas and app-console deltas.1. The failure signature in 0.2.10 is not a startup timeout
What the UI shows, on first start, on 重试/retry, and again after switching to 「全部性能」:
That string exists in exactly one place in the code I can read on this machine — Control's RPC helper:
strata_control/runtime.py:402—def _rpc(name, command, *, timeout: float = 5, …)strata_control/runtime.py:428—raise ProfileError("runtime operation wait expired; inspect runtime status", 8) from Nonestrata_control/runtime.py:455—status()calls_rpc(name, "status")with the default 5 sstrata_control/runtime.py:907 / :965 / :1013-1020—_verify_ready(…)pins the reported state atstarting / verifying_generationuntil the readiness probe returnsI grep the whole Control-side server log (
runtime-app-1.server.log, 2,390,096 B) and the engine log (867,109 B) forwait expiredandverifying_generation: zero hits. The message is produced on the Control side and returned to the app, i.e. the failure is in the app↔Control RPC layer, not in model loading.2. The engine is up; the readiness probe is what is missing
Full trace of a 0.2.10 start (all timestamps are observer-observed; sub-second gaps should be read as "same second"):
STRATA_RAM_KEEP_GIB)python -m serve.server, port 18500)strata.exespawned[strata] experts loaded: 46.84 GiB at 6.56 GiB/s (21 s so far)*.ready.jsonwritten:"api_state": "ready",http://127.0.0.1:18500/healthanswers 200strata verify: capturing the 8-token / 4-token / 1-token window→captured … in 16.9 / 13.3 / 14.9 ms;prompt 53 tokens = 0 reused + 53 read in 680 ms (78.0 tok/s), 1 generated in 41 ms (24.3 tok/s);[strata] done: 1 tokens in 1 s (length, cancel=False)readyand the UI marks IQ3_S as started — 168 s after the engine was ready14:41:25.930 ready:→14:41:27.192 done: 1 tokens).verifying_generation,status()is a 5 s RPC that the UI polls, and the 5 s default expires →ProfileError(…, 8)→ the message above. I am confident about the string's origin and about the state being pinned; the reason the probe is issued ~2 minutes late on 0.2.10 is the open question.3. Retracted / corrected claims from my earlier comments
--ram-keep-gib 8.00as a CLI argument: wrong. It is not inargs_written. What 0.2.10 actually does is set an environment variable in the instance config:env = {"STRATA_RAM_KEEP_GIB":"8"}, and only on the 「为我的工作留出空间」 profile (ui_resource_profile = "work",ui_resource_baseline = {workers:0, reserve:0, ramBudget:false, ramHeadroom:false, ramKeep:true}). The 「全部性能」 profile writes neither the env var nor a budget. 0.2.9 never writesSTRATA_RAM_KEEP_GIBand instead passes--resident-budget-gibon the command line.control/BUNDLE.json, andlast_check.controlin the update state); 0.1.56 is the engine. So the Control source is byte-identical between the two app installs.--resident-budget-gib 43.86 exceeds available RAM …is FileExpertSource's own internally derived budget in a log line, not proof that the app passed a lower budget — confirmed today, where the same line reads--resident-budget-gib 41.43 exceeds available RAM (48.95 GiB minus 8 GiB headroom and a 0.25 GiB margin)on 0.2.10, versus… 40.00 exceeds available RAM (49.36 GiB minus 13 GiB headroom …)on 0.2.9.4. What the
STRATA_RAM_KEEP_GIB=8change does cost (real, but not the cause)With the env var set, the engine first attempts the full expert arena and then gives up:
Free RAM dropped to 7,137 MiB and
/healthfailed 19 consecutive times (15:46:18 → 15:47:15, ~2000 ms each) — the machine genuinely stops answering for ~57 s on this profile, which is worth fixing on its own. Effect on start time:5. Two secondary findings
/health200 (three[strata] stoppinglines, free RAM 7 GiB → 48.68 GiB), rewrote the config, and the replacement serve server bound to port 18501 instead of 18500 while my observer kept hitting the stale 18500 (2000 ms timeouts) and 18501 in alternation. The new start then failed the same way. Nothing adopted the live engine.[strata] the reply reached max tokens while still thinking, so it has no answer: a thinking budget (reasoning_budget_tokens …)for that probe, so the "no answer from a 1-token probe" behaviour is not what separates 0.2.9 from 0.2.10.6. Ruled out, with the evidence that rules it out
/healthunresponsive (551 × 200 after ready) · the 300 s startup deadline (every error appeared within ~1 minute of pressing Start) · port drift on 0.2.9 (all four runs used 18500) · leaked RAM after cancel (free RAM back to 53.8 GiB) · key/auth mismatch (/healthis tolerant of a missing or wrong key; the ready-file key matches) · slow inference (41 ms for the probe) · engine or Control version drift (identical).7. What I would like to ask
_verify_readykeepingstatus()pinned atstarting / verifying_generationwhile the UI's 5 s_rpcdefault expires? Shouldstatus()during that window carry a longer timeout, or return the phase so the UI can wait instead of erroring and tearing down a live engine?host/server/native-control.mjsis 94,161 B in 0.2.9 (byte-identical to thev0.2.9blobs) and 114,462 B in 0.2.10 — I have the 0.2.10 file saved and can diff it againstv0.2.9if that is useful.Next measurement I am planning, if it would help: a stack dump (
py-spy dump) of the Control Python process during theverifying_generationwindow, plus a directly timedstatusRPC against Control while the engine is ready-but-unverified — to distinguish "the probe thread is waiting on a fixed interval" from "the 5 sstatus()calls starve the probe".I can attach the observer TSVs (all seven runs, full
/healthtranscript with per-port latency), the 0.2.10 evidence bundle (2.4 MB Control server log, 0.9 MB engine log, instance JSON, process JSON, ready JSON) and bothnative-control.mjssizes on request — or open a gist if that is easier to ingest.Title note: the current title pins the cause on the mmap + 43 GiB pinned-complement path, but run ③ above reproduces the bug on 「全部性能」 with no mmap and no pinned copy at all (46.84 GiB of experts loaded in 21 s,
/healthanswering 200). I would be fine with retitling to something that describes the observed failure instead:@Niko1221 commented on GitHub (Nov 5, 2026):
Hello frankcoffee0-glitch,
Thank you for the very detailed report. The part we could fix is the late engine: the first-token check shared the load deadline, so an engine that came up late was stopped within a fraction of a second. In Strata 0.2.11 that check has its own 180-second budget, and the app keeps watching a start Control stopped waiting for. The no-budget memory policy you also describe is by design and unchanged. If the app still never marks the model as started on 0.2.11, please send the app and server logs from one attempt.
The Strata project
@frankcoffee0-glitch commented on GitHub (Nov 6, 2026):
Thank you — the fix addresses exactly what this issue was hitting.
I installed 0.2.11 this morning (2026-11-06) on the same machine and the same model, and
qwen3.8-flash-next-iq3_snow comes up as started normally:For comparison, on this machine the four 0.2.9 starts took 42.8–47.0 s from config write to ready, and the three failing 0.2.10 starts took 72.9 s and 83.1 s before the app gave up. The readiness probe that never reached the engine under 0.2.10 (125.9 s late in the one case where it arrived at all) now runs inside the start, immediately followed by the ready marker. It is serving normally afterwards — an 84,230-token prompt read at 1,270 tok/s, 578 tokens generated at 49.5 tok/s, drafts accepted 355/458.
Worth stating explicitly, because it isolates what you changed: this start ran under the same configuration that failed on 0.2.10 — 「leave room for my work」 profile,
ui_resource_profile: "work",env: STRATA_RAM_KEEP_GIB=8,ramKeep: true, no--resident-budget-gib, same engine 0.1.56, and the same drafter line (--draft dflash2 --draft-model … --draft-fallback none --spec 6 --draft-conf 0.7). Only the first-token check has changed, and the start is accepted now. So the 180-second budget for that check is doing the work on its own.One correction to my earlier report, in case anyone tries to reproduce the old failure: the three failing 0.2.10 starts were also using a different drafter from the 0.2.9 control runs, which I had not accounted for. The 0.2.9 runs used
--spec 4 --spec-min-p 0.5 --mtp F:\Strata-data\mtp\rt; the 0.2.10 runs used--draft dflash2 --draft-model F:\Strata-data\dflash2\qwen3.8-flash-next-dflash2.q8.pack --draft-fallback none --mtp-draft-vocab F:\Strata-data\mtp\rt\draft_vocab.bin --spec 6 --draft-conf 0.7, with the engine loggingDFlash2 drafter on …, windows up to 8 tokens; no MTP layer is loaded (--draft-fallback none)— 1026 MiB drafter plus a 212.9 MiB draft head of VRAM on top of--vram-reserve-mib 1536. So my sentence "the engine is identical, only the RAM rule changed" should have read "only the RAM rule and the drafter changed". The successful 0.2.11 start above uses that same DFlash2 line, which is consistent with your diagnosis rather than with the drafter being the mechanism — reporting it so the record is accurate.Thanks for reading the report at its detail level, the retracted claims in my section 3 included, and for the straight answer about the memory policy. On that: 「leave room for my work」 still costs about 40 s of extra start time and leaves the machine unresponsive for roughly 57 s at one point in the load (19 consecutive 2 s
/healthtimeouts, free RAM down to 7.1 GiB) — I will file that as a separate issue rather than bury it here. This one can be closed whenever you are ready.