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++
UPDATE.bat / update.sh: an engine that stayed older than the minimum is said as 'the engine was NOT updated' with one next step, not '[ok] Strata is updated' (#3653); test
Niko1221c02a0b8b0d8f
diff --git a/setup.py b/setup.pyindex d65c16085..e44a9c3bf 100644--- a/setup.py+++ b/setup.py@@ -6707,8 +6707,15 @@ def update_install(have: list, a) -> int:ok(f"{cfg.get('model_name', cfg_path.stem)}: up to date")ver = engine_version(Path(json.loads(have[0].read_text(encoding="utf-8-sig"))["exe"]))say()+ start = "START-HERE.bat" if WIN else "./setup.sh"+ if any(ver) and tuple(ver) < MIN_ENGINE: # #3653: the engine step failed above; "updated" would be untrue+ warn(f"Strata's files are updated, but the engine was NOT: it is still {'.'.join(map(str, ver))} and this Strata wants "+ f"{'.'.join(map(str, MIN_ENGINE))} or newer. The model still starts with the old engine.")+ say(f" Next step: check the internet connection (and that the model window is closed), then run {'UPDATE.bat' if WIN else './update.sh'} again; "+ "the line above this one says why the engine was not fetched.")+ return 0ok("Strata is updated" + (f" (engine {'.'.join(map(str, ver))})" if any(ver) else "") +- ". Start the model with " + ("START-HERE.bat" if WIN else "./setup.sh") + " when you want it.")+ f". Start the model with {start} when you want it.")return 0diff --git a/tools/test_setup_update.py b/tools/test_setup_update.pyindex 12b1026e2..bebac3b32 100644--- a/tools/test_setup_update.py+++ b/tools/test_setup_update.py@@ -54,6 +54,18 @@ class Update(unittest.TestCase):call.assert_not_called()self.assertIn("Strata is updated", out)+ def test_an_engine_that_stayed_old_is_not_called_updated(self): # #3653+ with tempfile.TemporaryDirectory() as d:+ p = self.config(Path(d))+ with mock.patch.object(setup, "engine_version", return_value=(0, 1, 44, 1)):+ rc, pip, eng, dv, start, call, out = self.run_update([p])+ self.assertIn("the engine was NOT", out)+ self.assertIn("Next step:", out)+ self.assertNotIn("[ok] Strata is updated", out)+ with mock.patch.object(setup, "engine_version", return_value=(0, 1, 49, 2)):+ rc, pip, eng, dv, start, call, out = self.run_update([p])+ self.assertIn("Strata is updated (engine 0.1.49.2)", out)+def test_build_keeps_the_compiled_engine_path(self):with tempfile.TemporaryDirectory() as d:p = self.config(Path(d))