Local models
Which local LLM fits your GPU: working backwards from VRAM
Published
Model lists are organised by name, so people shop by name: the largest model that still sounds reasonable. That is backwards. The binding constraint is not the parameter count, it is the memory budget after everything else has been paid — the desktop compositor, the context window, the KV cache and the overhead the runtime keeps for itself. Working from the budget inward is less exciting and much more likely to produce a setup that runs at a usable speed.
Subscribe via RSSMeasure what is actually available
Start with a real number, not the card's specification. On a desktop with a display attached, several hundred megabytes to a couple of gigabytes are already gone before any model loads. On a laptop with an integrated display, it is worse. Check the runtime's own report of free and total memory, or the vendor tool, while the desktop is running the way you normally use it — not on a fresh boot with nothing open.
Then subtract the context cache. This is the part people forget, and it is where an 8 GB card runs out of room on a model that “fits”. The KV cache grows with context length and with the number of layers, and its size depends on the cache precision. A generous context can add a gigabyte or more at long sequences. Decide the context length you actually need before choosing a model; a 4K window for a chat assistant is usually enough, and it changes the budget materially.
Finally, leave headroom. Running a model at 99 percent of memory works until something else opens a window, and then the system starts swapping. A model that uses about 80 percent of usable memory is a model you can actually use while doing other things. The last 20 percent is not wasted; it is what keeps the machine responsive.
A rough budget by card size
These are starting points, not guarantees, because quantization, runtime overhead and context length vary. A 6 GB card realistically holds a 7B model at 4-bit quantization with a modest context, and little else. An 8 GB card does the same with more room, or a 13B model at 4-bit with a short context. A 12 GB card is the comfortable home of 13B at 4-bit and can hold a 30B-class model at aggressive quantization if the context stays small. A 16 GB card handles 30B at 4-bit with room to spare. A 24 GB card opens the 70B class at low-bit quantization, again with a context budget that has to be respected.
The pattern is that doubling memory does not double the model size you can run. Quantization, not raw parameter count, is the lever that moves the boundary. Going from 4-bit to 8-bit roughly doubles the weight footprint for a modest quality gain; going from 13B at 8-bit to 30B at 4-bit usually gives more capability for the same memory. Compare options at the same memory budget, not at the same nominal size.
Unified memory changes the arithmetic. On Apple silicon the GPU can use system memory, which means larger models fit, at lower bandwidth. A 64 GB machine can hold a 70B model, and it will generate slowly. Whether that trade is acceptable depends on the task: batch summarisation overnight can tolerate a slow model; an interactive assistant cannot.
Quantization: the first decision, not the last
4-bit quantization is the default for local use and it is good enough for most drafting, summarisation and extraction work. 5-bit and 6-bit are a reasonable middle when memory allows. 8-bit is worth it only when you have measured a specific quality failure at 4-bit and can afford the space. Below 4-bit, quality degrades unevenly: some models tolerate 3-bit reasonably, others fall apart on structured output.
The format matters too. Different quantization schemes trade quality, speed and memory differently, and the same nominal bit-width is not the same implementation. Pick a runtime and a format you can actually run on your hardware, then evaluate a couple of quantizations of the same model on your own tasks. A benchmark you did not run is not evidence about your workload.
For the lookup itself, runanyllm removes most of the arithmetic: filter models by VRAM, unified memory, quantization and expected speed, and use its calculators for weight size and KV cache growth. Use it to shortlist candidates for your measured budget, then verify the shortlist on your own machine with your own prompt — the site narrows the field, it does not replace the measurement.
Speed is part of fit
A model that fits but generates two tokens per second is not usable for chat. Measure tokens per second on a prompt length close to your real use, and decide what your floor is. For interactive work, somewhere above ten tokens per second feels responsive on a short answer; for long-form generation, five can be tolerable. Below that, the model is a batch tool, not an assistant.
Speed depends on memory bandwidth more than on raw compute for generation, which is why a smaller model on a fast card often beats a larger one on a slower card. Prompt processing is a different story and depends more on compute; long documents will make that visible. Measure both if your workload includes long inputs, because the two numbers can point at different hardware.
Turning this into a checklist
Write down four numbers before choosing a model: usable memory with your normal desktop running, the context length you need, the tokens-per-second floor for your task, and the largest file size you are willing to download. Then look for models that fit inside the memory budget at the chosen quantization and context, and filter by speed. If nothing survives, the answer is a smaller model or a different task split — not a bigger download.
A
The cases where the answer is not a local model
Some workloads do not belong on a local GPU at all. Long-document analysis, high-throughput batch jobs and anything that needs the largest available model are usually cheaper and faster through an API, unless the data cannot leave the machine. Local models win on privacy, on latency for small repeated tasks, and on cost predictability once the hardware is already owned.
It is also fine to run two models instead of one. A small model for quick classification and drafting, a larger one for the occasional hard request, both inside the same memory budget because they are not loaded at once. Treating local inference as a portfolio rather than a single choice makes the hardware go further and avoids the trap of picking one model that is mediocre at everything.
The rule that survives every generation
Measure usable memory, subtract the context cache, leave headroom, then choose the largest model that still meets your speed floor. Quantization moves the boundary more than parameter count does. And verify with your own workload: a fit that only works in someone else's benchmark is not a fit.