Model weights, explained in plain English
Parameters, tokens, “active” parameters, 4-bit, GGUF, MLX. Here’s what the labels on a model download actually mean, how a model learns, and how to tell if it fits your Mac. Each term is explained once here, and we use it the same way across the whole site.
Parameters, weights and tokens: one story in three steps
Three words come up again and again:
- Parameters are the numbers a model learned during training. The “70B” in a name means about 70 billion of them. They are what the model knows. They come in two kinds:
- Weights (almost all of them) say how strongly each input counts. Think of a recipe: in “2 cups flour, ½ cup sugar”, the 2 and the ½ decide how much each ingredient matters. Open-weight means you can download them and run the model on your own Mac.
- Biases (a tiny handful, usually under 1%) are one small extra number added at the end of each step (each layer), like “plus a pinch of salt”.
Under the hood:- Each parameter is a decimal number, like 0.0213.
- The weights are arranged in big grids of numbers called matrices (what is a matrix?), stacked in layers (a large model has dozens of layers).
- Each layer multiplies what comes in by its grids, adds its biases, and passes the result to the next layer.
- They are saved as files, often split into several parts:
.safetensors(the common format on Hugging Face, also used by MLX) or.gguf(used by Ollama, LM Studio and llama.cpp). - A download also comes with a small settings file (how many layers, how big) and a tokenizer file (the list of word pieces).
- Tokens are word pieces, about three-quarters of a word each. “Unbelievable” might be split into “un”, “believ” and “able”. They are the text going through the model, not part of it.
Under the hood:
- The tokenizer has a fixed list of about 100,000–250,000 word pieces, and each one has an ID number. Your text becomes a row of IDs.
- Each ID is then turned into a vector: a list of a few thousand numbers that stands for its meaning. Those vectors flow through the layers.
- At the end, the model gives every possible next token a score and picks one.
- The most tokens it can hold at once is its context window.
Here is how they fit together, from the day a model is made to the moment it answers you on your Mac.
Step 1: How they are born (training)
Nobody types the numbers in.
- A model starts out with billions of random parameters (why random?).
- During training, it reads a huge amount of text, cut into tokens (training or inference?), and keeps guessing the next token.
- Each time it guesses wrong, every parameter gets nudged a tiny bit so the next guess is a little better.
- After trillions of these nudges, the parameters hold patterns of language and facts. That is what we mean when we say the model “learned” them. (How do they know when to stop?)
- Training takes huge data centers and months.
- When it is done, the parameters are frozen and saved in a file: the weights.
How do engineers decide the size? See the appendix.
Step 2: Why they matter when you download
Downloading a model means downloading those finished weights.
- Open-weight models let anyone download them; closed models (like the ones behind most chat websites) never leave the company’s computers.
- The number of parameters decides how big the file is.
- Each parameter is stored as a number, and 4-bit means squeezing each one into fewer bits so the file is smaller.
- At 4-bit, a model takes about half a gigabyte per billion parameters, so a 70B model is roughly a 40GB download.
- That is why the size in the name (8B, 27B, 70B) is the first thing to check.
Step 3: How they work when the model runs on your Mac
Using the finished model to answer you is called inference, which just means running the model. This is the part your Mac does.
- Parameters decide memory. All the weights have to sit in your Mac’s memory (RAM) the whole time the model runs. More parameters means you need more memory.
- Tokens flow through. Your question is cut into tokens, and the model writes its answer one token at a time. (Are tokens part of training or inference?)
- Active parameters decide speed. For every token, the model does math with its active parameters (the part of the numbers that does the work for each word piece). (Where does that math happen?)
- Fewer active parameters means more tokens per second (word pieces per second). That is how speed is measured, for example “30 tokens per second”.
- Long chats use extra memory. The model keeps your whole conversation in memory as tokens (up to its context window), so long chats need extra memory on top of the weights.
Decoding a model name
Take a made-up example: Qwen3.6-35B-A3B-Instruct-MLX-4bit
| Piece | Meaning |
|---|---|
Qwen3.6 | Model family and version |
35B | 35 billion parameters in total. This sets how much memory you need. |
A3B | About 3 billion active parameters per word piece (a mixture-of-experts model). This sets how fast it runs. |
Instruct / it / Chat | Tuned to follow instructions and chat. “Base” models are raw and not meant for chatting. |
MLX or GGUF | File format: MLX for Apple’s framework, GGUF for llama.cpp, LM Studio and Ollama |
4bit / Q4_K_M / Q8_0 | Quantization level: how much the numbers are squeezed into fewer bits |
Memory math in one table
| Model size (parameters) | 16-bit (original) | 8-bit | 4-bit |
|---|---|---|---|
| 8B | ~16GB | ~8.5GB | ~4.5–5GB |
| 27B | ~54GB | ~29GB | ~15–16GB |
| 35B | ~70GB | ~37GB | ~19–21GB |
| 120B | ~240GB | ~127GB | ~66–72GB |
| 320B | ~640GB | ~340GB | ~175–190GB |
Approximate model file sizes only (GB = gigabytes). Add a few GB (more for long chats) and leave room for macOS (your Mac’s own system).
Plain-English glossary
The words we use across the site, each in one line.
- Parameters
- The numbers a model learned during training. “70B” means about 70 billion of them.
- Weights
- Almost all of a model’s parameters (the rest are tiny “biases”). “Open-weight” means you can download them and run the model on your own Mac.
- Biases
- The tiny handful of parameters (usually under 1%) that are not weights: one small extra number added at the end of each step, like “plus a pinch of salt”.
- Tokens
- Word pieces, about three-quarters of a word. More.
- Tokenizer
- The part that cuts your text into word pieces (tokens) and gives each one an ID number. It comes as a small file in the model download.
- Matrix (plural: matrices)
- A grid of numbers in rows and columns, like a spreadsheet full of numbers. The weights are the numbers in its cells. More.
- Layers
- The steps a model passes each word piece through, one after another. Each layer holds a few grids of numbers (matrices); a large model has dozens of layers.
- Vector
- A list of numbers (a few thousand) that stands for the meaning of one word piece as it flows through the layers.
- Model shape
- How many layers a model has and how big each grid is. It is chosen before training and fixes how many parameters there are. More.
- Active parameters
- The part of the numbers that does the work for each word piece. In a dense model that is all of them; in a mixture-of-experts model it is only a few.
- Mixture-of-experts (MoE)
- A model split into many small experts; only a few work on each word piece. That’s why it can be big but still fast.
- Dense model
- The opposite of MoE: every parameter works on every word piece.
- Bits (16-bit, 8-bit, 4-bit)
- A bit is the smallest thing a computer stores: a 0 or a 1.
- A number stored with more bits is more exact but takes more space.
- Original model numbers usually use 16 bits each; 8-bit and 4-bit squeeze them smaller.
- Quantization (4-bit, 8-bit)
- Squeezing the numbers into fewer bits so the file is smaller. When we say a model is “compressed”, this is what we mean.
- GB (gigabyte)
- A unit of size for files and memory (RAM). A 16GB Mac has 16 gigabytes of memory.
- Training
- How a model learns its numbers: trillions of tiny nudges in huge data centers. More.
- Loss
- A score of how wrong the model’s guesses are, on average. Lower is better. Engineers watch it during training to see if the model is improving, and to decide when to stop.
- Data center
- A building full of powerful computers. Big models are trained there, not on a Mac.
- Inference
- Running the finished model to answer you. This is what your Mac does.
- Eval
- A quiz that checks what a finished model can do on a skill, such as math, coding, facts, following instructions or safety. Evals usually happen after training (or at checkpoints: saved points along the way). People sometimes say “eval” loosely for the training test set too. More.
- Benchmark
- A standard eval that many people use, so models can be compared. Like a standardized test. More.
- Memory (RAM)
- Where the model sits while it runs.
- On Apple silicon, the CPU (the main processor) and GPU (the graphics processor) share one pool of memory (Apple calls it “unified memory”).
- That’s why Macs with lots of memory can run models that would need several expensive graphics cards on a PC.
- GPU
- The part of your Mac’s chip built to do lots of small math problems at once. This is where the model does its math for each word piece. More.
- Unified memory
- On a Mac, the CPU and the GPU share one pool of memory (RAM). The model’s parameters sit there, and the GPU can read them without copying them first. More.
- Memory bandwidth
- How fast the chip can read memory. Making each word piece means reading the active parameters, so higher bandwidth means more tokens per second. More.
- Apple silicon
- Apple’s own chips (M1 and later), used in Macs since 2020.
- Tokens per second
- Word pieces per second: how fast the model writes. Roughly 10+ feels usable for chat; 30+ feels quick.
- Context window
- How many word pieces the model can keep in mind at once. Longer conversations use more memory (the “KV cache”: the model’s saved notes on the conversation so far).
- Open-weight vs open-source
- Open-weight means you can download the model weights file. It doesn’t always mean the training data or code is open, and licenses vary.
- safetensors (file format)
- A file format for saving a model’s weights (files end in
.safetensors). It is the common format on Hugging Face and is also used by MLX. - GGUF (file format)
- A single-file model format (files end in
.gguf) used by llama.cpp, LM Studio and Ollama. More. - MLX
- Apple’s free toolkit for running AI models on Apple silicon Macs. MLX versions of models are often a bit faster on a Mac. More.
- llama.cpp
- A free, open-source program that runs models on your own computer. The GGUF format comes from it. Tools guide.
- LM Studio and Ollama
- Free apps for downloading models and chatting with them on your Mac. Tools guide.
- Hugging Face
- The main website where open models are published and downloaded.
Plain-English FAQ
What is a parameter?
A parameter is one of the numbers a model learned during training. A model has billions of them, and together they hold what the model knows.
Are weights and parameters the same?
Almost. Weights are most of a model’s parameters, so people often use the two words for the same thing.
What is a matrix?
A matrix is a grid of numbers in rows and columns, like a spreadsheet full of numbers.
- Each layer of a model holds a few big grids, and the weights are the numbers in their cells.
- One grid can have thousands of rows and columns, so it holds millions of weights.
What is a token?
A token is a word piece, about three-quarters of a word.
- “Unbelievable” might be split into “un”, “believ” and “able”.
- Tokens are the text going through the model, not part of it.
How does a model learn?
- It starts with billions of random numbers.
- During training it reads a huge amount of text and keeps guessing the next word piece.
- Each wrong guess nudges every number a tiny bit, so the next guess is a little better.
- After trillions of nudges, the numbers hold patterns of language and facts. More on training.
Is training the same as running a model?
No. Training is how the numbers get learned, and it takes huge data centers and months. Running the finished model to answer you is called inference, and that is what your Mac does.
What does 70B mean?
It means the model has about 70 billion parameters (the numbers it learned during training). More parameters usually means a model that knows more, but it also needs more memory (RAM) and answers more slowly.
What are active parameters in a mixture-of-experts (MoE) model?
A mixture-of-experts model is split into many small experts; only a few work on each word piece.
- Active parameters are the part of the numbers that does the work for each word piece.
- A model called 35B-A3B has 35B parameters in total but only about 3B active.
- You still need memory for all 35B, but it runs about as fast as a 3B model.
What does open-weight mean?
It means the model weights file (all its parameters) is free to download, so you can run the model on your own Mac with no cloud. It doesn’t always mean the training data or code is open, and licenses vary.
What does 4-bit mean?
It is a kind of quantization: squeezing the numbers into fewer bits so the file is smaller.
- Original numbers usually use 16 bits each.
- 8-bit halves the size with almost no quality loss.
- 4-bit cuts it to roughly a quarter with a small loss, and is the most popular choice on Macs.
Why do bigger models need more memory?
- The whole model, every parameter, has to sit in your Mac’s memory (RAM) while it runs.
- More parameters means a bigger file, so it needs more memory.
- Long conversations need a bit more on top.
How much memory does a model need?
Rough rule: at 4-bit, about 0.55–0.6GB per billion parameters; at 8-bit, about 1.05–1.1GB; at 16-bit, about 2GB. Then add a few GB for the conversation and leave room for macOS.
What does tokens per second mean?
It is how fast the model writes: tokens per second (word pieces per second).
- Roughly 10+ feels usable for chat; 30+ feels quick.
- More active parameters means fewer tokens per second.
What is GGUF?
GGUF is a single-file model format from the llama.cpp project.
- It is used by llama.cpp, LM Studio and Ollama, and works on Macs, Windows and Linux.
- File names like Q4_K_M or Q8_0 tell you how much the numbers are squeezed (the quantization level).
What is MLX?
MLX is Apple’s open-source machine-learning framework (a free toolkit for building and running AI models) for Apple silicon.
- MLX model versions (often from the mlx-community group on Hugging Face) are tuned for Macs and are frequently a bit faster there.
- LM Studio can run MLX models, and mlx-lm runs them from the command line (by typing commands in the Terminal app).
Should I pick GGUF or MLX?
- On a Mac, try MLX first if your app supports it, since it is often faster.
- GGUF has the widest selection and works everywhere.
- Both are fine.
Deeper questions (appendix)
Extra detail for the curious. You don’t need any of this to run a model on your Mac.
What is an “input”, and how do weights decide how much it counts?
An input is whatever numbers come into a step of the model.
- At the very first step, those are the numbers that stand for your word pieces (each token turned into a vector).
- After that, each layer’s input is the output of the layer before it.
Each weight decides how much one of those incoming numbers counts toward the next result.
- A big weight means “pay a lot of attention to this one.”
- A tiny weight means “mostly ignore it.”
- A negative weight means “push the other way.”
- In the recipe example, the ingredients are the inputs, and the amounts (2 cups, ½ cup) are the weights.
- Same ingredients with different amounts give you a different cake, and same input with different weights gives you a different answer.
Day 1, second 0 of training: what does the model look like?
Before training starts, the engineers decide the model’s shape: how many layers, and how big each grid is.
- That shape fixes how many parameters there will be, for example 70 billion.
- Then a computer fills every cell with a random small number, like 0.013 or -0.021, roughly like rolling dice billions of times.
At that moment the model knows nothing.
- Ask it anything and you’d get gibberish, because the numbers don’t mean anything yet.
- Training is what slowly turns that random noise into useful numbers, one tiny nudge at a time.
Why start with random numbers instead of all zeros?
If every number started the same, they’d all get nudged the same way and end up learning the same thing. Random starting values let each one learn something different.
How do engineers know how big to make a model?
Mostly from experience and budget, not a magic formula.
- Budget: training costs computer time, so they first decide how much they can spend. Bigger models cost more to train and need more text to learn from.
- Rules of thumb from past models: researchers found steady patterns, often called “scaling laws.” For a given budget, they roughly predict the best balance between model size and how much text to train on. One popular rule is about 20 tokens of training text per parameter.
- Small test runs: before the big run, they train tiny versions, for example 100 million or 1 billion parameters. They check which shape learns best, then scale up the winner.
- Who it’s for: they also plan for where it will run. If they want it to fit on a 32GB Mac or a phone, they cap the size, for example at around 27B or 4B.
So the shape is a careful, educated guess, tested small first. Once they pick it, it stays fixed, and training only changes the numbers inside.
Are tokens part of training or inference?
Tokens show up in both. Running a model is called inference (“runtime” means the same moment).
- During training: the training text is cut into tokens (word pieces) and the model practices guessing the next token over and over. That is how its parameters get nudged.
- During inference (on your Mac): your question is cut into tokens and the model writes its answer one token at a time.
- The difference: in training the parameters keep changing; in inference they’re frozen and only tokens flow through.
How do engineers know when training is done?
Nothing inside the model decides it’s “done.” Engineers decide using a score.
- The score (called loss): while training runs, the computer tracks how wrong the guesses are on average. Lower is better.
- A test set: they hold back some text the model never trains on and check the score on it every so often, to see if the model is really learning patterns or just memorizing.
- When to stop: usually when the planned amount of text or computer time runs out, or earlier if the test score stops improving or gets worse (a sign of memorizing). This is planned ahead because training is very expensive.
- After that: benchmarks (standard quizzes) and safety checks before release.
So “ok” means “good enough on the tests and the budget is used up,” never perfect.
Test set vs evals:
- The test set during training is held-back text. The model guesses the next word piece on it and you get one score (loss), used to check progress and decide when to stop.
- Evals come after training (or at checkpoints: saved points along the way). They are quizzes on specific skills like math, coding, facts, following instructions and safety, each with its own score.
- Benchmarks are the standard evals everyone uses so models can be compared.
- The test set answers “is it still learning?” Evals answer “what can it actually do?”
- People sometimes say “eval” loosely for both.
Just like school:
- The test set is like practice quizzes during the term.
- Evals are final exams in each subject.
- Benchmarks are like standardized tests (the SAT) for comparing students.
- One difference: once released, the model can’t study harder, because its parameters are frozen.
Where does the math happen, and how does it tie to unified memory?
- The math happens on your Mac’s chip, mainly the GPU (the part built to do lots of small math problems at once). Unified memory is where the parameters (the numbers a model learned during training) wait to be used.
- Where the parameters live: when you start a model, all its parameters are loaded into memory (RAM). On a Mac that memory is unified: the CPU and GPU share one pool, so nothing has to be copied over to separate graphics memory first.
- What happens for each token: to write one word piece, the GPU reads the active parameters out of memory, multiplies them with the numbers for your words, and picks the next token. Then it does the whole thing again for the next one.
- Why memory size matters: the whole model has to fit in memory, or it won’t run well. That’s why 64GB fits bigger models than 16GB. See the memory table.
- Why memory speed matters: the parameters are read again for every single token, so how fast memory can feed the GPU (memory bandwidth) mostly decides how many tokens per second you get. That’s why a Max or Ultra chip feels faster than a base chip.
- In short: memory size decides what fits; memory speed decides how fast it types.