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++
No engine for this PC: say it plainly (no graphics card Strata can use, or no engine for the card), no feed address as the next step
Niko1221aa44b9ce537b
diff --git a/docs/TROUBLESHOOTING.md b/docs/TROUBLESHOOTING.mdindex 38f647852..df94d8bb0 100644--- a/docs/TROUBLESHOOTING.md+++ b/docs/TROUBLESHOOTING.md@@ -10,8 +10,9 @@ The engine is the part that talks to your graphics card. Strata only warns and smodel, and the model files stay on your computer, but the model may not run until the right engine is installed. The usualreasons are that no engine is installed yet and the update source has none for your card, that the engine found is foranother make of card, or that the graphics driver is too old. In the app, open Settings, then Engine. In the Terminal, the-message names the next step: run `strata update --feed <address>` with the update source you were given (or ask whoever sent-you Strata for the engine that matches your card), then run `strata launch` again.+message names the next step: run `strata update` and start again. If your computer has no NVIDIA or AMD graphics card+(only an Intel UHD or Iris chip, an AMD processor graphics chip, a virtual machine, or Windows on ARM), Strata says so and+there is nothing to install: it needs a computer that has one. The model files stay where they are.**"This model needs a newer engine." (the app), or a button called Update engine.**Some models need an engine newer than the one installed: Gyro needs 0.1.45.1 or newer, NVFP4 needs 0.1.44, and NVFP4 (NVIDIA,diff --git a/strata_cli/launch/runner.py b/strata_cli/launch/runner.pyindex 3a8b70716..dfb27a4b5 100644--- a/strata_cli/launch/runner.py+++ b/strata_cli/launch/runner.py@@ -69,24 +69,45 @@ class Result:final_text: str = "" # what to tell the person when serving is False-NO_ENGINE_NEXT = ("Get the engine that matches this computer's graphics card (from whoever sent you Strata, or with `strata update --feed <address>`), "- "then run `strata launch` again. Nothing was downloaded, and any model files you already have are kept.")+NO_ENGINE_NEXT = ("Update Strata (`strata update`) and run `strata launch` again. Nothing was downloaded, and any model files you already have are kept.")STAGES = ("engine", "model", "config", "tune", "start", "access")-NO_ENGINE_STEP = ("run `strata update --feed <address>` with the update source you were given, or ask whoever sent you Strata for the engine "- "that matches this computer's graphics card, then run `strata launch` again")+NO_ENGINE_STEP = ("run `strata update` to get the newest engines and start again; if this stays, your graphics card is not one Strata supports yet, "+ "and the model files stay on this computer for when it is")++#: no graphics card Strata can use at all (an Intel UHD/Iris only, an AMD APU-only laptop, a virtual machine, Windows on ARM)+NO_GPU_PREFIX = "no graphics card that Strata can use was found"+NO_GPU_STEP = ("Strata needs an NVIDIA or AMD graphics card, an Intel Arc card or an Apple Silicon Mac, and there is no CPU-only engine for this "+ "computer. Run Strata on a computer that has one; the model files stay here")+++def no_gpu_words(names: list[str] | None = None) -> str:+ """The plain reason when nothing Strata can run on is in this computer, naming what is there when it is known."""+ names = [n for n in (names or []) if n]+ if names:+ return f"{NO_GPU_PREFIX}; this computer has {', '.join(names[:3])}"+ return NO_GPU_PREFIX+++def _step_for(reason: str) -> str:+ return NO_GPU_STEP if reason.startswith(NO_GPU_PREFIX) else NO_ENGINE_STEPdef no_engine_warning(reason: str) -> str:"""The plain warning shown before a model is downloaded on a computer with no engine to run it."""reason = reason.strip().rstrip(".")+ if reason.startswith(NO_GPU_PREFIX):+ return (f"Strata can't run on this computer: {reason}. The model will download, but it will not run here "+ f"(next step: {NO_GPU_STEP}).")return (f"Strata couldn't find an engine for this computer ({reason}). The model will download, but it may not run until you install "f"the right engine (next step: {NO_ENGINE_STEP}).")def no_engine_final(reason: str, name: str = "") -> str:reason = reason.strip().rstrip(".")+ if reason.startswith(NO_GPU_PREFIX):+ return f"The model is ready, but Strata can't start it on this computer: {reason}. Next step: {NO_GPU_STEP}."return (f"The model is ready, but Strata can't start it yet: it couldn't find an engine for this computer ({reason}). "f"Next step: {NO_ENGINE_STEP}. The model files stay on this computer.")@@ -455,6 +476,14 @@ class Runner:note = str(res.get("note") or "").strip()if not note:note = str(report.get("notice") or "").strip()+ if "backend" in report and report["backend"] is None: # not even a graphics card Strata knows: say that, not "the feed has nothing"+ names = []+ try:+ from strata_control import engine_component as ec+ names = [a.get("name", "") for a in ec.windows_display_adapters()] if os.name == "nt" else []+ except Exception: # noqa: BLE001 - the names are a nicety+ pass+ return no_gpu_words(names)if not note or note.startswith("No engine for this PC was found"):note = "There is no engine for this computer's graphics card in the update source."return notediff --git a/tests/terminal/test_launch_engine_first.py b/tests/terminal/test_launch_engine_first.pyindex 371a3cb10..50ef4eaaf 100644--- a/tests/terminal/test_launch_engine_first.py+++ b/tests/terminal/test_launch_engine_first.py@@ -96,6 +96,21 @@ class EngineBeforeModel(unittest.TestCase):self.assertIn(NO_ENGINE_STEP, warning)self.assertNotIn("The app never downloads", warning) # not the generic line+ def test_no_graphics_card_is_said_plainly_with_no_feed_address(self):+ report = dict(UNUSABLE, backend=None)+ spawns, err, r = self.run_ensure_runner([report, report], update_events("none-for-this-pc"))+ self.assertIsNone(err)+ self.assertTrue(r.engine_problem.startswith("no graphics card that Strata can use was found"))+ text = r.events[-1].text+ self.assertIn("Strata needs an NVIDIA or AMD graphics card", text)+ self.assertNotIn("--feed", text)+ self.assertNotIn("<address>", text)+ self.assertNotIn("--feed", no_engine_final(r.engine_problem))++ def test_the_other_no_engine_texts_do_not_ask_for_a_feed_address_either(self):+ self.assertNotIn("<address>", NO_ENGINE_STEP)+ self.assertNotIn("--feed", no_engine_warning("The feed has no engine package for this PC."))+def test_wrong_family_names_the_plain_reason_in_the_warning(self):spawns, err, r = self.run_ensure_runner([UNUSABLE, UNUSABLE], update_events("none-for-this-pc", WRONG_FAMILY))self.assertIsNone(err)