Three boxes: the tale of one model in three containers
GGUF Q4_K_M ships at 396,705,472 B, GGUF BF16 at 1,198,182,848 B, safetensors BF16 at 1,503,300,328 B. The runtime picks the box; the disk picks the quant; the bytes say nothing about speed.
GGUF vs safetensors is the wrong first question. Three containers carry the same weights: two GGUF files on the llama.cpp shelf, one safetensors file on the Python shelf. The runtime you already run picks your box; the disk picks your size.
GGUF makes quantization the default; safetensors makes full precision the default. Nobody ever switched format for speed. They switched runtime for a feature, and the format came along as the ticket.
GGUF vs safetensors: which container opens where?
| the box | shipped bytes | shelf |
|---|---|---|
| GGUF · Q4_K_M | 396,705,472 B | llama.cpp — 4-bit, packed |
| GGUF · BF16 | 1,198,182,848 B | llama.cpp — full precision, lean |
| safetensors · BF16 | 1,503,300,328 B | Python — full precision, raw |
Ollama, LM Studio, Jan and llama-server answer on the llama.cpp shelf; transformers, vLLM, ComfyUI and MLX on the Python one. vLLM reads GGUF through a plugin — GPU, with caveats — and Ollama still ships an MLX runner.
What's inside each crate?
GGUF — a self-describing box
magic "GGUF" + version first 12 bytes — version u32 little-endian, 3 today kv metadata tokenizer, arch, context tensor directory name · shape · offset tensor data the quantized weights, aligned n_tensors · n_kv u64 counts — the file describes itself end to end
safetensors — a table of contents on raw weights
u64 header_len 8 bytes — how many bytes of JSON follow JSON header dtype, shape, byte offsets — every tensor by name raw tensor data nothing else — safe to mmap straight off disk born for the Python stack; from_pretrained is the native tongue
bytes for the 4-bit runt. Each weight stored at a quarter of the bits — close enough for most work, a third of the disk.
How do you choose the box?
At 2-bit the world snaps to 0, 1, −1 — a model that knows three things. At 16 it remembers every decimal. What the bytes cannot say is what quality got lost on the way down.
- check what answers on your machine — the runtime you already run picks the format, before any table does
- let the disk pick the quant — a small box takes the 397 MB file and stops reading forums
- every number is a shipped file's own bytes: 396,705,472 · 1,198,182,848 · 1,503,300,328
- pulled 2026-10-14, re-checked 2026-10-18 — one curl -sIL | grep -i content-length away
- layouts from the public format specs · record-read, no bench rig