GGUF
GGUF is a binary format for storing quantized LLM models, designed for efficient CPU and GPU inference, superseding GGML.
GGUF (GPT-Generated Unified Format) is a file format for storing large language models, created by the llama.cpp team to replace the older GGML format. It was introduced in August 2023 to address limitations in GGML, such as the inability to add new quantization types without breaking backward compatibility. GGUF is essentially a container format that stores the model's tensor weights, tokenizer, hyperparameters, and metadata in a single file. The format is extensible, allowing tool developers to define custom metadata keys. Key design features include: versioning (currently up to GGUF v3), support for many quantization types (Q4_0, Q4_K_M, Q5_K_M, Q8_0, etc.), and efficient loading with memory-mapped I/O. This last feature is critical-GGUF files can be loaded by mapping the file into virtual memory, enabling instant model loading and sharing of memory pages across processes. The format also supports parallelization-friendly tensor layouts. GGUF has become the de facto standard for local LLM deployment on CPU and Apple Silicon, used by Ollama, LM Studio, llama.cpp, and many other tools. Compared to Hugging Face's safetensors format, GGUF is more focused on inference optimization rather than training. One major advantage is that GGUF files are self-contained: you don't need separate configuration files or tokenizer files. For AI builders, using GGUF means you can download a single file and run an LLM immediately. The quantization metadata within GGUF also allows inference engines to automatically select the right kernels. The format is maintained by the llama.cpp community and is open-source.
GGUF is a model architecture; it is actually just a file format that can store many different architectures like Llama, Mistral, and Falcon.
Related terms
Concepts you'll usually encounter alongside this one.
Q4_K_M is a 4-bit quantization method in llama.cpp that combines 4-bit quantization for most weights with higher precision for important weights using a block size of 32.
Q8_0 is an 8-bit integer quantization format in llama.cpp that balances high accuracy with good compression, offering near-lossless quality for many LLMs.
GPTQ is a post-training quantization method that compresses LLM weights to 2-4 bits using an optimal brain quantization approach.
AWQ (Activation-aware Weight Quantization) is a quantization method that uses activation statistics to identify and protect important weights, achieving superior accuracy at low bitrates.
Used in benchmarks
Workloads on MyAI Bench that involve GGUF.
Mentioned in tutorials
Hands-on guides that put this concept to work.
Stand up a fully functional local LLM stack on Ubuntu 22.04, NVIDIA drivers, CUDA, Ollama, and your first model, in under 30 minutes.
Run local LLMs on Windows 11 the right way, WSL2, the WSL CUDA toolkit, and Ollama with full GPU acceleration. Native installer covered too.
Apple Silicon is shockingly good at LLM inference. Get Ollama running with unified memory acceleration on any M-series Mac in 15 minutes.
DeepSeek's reasoning model rivals GPT-4 on math and code. Run the distilled 7B/14B/32B variants on consumer hardware in 30 minutes.
See how this term affects your memory budget.
Real numbers, real chips, every workload.
Picks for builders, by use case.
Stay Ahead of the AI Curve
Get weekly AI hardware news, benchmark updates, and deals in your inbox. Founding-subscriber list, be one of the first.