Skip to content
VRAM Lab

llama.cpp v1.1.0 stops wasting VRAM on 8 to 24 GB GPUs

Upgrade 8 to 24 GB GPUs and unified-memory hosts to llama.cpp v1.1.0 for per-tensor quantization, new audio and LLM support, and clean server and C++ migrations.

7 minutes read Czytaj po polsku

Share
An open home-lab desktop chassis with a dual-fan graphics card next to a compact silver aluminum mini workstation, desktop microphone, and studio headphones on a wooden workbench in soft natural daylight.
An open home-lab desktop chassis with a dual-fan graphics card next to a compact silver aluminum mini workstation, desktop microphone, and studio headphones on a wooden workbench in soft natural daylight. AI-generated illustration
On this page (9)
  1. Key takeaways
  2. What changes in llama.cpp v1.1.0 for 8 to 24 GB hosts
  3. Fitting exact VRAM budgets with target_bpw and target_size
  4. New LLMs: from 4B edge models to 220B MoE
  5. Native TTS, ASR, and full-duplex audio via mtmd.h
  6. llama-server scheduling, tool calling, and token-aware parsing
  7. Redesigned Llama Chat web UI, voice messages, and agent traces
  8. Speculative decoding and C/C++ migration: split DFlash and llama_batch_ext
  9. FAQ

Key takeaways

  • Use --target-bpw and --target-size in llama.cpp v1.1.0 to fit weights within tight 8 to 24 GB budgets.
  • Deploy new LLMs from Domyn Edge 4B to Hy4 flash 220B alongside native TTS, ASR, and Moshi audio.
  • Update llama-server callers for token-aware chat parsing, strict HTTP 400 validation, and OpenAI named tool_choice support.
  • Migrate C/C++ embedders from llama_batch to llama_batch_ext and inspect DFlash variants with llama_model_dflash_variant().

Upgrading a homelab host to ggml-org/llama.cpp v1.1.0 brings ggml v1.1.1 alongside practical improvements for 8 to 24 GB systems: automatic per-tensor quantization to hit exact memory budgets, native TTS and full-duplex audio via mtmd.h, and cleaner llama-server scheduling. If you maintain client scripts or C/C++ bindings, the release also introduces stricter HTTP validation and deprecated API replacements worth checking before you update.

What changes in llama.cpp v1.1.0 for 8 to 24 GB hosts

On discrete GPUs from the 12 GB NVIDIA GeForce RTX 3060 and 16 GB ASUS GeForce RTX 5060 Ti Dual OC up to the 24 GB NVIDIA GeForce RTX 3090, as well as 24 GB unified-memory hosts like the Apple Mac mini M5 Pro, llama.cpp v1.1.0 (ggml v1.1.1) stabilizes memory handling under tight budgets.

Five runtime and memory fixes address common bottlenecks on constrained machines:

  • On-device KV restore (#30318): Fixes per-sequence state restoration for ON_DEVICE KV caches so saving and resuming states in VRAM remains reliable.
  • Faster sequence cleanup (#32380): Eliminates O(n_cells) scans per sequence removal in KV cells, reducing slot-eviction lag at long contexts.
  • CPU staging buffer (#31438): Allocates the staging buffer from the CPU buffer type instead of consuming GPU VRAM.
  • Buffered I/O fallback (#32545): Falls back to buffered I/O when reads hit EIO errors, helping on NAS shares or flaky storage.
  • Expanded multi-device splits (#31435): Allows --tensor-split and --fit-target to accept up to llama_max_devices() configurations.

For the full math behind KV cache and buffer overhead, see GGUF file size is not the VRAM you need. To compare llama.cpp against Ollama and vLLM on homelab hardware, read Ollama, llama.cpp or vLLM? When convenience stops being enough.

Fitting exact VRAM budgets with target_bpw and target_size

Fixed quantization presets often miss 8, 12, 16, or 24 GB card limits: one preset leaves gigabytes idle while the next spills to system RAM. Automatic per-tensor quantization (#15550) solves this via --target-bpw and --target-size in the CLI, distributing bit widths per tensor to hit your target budget.

In C/C++, llama_model_quantize_params adds target_bpw, target_size, state_file, and an abort callback. A resumable state_file protects long homelab quantization runs against reboots or thermal pauses. Version 1.1.0 also applies .scale tensors automatically (#32669) and loads ffn_gate_up_exps scales (#32657). On a 16 GB GPU such as the RTX 5060 Ti, that control lets you pin a 30B MoE right around 12 to 13 GB of weights and still keep roughly 3 to 4 GB free for KV cache and runtime buffers.

Nominal weight footprints follow weights GB = nominal parameters in B * target_bpw / 8, excluding KV cache and runtime overhead:

Model scale2.5 bpw3.0 bpw3.5 bpw4.0 bpw4.5 bpw5.0 bpw6.0 bpw
4B (Domyn Edge 4B)---2.00 GB---
8B (Zaya1 8B)2.50 GB3.00 GB3.50 GB4.00 GB4.50 GB5.00 GB6.00 GB
30B (RAON-1-mini-preview)9.38 GB11.25 GB13.13 GB15.00 GB16.88 GB18.75 GB22.50 GB
65B (Recursive Ripple-65B-Preview)20.31 GB24.38 GB28.44 GB32.50 GB36.56 GB40.63 GB48.75 GB

Theoretical weight size vs. target_bpw

Computed as nominal parameters × target_bpw / 8; excludes KV cache and runtime overhead.

  • Zaya1 8B (8B)
  • RAON-1-mini (30B)
  • Ripple-65B (65B)
010203040502.5 bpw3.0 bpw3.5 bpw4.0 bpw4.5 bpw5.0 bpw6.0 bpw8 GB VRAM16 GB VRAM24 GB VRAM / UMZaya1 8B (8B) 6 GBRAON-1-mini (30B) 22.5 GBRipple-65B (65B) 48.75 GB
Show data
Zaya1 8B (8B)RAON-1-mini (30B)Ripple-65B (65B)
2.5 bpw2.5 GB9.38 GB20.31 GB
3.0 bpw3 GB11.25 GB24.38 GB
3.5 bpw3.5 GB13.13 GB28.44 GB
4.0 bpw4 GB15 GB32.5 GB
4.5 bpw4.5 GB16.88 GB36.56 GB
5.0 bpw5 GB18.75 GB40.63 GB
6.0 bpw6 GB22.5 GB48.75 GB

New LLMs: from 4B edge models to 220B MoE

New model architectures in v1.1.0 span single-card edge models up to multi-GPU MoEs:

  • 8 to 12 GB hosts: Domyn Edge 4B (#32559) pairs interleaved sliding-window attention (SWA) with RoPE only on SWA layers and Q/K norm, landing at 2.00 GB nominal weights at 4.0 bpw. Zaya1 8B (#32071) and Inkling 2 Mini (#32694) also fit comfortably in this tier.
  • 16 to 24 GB GPUs and unified-memory hosts: Inkling 2 text plus vision (#32217), Inkling 2 DSpark (#32218), RAON-1-mini-preview 30B-A4B MoE (#32176), and MiniMax-M3.1 (#32301) target 16 to 24 GB cards like the RTX 3090 or unified-memory systems such as the 24 GB Mac mini M5 Pro.
  • Multi-GPU and large unified-memory systems: Recursive Ripple-65B-Preview with DFlash2 (#31904) lands at 20.31 to 24.38 GB of nominal weights at 2.5 to 3.0 bpw alone, suiting dual-GPU or large-RAM hosts alongside Hy4 flash 220B (12B active) text and vision on the DSA iSWA cache (#32960).

Inkling 2 also receives dedicated runtime support: an indexed bias FATTN path (#33053), Inkling-2 LoRA tensor name mapping (#33055), and an inkling chat parser (#32381). For cache footprint measurements and runtime trade-offs on the smaller variant, see Inkling-2-Mini triples its cache state and Inkling-2-Mini starts on a 4 GB GPU with Strata.

Under the hood, the MoE cache moved out of llama-graph with reserved graph nodes (#32157, #32636), and LLAMA_MOE_RANDOM_ROUTING=1 (#29539) enables benchmark-only random expert routing. Tokenizer and context setup also improved with faster BPE tokenization (#32859), PLaMo-2/3 table builds (#32249), metaspace_prepend_scheme honored for SPM and always applied for BPE (#31986, #33038), and YaRN hyperparameters loaded in the model base (#33032).

Native TTS, ASR, and full-duplex audio via mtmd.h

Multimodal audio expands into dedicated speech synthesis, music generation, ASR, and realtime voice. New models include TTS engines Kokoro (#32413), Zonos3-Mini (#32020), tiny-voca (#32427), VoxCPM2 (#32443), and Fish Audio S2 (#32330); music/singing models MiniMax-Music3 (#32435) and YuE2-3B (#32369); speech recognition via Higgs Audio v3/VibeVoice-ASR (#32329); and realtime full-duplex voice in/out with Kyutai Hibiki / Moshi (#32491), alongside drama3 voice cloning (#32586) and Qwen3-TTS ICL/reference mode (#32438).

In the multi-modality CLI, new flags --tts-lang, --tts-voice, and --tts-speaker-text (#32330, #32586) expose language, voice, and reference transcript controls.

In mtmd.h, v1.1.0 adds audio types for Zonos3, YuE2, MiniMax-Music3, Fish S2, Moshi, Kokoro, tiny-voca, and VoxCPM2, plus n_channels, mtmd_gen_audio_g2p(), and mtmd_gen_state_get_ref_codes() (#32413, #32586). Supporting multimedia fixes include a shared audio FFT speedup (#32815), skipping padding-only Whisper chunks (#30403), Parakeet rel-pos view merging to avoid out-of-bounds reads (#32722), a YuE2 projector loading fix (#32606), a qwen3a audio tail fix (#32697), custom video decoder support (#32188), and pixel aspect ratio and rotation fixes (#32267).

llama-server scheduling, tool calling, and token-aware parsing

llama-server refactors slot scheduling into server_slot_sched with per-prompt running hashes (#32154). When a cached prompt restore fails under tight memory, the server clears idle slots, retries the restore, and preserves cache entries until restoration succeeds (#30997, #32828, #28992). It also clears the slot cache on global LoRA config changes (#30367) and reuses HTTP connections after streamed responses (#30492).

API callers and tool-use pipelines should watch five key updates:

  • Named tool_choice and SSE: Implements OpenAI named tool_choice (#31564) and adds GET /models/sse in single-model mode (#32398).
  • Token-aware chat parsing (#29307): Matches special tokens directly instead of scanning raw decoded text.
  • Stricter HTTP 400 validation: Passes reasoning_effort=none when supported (#32763), while returning HTTP 400 for rejected reasoning_effort values (#32332) or requests combining a grammar with ignore_eos (#32377).
  • Jinja improvements: Adds scope-chain key lookup, sort_keys=true, four missing features, and lower rendering overhead (#32396, #32366, #32352, #32023).
  • Grammar and tool fixes: Adds left-factored grammar optimization (#29557), an integer overflow fix (#32551), JSON-schema boolean "value": true (#32908), out-of-range grammar trigger rejection (#31478), and support for undeclared LFM2 tool calls, tool calls in reasoning, and lazy grammar (#32164, #32271, #32232, #32497).

Redesigned Llama Chat web UI, voice messages, and agent traces

The built-in Llama Chat web UI gets a redesign tailored to audio and tool debugging, surfacing voice messages and inspectable agent traces out of the box.

llama-server -m model.gguf --ui-agent --host 127.0.0.1 --port 8080

The --ui-agent flag (#33004) enables agent mode, while --ui-mcp-proxy-allow-private-urls (#32633) allows the MCP proxy to reach private LAN or VPN addresses.

MCP tool results now pass image and audio data (#32064), grep_search adds offset pagination (#32792), and exec_shell_command requests a short description (#32894) for clearer agent traces.

Speculative decoding and C/C++ migration: split DFlash and llama_batch_ext

DFlash speculative decoding is now split into draft-dflash, draft-dflash2, draft-dspark, and draft-lilicorr, with llama_dflash_variant and llama_model_dflash_variant() added to llama.h (#32016) so callers can detect which drafting head a model uses.

Use this checklist when updating C/C++ integrations:

  1. Migrate llama_batch: Replace the deprecated llama_batch API with llama_batch_ext and llama_process (#32306, #32356).
  2. Read GGUF string arrays: Switch to llama_model_meta_arr_n() and llama_model_meta_arr_str() (#32397).
  3. Verify recurrent and KV state behavior: GDN replay replaces rollback (#31669), sticky NaNs in recurrent state are fixed (#31913), k-pool layout is fixed on sequence edits (#32137), and QSA k-pool scoring is corrected (#32519).
  4. Update model subclasses: Model classes now own graph node budgets and indexer key rotation (#32648, #32653).

Checking your weight-plus-KV headroom, HTTP 400 error handling, and llama_batch_ext call sites up front keeps the v1.1.0 upgrade smooth across single-GPU desktops, unified-memory hosts, and multi-card homelabs.

FAQ

Does --target-size include KV cache and compute buffer memory?

No. Both --target-size and --target-bpw target the model weights, so you still need to reserve VRAM headroom for the KV cache, context window, and runtime scratch buffers.

Why did my llama-server client start getting HTTP 400 errors after upgrading to v1.1.0?

llama.cpp v1.1.0 now returns HTTP 400 for unsupported reasoning_effort levels and requests combining a grammar with ignore_eos. Check your client payloads and remove unsupported or conflicting parameters.

Is it safe to enable --ui-mcp-proxy-allow-private-urls on a homelab server?

Only if the server is restricted to trusted users and isolated from untrusted prompts or exposed ports. Enabling private-URL proxying lets the UI proxy reach internal LAN or VPN services, which widens your local attack surface.

Found it useful? Pass it on.

Share
Esc
↑↓ select↵ openCtrl K or / to search