diff --git a/terminal/setup.py b/terminal/setup.py index 014266e9ae..515279c35e 100644 --- a/terminal/setup.py +++ b/terminal/setup.py @@ -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 diff --git a/terminal/tools/test_setup_ling32.py b/terminal/tools/test_setup_ling32.py index 2c71d9264e..17ee53d5b0 100644 --- a/terminal/tools/test_setup_ling32.py +++ b/terminal/tools/test_setup_ling32.py @@ -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."""