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

This commit is contained in:
Niko1221 committed 2026-12-03 00:30:23 +01:00
1 parent 864e0b3849
commit 06c7732447
2 files changed
+3 -2

No files matched your search

+1 -1
View File
@@ -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)
+2 -1
View File
@@ -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")