Skip to content

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++

N6: Gyro on macOS needs engine 0.1.47 (the Metal TQK6/TQK7/TQ2_T kernels first shipped there)

Niko1221ad98bf1d17b6
diff --git a/strata_cli/launch/runner.py b/strata_cli/launch/runner.py
index 9d0903c99..2eadcce97 100644
--- a/strata_cli/launch/runner.py
+++ b/strata_cli/launch/runner.py
@@ -53,6 +53,10 @@ def install_isolation_words(catalog, data_dir: str | os.PathLike | None = None)
f"{chosen}: the data folder only says where model files are kept. To test from scratch, use a new user account or remove the earlier install first."]
+#: the first engine whose Metal build reads Gyro files (round 8, M: 0.1.45.3 was reused and failed on missing TQK6/TQK7 kernels)
+GYRO_METAL_ENGINE = (0, 1, 47)
+
+
def version_tuple(version: str | None) -> tuple[int, ...]:
"""'0.1.45.3' -> (0, 1, 45, 3); () when it is not a dotted run of numbers (a source build says so itself)."""
m = re.match(r"\d+(?:\.\d+)*", str(version or "").strip())
@@ -593,6 +597,8 @@ class Runner:
need = tuple(getattr(mod, "MIN_ENGINE", ()) or ())
if self.s.family == "gyro":
need = max(need, tuple(getattr(mod, "GYRO_ENGINE", ()) or ()))
+ if sys.platform == "darwin":
+ need = max(need, GYRO_METAL_ENGINE) # the Metal Gyro kernels (TQK6/TQK7/TQ2_T) first shipped in 0.1.47; CUDA, HIP, SYCL had them earlier
return need or None
except Exception: # noqa: BLE001 - no table, no check
return None
diff --git a/tests/terminal/test_round8_fixes.py b/tests/terminal/test_round8_fixes.py
index 6fac3b9e2..1a8914832 100644
--- a/tests/terminal/test_round8_fixes.py
+++ b/tests/terminal/test_round8_fixes.py
@@ -201,6 +201,20 @@ class EngineIsFreshEnough(unittest.TestCase):
self.assertIsNone(r.stale_engine("0.1.47"))
self.assertIsNone(r.stale_engine("source"))
+ def test_gyro_on_a_mac_needs_engine_0_1_47(self):
+ with Home():
+ r = Runner(S.LaunchSettings(family="gyro", model="Gyro-S", context=32768, vision="off"), catalog=catalog(HW_12))
+ with mock.patch.object(sys, "platform", "darwin"):
+ self.assertEqual(r.needed_engine(), (0, 1, 47))
+ self.assertIn("older than this model needs (0.1.47", r.stale_engine("0.1.45.3"))
+ self.assertIsNone(r.stale_engine("0.1.47"))
+ with mock.patch.object(sys, "platform", "linux"):
+ self.assertLess(r.needed_engine(), (0, 1, 47)) # CUDA, HIP and SYCL had the kernels earlier
+ self.assertIsNone(r.stale_engine("0.1.46"))
+ with mock.patch.object(sys, "platform", "darwin"):
+ q = Runner(S.LaunchSettings(family="qwen", model="IQ3_XXS", context=32768, vision="off"), catalog=catalog(HW_12))
+ self.assertLess(q.needed_engine(), (0, 1, 47)) # only Gyro is held to it
+
def test_a_stale_engine_is_updated_or_said_never_ignored(self):
with Home():
r = runner_for()