AuthonAuthon Blog
comparison9 min read

Best Local LLM for 16GB VRAM: Pick Gemma 4 or Inkling 2 Mini Over Qwen3.8-27B

Qwen3.8-27B's 17.7GB GGUF needs about 27GB at 128K context, and Ollama's 4K default hides it. Picks for 8, 12, 16, 24 and 32GB GPUs.

AW
Alan West
Authon Team
Best Local LLM for 16GB VRAM: Pick Gemma 4 or Inkling 2 Mini Over Qwen3.8-27B

Qwen3.8-27B's popular 4-bit GGUF (Unsloth's UD-Q4_K_XL) is 17.7 GB. Load it with 128K of context and you need roughly 27 GB of VRAM. GPU Partner's VRAM calculator puts 4-bit at 24.9 GB, and its "4-bit" is a 15.7 GB file, two gigs smaller than the one people actually download. If you're picking the best local LLM for 16GB VRAM (or 8, 24 or 32GB), the file size on Hugging Face is the wrong number to look at. On a 16 GB card my pick is Gemma 4 26B A4B or Inkling 2 Mini over Qwen3.8-27B, which only fits there at 3-bit with 20K of context. What follows is the memory math, a pick for each VRAM tier, and the Ollama default that makes a model look like it fits when it doesn't.

I went through the published figures: the GPU Partner calculator, Unsloth's model docs, the Hugging Face cards, and the HN thread on the beginner's guide that kicked this off. I didn't benchmark anything myself. Every speed below is either a calculator estimate (the site says "plus or minus 25%") or something a user reported, and I label which is which.

Why the file size lies

The memory a model needs is weights + KV cache + runtime overhead. The calculator spells out its method on the main page: weights are "parameters × bits ÷ 8", context is "tokens × layers × KV heads × head size × 2 × bytes", and overhead is "about 0.6 to 1.5 GB". Its "4-bit" is really 4.85 bits per weight ("27.8B × 4.85 ÷ 8 = 15.7 GB"), and the per-model tables assume one conversation and a 16-bit context cache.

Here is what that does to Qwen3.8-27B (dense, 27.8B params per the calculator, Apache 2.0):

| Precision | Weights | 8K | 32K | 128K |
|---|---|---|---|---|
| 8-bit | 27.5 | 29.2 | 30.7 | 36.7 |
| 6-bit | 21.2 | 22.9 | 24.4 | 30.4 |
| 5-bit | 18.4 | 20.1 | 21.6 | 27.6 |
| 4-bit | 15.7 | 17.4 | 18.9 | 24.9 |
| 3-bit | 12.6 | 14.4 | 15.9 | 21.9 |

All figures in GB. At 128K, 6-bit (30.4 GB) is the highest precision that fits a 32 GB card. 8-bit doesn't.

The catch is that the calculator's "4-bit" means 15.7 GB of weights. The file the guide downloads, UD-Q4_K_XL, is 17.7 GB. Add the same ~9.2 GB of context and overhead and you're near 27 GB. The guide's own table does suggest UD-Q4_K_M or Q4_K_S for 24 GB cards, but UD-Q4_K_M is still 16.6 GB, which lands around 26 GB at 128K. On a 24 GB card that means a failed load or a spill to system RAM, even though the file "fits".

Dense models pay far more for long context than MoE

Beginners usually skip this part. Going from 8K to 128K at 4-bit, here's how much memory each model adds, per the calculator's model pages:

| Model | Type | 4-bit @ 8K | 4-bit @ 128K | Context cost |
|---|---|---|---|---|
| Qwen3.8-27B | dense | 17.4 | 24.9 | +7.5 GB |
| Qwen3.5-9B | dense | 6.8 | 10.5 | +3.7 GB |
| Qwen3.6-35B-A3B | MoE, 3B active | 21.5 | 23.8 | +2.3 GB |
| Inkling 2 Mini | MoE, 5.4B active | 16.0 | 17.9 | +1.9 GB |
| Gemma 4 26B A4B | MoE, 3.8B active | 15.9 | 17.1 | +1.2 GB |

The dense 27B pays six times as much for context as Gemma 4 26B A4B, so on a dense model the long context is what eats your VRAM.

Best local LLM for 8GB, 12GB, 16GB, 24GB and 32GB VRAM

Every row comes from the GPU Partner calculator ("Best fit is the highest quality, up to 8-bit, that leaves 16K of context"). Speeds are estimates, not measurements.

| VRAM | Pick | Calculator best fit | Est. speed |
|---|---|---|---|
| 8 GB | Qwen3.5-9B | 4-bit, 32K on RTX 4060 | 35 tok/s |
| 12 GB | Gemma 4 12B | 6-bit, 112K on RTX 3060 12GB | 25 tok/s |
| 16 GB | Gemma 4 26B A4B | 3-bit, 224K on 5060 Ti | 129 tok/s |
| 16 GB | Inkling 2 Mini | 3-bit, 136K on 5060 Ti | 101 tok/s |
| 16 GB | Qwen3.6-35B-A3B | 8-bit, spills to RAM, 136K | 25 tok/s |
| 16 GB | Qwen3.8-27B | 3-bit, 20K on 5060 Ti | 23 tok/s |
| 24 GB | Qwen3.8-27B | 5-bit, 48K on RTX 3090 | 32 tok/s |
| 24 GB | Gemma 4 31B | 4-bit, 80K on RTX 3090 | 33 tok/s |
| 24 GB | Qwen3.6-35B-A3B | 4-bit, 72K on RTX 3090 | 190 tok/s |
| 32 GB | Qwen3.8-27B | 8-bit, 24K on RTX 5090 | 41 tok/s |
| 32 GB | Inkling 2 Mini | NVFP4, 672K on RTX 5090 | 170 tok/s |

On a 32 GB card the Qwen3.8-27B trade is precision for context: 8-bit gets you 24K, while 6-bit at 128K comes to 30.4 GB. Spill numbers assume 64 GB of DDR5 in the box. Gemma 4 31B is "Too big" for every 16 GB card on the calculator.

Qwen3.6-35B at 47 tok/s on a 16 GB card? Not by default

The guide says Qwen3.6-35B on an RTX 5060 Ti 16GB gets "about 47 tokens per second" with the leftover weights in system RAM. It credits that number to the GPU Partner calculator, and the calculator's own model page shows 25 tok/s for that card at its default best fit (8-bit, spilling, 136K). The 47 presumably comes from a lower-bit setting. The model is a reasonable choice. Just don't buy a 5060 Ti expecting 47.

My pick for 16 GB is Gemma 4 26B A4B or Inkling 2 Mini, kept entirely in VRAM. A 35B that lives half in DDR5 is a backup plan.

Not everyone agrees. One HN commenter, Pxtl, runs Qwen 27B at Q3 on a pair of old GPUs (20 GB total), gets 90K context and "awful word confusion", and still says "Qwen 27b was the level where it really clicks" after finding 9B and some of the MoE models weren't enough. That's a fair argument for saving up for 24 GB rather than settling. julianlam runs Qwen 27B at q6 on an AMD R9700 (a 32 GB card) and says it "does a significant chunk of the coding work I throw at it."

Inkling 2 Mini needs Unsloth's llama.cpp build

Unsloth's Inkling 2 Mini page lists 26.4B total / 5.4B active, 1M context, Apache 2.0. The recommended UD-Q4_K_XL is 17.6 GB, and their memory table puts 4-bit at 17-18 GB and 3-bit at 13-15 GB. The same page says "Run on 16GB RAM", which only works out at 3-bit or with spillover.

The bigger problem is the format. The root GGUFs use "Unsloth's looped-layer layout" and need Unsloth's llama.cpp fork (build b12631-mix-acc0843). Mainline llama.cpp needs the separate Mainline_Support files. The calculator doesn't list an Ollama command for it, only llama.cpp, vLLM and MLX. Use Unsloth's own runner:

bash
unsloth run --model unsloth/Inkling-2-Mini-GGUF:UD-Q4_K_XL \
    --temp 1.0 --top-p 1.0 --top-k 0 --min-p 0.0

Running them in Unsloth Desktop, Ollama or LM Studio

Unsloth Desktop is a free GUI for macOS, Windows and Linux. You pick a model and quant from the "Select model" dropdown; the GPU Partner guide sets context with the gear icon next to the downloaded model. On HN, 0xbadcafebee argued it's "more for training and fine-tuning models" and that "The most user-friendly local AI tool is LM Studio." I lean that way for pure inference.

Ollama has the opposite problem from the crash. Per its FAQ, "By default, Ollama uses a context window size of 4096 tokens." The context length page is more precise: 4K under 24 GiB of VRAM, 32K from 24 to 48 GiB. So on a 16 GB card your model loads fine and silently forgets anything past 4K. Set it explicitly:

bash
OLLAMA_CONTEXT_LENGTH=32768 ollama serve
ollama run hf.co/unsloth/Qwen3.8-27B-GGUF:UD-Q4_K_M
ollama ps
ollama ps shows where the model actually landed: 100% GPU is good, something like 48%/52% CPU/GPU means you're spilling. If context is what's pushing you over, OLLAMA_KV_CACHE_TYPE=q8_0 (it needs flash attention, which Ollama turns on automatically where supported; OLLAMA_FLASH_ATTENTION=1 forces it) uses "approximately 1/2 the memory of f16" for the cache. Since the calculator assumes a 16-bit cache, that roughly halves the context share of the totals in the first table (the 7.5 GB the 27B adds going from 8K to 128K becomes about 3.7). The FAQ warns that models with a high GQA count "may see a larger impact on precision".
bash
OLLAMA_FLASH_ATTENTION=1 OLLAMA_KV_CACHE_TYPE=q8_0 OLLAMA_CONTEXT_LENGTH=32768 ollama serve

In LM Studio's CLI, ask for an estimate before you load:

bash
lms load --estimate-only <model_key> --context-length 32768
lms load <model_key> --context-length 32768 --gpu max

The checklist

  • Look up the memory at your target context, not the weights.
  • If the file you're downloading is bigger than the calculator's weights figure, add the difference.
  • Leave about 1 GB for the desktop if the card drives your monitors (the calculator's own figure).
  • On 16 GB, prefer an MoE that fits entirely in VRAM.
  • Run ollama ps or lms load --estimate-only before you blame the model.
  • What GPU are you running, and which model actually stays loaded on it day to day? Post your VRAM and model, and I'll add the best ones to the table. Bonus points if you think the 16 GB MoE pick is wrong and dense 27B at 3-bit is worth it.

    Sources

    Best Local LLM for 16GB VRAM: Pick Gemma 4 or Inkling 2 Mini Over Qwen3.8-27B | Authon Blog