GGUF is the model file format that llama.cpp reads. It replaced the older GGML format. One file holds the tensors plus the metadata: tokenizer, architecture, and the chat template.
That self-contained design is the point. You download one file and run it, with nothing else to assemble.
It fits the local, single-user lane. llama.cpp, Ollama and LM Studio all take GGUF, on CPU or a split between CPU and GPU. Server engines like vLLM read safetensors on the GPU instead.
The quantization level sits in the file name.
Llama-3.1-8B-Instruct-Q4_K_M.gguf
^^^^^^^ 4-bit k-quant, medium size
GGUF is an inference format. You convert to it from Hugging Face weights, and you do not train in it.
This answer doesn't lend itself to a diagram - it reads best . No credits were charged.
Why there's no diagram: “”
The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓
The diagram below the answer is the concept . Jump to it ↓