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++
Setup: the DeepSeek engine step does not stop on 'can't reach GitHub' when the update feed is a local one (STRATA_UPDATE_FEED or --feed naming a folder, file or loopback address); a transient GitHub timeout no longer fails a verify run; tests
Niko1221e9e22db6a711
diff --git a/setup.py b/setup.pyindex b86272ad0..440bfc181 100644--- a/setup.py+++ b/setup.py@@ -7847,6 +7847,18 @@ def dsv41_engine_dir(eng: Path) -> Path:return (home() if CONTROL else Path(eng).parent) / DSV41_ENGINE_DIR+def local_feed(feed: str | None = None) -> bool:+ """Is the update feed this run reads a local one (a folder, a file or a loopback address, as a test or an offline copy uses)? Then+ nothing is downloaded from GitHub and its being slow or down must not stop the run. `feed` is --feed, else STRATA_UPDATE_FEED."""+ src = (feed or os.environ.get("STRATA_UPDATE_FEED") or "").strip()+ if not src:+ return False+ if not re.match(r"^[a-z][a-z0-9+.-]*://", src, re.I) or src.lower().startswith("file://"):+ return True # a path (a Windows C:\... one too)+ host = (urllib.parse.urlparse(src).hostname or "").lower()+ return host in ("localhost", "127.0.0.1", "::1") or host.startswith("127.")++def github_reachable(timeout: float = 10.0) -> bool:"""Does GitHub answer within `timeout` seconds (any HTTP answer counts; no answer, a refused or timed-out connection does not)? One quick checkinstead of minutes of retries when the connection is down (a SYN that is never answered)."""@@ -8143,7 +8155,8 @@ def install_dsv41(a, family, gpu, hip, amd, cuda_tk, multi, port, ram, adopted,step(4, "the DeepSeek engine")eng, meta, lib_dirs = ROOT / "engine", {"version": None}, []exe = dsv41_exe(eng)- if exe is None and not getattr(a, "dsv41_package", None) and not dsv41_engine_pending(eng) and not github_reachable():+ if (exe is None and not getattr(a, "dsv41_package", None) and not dsv41_engine_pending(eng) and not local_feed(getattr(a, "feed", None))+ and not github_reachable()):fail("Strata can't reach GitHub to download the DeepSeek engine.","Check the internet connection and run the same command again. " + dsv41_manual_steps(eng))if exe is None and not getattr(a, "build", False):diff --git a/tools/test_setup_dsv41.py b/tools/test_setup_dsv41.pyindex 432ca66e2..cc8af0afe 100644--- a/tools/test_setup_dsv41.py+++ b/tools/test_setup_dsv41.py@@ -347,6 +347,13 @@ class NoNetwork(Install):self.assertIn("Check the internet connection and run the same command again.", out)self.assertFalse([c for c in self.calls if c[0] == "get"])+ def test_a_local_feed_needs_no_github(self):+ """A run on a local feed (a folder, a loopback address) downloads nothing from GitHub: a slow or down GitHub must not stop it."""+ self.github_up = False+ with mock.patch.dict("os.environ", {"STRATA_UPDATE_FEED": str(self.root / "feed")}):+ rc, out = self.install(engine=False)+ self.assertNotIn("can't reach GitHub", out)+def test_a_package_the_person_has_needs_no_github(self):self.github_up = Falseself.install(engine=False) # (the first run only creates the folders)@@ -377,6 +384,15 @@ class GithubCheck(unittest.TestCase):with mock.patch.object(setup, "_urlopen", return_value=mock.MagicMock()):self.assertTrue(setup.github_reachable(1))+ def test_a_local_feed_is_told_from_the_signed_one(self):+ for feed in ("C:/feeds/f", "/tmp/feed", "file:///tmp/feed", "http://127.0.0.1:8099/feed.json", "https://localhost/f"):+ self.assertTrue(setup.local_feed(feed), feed)+ for feed in (None, "", "https://github.com/Niko1221/Strata/releases/latest/download/feed.json"):+ with mock.patch.dict("os.environ", {"STRATA_UPDATE_FEED": ""}):+ self.assertFalse(setup.local_feed(feed), feed)+ with mock.patch.dict("os.environ", {"STRATA_UPDATE_FEED": "/tmp/x"}):+ self.assertTrue(setup.local_feed()) # the environment names it when --feed does not+class OfficialSets(unittest.TestCase):"""The two official IST-DAS sets (ISTA-DASLab/DeepSeek-V4.1-Flash-1017-GSQ-RCO-GGUF): the catalog, the pins, the pack recipe, the fit words."""