# On Inkling the compute buffer, not the weights, decides what fits in 12 GB

- Date: 2026-11-20
- Provenance: Ours. Measured and worked out here from llama.cpp's load-time buffer sizes.
- Recipes: inkling-2-mini
- Builds on: llama.cpp
- Applies to: Models with a per-head attention bias or with many host-resident experts under op offload.
- Evidence: [inkling-2-mini/RESULTS.md:13-17](https://github.com/davidghatley/3060-recipes/blob/main/inkling-2-mini/RESULTS.md#L13-L17), [inkling-2-mini/RESULTS.md:260](https://github.com/davidghatley/3060-recipes/blob/main/inkling-2-mini/RESULTS.md#L260), [inkling-2-mini/RESULTS.md:263](https://github.com/davidghatley/3060-recipes/blob/main/inkling-2-mini/RESULTS.md#L263)

Two things in llama.cpp's compute buffer decide which Inkling-2-Mini layouts load on a 12 GB card, and neither is the model file. Op-offload staging takes about 6.7 GB when every expert is in RAM. The per-head relative-position bias mask grows as 190 bytes × context × ubatch.

Measured here: the compute buffer at load was 7.2–8.4 GB in the first layouts tried. A plain baseline of 64k context at `-ub 512` with experts in RAM cannot load at all. With the loop core on the GPU, 64k fits only with q8_0 KV and `-ub 128` (10.4 GB); f16 KV and `-ub 256` both run out of memory.

So when a layout fails to load, read the buffer sizes llama.cpp prints and lower `-ub` or the context before giving up on the quant.
