Open-Weight AI · Lesson 1 of the journey

Weights, Precision & the VRAM Equation

What you are actually downloading when you “run an open model” — and how to know if it fits.

Why this lesson — Your mission is to stop renting intelligence through a closed API and start owning the stack. Every later choice — which model, which GPU, local vs cloud, even fine-tuning — bottlenecks on one question: will the weights fit in memory, and at what quality? This lesson hands you the equation that answers it. It is the keystone the rest of the journey is built on.

1 · The shift in mental model

When you call Claude or GPT, you send text and get text back. Someone else holds the model, the hardware, and the runtime. You rent a behaviour.

An open-weight model is the opposite deal. What gets published is a folder of files — mostly the trained weights: billions of numbers that define the model’s behaviour.A model card on Hugging Face typically lists files like model-00001-of-00004.safetensors. Those are the weights. The rest is config and tokenizer. To turn that folder into something you can talk to, you now supply the two things the API used to hide from you:

open model = weights (the files you download)  + a runtime (engine that runs them: Ollama, vLLM, llama.cpp)  + hardware (memory to hold them: usually GPU VRAM)

That third term is where beginners get burned. The weights have to physically fit in memory before anything can run. So the first skill on this whole journey is arithmetic, not coding.

2 · Precision: how big is one number?

A model with “8 billion parameters” has 8 billion numbers. How much memory that costs depends entirely on how many bytes you spend per number — its precision. Models are trained in 16-bit, but you can store them more cheaply by quantizing: keeping the same count of numbers at lower precision.

PrecisionBytes / parameterWhat it’s for
FP32 (full)4.0training math; rarely used to just run
FP16 / BF162.0the “native” quality baseline
8-bit (Q8)1.0nearly lossless, half the memory
4-bit (Q4_K_M)~0.5the sweet spot for running locally

Those 4-bit GGUF formats actually cost a touch more than 0.5 — about 0.57 bytes/param — because each block of weights carries a little metadata. Close enough for back-of-envelope sizing; we’ll get precise in the quantization lesson. [ref]

3 · The equation

Weights memory is just a multiplication:

VRAM for weights ≈ params (billions) × bytes per param (in GB)

An 8B model at 4-bit: 8 × 0.5 ≈ 4 GB. The same model at FP16: 8 × 2 = 16 GB. Same model — a 4× swing in what hardware you need, decided purely by precision.

But weights aren’t the whole bill. Two overheads ride along:

total VRAM ≈ (params × bytes/param) × 1.2 + KV cache

4 · Feel it — the calculator

This is the tool, not the table. Drag the model size and flip the precision; watch what GPU you’d need. Try to predict the number before you let go of the slider — that prediction is the skill we’re building.

VRAM estimator

8 B
Estimated VRAM for weights + overhead:
5.5 GB

Weights only, ×1.2 overhead, KV cache excluded — so treat a “fits” result near the limit as “fits for short prompts, one user.”

5 · What this unlocks for your mission

You’re cloud-GPU-first and still deciding what hardware you’d need. The equation is exactly how that decision gets made — for real, before spending a cent:

6 · Retrieval practice

Close the lesson above in your mind first. Answering from memory is what builds durable retention — re-reading only feels like learning.

1. A 13B model is offered at 4-bit (~0.5 B/param). Roughly how much VRAM do the weights alone need?

2. You drop a model from FP16 to 4-bit precision. What changes?

3. Your sizing math said “fits,” yet it crashes under load. Likeliest culprit?


▸ Primary source for this lesson

Read once, slowly: The Math Behind Local LLMs — VRAM Requirements. It walks the same formula with the KV-cache term spelled out. For the quantization side, skim LLM Quantization Explained (Q4/Q8/FP16). Both are tracked in RESOURCES.md.

I’m your teacher — ask me anything. Unsure why 4-bit barely dents quality? Want me to size a specific model you have in mind, or work out what a 70B endpoint would cost per month on RunPod? Curious how “unified memory” on the Mac really differs from GPU VRAM? Just ask in chat. When you’re ready, say next lesson and we’ll move to choosing a model — licenses, sizes, and why the leaderboard isn’t the answer.