# GGUF

> Canonical: https://skillalmanac.com/glossary/gguf | Last verified: 2026-11-24 | Index status: not offered to search engines

GGUF is a binary file format for storing language models so they load quickly and run for inference. According to Hugging Face, it was developed by the developer of llama.cpp and encodes both the tensors and standardized metadata.

Also called: gguf format, gguf model, gguf file, GGUF files, what is gguf.

## In plain language

A GGUF file is a single file that holds an AI model in a form made for running it on your own computer. Think of it as a package: the numbers the model learned plus a label sheet saying how to read them. People download GGUF files when they want to run an open model with local tools such as llama.cpp, LM Studio or Ollama. A GGUF file is not a model by itself and does not make a model better; many GGUF files are compressed versions of a bigger model, and a smaller file may answer worse. Files can be several gigabytes, so check disk space and memory before downloading.

## Technical definition

GGUF is a binary format that Hugging Face describes as optimized for quick loading and saving of models and designed for use with GGML and other executors. Hugging Face notes that, unlike tensor-only formats such as safetensors, GGUF encodes both the tensors and a standardized set of metadata. Models developed in frameworks such as PyTorch can be converted to GGUF. The tensors in a GGUF file can be stored at different precisions, and Hugging Face's table of quantization types lists names such as Q4_K and Q8_0 with their descriptions. The Hub provides a viewer for a file's metadata and tensor information.

## How it shows up when you use agents

GGUF shows up when you pick a model for a local setup. A model page lists several .gguf files with names like Q4_K or Q8_0, and you have to choose one. Hugging Face's documentation lists llama.cpp, LM Studio and Ollama among the open-source tools that can use GGUF files. This is how an agent client gets a [self-hosted LLM](/glossary/self-hosted-llm) to talk to. A coding agent pointed at a local server only sees the answers; the file decides how much memory the model needs and how much quality is traded away through [quantization](/glossary/quantization).

What breaks when it is misunderstood: people download the largest file and run out of memory, or download a tiny one and blame the agent for poor answers. Another problem is mixing up formats. GGUF is not the only way to ship [model weights](/glossary/model-weights), and a server built for another format may not read it.

Next action: before downloading, work out whether a file fits with [local-model-sizing](/skills/skill-almanac/local-model-sizing), start with one mid-sized file, and keep the source page open so you know which quantization you are running. The guide [Self-hosting an AI agent](/learn/self-hosted-ai-agent-considerations) covers what else you own once it runs.

## Common confusions

- **GGUF versus a model.** GGUF is a container. The model inside was trained by someone else and may be published under its own licence.
- **GGUF versus safetensors.** Hugging Face describes safetensors as a tensor-only format, while GGUF encodes both the tensors and a standardized set of metadata.
- **GGUF versus quantization.** Quantization is a way to store numbers at lower precision. A GGUF file may hold quantized tensors, but the format is not the same thing.
- **GGUF versus llama.cpp.** Hugging Face says GGUF was developed by the developer of llama.cpp, but other tools also read it.

## Worked examples in this catalogue

### [Self-Hosting an AI Agent: What You Take On](https://skillalmanac.com/learn/self-hosted-ai-agent-considerations)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: The guide lists what you take on when an agent runs on your machine, including model memory and network exposure, and cites the llama.cpp README as a local inference route.

Why it exercises the concept: GGUF files are what local model servers such as llama.cpp load, so the guide covers the setup around the file.

### [local-model-sizing](https://skillalmanac.com/skills/skill-almanac/local-model-sizing)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: A check of whether an open-weight language model will run on a given GPU, Mac or PC, with weight, KV-cache and overhead memory per quantization level.

Why it exercises the concept: A GGUF file is stored at one quantization level, so the size on disk and the memory needed depend on which file you pick.

### [hf-cli](https://skillalmanac.com/skills/huggingface/hf-cli)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: The catalogue lists this skill under ai-ml-engineering without a description line, so read its page before relying on it.

Why it exercises the concept: Hugging Face hosts GGUF files and its docs show how to find them by the GGUF tag on the Hub; this skill is a Hugging Face entry in the catalogue.

## Related terms

- [Quantization](https://skillalmanac.com/glossary/quantization.md)
- [Model weights](https://skillalmanac.com/glossary/model-weights.md)
- [Ollama](https://skillalmanac.com/glossary/ollama.md)
- [Open-weights model](https://skillalmanac.com/glossary/open-weights-model.md)
- [Inference](https://skillalmanac.com/glossary/inference.md)

## Sources

- [GGUF](https://huggingface.co/docs/hub/gguf), Hugging Face (Hub documentation) (accessed 2026-11-24)
- [ggml-org/llama.cpp (README)](https://github.com/ggml-org/llama.cpp), ggml-org (GitHub) (accessed 2026-11-24)
- [GGUF usage with llama.cpp](https://huggingface.co/docs/hub/gguf-llamacpp), Hugging Face (accessed 2026-11-24)

Definitions are written by Skill Almanac from the sources above and checked against them on 2026-11-24. [Glossary index](https://skillalmanac.com/glossary.md).
