Prasit Mankad

Running local LLMs on a gaming laptop: the VRAM math nobody explains

A practical guide to which models fit in 16GB VRAM, how quantization affects the calculation, and what the Blackwell driver situation actually looks like on Linux.

The question I get most often about running local LLMs is: will this model fit on my GPU? The answer is always “it depends,” and then nobody explains what it depends on. Here’s the actual math.

The formula

VRAM requirement = (model parameters × bytes per parameter) + KV cache overhead

The bytes per parameter is set by quantization level. Q8 is 1 byte per parameter. Q4 is 0.5 bytes. Q2 is 0.25 bytes. These are approximations, but they’re close enough for planning.

KV cache overhead depends on context length and batch size. For typical single-user inference with moderate context, budget 2-4GB on top of the model weights.

So for a 14B parameter model at Q4: 14 billion × 0.5 bytes = 7GB for the weights, plus roughly 3GB for KV cache, equals about 10GB total. That fits in 16GB with headroom.

What fits and what doesn’t on 16GB

My hardware is an ASUS ROG Zephyrus G14 2025 with an RTX 5070 Ti Mobile. 16GB VRAM.

Qwen3-14B at Q4 quantization: about 10GB. Fits comfortably. This is my daily driver for coding assistance and document analysis.

Qwen3-30B-A3B, which is a mixture-of-experts model: about 18GB at Q4. Doesn’t fit. The MoE architecture means the active parameter count is lower than 30B during inference, but the full model still has to be loaded into VRAM.

Qwen3-32B at Q4: about 22GB. Doesn’t fit.

Qwen3.5-35B-A3B in GGUF format via llama.cpp: at Q2 quantization, about 13GB. Technically fits. But Q2 is aggressive enough that the quality degradation is noticeable. You’re trading model size for quality in a way that often isn’t worth it. I’d rather run a smaller model at Q4 than a larger model at Q2.

The general principle: Q4 is the sweet spot. It’s the lowest quantization level where quality stays close to the full-precision model for most tasks. Q8 is better quality but uses twice the VRAM for marginal gains. Q2 fits more models but the quality drop is real.

The Blackwell complication

The RTX 5070 Ti Mobile is Blackwell architecture. On Linux, this matters.

The open kernel module for Nvidia GPUs, nvidia_open, was still immature for Blackwell in early 2026. I was getting GPU hang errors every few seconds during heavy inference. The GPU would lock up, the driver would reset it, and Ollama would crash. Not occasionally. Consistently.

The fix is forcing the proprietary Nvidia module instead of the open one. On Arch-based systems:

# In /etc/modprobe.d/nvidia.conf
options nvidia NVreg_OpenRmEnableUnsupportedGpus=0

Ensure the proprietary module loads instead of the open one. After switching, the hang errors stopped entirely. Inference runs clean.

This is the kind of thing that doesn’t show up in the “getting started with local LLMs” guides because it’s hardware-specific and driver-version-specific. If you’re on Blackwell and seeing random crashes during inference, this is probably why.

Ollama and OpenCode integration

Ollama exposes an OpenAI-compatible API on localhost:11434. OpenCode connects to it as an API client, configured with the local endpoint instead of a cloud URL. There’s no magic here. It’s the same API shape, just pointed at your machine.

One thing to know: Ollama doesn’t auto-start. You manage the server lifecycle yourself. If you want Ollama running when you boot, you add it to your init system. If you forget to start it before opening OpenCode, you get connection errors. This is a minor annoyance but worth knowing upfront.

The model also has to be pulled before you can use it:

ollama pull qwen3:14b

First pull downloads the model weights, which for a 14B model is several gigabytes. Subsequent starts load from local storage.

The honest quality assessment

For a 14B model, local inference on 16GB VRAM is genuinely usable for coding assistance and document analysis. Qwen3-14B handles code review, explains unfamiliar codebases, writes tests, and summarises documents well. It’s not as good as Claude Sonnet or GPT-4o on hard reasoning tasks, but it’s good enough for the majority of daily work.

Where local models fall short: long context tasks where you’re feeding in a large codebase and asking for architectural analysis, complex multi-step reasoning that requires holding a lot of state, and anything where you need the model to be reliably right rather than usually right. For those tasks, I use cloud models.

The privacy and cost tradeoff is real. Local inference is free to run after the hardware cost. It’s private by default. It’s slower than cloud inference, especially for the first token. Cloud models are faster, better on hard tasks, and cost money per token. I use both, choosing based on the task.

What 16GB actually buys you

Sixteen gigabytes of VRAM is enough to run a genuinely capable local model. Qwen3-14B at Q4 is not a toy. It’s a model that handles real work. The gap between it and the frontier cloud models is real but not as large as it was a year ago.

The constraint isn’t the model quality. It’s the context window and the speed. Local inference at 14B is slower than cloud inference, and the effective context length before quality degrades is shorter. For tasks that fit within those constraints, local is a reasonable choice. For tasks that don’t, it isn’t.

The VRAM math is worth understanding because it tells you exactly where those constraints are. You’re not guessing whether a model will fit. You’re calculating it.