AI 101 — What is GGUF?

Share
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).
  • IQ prefixes — 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.

Get SiliconNoon in your inbox

One email a day with the AI stories that matter — what happened, the numbers, and why it matters. No spam, unsubscribe in one click.

Read more

Open Source Radar — December 5: TradingAgents ships 1.0

Open Source Radar — December 5: TradingAgents ships 1.0

Today's board is agents that have a job and an audit trail: a finance terminal that tags every number to a source, Google's browser debugger for coding agents, an autonomous red team, and one engineer's attempt to stop agent-written code from turning into mud. TradingAgents (TypeScript, 125,000 stars) started life as a multi-agent trading framework out of the paper of the same name, arXiv 2412.20138, and is now a terminal app you install and ask market questions.

Open Source Radar — December 4: MiniMax M4 runs on Huawei chips

Open Source Radar — December 4: MiniMax M4 runs on Huawei chips

Today's board is a model and the hands that use it: a 2.74-trillion-parameter open-weight release built for Chinese accelerators, an agent with its own browser, and a video editor your coding agent can drive. MiniMax M4 (2.74T parameters, weights pending) is the open-weight flagship MiniMax published overnight: 2.74 trillion parameters in total, 66 billion active per token, a 1M-token context, and native text, image and video input.

Open Source Radar — December 2: Superpowers lands in official stores

Open Source Radar — December 2: Superpowers lands in official stores

Today's board is about distribution, not novelty: the skill packs that were side projects a month ago now sit inside Anthropic's, OpenAI's and xAI's own plugin marketplaces. The question stopped being whether a skill works and became which store decides it ships. Superpowers (326k stars, MIT) is Jesse Vincent's software-development methodology for coding agents, and the news is where it now lives: Anthropic's official Claude plugin marketplace, OpenAI's official Codex plugin marketplace and…

AI 101 — What is an AI coding agent?

AI 101 — What is an AI coding agent?

An AI coding agent is a model that works on a codebase instead of just suggesting the next line: it reads the files it needs, makes a plan, edits code, runs the tests, reads whatever breaks, and tries again until the task is done — with a human reviewing the result before it ships. That loop is the whole difference between the two things people mean when they say "AI for code". Autocomplete predicts the next few characters in your editor and stops there.