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++
launch: see an Intel Arc card (from the kernel's device list) and recommend a context that fits its memory
Niko1221872bcd19741c
diff --git a/strata_cli/launch/catalog.py b/strata_cli/launch/catalog.pyindex ff4d1ab62..f69bb0c77 100644--- a/strata_cli/launch/catalog.py+++ b/strata_cli/launch/catalog.py@@ -152,6 +152,30 @@ def install_root(explicit: str | os.PathLike | None = None) -> Path:return engine_component.components_dir().parent / "install"+# Intel Arc cards by PCI id: (name, memory in GB). The kernel does not tell an ordinary user how much memory the card has, so the common+# cards are listed; an id that is not here is shown as "Intel Arc" with no size and is treated as a small card. (A770: the 8 GB model shares+# the id of the 16 GB one, so the smaller figure is used.)+INTEL_ARC = {"0x56a1": ("Arc A750", 8.0), "0x56a2": ("Arc A580", 8.0), "0x56a0": ("Arc A770", 8.0), "0x56a5": ("Arc A380", 6.0),+ "0x56a6": ("Arc A310", 4.0), "0xe20b": ("Arc B580", 12.0), "0xe20c": ("Arc B570", 10.0), "0xe223": ("Arc Pro B70", 32.0)}+++def intel_arc_cards(root: str = "/sys/class/drm") -> list[dict]:+ """The Intel Arc cards on this Linux computer, read from the kernel's device list (empty elsewhere)."""+ cards: list[dict] = []+ try:+ for dev in sorted(Path(root).glob("card[0-9]/device")):+ if (dev / "vendor").read_text().strip() != "0x8086":+ continue+ did = (dev / "device").read_text().strip().lower()+ if did not in INTEL_ARC:+ continue+ name, gb = INTEL_ARC[did]+ cards.append({"vendor": "intel", "name": "Intel " + name, "vram_gb": gb, "usable": True, "index": len(cards)})+ except OSError:+ pass+ return cards++class Catalog:"""setup.py's tables through strata_mcp's `Strata` object (the app's own catalog code)."""@@ -189,7 +213,12 @@ class Catalog:hw = dict(self._hardware_override)hw.setdefault("disk_free_gb", self.strata.disk_free(self.strata.data_dir()))return hw- return self.strata.hardware(fresh=fresh)+ hw = dict(self.strata.hardware(fresh=fresh))+ if not hw.get("gpus") and not str(hw.get("os", "")).startswith("Windows"):+ arc = intel_arc_cards()+ if arc:+ hw["gpus"] = arc # the shared hardware reader knows NVIDIA and AMD only; an Arc is added here+ return hwdef computer(self, fresh: bool = False) -> Computer:hw = self.hardware(fresh)@@ -266,6 +295,8 @@ class Catalog:usable = [g for g in hw.get("gpus") or [] if g.get("usable", True)]vram = max((float(g.get("vram_gb") or 0) for g in usable), default=12.0)rec = 32768 if vram < 14 else 65536 if vram < 20 else 131072+ if usable and all(g.get("vendor") == "intel" for g in usable):+ rec = 8192 if vram < 10 else 16384 if vram < 20 else 32768 # an Arc keeps the session and the experts in the same memorymod = self.strata.setup_module()models = self.tables()[0]if mod is not None and models[model].get("budget"):diff --git a/tests/terminal/test_launch.py b/tests/terminal/test_launch.pyindex 43a144077..adf390fda 100644--- a/tests/terminal/test_launch.py+++ b/tests/terminal/test_launch.py@@ -358,6 +358,24 @@ class AdoptRules(unittest.TestCase):self.assertNotIn(other, a)self.assertEqual(a[a.index("--vram-reserve-mib") + 1], reserve)+ def test_intel_arc_is_read_from_the_kernel_and_gets_a_small_context(self):+ from strata_cli.launch import catalog as C+ with Home() as h:+ card = h.base / "drm" / "card0" / "device"+ card.mkdir(parents=True)+ (card / "vendor").write_text("0x8086")+ (card / "device").write_text("0x56a1")+ cards = C.intel_arc_cards(str(h.base / "drm"))+ self.assertEqual([(c["name"], c["vram_gb"]) for c in cards], [("Intel Arc A750", 8.0)])+ self.assertEqual(C.intel_arc_cards(str(h.base / "nothing")), [])+ hw = dict(HW_12)+ hw["gpus"] = cards+ cat = catalog(hw)+ self.assertEqual(cat.computer().line().split(" 8 GB")[0], "Arc A750".replace("Arc", "Intel Arc"))+ self.assertEqual(cat.max_context("qwen", "IQ3_XXS", hw), 8192)+ hw["gpus"] = [{"vendor": "intel", "name": "Intel Arc Pro B70", "vram_gb": 32.0, "usable": True}]+ self.assertEqual(cat.max_context("qwen", "IQ3_XXS", hw), 32768)+def test_plan_names_what_is_missing(self):from strata_cli.launch import adoptwith Home() as h: