From 4148c51257417e23ab4e0e2a7f784d4880f6e659 Mon Sep 17 00:00:00 2001 From: Niko1221 Date: Fri, 30 Oct 2026 20:25:25 +0100 Subject: [PATCH] launch: ask dsv41_fit.not_here directly (the launch tests stub the setup object) --- strata_cli/launch/catalog.py | 3 ++- strata_cli/launch/runner.py | 5 +++-- strata_cli/launch/screens.py | 5 +++-- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/strata_cli/launch/catalog.py b/strata_cli/launch/catalog.py index 16c569ee..cc0977e6 100644 --- a/strata_cli/launch/catalog.py +++ b/strata_cli/launch/catalog.py @@ -383,7 +383,8 @@ class Catalog: near = S.closest(family, list(families)) raise ValueError(f"There is no model family called '{family}'." + (f" Did you mean '{near}'?" if near else "") + " Families: " + ", ".join(families) + ".") - line = self.strata.dsv41_not_here(match) or (self.strata.dsv41_not_on_mac_line() if match in self.strata.dsv41_not_on_mac() and self._mac_hardware() else None) + from strata_control import dsv41_fit + line = dsv41_fit.not_here(match) or (dsv41_fit.MAC_NOT_YET_LINE if match in dsv41_fit.MAC_NOT_YET and self._mac_hardware() else None) if line: raise ValueError(line + " Use ist-das-2.00bpw or ist-das-2.25bpw.") offered = [f for f in families if match in self.strata.sizes_of(models, f)] diff --git a/strata_cli/launch/runner.py b/strata_cli/launch/runner.py index 936d2b0d..fac3e9a6 100644 --- a/strata_cli/launch/runner.py +++ b/strata_cli/launch/runner.py @@ -1309,8 +1309,9 @@ class Runner: if found is None: return False model, d, folder = found - if self.catalog.strata.dsv41_not_here(model): # Mac: no Metal IQ1_S kernel yet; DGX Spark: never run; said before an engine or a download is touched - raise LaunchError(self.catalog.strata.dsv41_not_here(model), + from strata_control import dsv41_fit + if dsv41_fit.not_here(model): # Mac: no Metal IQ1_S kernel yet; DGX Spark: never run; said before an engine or a download is touched + raise LaunchError(dsv41_fit.not_here(model), "Use the 2.00 or 2.25 files (--model ist-das-2.00bpw or --model ist-das-2.25bpw, or --model-path to those files). " "Nothing was downloaded or changed.", 2) if s.family and s.family != "deepseek41": diff --git a/strata_cli/launch/screens.py b/strata_cli/launch/screens.py index 7f529a77..a7e8bc6a 100644 --- a/strata_cli/launch/screens.py +++ b/strata_cli/launch/screens.py @@ -560,8 +560,9 @@ class ModelScreen(Base): if found is None: return False model, d, folder = found - if self.ctx.catalog.strata.dsv41_not_here(model): - self.say(self.ctx.catalog.strata.dsv41_not_here(model) + " Pick the 2.00 or 2.25 version from the list, or point to those files.", True) + from strata_control import dsv41_fit + if dsv41_fit.not_here(model): + self.say(dsv41_fit.not_here(model) + " Pick the 2.00 or 2.25 version from the list, or point to those files.", True) return True _layout, names, missing = mod.dsv41_parts(d, lambda n: (folder / n).exists()) # the pinned four-shard layout, or ISTA's six-shard one (0.2.8.1) if missing: