mirror of
https://github.com/Niko1221/Strata.git
synced 2026-11-07 14:21:06 -10:00
launch: ask dsv41_fit.not_here directly (the launch tests stub the setup object)
This commit is contained in:
1 parent
bd3c5cd4cb
commit
4148c51257
3 files changed
+8
-5
No files matched your search
@@ -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)]
|
||||
|
||||
@@ -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":
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user