Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.
Python agentaichatgptdeepseekfine-tuninggemmaimage-generationllamallmllmsopenaipythonqwenreinforcement-learningself-hostedstable-diffusiontext-to-speechttsuiunsloth
Re-type the native default, not whatever the input happens to show (#9282)
Daniel Hanb01b6ab82e50
diff --git a/tests/studio/playwright_model_config.py b/tests/studio/playwright_model_config.pyindex ec0a86f37c6..7f2e4631c5b 100644--- a/tests/studio/playwright_model_config.py+++ b/tests/studio/playwright_model_config.py@@ -861,13 +861,44 @@ with sync_playwright() as p:btn.click()page.wait_for_timeout(1500)cfg = read_configs()- pinned = any(- _as_int(e.get("customContextLength")) == native_default for e in entries_for_model(cfg)- )- if pinned:+ entries = entries_for_model(cfg)+ pinned = [e for e in entries if _as_int(e.get("customContextLength")) == native_default]++ # Not every stored context here is a phantom pin. model-config-page.tsx pins the+ # active context ON PURPOSE when the placement is fixed:+ #+ # const pinFixedLayerContext =+ # target.isGguf && loadableConfig.gpuMemoryMode === "manual" &&+ # loadableConfig.gpuLayers != null && loadableConfig.gpuLayers >= 0 &&+ # loadableConfig.customContextLength == null && activeLoadedContext != null;+ #+ # with the reason stated above it: "If the user fixes GPU Layers (Manual) and+ # remembers, pin that shown context so a later fresh load keeps the fitted+ # placement instead of sending native/0 and recreating the OOM." Storing the+ # context is the feature; not storing it is the bug it was written to prevent.+ #+ # This step could not tell the two apart, so on a runner where the placement IS+ # manual -- which is every CPU-only CI runner, gpuLayers 0 -- it reported the+ # documented behaviour as a regression. It went unnoticed because it inherited a+ # closed popover from the Reset step and silently skipped until #7760 made it own+ # its state; the first time it actually ran, it failed.+ expected_pin = [+ e+ for e in pinned+ if e.get("gpuMemoryMode") == "manual"+ and isinstance(e.get("gpuLayers"), int)+ and e.get("gpuLayers") >= 0+ ]+ if pinned and len(expected_pin) == len(pinned):+ info(+ f"OK re-type-shown: context {native_default} is stored, and every entry "+ f"storing it has the fixed-layer placement that pins it deliberately"+ )+ elif pinned:fail("re-typing the shown context pinned it as an override "- f"(customContextLength={native_default})"+ f"(customContextLength={native_default}) with no fixed-layer placement to "+ f"justify it; entries={[{k: e.get(k) for k in ('gpuMemoryMode', 'gpuLayers', 'customContextLength')} for e in pinned]}")else:info("OK re-type-shown: shown context not stored as an override")