AI 101 — What is GGUF?

GGUF is the file format that open AI models are packaged in when you intend to run them on your own machine — one file holding a model's weights plus everything needed to load them, usually compressed to a fraction of the original size.
If you have ever downloaded a model to run locally, the file ending in .gguf was this. It is what sits behind the model names in Ollama and LM Studio, what Hugging Face repositories list in a dozen variants, and the reason a 30-billion-parameter model can fit on a laptop that would choke on the original.
What it actually is
The format's own specification describes GGUF as "a binary format that is designed for fast loading and saving of models, and for ease of reading", built for inference engines derived from GGML, the tensor library that powers llama.cpp (GGUF specification). It replaced three earlier formats — GGML, GGMF and GGJT — which each had a flaw: a model file that needed outside files to load, or metadata that could not be extended without breaking readers.
A GGUF file is a container with four parts, in order: a short header naming the format and its version; a block of key-value metadata (architecture, context length, tokenizer, licence, and whatever else the publisher wants to record); a table describing every weight tensor — its name, shape, numeric type and position in the file; then the tensor data itself.
Why it matters right now
Local models stopped being a hobbyist project. Laptop-class chips ship with neural accelerators, small open models handle routine drafting and coding, and most open-weights releases now arrive with GGUF conversions, often within hours. That makes this the format most people actually touch: the download is where "I want to try an open model" becomes a working thing.
The other shift is that GGUF escaped its own ecosystem. Hugging Face's transformers library can now load a .gguf file directly like any other checkpoint, with a fast path on Apple Silicon that keeps the weights compressed and does the maths on the packed blocks instead of unpacking them at load (Hugging Face's GGUF guide for transformers). A format invented for one C++ project is now a standard import.
The mental model: a shipping crate with a manifest on the lid
Think of a trained model as a warehouse of numbers — billions of them — plus a pile of paperwork: what shape the numbers are in, what vocabulary the model uses, how much text it can hold at once. The original training formats, such as PyTorch checkpoints or safetensors, are the warehouse itself, with the paperwork stored in separate files you have to keep together.
GGUF is flat-pack furniture. Everything goes into one box. The label on the side says which model it is, which version, and exactly how the parts are arranged. Pre-cut parts mean you do not need a workshop to assemble it: the loader reads the manifest, maps the file into memory, and starts answering questions without copying the whole thing into RAM first.
That last property matters more than it sounds. Memory-mapping lets the operating system pull in only the pieces the model is using at that moment, so a model bigger than your free memory can still start — just slowly, as the machine fetches pieces from disk.
Reading the filename
The compression is in the name, and the name is where most people get stuck. A file called Qwen3.5-4B-Q4_K_M.gguf says: base model Qwen3.5, four billion parameters, version, encoding Q4_K_M.
Q4— about 4 bits per weight instead of the 16 bits a full-precision model uses. That is roughly a quarter of the file size.K— the "k-quant" block scheme, which stores a scale factor per block of weights so the rounding error stays small.M— medium, the middle of three quality levels within that scheme (S, M, L).IQprefixes — an importance-matrix variant that fits the same quality into fewer bits by weighting the parts of the model that matter most.
The trade is the one covered in what is model quantization?: fewer bits per weight means less memory and faster transfers, at some cost to accuracy. An 8-bit copy is close to indistinguishable from the original; a 2-bit copy is visibly duller. The usual advice is to pick the largest model that fits your memory at 4-bit rather than the smallest model at 8-bit, because parameter count buys more capability than bit depth.
Common misconceptions
"GGUF is a model." It is a container, not an architecture. The same Qwen or Llama weights can exist as safetensors or as GGUF; the format changes how they are stored and loaded, not what the model learned.
"GGUF means open source." The format is open; the weights inside it carry their own licence. A GGUF conversion of a model with restricted terms is still restricted, and a community upload is not the same as the publisher's release.
"GGUF only runs in llama.cpp." llama.cpp is the reference engine, but Ollama, LM Studio and now transformers all read the format. The container is portable even when the runtime is not.
"Quantized means broken." Every local model you have used was almost certainly quantized. The damage shows up in long reasoning and rare facts first, which is why a 4-bit model can feel identical on a summary and noticeably weaker on a hard problem.
Where to learn more
The specification is short and readable, and it is the only document that settles arguments about what a field means. Hugging Face's GGUF page lists the quantization types with their bits-per-weight, useful when a filename suffix is the only clue to what you are downloading. And if you want to go from reading about the format to running one, our guide to running a local LLM walks through the setup, while local LLMs vs cloud APIs covers when the trade is worth it.
Do you run models locally — and do you chase the smallest quant that fits, or the largest that runs? Write to us via our contact page.







