## v1.1.027 — 2026-05-19
- feature: **Custom Local LLM mode** — the AI Settings panel gains a third top-level tab. The previous Local LLM panel is renamed **Built-in Local LLM**, and a new **Custom Local LLM** tab sits next to it alongside the existing Cloud API tab. The new tab accepts any GGUF model file already on disk: Llama, Qwen (including Qwen3), Mistral, Gemma, Phi, DeepSeek, GLM, MiniCPM, StableLM, InternLM, Command-R, OLMo, and most other architectures supported by the underlying llama.cpp runtime. Pure embedding / safety / vision-encoder models (BERT, T5 encoder, CLIP, Llama Guard, GPT-OSS Safeguard, …) are detected during import and rejected up front rather than failing partway through loading.
- improvement: **Imported GGUF files are referenced in place, not copied.** A 4 GB Llama 3 or 30 GB Llama 405B already sitting in an LM Studio / Ollama / koboldcpp folder doesn't get duplicated on import — the absolute path is recorded and reads happen from there. Removing a model from the list never touches the file on disk; only the list entry goes away. The imported list is local to each Steam account on the machine (so different accounts on the same PC see separate lists) and is **not** synced through Steam Cloud, so on a different machine the models are re-imported.
- feature: **VRAM and KV-cache budgets are read straight from the GGUF header now, instead of being estimated by a one-size-fits-all heuristic.** When a custom model is imported, the app asks llama.cpp's own estimator how much GPU memory the weights actually need and how many bytes per token the KV cache uses, then caches the results next to the import entry. The "Model weight" row in the AI Settings VRAM budget panel reflects the real number — a 0.5B model shows ~450 MB instead of the previous one-size-fits-all 3.1 GB, and a non-GQA model like Phi-3-mini correctly shows its ~12 GB KV cost at 32K context (where the old shared estimate would have under-counted by 4×). Built-in Qwen 3.5 models keep their hand-calibrated values unchanged.
- feature: **Custom model cards display the metadata that's actually inside the GGUF.** Architecture (llama / qwen2 / gemma2 / …), trained context length, quantization label (Q4_K_M, Q8_0, F16, BF16, IQ4_XS, …), file size, and estimated VRAM are read straight from the GGUF header during import and shown on the card. No need to guess what's inside a randomly-named .gguf someone shared.
- feature: **The context-size picker adapts to the chosen model's trained context.** Different models have different trained context limits — TinyLlama 1.1B at 2K, Phi-3-mini at 4K, Gemma-2 at 8K, Qwen2.5 at 32K, Llama-3.2-1B at 128K — and the context-size buttons under a custom model are filtered to only the values the model was actually trained for. Picking 128K on a 2K-trained model would silently degrade output quality and is no longer offered. Models trained below the panel's normal floor of 16K still get a single button matching their trained context, so the option is always usable.
- feature: **Inline rename and remove on every custom model card.** Hovering a card reveals a ✏️ rename button (click → type → Enter to save, Escape to cancel) and a ✕ remove button (asks for confirmation; the .gguf file is never touched on disk, only the list entry). The list persists across launches.
- feature: **Per-card chat-template override** — for the occasional GGUF whose embedded template isn't right. A dropdown next to each custom model (auto / chatml / llama2 / llama3 / mistral / gemma / phi / alpaca / vicuna) overrides the chat template used when loading. For the vast majority of GGUFs the template is read straight from the file's metadata and **auto** is correct; the override exists for the small set of conversions where the embedded template is missing or wrong, and picking the family is faster than redoing the conversion.
- improvement: **Switching between Built-in / Custom / Cloud preserves the imported list and the active-model indicator.** Moving from the Custom tab to Built-in or to Cloud and back leaves the imported list intact, and the active-model dot correctly tracks whichever architecture is currently loaded across all three tabs. Removing the currently-loaded custom model unloads it cleanly so the next chat starts from a known state — pick another card or switch tabs to continue.
- improvement: **Import errors are explained in a single clear notice instead of failing silently.** Pointing the picker at a non-GGUF file, a damaged GGUF, a file that's been moved, a path that's already imported, or a model with an architecture the runtime doesn't accept produces a one-line message that says exactly what's wrong: duplicates report which existing entry already covers the file; unsupported architectures show which architecture was detected; missing files distinguish from corrupted ones.
