mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 23:08:36 +00:00
Windows Intel Qwen route on: QWEN_SYCL_WINDOWS_SHIPPED = True for the gated packs (Coder IQ1_M, IQ2_XS, IQ3_S)
QFN-B70's shipping package (int-0225 5ecd657db3 + a506e9122a) passed its gate on the Windows B70: Coder IQ1_M is bit-identical to the first
Windows build on 7 of 7 prompts with --spec 2 and with spec off, and spec 2 equals spec off 7 of 7. IQ2_XS and IQ3_S are deterministic
(45-51 and 39-45 tok/s) but --spec 2 with the suffix drafter is not bit-equal to plain decode on them (near-tie flips from token 56 to 185).
Coordinator decision: IQ1_M with QFN-B70's flags (--prefill 4096 --spec 2); IQ2_XS and IQ3_S offered with plain decode, written as
--spec 2 --suffix-draft 0 (the engine refuses a native pack without a spec window, T >= 2; with the suffix drafter off a 2-token window
is allocated, no draft is proposed and it decodes one token per step). intel_app.QWEN_SYCL_WINDOWS_PACKS maps the pack to its drafter
(True / False); Q2_0 and IQ3_XXS stay off.
The route is also checked by family (intel_app.QWEN_SYCL_WINDOWS_FAMILIES = qwen, coder): Swift, Gyro and Unsloth have packs of the same
names that were not gated. route_here(kind, platform, model, family); the model table rows, the install route and the Intel control setup
pass the pack and the family; the not-offered notes name the sizes that run on Windows.
Tests: tests/terminal/test_qwen_windows_intel.py (flags per pack, spec per pack, route per pack and family, the switch), the Windows rows and
card-list tests of test_intel_app_install.py. settings_register.py --check passes.
This commit is contained in:
1 parent
010ec1c01b
commit
677027ff11
6 files changed
+50
-27
No files matched your search
+1
-1
@@ -9609,7 +9609,7 @@ def intel_control_setup(a) -> int:
|
||||
step(1, "checking this computer")
|
||||
family = a.family or "qwen"
|
||||
kind = "inkling" if family in INKLING_FAMILIES else "hy4" if family in HY4_FAMILIES else "qwen"
|
||||
if not intel_app.route_here(kind, model=a.model if kind == "qwen" else None):
|
||||
if not intel_app.route_here(kind, model=a.model if kind == "qwen" else None, family=family if kind == "qwen" else None):
|
||||
fail("this model has no Intel Arc engine for this computer yet", "Linux runs every Intel route; Windows runs Ling-3.2-Air and Inkling-2-Mini; there is no Mac Intel engine")
|
||||
if family in HY4_FAMILIES or family in INKLING_FAMILIES:
|
||||
cards = intel_app.arc_cards()
|
||||
|
||||
@@ -308,7 +308,10 @@ def plan(*, family: str, model: str, model_dir: Path, data_dir: Path, src: Path,
|
||||
prof = profile if family_def.get("profile") else Path(src) / "data" / "expert-profile-sycl.bin"
|
||||
if not prof.exists():
|
||||
return None, [f"the expert profile {prof} is missing"]
|
||||
from strata_control import intel_app
|
||||
args += ["--expert-profile", str(prof), "--expert-cache", "auto", "--prefill", "4096", "--spec", "2"]
|
||||
if not intel_app.QWEN_SYCL_WINDOWS_PACKS.get(str(model), True): # IQ2_XS / IQ3_S: plain decode (a 2-token window with the suffix drafter off; the engine needs T >= 2 for a native pack)
|
||||
args += ["--suffix-draft", "0"]
|
||||
else:
|
||||
args += ["--expert-profile", str(profile), "--expert-cache", "auto", "--prefill", "auto", "--spec", "4", "--spec-min-p", "0.5"]
|
||||
if mtp.exists() and not feed and not win_sycl: # the Flash-Next draft layer is not a feed model's own (a feed entry carries no MTP head yet)
|
||||
|
||||
@@ -49,14 +49,20 @@ def supported_here(platform: str | None = None) -> bool:
|
||||
#: THE Windows Intel switches, one per model family (0.2.25 scope, owner / coordinator 2026-12-03): Ling-3.2-Air has its own (ling32_family.SYCL_ENGINE_SHIPPED); Inkling-2-Mini ships on the Windows B70 (INK-B70 gated
|
||||
#: f-ink-b70 e3b494577a on devcloud2: all five packs identical); Qwen3.8-Flash-Next waits for QFN-B70's B70 gate (flip when it passes); Hy4-Flash only if a gated Windows Intel engine exists. Linux is on for all.
|
||||
INKLING_SYCL_WINDOWS_SHIPPED = True
|
||||
QWEN_SYCL_WINDOWS_SHIPPED = False
|
||||
QWEN_SYCL_WINDOWS_SHIPPED = True
|
||||
HY4_SYCL_WINDOWS_SHIPPED = False
|
||||
#: The Qwen packs that ship on Windows Intel once QWEN_SYCL_WINDOWS_SHIPPED is on (QFN-B70's gates on the B70, 32 GB RAM: Coder IQ1_M is identical package against build 7/7 and spec 2 against off 7/7).
|
||||
#: IQ2_XS and IQ3_S run (40-44 and 27-29 tok/s) but have no identity gate yet: add their names here when QFN-B70 says so. Q2_0 and IQ3_XXS stay off.
|
||||
QWEN_SYCL_WINDOWS_PACKS = ("IQ1_M",)
|
||||
#: The Qwen packs that ship on Windows Intel, each with its drafting (QFN-B70's gates on the B70 with the shipping package, coordinator decision 2026-12-03): Coder IQ1_M is bit-identical to the first Windows build on
|
||||
#: 7 of 7 prompts with --spec 2 and with spec off, so it runs with --spec 2 and the suffix drafter on (True; 64 tok/s decode). IQ2_XS and IQ3_S are deterministic (45-51 and 39-45 tok/s) but --spec 2 with the drafter
|
||||
#: is not bit-equal to plain decode on them (near-tie flips from token 56 to 185), so they run plain: False = `--spec 2 --suffix-draft 0` (the engine refuses a native pack without a spec window, T >= 2; with the suffix drafter
|
||||
#: off a 2-token window is allocated, no draft is ever proposed and it decodes one token per step: the arm QFN-B70 measured as "spec off"). Q2_0 and IQ3_XXS stay off.
|
||||
QWEN_SYCL_WINDOWS_PACKS = {"IQ1_M": True, "IQ2_XS": False, "IQ3_S": False}
|
||||
|
||||
|
||||
def route_here(kind: str, platform: str | None = None, model: str | None = None) -> bool:
|
||||
#: The families whose packs QWEN_SYCL_WINDOWS_PACKS names: Qwen3.8-Flash-Next (IQ2_XS, IQ3_S) and its Coder (IQ1_M). Swift, Gyro and Unsloth have packs of the same names but were not gated.
|
||||
QWEN_SYCL_WINDOWS_FAMILIES = ("qwen", "coder")
|
||||
|
||||
|
||||
def route_here(kind: str, platform: str | None = None, model: str | None = None, family: str | None = None) -> bool:
|
||||
"""Can the Intel Arc route of this model family (`kind`: "ling32", "inkling", "hy4", "qwen") run on this PC: Linux yes; Windows by the family's switch; a Mac never. Never raises."""
|
||||
plat = platform or sys.platform
|
||||
if plat.startswith("linux"):
|
||||
@@ -64,7 +70,7 @@ def route_here(kind: str, platform: str | None = None, model: str | None = None)
|
||||
if not plat.startswith("win"):
|
||||
return False
|
||||
try:
|
||||
if kind == "qwen" and model and str(model) not in QWEN_SYCL_WINDOWS_PACKS: # Windows: the packs QFN-B70 gated, no others
|
||||
if kind == "qwen" and model and (str(model) not in QWEN_SYCL_WINDOWS_PACKS or (family and str(family) not in QWEN_SYCL_WINDOWS_FAMILIES)): # Windows: the packs QFN-B70 gated, no others
|
||||
return False
|
||||
from strata_control import ling32_family
|
||||
return {"ling32": bool(ling32_family.sycl_available()), "inkling": bool(INKLING_SYCL_WINDOWS_SHIPPED), "hy4": bool(HY4_SYCL_WINDOWS_SHIPPED),
|
||||
|
||||
@@ -51,7 +51,7 @@ class CardList(unittest.TestCase):
|
||||
def test_only_linux_and_windows_with_ling_and_only_when_the_engine_is_the_intel_one(self):
|
||||
self.assertEqual([c["name"] for c in self.add([], [], platform="win32")], ["Intel Arc A750"]) # Windows: the Ling Intel engine ships (ling32_family.SYCL_ENGINE_SHIPPED)
|
||||
from strata_control import ling32_family
|
||||
with mock.patch.object(ling32_family, "SYCL_ENGINE_SHIPPED", False), mock.patch.object(intel_app, "INKLING_SYCL_WINDOWS_SHIPPED", False):
|
||||
with mock.patch.object(ling32_family, "SYCL_ENGINE_SHIPPED", False), mock.patch.object(intel_app, "INKLING_SYCL_WINDOWS_SHIPPED", False), mock.patch.object(intel_app, "QWEN_SYCL_WINDOWS_SHIPPED", False):
|
||||
self.assertEqual(self.add([], [], platform="win32"), []) # every Windows switch off: no Windows Intel engine
|
||||
self.assertEqual(self.add([], [], platform="darwin"), [])
|
||||
self.assertEqual(self.add([], [], intel=False), []) # the engine Control would pick is not SYCL (STRATA_ENGINE_BACKEND, a saved choice)
|
||||
@@ -87,13 +87,13 @@ class WindowsIntel(unittest.TestCase):
|
||||
def test_the_windows_intel_routes_follow_each_familys_switch(self):
|
||||
self.assertTrue(intel_app.route_here("ling32", "win32")) # Ling-3.2-Air ships on Windows Intel (ling32_family.SYCL_ENGINE_SHIPPED)
|
||||
self.assertTrue(intel_app.route_here("inkling", "win32")) # Inkling-2-Mini: INK-B70 gated it on the Windows B70
|
||||
self.assertFalse(intel_app.route_here("qwen", "win32")) # waits for QFN-B70's B70 gate
|
||||
self.assertTrue(intel_app.route_here("qwen", "win32")) # QFN-B70's shipping package passed its gate (the packs: intel_app.QWEN_SYCL_WINDOWS_PACKS)
|
||||
self.assertFalse(intel_app.route_here("hy4", "win32")) # no gated Windows Hy4 engine
|
||||
self.assertFalse(intel_app.route_here("inkling", "darwin"))
|
||||
for kind in ("ling32", "inkling", "hy4", "qwen"):
|
||||
self.assertTrue(intel_app.route_here(kind, "linux"), kind)
|
||||
with mock.patch.object(intel_app, "QWEN_SYCL_WINDOWS_SHIPPED", True):
|
||||
self.assertTrue(intel_app.route_here("qwen", "win32")) # one word turns the Windows Qwen route on
|
||||
with mock.patch.object(intel_app, "QWEN_SYCL_WINDOWS_SHIPPED", False):
|
||||
self.assertFalse(intel_app.route_here("qwen", "win32")) # one word turns the Windows Qwen route off
|
||||
with mock.patch.object(intel_app, "INKLING_SYCL_WINDOWS_SHIPPED", False):
|
||||
self.assertFalse(intel_app.route_here("inkling", "win32"))
|
||||
self.assertEqual([intel_app.family_kind(m) for m in ({"ling32": True}, {"inkling": True}, {"hy4": True}, {})], ["ling32", "inkling", "hy4", "qwen"])
|
||||
@@ -106,7 +106,13 @@ class WindowsIntel(unittest.TestCase):
|
||||
rows = {r["family"]: r for r in s.model_table(hw)}
|
||||
def offered(family):
|
||||
return [x.get("offered", True) for x in rows[family]["sizes"]]
|
||||
self.assertTrue(all(offered("qwen")) is False and not any(offered("qwen"))) # Qwen: not offered on a Windows Arc PC (no Windows engine yet)
|
||||
by_size = {x["model"]: x.get("offered", True) for fam in ("qwen", "coder") if fam in rows for x in rows[fam]["sizes"]}
|
||||
for pack in ("IQ1_M", "IQ2_XS", "IQ3_S"): # the gated packs are offered on a Windows Arc PC
|
||||
if pack in by_size:
|
||||
self.assertTrue(by_size[pack], pack)
|
||||
for pack in ("Q2_0", "IQ3_XXS"): # the others are not (no Windows engine run for them)
|
||||
if pack in by_size:
|
||||
self.assertFalse(by_size[pack], pack)
|
||||
self.assertTrue(any("Linux" in str(x.get("offered_note")) for x in rows["qwen"]["sizes"]))
|
||||
if "inkling-2-mini" in rows:
|
||||
self.assertTrue(all(offered("inkling-2-mini"))) # Inkling: the owner's own Windows B70 work, offered
|
||||
|
||||
@@ -4,7 +4,7 @@ What these tests pin (QFN-B70's tested flags, literally):
|
||||
* the run config on Windows: --prefill 4096, --kv int8, --vram-reserve-mib 1024 (2048 above 32K), --stream-experts, --expert-cache auto and --spec 2 written explicitly (the sysfs rule cannot fire there), no
|
||||
--spec-min-p, no --mtp; the Coder pack gets expert-profile-coder.bin, every other pack expert-profile-sycl.bin;
|
||||
* Linux keeps its flags (--prefill auto, --spec 4, --spec-min-p 0.5);
|
||||
* the Windows route is offered for the gated packs only (QWEN_SYCL_WINDOWS_PACKS: IQ1_M), and only when the switch is on.
|
||||
* the Windows route is offered for the gated packs only (QWEN_SYCL_WINDOWS_PACKS: IQ1_M with --spec 2 and the suffix drafter, IQ2_XS and IQ3_S with --spec 2 --suffix-draft 0 = plain decode), and only when the switch is on.
|
||||
Offline: nothing runs but Python."""
|
||||
|
||||
from __future__ import annotations
|
||||
@@ -70,6 +70,7 @@ class WindowsFlags(unittest.TestCase):
|
||||
self.assertEqual((value(a, "--prefill"), value(a, "--spec"), value(a, "--kv"), value(a, "--vram-reserve-mib"), value(a, "--expert-cache")), ("4096", "2", "int8", "1024", "auto"))
|
||||
self.assertIn("--stream-experts", a)
|
||||
self.assertNotIn("--spec-min-p", a)
|
||||
self.assertNotIn("--suffix-draft", a) # Coder IQ1_M keeps the suffix drafter (the engine's default)
|
||||
self.assertNotIn("--mtp", a)
|
||||
self.assertEqual(cfg["backend"], "sycl")
|
||||
|
||||
@@ -80,6 +81,8 @@ class WindowsFlags(unittest.TestCase):
|
||||
a = cfg["args"]
|
||||
self.assertEqual(value(a, "--vram-reserve-mib"), "2048")
|
||||
self.assertEqual(value(a, "--expert-profile"), str(t.src / "data" / "expert-profile-sycl.bin"))
|
||||
self.assertEqual((value(a, "--spec"), value(a, "--prefill"), value(a, "--suffix-draft")), ("2", "4096", "0")) # IQ2_XS: plain decode (a 2-token window, the suffix drafter off: spec 2 with it is not bit-equal to plain decode here)
|
||||
self.assertNotIn("--spec-min-p", a)
|
||||
|
||||
def test_linux_keeps_its_flags(self):
|
||||
t = Tree(self.root, "coder", "coder-iq1_m")
|
||||
@@ -92,14 +95,19 @@ class WindowsFlags(unittest.TestCase):
|
||||
|
||||
class WindowsRoute(unittest.TestCase):
|
||||
def test_only_the_gated_pack_is_offered_and_only_with_the_switch_on(self):
|
||||
self.assertEqual(intel_app.QWEN_SYCL_WINDOWS_PACKS, ("IQ1_M",))
|
||||
self.assertFalse(intel_app.route_here("qwen", "win32", "IQ1_M")) # the switch is off until QFN-B70's gate passes
|
||||
with mock.patch.object(intel_app, "QWEN_SYCL_WINDOWS_SHIPPED", True):
|
||||
self.assertTrue(intel_app.route_here("qwen", "win32", "IQ1_M"))
|
||||
self.assertTrue(intel_app.route_here("qwen", "win32")) # no model named: the family
|
||||
for pack in ("IQ2_XS", "IQ3_S", "IQ3_XXS", "Q2_0"):
|
||||
self.assertFalse(intel_app.route_here("qwen", "win32", pack), pack)
|
||||
self.assertTrue(intel_app.route_here("ling32", "win32", "IQ3_S")) # other families ignore the pack name
|
||||
self.assertEqual(intel_app.QWEN_SYCL_WINDOWS_PACKS, {"IQ1_M": True, "IQ2_XS": False, "IQ3_S": False}) # the pack -> the suffix drafter (off where spec 2 is not bit-equal to plain decode)
|
||||
self.assertTrue(intel_app.QWEN_SYCL_WINDOWS_SHIPPED)
|
||||
for pack in ("IQ1_M", "IQ2_XS", "IQ3_S"):
|
||||
self.assertTrue(intel_app.route_here("qwen", "win32", pack), pack)
|
||||
self.assertTrue(intel_app.route_here("qwen", "win32")) # no model named: the family
|
||||
for pack in ("IQ3_XXS", "Q2_0"):
|
||||
self.assertFalse(intel_app.route_here("qwen", "win32", pack), pack)
|
||||
self.assertTrue(intel_app.route_here("ling32", "win32", "IQ3_S")) # other families ignore the pack name
|
||||
self.assertTrue(intel_app.route_here("qwen", "win32", "IQ3_S", "qwen") and intel_app.route_here("qwen", "win32", "IQ1_M", "coder"))
|
||||
for fam in ("swift", "gyro", "unsloth"): # same pack names, not gated
|
||||
self.assertFalse(intel_app.route_here("qwen", "win32", "IQ3_S", fam), fam)
|
||||
with mock.patch.object(intel_app, "QWEN_SYCL_WINDOWS_SHIPPED", False):
|
||||
self.assertFalse(intel_app.route_here("qwen", "win32", "IQ1_M")) # the one word that turns it off
|
||||
for pack in ("IQ1_M", "IQ2_XS", "IQ3_S", "IQ3_XXS", "Q2_0"):
|
||||
self.assertTrue(intel_app.route_here("qwen", "linux", pack), pack) # Linux: every pack
|
||||
|
||||
|
||||
@@ -573,11 +573,11 @@ def system_folders() -> list[Path]:
|
||||
|
||||
|
||||
# ------------------------------------------------------------------------------------------------ Strata
|
||||
def _intel_route_here(md: dict | None = None, model: str | None = None) -> bool:
|
||||
def _intel_route_here(md: dict | None = None, model: str | None = None, family: str | None = None) -> bool:
|
||||
"""Can the Intel route of this model family run on this PC (strata_control/intel_app.py route_here: Linux, or the family's Windows switch)? Never raises."""
|
||||
try:
|
||||
from strata_control import intel_app
|
||||
return bool(intel_app.route_here(intel_app.family_kind(md), model=model))
|
||||
return bool(intel_app.route_here(intel_app.family_kind(md), model=model, family=family))
|
||||
except Exception: # noqa: BLE001
|
||||
return True
|
||||
|
||||
@@ -1887,9 +1887,9 @@ class Strata:
|
||||
memory_gb, fit_gb = d["footprint_gb"], d["footprint_gb"]
|
||||
ink = self.inkling_fit_row(m, ram, usable)
|
||||
verdict = None if ink is None else ("may run slower" if ink["mode"] == "cross_tier_ssd" else "fits")
|
||||
intel_blocked = any(g.get("vendor") == "intel" for g in usable) and not _intel_route_here(d, m)
|
||||
intel_blocked = any(g.get("vendor") == "intel" for g in usable) and not _intel_route_here(d, m, f)
|
||||
sizes.append({"model": m, "about": d["about"], "download_gb": d["download_gb"],
|
||||
**({"offered": False, "offered_note": "No Intel Arc engine for Windows yet for this model: it runs on Linux; Ling-3.2-Air and Inkling-2-Mini run on an Arc card on Windows."} if intel_blocked else {}),
|
||||
**({"offered": False, "offered_note": "No Intel Arc engine for Windows yet for this model: it runs on Linux; Ling-3.2-Air, Inkling-2-Mini and the Qwen3.8-Flash-Next Coder IQ1_M, IQ2_XS and IQ3_S sizes run on an Arc card on Windows."} if intel_blocked else {}),
|
||||
**({"hy4": hy4} if hy4 else {}),
|
||||
**({"inkling": ink} if ink else {}),
|
||||
**({"ling32": ling} if ling else {}),
|
||||
@@ -3013,8 +3013,8 @@ class Tools:
|
||||
ling_arc = bool(md.get("ling32")) # Ling-3.2-Air: its own Intel engine (setup.py routes it before the GGUF route)
|
||||
if mac or not any(g.get("vendor") == "intel" for g in hw.get("gpus", [])):
|
||||
raise ToolError("no Intel Arc card Strata can use was found in this computer")
|
||||
if not intel_app.route_here(intel_app.family_kind(md)):
|
||||
raise ToolError(f"{families[family]['title']} has no Intel Arc engine for Windows yet (it runs on Linux); Ling-3.2-Air and Inkling-2-Mini run on an Arc card on Windows")
|
||||
if not intel_app.route_here(intel_app.family_kind(md), model=model, family=family):
|
||||
raise ToolError(f"{families[family]['title']} {model} has no Intel Arc engine for Windows yet (it runs on Linux); Ling-3.2-Air, Inkling-2-Mini and the Qwen3.8-Flash-Next Coder IQ1_M, IQ2_XS and IQ3_S sizes run on an Arc card on Windows")
|
||||
if not ling_arc and not intel_app.can_set_up(family, families[family]):
|
||||
raise ToolError(f"{families[family]['title']} {model} can't be set up for an Intel Arc card yet; "
|
||||
"the Qwen3.8-Flash-Next, Swift, Coder, Gyro, Unsloth, Hy4-Flash and Inkling-2-Mini sizes can")
|
||||
|
||||
Reference in new issue
Block a user