GGUF
Definition
A single-file format from the llama.cpp project that stores model weights, often quantised, with the metadata needed to run them locally.
In more detail
Tools such as llama.cpp, Ollama and LM Studio load GGUF files. Model pages usually offer several GGUF variants at different quantisation levels.
GGUF is a single-file format from the ggml project that replaced the older GGML files. It stores the weights together with metadata such as the tokenizer, chat template and architecture, so a tool can load it without extra files. Quantisation names like Q4_K_M or Q8_0 describe how the weights were compressed; lower numbers are smaller and lose more quality.
Related terms
Open-weight model
A model whose trained weights are published for download, whatever the licence terms on their use. Training data and code may stay private.
Quantization
Storing model weights at lower numerical precision, such as 8 or 4 bits, to reduce memory use and speed up inference at a small quality cost.
Read more about GGUF
- llama.cpp
C/C++ inference engine for GGUF models on CPUs and GPUs; many local tools use it.
- Quantization
Storing model weights at lower numerical precision, such as 8 or 4 bits, to reduce memory use and speed up inference at a small quality cost.
- Ollama
Runs open-weight models locally with one command and serves an OpenAI-compatible API.