From 06c77324476a73ea3aef5daeb3dbd4307121b205 Mon Sep 17 00:00:00 2001 From: Niko1221 Date: Thu, 3 Dec 2026 00:30:23 +0100 Subject: [PATCH] ling32 plan: the 'no engine yet' warning for an Intel backend follows the Intel switch again; the launcher passes sycl only when the engine ships --- terminal/strata_cli/launch/settings.py | 2 +- terminal/strata_control/ling32_fit.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/terminal/strata_cli/launch/settings.py b/terminal/strata_cli/launch/settings.py index cc95ac0681..983a8ce992 100644 --- a/terminal/strata_cli/launch/settings.py +++ b/terminal/strata_cli/launch/settings.py @@ -433,7 +433,7 @@ def check_ling32(s: LaunchSettings, *, vram_gb: float | None, ram_gb: float | No try: from strata_control import ling32_family, ling32_fit mtp_mode = ling32_fit.mtp_mode(s.mtp, default_on=ling32_family.DEFAULT_MTP, vram_gib=vram_gb, unified=bool(unified)) # auto (the default), on (forced) or off - engine_backend = {"amd": "hip", "intel": "sycl", "apple": "metal"}.get(str(vendor or "").lower(), "cuda") # the chunk of the card class follows the backend + engine_backend = {"amd": "hip", "intel": "sycl" if ling32_family.sycl_available() else "cuda", "apple": "metal"}.get(str(vendor or "").lower(), "cuda") # the chunk of the card class follows the backend (Intel only once its engine ships: the notice below says it) adv = ling32_fit.advise(vram_gb, float(ram_gb or 0.0), unified=unified, disk_free_gb=disk_free_gb, tier=s.tier or "auto", vram_budget_gib=s.vram_budget or 0.0, ram_budget_gib=s.ram_budget or 0.0, turbo_ssd=bool(s.turbo_ssd), ctx=s.context, vision=s.vision not in ("off", "no"), vision_device=s.vision if s.vision in ("gpu", "cpu") else "auto", mtp="auto" if mtp_mode == "auto" else mtp_mode == "on", backend=engine_backend) diff --git a/terminal/strata_control/ling32_fit.py b/terminal/strata_control/ling32_fit.py index a5509c47e2..b49c3a7159 100644 --- a/terminal/strata_control/ling32_fit.py +++ b/terminal/strata_control/ling32_fit.py @@ -566,7 +566,8 @@ def advise(vram_gib: float | None, ram_gib: float, *, unified: bool = False, dis warns: list[str] = list(p["notes"]) if not p["ok"]: warns.append(p["error"]) - if backend not in ("cuda", "hip", "metal", "sycl"): + from strata_control import ling32_family + if backend not in ("cuda", "hip", "metal") and not (backend == "sycl" and ling32_family.sycl_available()): # the Intel switch: an Intel engine that is not shipped yet is told warns.append("Ling-3.2-Air runs on NVIDIA, AMD and Apple Silicon in this version; this backend has no engine yet") if not unified and not vram_gib: warns.append("no graphics card was found: the experts would all come through the SSD ring and the trunk would not fit")