# Model Weights File

> The file that holds all the numbers a model learned.

**Field:** Artificial Intelligence  
**Category:** Running Locally  
**Also known as:** Model Weights, Model Checkpoint, Weights File

## Think of it like

Think of it like a recipe book. The cook is the program, and the book holds all it learned.

## Definition

A model weights file holds the numbers a model learned in training, its weights, saved to disk. It is the model itself: the program that runs it is the same for many models, and the weights are what make each one different. Its size is about the number of weights times the bytes each takes. An 8 billion weight model at 16 bits, which is 2 bytes each, is about 16 GB. Common formats include safetensors and GGUF.

## Example

Jack downloads an open model from a model hub. The weights come as four files of about 5 GB each, plus a small config file.

## Why it matters

The file size tells you at once whether a model will fit on your machine.

## Common mistake

Opening weights files from unknown sources in old formats. Some old formats can run hidden code when loaded, so prefer safe ones.

## Three principles

- **The learned numbers.** Saved to disk.
- **Size from count.** Weights times bytes.
- **Format matters.** Some are safer.

## Related terms

- [Weight (Neural Network)](https://learn.benibix.com/term/ai/weight)
- [Parameter Count](https://learn.benibix.com/term/ai/parameter-count)
- [Open-Weight Model](https://learn.benibix.com/term/ai/open-weight-model)
- [Quantization (AI)](https://learn.benibix.com/term/ai/quantization)
- [GGUF](https://learn.benibix.com/term/ai/gguf)
- [Safetensors](https://learn.benibix.com/term/ai/safetensors)
- [Model Memory Requirements](https://learn.benibix.com/term/ai/model-memory-requirements)

![A model file drawn as a long grid of numbers, the weights. Its size is the number of weights times the bytes each one takes.](https://learn.benibix.com/diagrams/lo-model-weights.svg)

---

Source: https://learn.benibix.com/term/ai/model-weights
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-19
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
