mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #4359] [Engine] DeepSeek V4.1-Flash IST-DAS 2.00bpw won't start on Windows: launcher leaves a stray "off" after "--eos 1" (strata-dsv41 0.1.52, exit code 2) #1927
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#1927
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 @Slonko65 on GitHub (Oct 27, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4359
Problem: DeepSeek V4.1-Flash IST-DAS 2.00bpw does not start on Windows. The engine exits immediately with "unknown option off" and exit code 2. Retrying gives the same result.
Environment:
Reproduce:
Expected: The engine starts with a valid command line and loads the pack.
Actual: server_exited (exit code 1): EngineDied: the engine exited before it was ready; the engine process ended: exit code 2. The command line in the log contains "--eos 1 off", and the engine answers "unknown option off", then prints its usage text (which lists "[--vision on|off]").
Evidence (from strata-deepseek-v4.1-flash-ist-das-2.00bpw.log):
[strata] 2026-10-27 17:48:38 engine started: ...\engine-dsv41\0.1.52-windows-x86_64-cuda-cuda13\strata-dsv41.exe --serve --pack C:\Users<user>\Documents\Strata\packs\deepseek-v4.1-flash-ist-das-2.00bpw --max-context 8192 --eos 1 off --dspark auto --dspark-conf 0.65 --tp 2 --layer-split auto
unknown option off
maya-ds4 --pack /maya-ds4 [--gpus 0,1,...] [--max-context N] [--reserve-mib N] ... [--vision on|off] [--mmap-experts on|off|auto]
(second attempt at 17:53:14: identical)
Reproduction status: reproduced locally on Windows. The same failure was reported on Linux (NixOS) in the first comment below, where the cause was traced to the launcher dropping the "--vision" flag and leaving its value "off".
@github-actions[bot] commented on GitHub (Oct 27, 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
@beber75 commented on GitHub (Oct 27, 2026):
Same problem on linux (I'm on Nixos)
Here is the report pproduced by strata IQ3_S:
Strata 0.2.7 — patched launcher bug (2026-10-27, applied by the assistant)
What was wrong
The desktop's own launcher (JavaScript, not the Python command line) dropped the
"--vision" flag from the engine command line but left its value "off" behind:
The DeepSeek v4.1 engines take "--vision on|off" (a flag WITH a value); the other
engines take a bare "--vision". The old code only knew the bare form, so every
deepseek-v4.1 pack failed at boot when "read pictures" was off (the default).
Seen for all three packs in ~/.config/strata/presets/history.jsonl (FAIL_BOOT,
signature contains "--eos 1 off").
Where the fix is
File: ~/.cache/appimage-run/701a0325729bbe75eb24c77aee1e45b8fc2e46a74ef1d25475cfef2a3ef1b281/usr/lib/Strata/host/server/native-control.mjs
Line: 246 (inside buildConfig)
New behaviour: "--vision " keeps the flag and forces the value to "off";
a bare "--vision" is still removed, as before.
Untouched backup: the same file with ".orig-bak" added.
To undo
cp .orig-bak
Caveat
That folder is the AppImage's extraction cache, reused across starts but deleted
when Strata is updated or the cache is cleared. After an update the patch must be
applied again (or fixed upstream in the AppImage itself).
Still to watch
After the launcher fix the engine starts with correct arguments but needs free GPU
memory: the last test hit "cudaMalloc 27 MiB on CUDA0 failed" because the RX 9070
(16 GB) was already full from the other loaded model. Unload that model first.
@github-actions[bot] commented on GitHub (Oct 27, 2026):
Thanks, this follows the format now.
@darrenaddy commented on GitHub (Oct 28, 2026):
Same issue (Windows, RTX 3090Ti, 128GB RAM)
[Engine] Control 0.1.53 sends flags that engine 0.1.52 rejects (--vram-reserve-mib, --pool-workers); updater says up to date
Environment
Problem
Loading fails with
EngineDied: the engine exited before it was ready(engine exit code 2). Control passes options the engine doesn't recognize; the engine prints its usage text and exits.1.
--vram-reserve-mib"GPU memory for other apps (MiB)" = 512 is labeled "Applied as --vram-reserve-mib". Engine 0.1.52 rejects it:
The engine's usage text lists
--reserve-mib N. Launching the engine by hand with--reserve-mib 512and otherwise identical arguments loads the model and reaches READY.2.
--pool-workers 20After clearing the reserve field, the next launch failed with:
The flag is stored in the per-model settings file as
"user_args": ["--pool-workers", "20"]and is copied intoargs/args_writtenon every launch, so editingargsalone doesn't stick. It first appeared between the 08:09 and 08:18 launches; [I didn't knowingly add it / I added it via ___]. The file also has"ui_resource_profile": "work", which may be the source.--pool-workersis not in the engine's usage list.3. Updater doesn't see a mismatch
Engine → Update component → Check for Updates reports "Up to date" for 0.1.52, so updating the app moved Control to 0.1.53 but left an engine that rejects its flags.
Workaround
Clear "GPU memory for other apps", and remove
--pool-workers 20fromuser_args,args, andargs_writteninAppData\Local\Strata\install\strata-deepseek-v4.1-flash-ist-das-2.00bpw.json.Expected
Control should check the engine version before passing newer flags (or translate
--vram-reserve-mib→--reserve-mib), or the updater should install an engine that matches Control.Attached: engine log, app-1.server.log
strata-deepseek-v4.1-flash-ist-das-2.00bpw.log
app-1.server.log
@Niko1221 commented on GitHub (Oct 29, 2026):
Thank you. Same cause as #4358. Cause: with picture reading off, the app removed
--visionfrom the DeepSeek engine's arguments but left its value, so the engine got--eos 1 offand stopped withunknown option off. Fixed on our side; the fix ships in the next update (0.2.8). For DeepSeek,--vision on|offis the engine's own pair, so the app now keeps it whole; a test starts a DeepSeek load with picture reading off and checks that no word is left over.@rovnerivan commented on GitHub (Oct 29, 2026):
Expanded Windows reproduction: DeepSeek V4.1 launch failures in Strata Desktop 0.2.7 and Terminal 0.2.7 / 0.2.5
Thank you for building and maintaining Strata and for making these large DeepSeek models usable locally. I appreciate the time spent on the engines, launcher, model preparation and Windows support. I am adding this detailed report to the existing issues rather than opening duplicate reports for symptoms that appear to overlap with #4358 and #4359.
This report expands the reproduction across both Strata Desktop and Strata Terminal, including the original 0.2.7 installation, an isolated Terminal 0.2.4.2 installation, and an isolated Terminal 0.2.5 installation. The main issue is not that the model files are missing: the recurring startup failure is that the generated engine command line contains a bare
offtoken, which the DeepSeek engine rejects. A local workaround allowed the engine to start in Terminal 0.2.5, but it did not fix the performance problem described separately in #4219.1. Hardware and common environment
E:= WD Green 2.5-inch 2 TB SATA SSD (not NVMe).strata-dsv41.exe,0.1.52-windows-x86_64-cuda-cuda13.http://127.0.0.1:8080/v1.The 32 GB RAM and SATA SSD are below the memory/storage conditions used in some published benchmarks. I understand this can substantially reduce performance. The launcher failures below happen earlier than inference, however: the engine exits while parsing command-line arguments.
2. Models and paths used
1.75 bpw
E:\models\models\deepseek-v4.1-flash-IST-DAS-1.75bpwE:\models\packs\deepseek-v4.1-flash-ist-das-1.75bpw2.00 bpw
E:\packs\deepseek-v4.1-flash-ist-das-2.00bpwThe two 1.75 paths are different directories. Terminal explicitly reported that it would use the folder supplied on the command line because the same model was already registered elsewhere. It then checked the local files and reported
120.7 of 239.3 GB (50%); it completed preparation without requiring a network download. This progress display was local file checking/preparation, not evidence that it was downloading another 239 GB copy.3. Strata Desktop 0.2.7 / build 0.1.53: UI launch bug
What the UI reported
When starting DeepSeek V4.1-Flash IST-DAS with pictures disabled, Desktop displayed a startup error of this form:
On another attempt, Desktop displayed wording similar to:
This was confusing because selecting Load had already begun the preparation process. The UI then scanned the existing local files, displayed the 50% / 120.7-of-239.3-GB progress, reported that the model was ready, and only failed when the engine was started. The local files were present and the later Terminal
--planexplicitly confirmedNothing to download: your model files are used where they are.Exact malformed engine commands observed
The logs for the 1.75 and 2.00 configurations showed multiple variants of a command containing an extra
off:The engine consistently printed:
and exited with code 2 before loading the model weights.
One config JSON contained the intended pair
--vision,off. Removing that pair from the saved model configuration allowed a subsequent Desktop engine start, with a generated command line that no longer contained the invalid standaloneoff. This was a diagnostic workaround, not a satisfactory permanent fix: omitting the explicit vision setting could also cause the UI to attempt to obtain the picture-reader component again. The intended behavior is to disable the picture reader while passing a valid argument list to the DeepSeek engine.The Desktop symptom closely matches the existing report #4358 — DeepSeek-V4.1 launch fails because Strata Desktop drops the
--visionflag, and the standaloneunknown option offfailure in #4359.4. Strata Terminal 0.2.7 / build 0.1.53: CLI parsing and launch behavior
The normal
stratacommand resolved to:4.1 CLI parsing issue with
--dspark autoThe following Terminal 0.2.7 command was used to inspect a launch plan (paths shown exactly as tested):
The CLI rejected the direct option:
Removing the direct
--dspark autoand using the CLI-supported--set "dspark=auto"form (or leaving DSpark at its default) allowed the plan to run. The plan correctly reported:Thus the model path, local files, requested picture-off setting and engine package were recognized by Terminal's planning stage. The CLI option syntax differs from the engine's syntax:
--dspark autowas not accepted as a direct Terminal argument in this build, while the plan summarized DSpark asautoafter using the supported configuration path.4.2 Runtime still generated an orphan
offAfter the plan succeeded, the actual Terminal 0.2.7 launch/preparation path still failed to start the engine. The runtime reported that it was preparing the model from local files and checked 120.7 of 239.3 GB, then completed preparation and saved the settings. At engine startup it returned the same
unknown option offerror. An observed log line was:This is important because it happened in Terminal as well as Desktop. The offending
offwas no longer in the displayed Terminal plan as a picture setting, but it was present in the final engine command. The Terminal failure was therefore not just a GUI display problem.4.3 Runtime profile and repeated launch attempts
When attempting to launch again with the same preset while an earlier managed runtime was still recorded, Terminal returned:
At one point a separate API test returned
curl: (7) Failed to connect ... port 8080, and process/port inspection showed whether the engine and listener were actually still alive. This was a lifecycle/managed-runtime state issue during repeated attempts; it should not be confused with the initialunknown option offargument-parsing error.5. Terminal 0.2.4.2 / build 0.1.49.2: older CLI cannot accept the newer launch options
Because the current 0.2.7 CLI and Desktop behavior were problematic, I installed Terminal 0.2.4.2 side-by-side in an isolated data directory (
%LOCALAPPDATA%\Strata0242-test). The installation succeeded after using the release tagv0.2.4and temporarily moving/restoring the local update-feed state file; the signed release feed and package checksum verified successfully.Version output:
The plan command failed at CLI parsing:
I did not continue this test as a performance comparison because this release's CLI syntax predates the
--speed faster/ direct DSpark workflow I was trying to validate. This does not demonstrate that the older engine is inherently slower; it demonstrates that the requested command was not accepted by that version's CLI.6. Terminal 0.2.5 / build 0.1.50: isolated install, existing engine 0.1.52, local workaround
I installed Terminal 0.2.5 side-by-side in
%LOCALAPPDATA%\Strata025-test, without changing the normalstratacommand in PATH. Version output:The existing DeepSeek engine 0.1.52 was selected explicitly using
STRATA_DSV41_EXEpointing to:The initial 0.2.5 launch still produced
--dspark auto offandunknown option off. I first attempted a local patch tostrata_cli\launch\runner.py; that did not fix the final engine command. I then patched the isolated installation'sserve\server.pyto remove the strayoffwhen the DeepSeek launch args contained--dspark auto offand the vision flag was absent. This was a local experimental workaround, not an official fix; I am including it to document what finally allowed the engine to start.After that patch, the generated command line no longer contained the orphan token and the engine loaded. The log showed:
The engine continued through initialization and printed
maya ds4 serve: GEN ..., then processed API requests. This establishes that the local pack and engine can load once the malformed argument is removed. It does not prove that the patch is the correct upstream fix.The model was sometimes prepared from a path under
E:\models\models\..., while Desktop config/logs referred toE:\models\packs\.... Terminal indicated the files were already local and used the path explicitly supplied by the user. The repeated 50% display was a local checking/preparation step; it completed and said the model was ready. Please advise how Terminal should reconcile an existing model registered under one path with the same files supplied under another path, without appearing to require another model download.7. Final command that produced a valid Terminal 0.2.5 plan
The following plan completed successfully and said that no model download was required. This is the command before removing
--planto attempt a real launch:The actual successful launch used the same options without
--plan, with--tune skip --no-tui, after the local workaround described above. No full model download was required.8. Request to maintainers
Could you please help with the following?
offtoken being detached from--vision offin Desktop 0.2.7 and Terminal 0.2.7 / 0.2.5. Is there a single argument normalization step shared by both paths, or are these separate bugs?--vision offengine argument and avoiding any attempt to download the picture-reader component..exevia--dsv41-packageand instead useSTRATA_DSV41_EXE.120.7 of 239.3 GB, 50%) is expected when the local model is already present under another path, and how to avoid misleading download/install messaging.mmap-experts,ssd-cache,expert-profile, prefill chunk size, CPU threads, KV Q4 and DSpark for this 24 GB GPU / 32 GB RAM / SATA SSD setup.For context, after the local Terminal 0.2.5 workaround, simple API requests returned correct answers, but cold-prefill remained extraordinarily slow (0.6–0.7 tokens/s on 61–71 fresh prompt tokens; decode was approximately 1.4–2.5 tokens/s in the corresponding requests). I have described the performance issue with the measurements and limitations in the related prefill issue #4219, rather than conflating it with this argument-parsing bug. I understand that my 32 GB RAM and SATA SSD are below the conditions of some published benchmarks; I would appreciate guidance on whether the magnitude of the latency is expected or indicates an additional configuration/Windows issue.
I have not obtained a clean full-response benchmark for the 2.00 bpw pack with the final Terminal 0.2.5 workaround. Some earlier 2.00 bpw tests were truncated by a small
max_tokensvalue, so I do not want to present those as a comparable performance result.Thank you again for the work on Strata and on making these large models accessible. I am grateful for any clarification, recommended command line, fixed build, or diagnostic you would like me to try.
@Niko1221 commented on GitHub (Oct 29, 2026):
Thanks again for the report and the workaround. This is fixed in 0.2.8: with picture reading off, the app no longer leaves a stray word in the DeepSeek engine's arguments, so the model loads. Update the app and run
strata update. Closing; open it again if it still stops.