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: a tuning that found the standard settings already fastest counts as tuned (no 20-minute measurement at every start)
Niko1221632b4ed28310
diff --git a/strata_cli/launch/cmd.py b/strata_cli/launch/cmd.pyindex d3c8c5b1d..fc4d54e96 100644--- a/strata_cli/launch/cmd.py+++ b/strata_cli/launch/cmd.py@@ -500,7 +500,7 @@ def run_launch(a: argparse.Namespace) -> int:sm = store.summary(i)_say(f"{i.name:<28} {sm['model']:<14} {S.context_label(i.context):<6} "f"{(str(i.parallel) + ' request' + ('s' if i.parallel != 1 else '')) if i.parallel else 'fit to card':<14} "- f"{('tuned ' + (i.tuned_at or '')) if i.tuned_preset else 'not tuned':<16} {i.last_used or ''}")+ f"{('tuned ' + (i.tuned_at or '')) if i.is_tuned else 'not tuned':<16} {i.last_used or ''}")return 0if a.delete_preset:store.delete(a.delete_preset)diff --git a/strata_cli/launch/runner.py b/strata_cli/launch/runner.pyindex 3a8b70716..cb41fc313 100644--- a/strata_cli/launch/runner.py+++ b/strata_cli/launch/runner.py@@ -766,6 +766,9 @@ class Runner:returnexcept presets.PresetError:pass+ elif s.tuned_at: # measured before: the standard settings were already the fastest, nothing was saved+ self.emit("tune", f"Already tuned on {s.tuned_at}: this computer runs best with the standard settings. Nothing to do.", 100)+ returnmode = "thorough" if s.tune == "thorough" else "quick"status_file = launch_dir() / f"{self.name}.tune.json"try:diff --git a/strata_cli/launch/screens.py b/strata_cli/launch/screens.pyindex 5d7bf172e..05b49c63f 100644--- a/strata_cli/launch/screens.py+++ b/strata_cli/launch/screens.py@@ -241,9 +241,9 @@ class StartScreen(Base):for p in self.presets:sm = store.summary(p)req = (f"{p.parallel} request" + ("s" if p.parallel != 1 else "")) if p.parallel else "fit to card"- tuned = f"tuned {p.tuned_at[5:]}" if p.tuned_preset and p.tuned_at else "not tuned"+ tuned = f"tuned {p.tuned_at[5:]}" if p.is_tuned and p.tuned_at else "not tuned"used = f"last used {p.last_used[5:10]}" if p.last_used else "not used yet"- items.append(Item([p.name or "?", str(sm["model"]), S.context_label(p.context), req, Cell(tuned, MUTE if not p.tuned_preset else ""),+ items.append(Item([p.name or "?", str(sm["model"]), S.context_label(p.context), req, Cell(tuned, MUTE if not p.is_tuned else ""),Cell(used, MUTE)], key=("preset", p.name)))items.append(Item([Cell("Set up from the beginning", "")], key=("new", None)))items.append(Item([Cell("Use model files I already have", "")], key=("own", None)))@@ -919,11 +919,11 @@ class TuningScreen(Base):def on_mount(self) -> None:s = self.ctx.settings- first = self.ctx.fresh_setup and not s.tuned_preset+ first = self.ctx.fresh_setup and not s.is_tuneditems = [Item(["Quick", "about 20 minutes", "checks the most likely gains" + ("; suggested the first time" if first else "")], key="quick"),Item(["Thorough", "up to 2 hours", "tries more settings, measures each one several times"], key="thorough"),Item(["Skip", "", "use the default settings (already good on most computers)"], key="skip")]- if not self.ctx.tune_chosen and s.tune == "skip" and not s.tuned_preset and self.ctx.fresh_setup:+ if not self.ctx.tune_chosen and s.tune == "skip" and not s.is_tuned and self.ctx.fresh_setup:s.tune = "quick"self.query_one(Menu).set_items(items, {"quick": 0, "thorough": 1, "skip": 2}.get(s.tune, 0))self.paint()diff --git a/strata_cli/launch/settings.py b/strata_cli/launch/settings.pyindex df27ce329..8079fb16c 100644--- a/strata_cli/launch/settings.py+++ b/strata_cli/launch/settings.py@@ -100,6 +100,12 @@ class LaunchSettings:last_used: str | None = Nonecreated: str | None = None+ @property+ def is_tuned(self) -> bool:+ """Tuning was done for this preset: it saved faster settings (tuned_preset), or it measured that the standard settings are already the+ fastest (only tuned_at is set). Either way the next start must not tune again."""+ return bool(self.tuned_preset or self.tuned_at)+def to_dict(self, *, with_key: bool = True) -> dict[str, Any]:d = {"schema": SCHEMA, **asdict(self)}if not with_key:diff --git a/strata_cli/launch/store.py b/strata_cli/launch/store.pyindex 21b432984..f852867f7 100644--- a/strata_cli/launch/store.py+++ b/strata_cli/launch/store.py@@ -138,5 +138,5 @@ def touch_used(name: str) -> None:def summary(s: LaunchSettings) -> dict[str, Any]:"""The columns of the start screen."""return {"name": s.name, "model": s.model or ("own files" if s.model_path else "-"),- "context": s.context, "parallel": s.parallel, "tuned": bool(s.tuned_preset), "tuned_at": s.tuned_at,+ "context": s.context, "parallel": s.parallel, "tuned": s.is_tuned, "tuned_at": s.tuned_at,"last_used": s.last_used, "access": s.access}diff --git a/tests/terminal/test_launch.py b/tests/terminal/test_launch.pyindex 78c718fed..6b722e36b 100644--- a/tests/terminal/test_launch.py+++ b/tests/terminal/test_launch.py@@ -609,6 +609,20 @@ class AdoptRules(unittest.TestCase):r.check_pictures(path)self.assertEqual(seen, [])+ def test_tuning_that_found_the_standard_settings_fastest_is_not_run_again(self):+ # "already fastest" saves no tuning preset, only tuned_at: the next start (a container restart with TUNE=quick) must not measure for 20 minutes again+ with Home():+ seen = []+ s = S.LaunchSettings(family="qwen", model="IQ3_XXS", context=32768, tune="quick", tuned_at="2026-10-20")+ self.assertTrue(s.is_tuned)+ r = Runner(s, catalog=catalog(HW_12), emit=seen.append)+ with mock.patch.object(r, "_spawn", side_effect=AssertionError("tuned again")):+ r.tune()+ self.assertTrue(any("Already tuned on 2026-10-20" in e.text for e in seen))+ self.assertFalse(S.LaunchSettings(tune="quick").is_tuned)+ store.save(s, "Fastest")+ self.assertTrue(store.summary(store.load("Fastest"))["tuned"])+def test_runner_adopts_when_setup_cannot_handle_the_card(self):with Home() as h:d, m = self.files(h.base)