What Is GGUF? The Local LLM File Format Explained
GGUF is the file format of the llama.cpp ecosystem, used by Ollama, LM Studio, KoboldCpp, Jan and many more.
What is inside
- Model weights, usually quantised.
- Tokenizer.
- Chat template.
- Architecture metadata (layers, context length, rope settings).
Everything an app needs to run the model is in one file, which is why GGUF is so convenient.
Naming
Files are named by quant type, for example Q4_K_M, Q5_K_M, Q8_0, IQ3_XS. The number is roughly bits per weight. See quantization and Q4 vs Q5 vs Q8.
Split files
Very large models are split into parts (-00001-of-00003.gguf); download all parts.
Beyond text
GGUF is also used for some image and video diffusion models via community loaders.
Guide: which GGUF quant to download.
Related
More terms: Abliteration · Base model · DPO · Fine-tuning · Mixture of experts · Model card · Full glossary