[GH-ISSUE #3959] [TUI] strata launch --set dspark=on starts strata-dsv41 with a bare --dspark: "--dspark needs a value" #1698

Closed
opened 2026-11-04 01:53:16 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @Guilzx9r on GitHub (Oct 24, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/3959

Area

[TUI] (strata launch)

Desktop app, Terminal or source?

Terminal (the strata command)

What happened

strata launch ... --set dspark=on on DeepSeek-V4.1-Flash fails to start the engine:

strata: The engine stopped while it was loading the model (exit code 1): --dspark needs a value. Run it again; if it repeats, report the log.

The plan is correct (--plan --output json shows settings.extra = {"--dspark": "on"}), but the engine is started with --dspark and no value. strata-dsv41.exe --dspark on its own prints --dspark needs a value (exit code 2), so the engine seems fine and the value is lost between --set and the engine's argv.

I also found no way to force DSpark on or off from strata launch at all: --dspark on is not a launch option (see below), and the 0.2.4 release notes mention --dspark on.

Smallest steps or command that reproduce it

Observed, 3 times (dspark=on; dspark=on + dspark-conf=0.7; dspark=on + dspark-block=2 + dspark-conf=0.8), same error each time:

strata launch --model-path <folder with the IST-DAS GGUF files> --model ist-das-2.00bpw --family deepseek41 --context 256k --vision off --tune skip --access local --port 8090 --no-tui --yes --set dspark=on

Observed with --plan (nothing started):

strata launch --plan --output json --model-path <folder> --model ist-das-2.25bpw --family deepseek41 --context 256k --vision off --tune skip --port 8099 --dspark on
-> strata: '--dspark' is not a strata launch option. Did you mean '--dsv41-package'? (`--dspark=on` is refused the same way)
strata launch --plan ... --set dspark on
-> strata: 'on' was not expected here.
strata launch --plan --output json ... --set dspark=on
-> ok, settings.extra = {"--dspark": "on"}

Engine run by hand (no model, only the argument parser):

strata-dsv41.exe --dspark          -> "--dspark needs a value" (exit code 2)
strata-dsv41.exe --dspark-conf     -> "--dspark-conf needs a value"

Reproduction status

Reproduced locally for the failure. The cause below is unconfirmed static analysis (I read the code, I did not attach a debugger).

Suspected path (not run)

In strata_cli/launch/settings.py, as_argv_changes treats a value in ("on", "true", "yes", "") as "flag present" for any --flag (args[key] = True), and strata_control/tune_knobs.py::apply_to_argv then appends the flag without a value. --dspark is not in BOOL_FLAGS, but the low in (...) branch does not check that.

Also from reading the code, not run: --set dspark=off goes to args[key] = None, which removes the flag from the argv instead of writing --dspark off, so the engine would fall back to whatever it does with no --dspark rather than an explicit off.

A possible direction: pass the literal on/off through when the flag is not in BOOL_FLAGS (or when it is listed in DSV41_FLAGS with a value).

Strata version

Strata 0.2.4.1 (Terminal, build 0.1.49.1) · DeepSeek engine strata-dsv41 0.1.49 (cuda13) · update feed sequence 111

Graphics card, memory and system

RTX 5090 32 GB · 128 GB RAM (Ryzen 7 7800X3D) · Windows 11

Model, size and settings

DeepSeek-V4.1-Flash IST-DAS 2.00 bpw and 2.25 bpw, local files with --model-path, 256K context, --set reserve-mib=8192 --set ssd-cache=96 also set.

Notes

  • The Strata install is unmodified; I did not patch anything. Strata's own Tuning step is the only DSpark measurement I have so far on this PC (4.5 tok/s with the drafter against 7.9 without, before I changed the VRAM reserve and RAM store), so I would like a way to test DSpark on/off with identical settings.
  • Workaround I am trying, not yet verified on the real engine: strata serve --profile with a copy of the launch config where args contains "--dspark", "on".
  • This report was prepared with help from an AI assistant (Claude Code); the commands and outputs above are the ones I ran on my PC.
Originally created by @Guilzx9r on GitHub (Oct 24, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/3959 ### Area [TUI] (strata launch) ### Desktop app, Terminal or source? Terminal (the `strata` command) ### What happened `strata launch ... --set dspark=on` on DeepSeek-V4.1-Flash fails to start the engine: ``` strata: The engine stopped while it was loading the model (exit code 1): --dspark needs a value. Run it again; if it repeats, report the log. ``` The plan is correct (`--plan --output json` shows `settings.extra = {"--dspark": "on"}`), but the engine is started with `--dspark` and no value. `strata-dsv41.exe --dspark` on its own prints `--dspark needs a value` (exit code 2), so the engine seems fine and the value is lost between `--set` and the engine's argv. I also found no way to force DSpark on or off from `strata launch` at all: `--dspark on` is not a launch option (see below), and the 0.2.4 release notes mention `--dspark on`. ### Smallest steps or command that reproduce it Observed, 3 times (`dspark=on`; `dspark=on` + `dspark-conf=0.7`; `dspark=on` + `dspark-block=2` + `dspark-conf=0.8`), same error each time: ``` strata launch --model-path <folder with the IST-DAS GGUF files> --model ist-das-2.00bpw --family deepseek41 --context 256k --vision off --tune skip --access local --port 8090 --no-tui --yes --set dspark=on ``` Observed with `--plan` (nothing started): ``` strata launch --plan --output json --model-path <folder> --model ist-das-2.25bpw --family deepseek41 --context 256k --vision off --tune skip --port 8099 --dspark on -> strata: '--dspark' is not a strata launch option. Did you mean '--dsv41-package'? (`--dspark=on` is refused the same way) strata launch --plan ... --set dspark on -> strata: 'on' was not expected here. strata launch --plan --output json ... --set dspark=on -> ok, settings.extra = {"--dspark": "on"} ``` Engine run by hand (no model, only the argument parser): ``` strata-dsv41.exe --dspark -> "--dspark needs a value" (exit code 2) strata-dsv41.exe --dspark-conf -> "--dspark-conf needs a value" ``` ### Reproduction status Reproduced locally for the failure. The cause below is **unconfirmed static analysis** (I read the code, I did not attach a debugger). ### Suspected path (not run) In `strata_cli/launch/settings.py`, `as_argv_changes` treats a value in `("on", "true", "yes", "")` as "flag present" for any `--flag` (`args[key] = True`), and `strata_control/tune_knobs.py::apply_to_argv` then appends the flag without a value. `--dspark` is not in `BOOL_FLAGS`, but the `low in (...)` branch does not check that. Also from reading the code, not run: `--set dspark=off` goes to `args[key] = None`, which removes the flag from the argv instead of writing `--dspark off`, so the engine would fall back to whatever it does with no `--dspark` rather than an explicit off. A possible direction: pass the literal `on`/`off` through when the flag is not in `BOOL_FLAGS` (or when it is listed in `DSV41_FLAGS` with a value). ### Strata version Strata 0.2.4.1 (Terminal, build 0.1.49.1) · DeepSeek engine strata-dsv41 0.1.49 (cuda13) · update feed sequence 111 ### Graphics card, memory and system RTX 5090 32 GB · 128 GB RAM (Ryzen 7 7800X3D) · Windows 11 ### Model, size and settings DeepSeek-V4.1-Flash IST-DAS 2.00 bpw and 2.25 bpw, local files with `--model-path`, 256K context, `--set reserve-mib=8192 --set ssd-cache=96` also set. ### Notes - The Strata install is unmodified; I did not patch anything. Strata's own Tuning step is the only DSpark measurement I have so far on this PC (4.5 tok/s with the drafter against 7.9 without, before I changed the VRAM reserve and RAM store), so I would like a way to test DSpark on/off with identical settings. - Workaround I am trying, **not yet verified on the real engine**: `strata serve --profile` with a copy of the launch config where `args` contains `"--dspark", "on"`. - This report was prepared with help from an AI assistant (Claude Code); the commands and outputs above are the ones I ran on my PC.
Author
Owner

@Niko1221 commented on GitHub (Oct 27, 2026):

Thank you, your reading of the code is right. Fixed in 0.2.7: Options that take a value (like --dspark on|off|auto) pass the word through, and there is a --dspark option on strata launch.

Release: https://github.com/Niko1221/Strata/releases/tag/v0.2.7

<!-- gh-comment-id:6445845828 --> @Niko1221 commented on GitHub (Oct 27, 2026): Thank you, your reading of the code is right. Fixed in 0.2.7: Options that take a value (like --dspark on|off|auto) pass the word through, and there is a --dspark option on strata launch. Release: https://github.com/Niko1221/Strata/releases/tag/v0.2.7
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#1698
No description provided.