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++
mcp: the install plan accepts vision=cpu with the AMD backend on Linux (#990)
Niko1221adc87ab7c9d4
diff --git a/tools/strata_mcp.py b/tools/strata_mcp.pyindex 8962d0933..0b87b2c49 100644--- a/tools/strata_mcp.py+++ b/tools/strata_mcp.py@@ -1236,7 +1236,15 @@ class Tools:if vision in ("yes", "gpu", "cpu") and models[model].get("vision", families[family].get("vision")) is False:raise ToolError(f"images are not available with {families[family]['title']} {model} yet: use vision=no")if vision is not None and backend == "hip" and vision != "no":- raise ToolError("images are not available on the AMD backend yet: use vision=no")+ # setup.py's hip_vision rules (#990): the AMD backend has no GPU image encoder, but --vision cpu reads+ # images on the CPU beside it (Linux; the ready-made Windows AMD engine has no encoder)+ if vision == "cpu" and not WIN:+ pass+ elif vision == "cpu":+ raise ToolError("images on the CPU with an AMD card are Linux-only for now: use vision=no")+ else:+ raise ToolError("the AMD backend has no GPU image encoder yet: use vision=cpu (images on the CPU, "+ "Linux) or vision=no")target = self.check_data_dir(data_dir) if data_dir else s.data_dir()tag = (families[family].get("tag", "") + model)have_dir = target / "models" / tagdiff --git a/tools/test_strata_mcp.py b/tools/test_strata_mcp.pyindex bacffb780..e0b0d28cf 100644--- a/tools/test_strata_mcp.py+++ b/tools/test_strata_mcp.py@@ -18,6 +18,7 @@ import tempfileimport threadingimport timeimport unittest+from unittest import mockfrom http.server import BaseHTTPRequestHandler, HTTPServerfrom pathlib import Path@@ -304,6 +305,20 @@ class Validation(FakeRoot):"images are not available")self.assertRejected("strata_install", {"vision": "yes\nrm"}, "control characters")+ def test_amd_vision_follows_setups_rules(self):+ """#990: --vision cpu is allowed with the AMD backend on Linux (setup.hip_vision); a GPU encoder is not."""+ with mock.patch.object(M, "WIN", False):+ self.assertRejected("strata_install", {"backend": "hip", "vision": "yes"}, "no GPU image encoder")+ self.assertRejected("strata_install", {"backend": "hip", "vision": "gpu"}, "vision=cpu")+ res, err = self.call("strata_install", {"backend": "hip", "vision": "cpu"})+ self.assertFalse(err, res)+ self.assertEqual(res["plan"]["images"], "cpu")+ self.assertIn("--vision cpu", res["plan"]["setup_command"])+ res, err = self.call("strata_install", {"backend": "hip", "vision": "no"})+ self.assertFalse(err, res)+ with mock.patch.object(M, "WIN", True):+ self.assertRejected("strata_install", {"backend": "hip", "vision": "cpu"}, "Linux")+def test_data_dir_paths(self):self.assertRejected("strata_install", {"data_dir": "models"}, "absolute")self.assertRejected("strata_install", {"data_dir": str(self.root.parent / "x" / ".." / "Strata-x")}, "'..'")