Skip to content

Qwen3.8-Flash-Next on any consumer hardware: one-click install for Windows / Linux. Strata inference engine, OpenAI/Anthropic API on localhost, optional image input.

C++

Advanced command preview follows the wizard's context, memory format and picture choice (T09 part 1)

Niko1221adc4a6822b0b
diff --git a/strata_cli/launch/app.py b/strata_cli/launch/app.py
index 72f269084..51b0e1463 100644
--- a/strata_cli/launch/app.py
+++ b/strata_cli/launch/app.py
@@ -168,11 +168,11 @@ class Ctx:
return line + " (the engine command is shown once the model is installed)"
try:
from strata_control import tune_knobs
- from strata_cli.launch.runner import cards_for_launch, derive_config
+ from strata_cli.launch.runner import apply_choices, cards_for_launch, derive_config
from serve.server import engine_args
import contextlib
import io
- d = derive_config(cfg, s, bool_flags=tune_knobs.BOOL_FLAGS, gpus=cards_for_launch(s, self.catalog))
+ d = derive_config(apply_choices(cfg, s), s, bool_flags=tune_knobs.BOOL_FLAGS, gpus=cards_for_launch(s, self.catalog))
if s.parallel:
d["parallel"] = s.parallel
with contextlib.redirect_stdout(io.StringIO()):
diff --git a/strata_cli/launch/runner.py b/strata_cli/launch/runner.py
index 3081be1ff..dd5460a90 100644
--- a/strata_cli/launch/runner.py
+++ b/strata_cli/launch/runner.py
@@ -150,6 +150,38 @@ def files_present(cfg: dict) -> list[str]:
return missing
+def apply_choices(cfg: dict, s: S.LaunchSettings) -> dict:
+ """A copy of the installed run config with this launch's context, memory format and picture choice on its engine command, so the command
+ the Advanced step shows is the one these choices run (the installed config only holds the choices it was installed with). Only the command
+ preview and the comparison use this; the start itself goes through setup, which writes the same values."""
+ import copy
+ cfg = copy.deepcopy(cfg)
+ args = [str(a) for a in cfg.get("args") or []]
+
+ def put(flag: str, value: str) -> None:
+ if flag in args:
+ i = args.index(flag)
+ if i + 1 < len(args) and not args[i + 1].startswith("--"):
+ args[i + 1] = value
+ return
+ args.insert(i + 1, value)
+ else:
+ args.extend([flag, value])
+
+ if s.context:
+ put("--max-context", str(int(s.context)))
+ kv = s.kv or ("int8" if (s.context or 32768) > 8192 else "fp16")
+ if "--kv" in args or s.kv:
+ put("--kv", kv)
+ if s.vision == "off":
+ args = [a for a in args if a != "--vision"]
+ cfg.pop("vision", None) # the picture reader's own settings: the server adds --vision for them
+ elif s.vision and "--vision" not in args:
+ args.append("--vision")
+ cfg["args"] = args
+ return cfg
+
+
def apply_cards(cfg: dict, gpus: list[int] | None) -> None:
"""The graphics cards of THIS launch go into its run config, whatever card the model was installed with (no reinstall): one card is a number,
several are a list with the automatic layer split. None: the installed config's own choice stays."""