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++
launch: DeepSeek runs on this install's own engine package, not the exe path baked into an installed model's config (which can come from another Strata install on the computer or name a package folder an update replaced); tests
Niko12219011bd107a04
diff --git a/strata_cli/launch/runner.py b/strata_cli/launch/runner.pyindex e3f7b92f9..24b7c49e3 100644--- a/strata_cli/launch/runner.py+++ b/strata_cli/launch/runner.py@@ -1219,6 +1219,7 @@ class Runner:base = read_config(base_path)cfg = derive_config(base, self.s, bool_flags=tune_knobs.BOOL_FLAGS,log=str(launch_dir() / f"{self.name}.engine.log"), gpus=cards_for_launch(self.s, self.catalog, base=base))+ self.use_own_dsv41_engine(cfg)out = launch_dir() / f"{self.name}.json"write_private(out, cfg)self.config_path = out@@ -1837,6 +1838,23 @@ class Runner:except Exception: # noqa: BLE001return ""+ def use_own_dsv41_engine(self, cfg: dict) -> None:+ """DeepSeek: the run config's engine is the DeepSeek engine package of THIS install (engine-dsv41/ here), not the path the installed model's+ config was written with: that config can come from another Strata install on this computer (the model is shared between installs) or name+ an older package folder that an update has replaced. Only when this install has no package does the config's own path stay."""+ if cfg.get("arch") != "deepseek41":+ return+ found, _known = self.dsv41_engine_found()+ if found is None:+ return+ old = str(cfg.get("exe") or "")+ if os.path.normcase(os.path.normpath(old)) != os.path.normcase(os.path.normpath(str(found))):+ cfg["exe"] = str(found)+ if old:+ self.notices.append("DeepSeek runs on this install's own engine package, not the one the model's earlier settings named.")+ libs = [d for d in (cfg.get("lib_dirs") or []) if "engine-dsv41" not in str(d)]+ cfg["lib_dirs"] = [*libs, str(Path(found).parent)] # its own folder carries the libraries it needs+def dsv41_engine_found(self) -> tuple[Path | None, bool | None]:"""(strata-dsv41 already installed, or None; whether the engine can be told at all). Looks where setup puts DeepSeek's own engine package(engine-dsv41/ beside the engine, in Strata's own folder, and in the data folder), and at STRATA_DSV41_EXE (a build of your own)."""@@ -1844,7 +1862,7 @@ class Runner:own = (os.environ.get("STRATA_DSV41_EXE") or "").strip()if own:return (Path(own) if Path(own).is_file() else None), True- folders: list[Path] = []+ folders: list[Path] = [Path(self.catalog.root) / dsv41_engine.DIR] # this install's own package firsttry:from strata_control import engine_component as ecrep = ec.status()diff --git a/tests/terminal/test_dsv41_tui_items.py b/tests/terminal/test_dsv41_tui_items.pyindex ab5e584ab..152ad7a37 100644--- a/tests/terminal/test_dsv41_tui_items.py+++ b/tests/terminal/test_dsv41_tui_items.py@@ -117,3 +117,39 @@ class FinalHint(unittest.TestCase):from strata_cli.launch import settings as Ss = S.LaunchSettings(name="Office")self.assertIn('--stop --preset "Office"', "\n".join(cmd.final_hint_lines(s, True)))+++class OwnEngine(unittest.TestCase):+ """The run config of an installed DeepSeek model may name another install's (or an older) engine folder: the launch uses this install's package."""++ def fake(self, own_root, found):+ from strata_cli.launch import runner as R+ f = mock.MagicMock()+ f.notices = []+ f.dsv41_engine_found.return_value = (found, True)+ return R.Runner.use_own_dsv41_engine, f++ def test_a_stale_path_in_the_config_is_replaced_by_this_installs_package(self):+ import tempfile+ with tempfile.TemporaryDirectory() as d:+ own = Path(d) / "mine" / "engine-dsv41" / "0.1.49-x" / "strata-dsv41.exe"+ own.parent.mkdir(parents=True)+ own.write_bytes(b"x")+ fn, f = self.fake(d, own)+ cfg = {"arch": "deepseek41", "exe": str(Path(d) / "other" / "engine-dsv41" / "0.1.48-x" / "strata-dsv41.exe"),+ "lib_dirs": [str(Path(d) / "other" / "engine-dsv41" / "0.1.48-x"), "C:/cuda"]}+ fn(f, cfg)+ self.assertEqual(cfg["exe"], str(own))+ self.assertEqual(cfg["lib_dirs"], ["C:/cuda", str(own.parent)])+ self.assertTrue(f.notices)++ def test_nothing_changes_for_qwen_or_when_this_install_has_no_package(self):+ fn, f = self.fake("x", Path("/p/strata-dsv41.exe"))+ cfg = {"arch": "qwen4exp", "exe": "component:strata-engine", "lib_dirs": ["a"]}+ before = dict(cfg)+ fn(f, cfg)+ self.assertEqual(cfg, before)+ fn2, f2 = self.fake("x", None)+ cfg2 = {"arch": "deepseek41", "exe": "/old/strata-dsv41.exe", "lib_dirs": []}+ fn2(f2, cfg2)+ self.assertEqual(cfg2["exe"], "/old/strata-dsv41.exe")