GGUF
GGUF (GPT-Generated Unified Format) is a binary file format for storing and distributing large language models, designed and promoted by the llama.cpp project. It encapsulates model weights, metadata, and quantization parameters in a single file and supports multiple quantization precision levels to reduce model size and memory footprint. GGUF is widely used in local inference scenarios and is compatible with multiple inference frameworks and hardware platforms.
Core Facts
llama.cpp was implemented in pure C/C++ by Georgi Gerganov, and the GGUF format packages model architecture metadata, vocabulary, and quantized weights into a single file.
GPTQ uses second-order gradient information to minimize quantization error, AWQ identifies and protects the weights with the greatest influence on activation values, and GGUF was introduced by the llama.cpp project and is specifically optimized for CPU inference.
The GGUF format was introduced by the llama.cpp project and is optimized for CPU inference scenarios.
Timeline (last 90 days)
IQ4XS is a 4-bit quantization scheme under the GGUF format, commonly seen in local inference frameworks such as llama.cpp.
Taking k-quant as an example, weights are stored in blocks (super-blocks), each containing several sub-blocks; dequantization requires first reading the scale factor and minimum value, then performing multiply-add restoration for each element, a process tightly coupled with the multiply-add loops of gemv or gemm.
The developer has released the open-source tool inside-llm, which loads one or two GGUF models based on llama.cpp and displays the model's internal state in real time in the browser as it generates text.
Modern quantization formats such as GGUF and GPTQ adopt an approach similar to per-row scaling.
In the code comprehension task, the Unsloth model's generation rate was roughly between 107 and 117 tokens per second, averaging 70 to 80 tokens per second; the GGUF 3-bit quantized version was about 110 tokens per second.
The GGUF format mainly targets the llama.cpp ecosystem, GPTQ and AWQ are common in GPU inference stacks, and bitsandbytes provides an online quantization solution integrated with Hugging Face Transformers.
The commonly seen GGUF format and its various quantization levels (such as Q4_K_M and Q8_0) in the llama.cpp ecosystem are products of the quantization approach.
The standardization of the local inference toolchain (model formats such as GGUF and safetensors, inference engines such as llama.cpp, Ollama, vLLM and MLX) has significantly lowered the barrier for ordinary users to run large models.
The GGUF version is expected to be released the next day, and Alish said that anyone who wants to test the GGUF version early can contact him in the comments.
GGUF supports memory-mapped (mmap) loading, which can shorten large models' startup time and reduce peak memory.
40 more timeline events
All Facts (20)
llama.cpp was implemented in pure C/C++ by Georgi Gerganov, and the GGUF format packages model architecture metadata, vocabulary, and quantized weights into a single file.
90%VerifiedGPTQ uses second-order gradient information to minimize quantization error, AWQ identifies and protects the weights with the greatest influence on activation values, and GGUF was introduced by the llama.cpp project and is specifically optimized for CPU inference.
90%VerifiedThe GGUF format was introduced by the llama.cpp project and is optimized for CPU inference scenarios.
90%VerifiedGGUF packages model weights, tokenizer vocabulary, hyperparameter configurations, and more into a single file, supporting multiple quantization precisions such as Q2_K, Q4_K_M, and Q8_0.
90%Verifiedllama.cpp is a pure C/C++ inference framework that supports CPU inference and extremely low-bit quantization (e.g., 4-bit, 2-bit), enabling LLMs to run on laptops and even Raspberry Pis.
90%Verifiedllama.cpp is a pure C/C++ inference engine developed by Georgi Gerganov that supports running large models in a CPU-only environment.
90%VerifiedThe GGUF format was released by the llama.cpp community in August 2023 as a replacement for the GGML format.
90%VerifiedThe GGUF format was designed by Georgi Gerganov, the founder of the llama.cpp project.
90%Verifiedllama.cpp is an open-source project initiated by developer Georgi Gerganov in 2023, implementing inference for the LLaMA series of models in pure C/C++.
90%VerifiedA 7B-parameter model requires only approximately 4 GB of VRAM to run after 4-bit quantization.
90%VerifiedOllama is based on the llama.cpp inference engine at its core and natively supports quantized models in GGUF format.
90%VerifiedGGUF (GPT-Generated Unified Format) is a model file format defined by the llama.cpp project.
90%VerifiedCommon model quantization methods include formats such as GPTQ, AWQ, and GGUF.
90%Verified4-bit quantization techniques (such as GPTQ, AWQ, and the GGUF format) can reduce model VRAM requirements to 1/4 of the original, but come with a certain degree of accuracy loss
90%VerifiedQ4 quantization compresses each weight parameter from 16 bits to 4 bits, theoretically reducing model size by approximately 75%
90%Verifiedllama.cpp has evolved into a general-purpose local inference framework covering multiple backends including CPU, CUDA, Metal, and Vulkan.
85%VerifiedUsing quantized versions (such as Q4, Q5) can significantly reduce VRAM usage with minimal performance loss.
85%VerifiedGGUF has become the de facto standard format for mainstream local inference tools such as llama.cpp, Ollama, and LM Studio.
85%VerifiedOllama is a local large model runtime tool that listens on port 11434, requires no authentication by default, and provides REST APIs for model management and inference including /api/pull, /api/create, and /api/chat.
80%VerifiedLM Studio provides a graphical interface, suitable for users unfamiliar with the command line.
80%