ling32 setup: no --map-experts on Windows

The Windows engine refuses the flag ("map_experts is Linux only") and stops at start. Setup added it for every unified-memory tier A plan, which is right on Linux (Strix Halo, DGX Spark) and wrong on Windows (found by the app run on Strix Halo with the Windows HIP engine). The flag now needs a platform other than Windows; a test pins it.
This commit is contained in:
Niko1221 committed 2026-12-03 01:25:01 +01:00
1 parent 4084a5e41d
commit b9e7b3e2b1
2 files changed
+8 -1

No files matched your search

+2 -1
View File
@@ -10858,7 +10858,8 @@ def ling32_engine_args(a, vram_gib, ram_gib, unified, ctx, vision: bool = False,
return args, adv
args += ling32_fit.tier_args(tier=getattr(a, "tier", None) or "auto", vram_budget_gib=getattr(a, "vram_budget_gib", None) or 0.0,
ram_budget_gib=getattr(a, "ram_budget_gib", None) or 0.0, turbo_ssd=bool(getattr(a, "turbo_ssd", False)),
cpu_coexec=getattr(a, "cpu_coexec", None) or 0, map_experts=bool(unified and adv["plan"]["mode"] == "A"))
cpu_coexec=getattr(a, "cpu_coexec", None) or 0,
map_experts=bool(unified and adv["plan"]["mode"] == "A" and sys.platform != "win32")) # mapping the file is Linux only: the Windows engine stops with "map_experts is Linux only" (found by the Strix app run)
return args, adv
+6
View File
@@ -378,6 +378,12 @@ class EngineArgs(unittest.TestCase):
self.assertEqual(adv2["tier"], "C")
self.assertNotIn("--map-experts", args2)
def test_windows_never_maps_the_file(self):
with mock.patch.object(setup.sys, "platform", "win32"): # the Windows engine refuses the flag ("map_experts is Linux only")
args, adv = setup.ling32_engine_args(ns(), None, 121.0, True, 32768, backend="hip")
self.assertEqual(adv["tier"], "A")
self.assertNotIn("--map-experts", args)
class Install(unittest.TestCase):
"""install_ling32_air steps 2-7 end to end with the outside world replaced (engine fetch, pip, the config writer): the config it writes is what serve and the launcher read."""