# What is a model, actually?

> A model is a file full of numbers called parameters. The B in 8B counts them in billions, and more of them usually means smarter and always means heavier.

A model is one large file of numbers. You download it once, a runtime loads it into memory, and every answer you get is maths done on those numbers. There is no program hidden inside it and nothing that phones home.

## A file full of numbers

Each number in the file is a parameter, also called a weight. During training, a lab adjusted billions of them until the model got good at predicting the next piece of text. What the model "knows" is spread across all of them at once.

The B in a name like 8B counts parameters in billions. An 8B model holds about 8 billion numbers. A 70B model holds about 70 billion.

Those numbers have a size on disk and in memory. Labs train at 16 bits per number, which is 2 bytes, so an 8B model is about 16 GB in its original form. [What is quantization?](https://localagi.co/quantization) shrinks that to about 5 GB by storing each number with fewer bits.

**Rule of thumb.** 
Parameters times bits decides the file size. At 16-bit, budget about 2 GB. At 4-bit, budget about 0.6 GB.

### Bigger usually means smarter

More parameters give the model more room to store facts and patterns. A 70B model knows more obscure things, follows long instructions better and makes fewer things up than an 8B model from the same family.

The gain is not even. Going from 4B to 30B changes what the model can do. Going from 30B to 70B mostly adds knowledge. [Which size of model do I need?](https://localagi.co/model-classes) maps out where each step pays off.

### Bigger always means heavier

Every parameter has to sit in memory while the model runs. Every token it writes means reading those parameters again. So a bigger model needs more memory and writes more slowly on the same machine, with no exceptions.

**The catch.** 
A newer small model can beat an older big one. Training methods improve every few months, so parameter count only compares models of the same age and family. Check what a model is good at before you pick it on size. [Which model should I use for my task?](https://localagi.co/choosing-a-model) covers how.

## Open weights, open source and closed

Three labels describe how much of a model you can get. They are often mixed up.

| Label | What you get | Examples of what it allows |
| --- | --- | --- |
| Closed | Nothing. You send text to the lab's servers and get text back | Use through an app or API only |
| Open weights | The parameter file, under a licence | Run it, quantize it, fine-tune it, within the licence terms |
| Open source | The weights plus the training code and enough about the data to rebuild it | Study and reproduce the whole thing |

Almost every model you run locally is open weights. Fully open source models exist but are rarer. The weights alone are enough to run a model at home.

Open weights does not mean you can do anything with them. Some licences forbid certain uses or cap commercial use above a user count. [Can I use this model at work?](https://localagi.co/licenses) sorts the common ones into plain buckets.

## What the model does not contain

The file holds patterns learned from text. It does not hold a connection to anything, a record of you or any knowledge of recent events.

### No internet

A model cannot look anything up. When a chat app shows web results, the app fetched them and pasted them into the prompt. The model only ever sees text it was handed. [How do tools and MCP work with local models?](https://localagi.co/tools-and-mcp) covers how apps give a model tools.

### No memory of you

The file does not change when you use it. Each time you send a message, the chat app sends the whole conversation again, and the model reads it from the start. Close the chat and nothing remains inside the model.

"Memory" features in chat apps work the same way. The app saves notes and adds them to the prompt next time. [How do I chat with my documents?](https://localagi.co/chat-with-documents) uses the same trick for your files.

### No knowledge after its training date

Training stops on a date, called the cutoff. The model knows nothing that happened after it. Ask about later events and it will either say it does not know or, more often, guess with confidence.

**Try it.** 
Ask a fresh local model this, then check the answer against the release date on its model page.

```text
What is the most recent event you know about, and roughly when did it happen?
```

## Go deeper

### What the numbers actually are

Most parameters sit in large grids called matrices, one set per layer. A model has tens of layers stacked in order. Your text passes through each layer, gets multiplied by its matrices, and comes out the other end as a score for every possible next [token](https://localagi.co/tokens).

The runtime picks one token from those scores, adds it to the text and runs the whole stack again. That loop is the entire act of writing. [What happens when I press enter?](https://localagi.co/life-of-a-prompt) follows it step by step.

### File formats

The same weights ship in different containers. Labs usually release `safetensors` files at 16-bit. The local community converts them to GGUF for [llama.cpp](https://localagi.co/llama-cpp), [Ollama](https://localagi.co/ollama) and [LM Studio](https://localagi.co/lm-studio), or to MLX format for Apple's [MLX](https://localagi.co/mlx).

A GGUF file also carries the tokenizer and the [chat template](https://localagi.co/chat-templates), so one file is everything a runtime needs. [Where do I download models?](https://localagi.co/where-models-come-from) explains who does the converting and how to pick a trustworthy upload.

### Total and active parameters

Some models do not use all their parameters for every token. A [mixture of experts](https://localagi.co/dense-vs-moe) model lists two numbers, such as 120B total and 5B active. Total decides the memory you need, and active decides the speed.
