Model size
Model size is how big an AI model is, usually measured by its number of parameters, which largely decides how much memory and computing power it needs to train and run.
The usual measure of model size is the parameter count, the number of learned weights. That is what the B in names such as 7B or 70B means: billions of parameters. Size can also be given as memory, because each parameter is stored as a number taking a fixed number of bytes. Hugging Face's documentation gives a rule of thumb: loading a model with X billion parameters takes about 4X gigabytes of memory at 32-bit precision and about 2X gigabytes at the 16-bit precision most models now use.
That arithmetic explains a lot of AI infrastructure news. On the same rule, GPT-3, at 175 billion parameters, needs about 350 GB just to hold its weights, and Llama 2 70B about 140 GB. When Hugging Face wrote its guide, the largest GPUs on the market held 80 GB, so models like these have to be split across several chips. Quantisation, storing each weight in fewer bits, shrinks the footprint: in the same guide, a 15.5 billion parameter coding model dropped from about 29 GB to about 15 GB at 8 bits and about 9.5 GB at 4 bits.
Mixture-of-experts models complicate the headline number. Mixtral 8x7B, released in December 2023, has 47 billion parameters in total, but a router sends each token through only two of eight expert blocks per layer, so about 13 billion are active for any one token. Total parameters drive how much memory is needed to hold the model; active parameters drive how much computation each token costs.
Bigger is not automatically better. GPT-3, described in May 2020, was ten times larger than any earlier non-sparse language model. Two years later the Chinchilla paper reported that many large models were undertrained: a 70 billion parameter model trained on about four times more data than the 280 billion parameter Gopher, with the same compute budget, outperformed Gopher, GPT-3 and the 530 billion parameter Megatron-Turing NLG. The authors concluded that model size and training data should be scaled up together.
In practice, model size is a good guide to hardware and running cost and a weak guide to quality. Training data, training method and architecture matter as much as the parameter count, and a well-trained smaller model can beat a larger one.
It is the parameter count: 7 billion or 70 billion learned weights. It is the most common shorthand for model size, and it gives a quick sense of the memory and hardware the model needs. A rough rule is 2 GB of memory per billion parameters at 16-bit precision, so a 70 billion parameter model needs about 140 GB just for its weights. Quantising to 8 or 4 bits cuts that by roughly a half or three quarters, and long conversations need extra memory on top. No. The Chinchilla study showed a 70 billion parameter model beating much larger ones because it was trained on more data. Quality depends on data, training method and architecture as well as size, and bigger models cost more to run. In a mixture-of-experts model, only some parts of the network are used for each token. Total parameters count everything the model contains, while active parameters count what is used per token. Mixtral 8x7B, for example, has 47 billion total and about 13 billion active.Common questions
What does 7B or 70B mean in an AI model name?
How much memory does a large language model need?
Is a bigger AI model always better?
What is the difference between total and active parameters?
Search for "parameter count", "LLM memory requirements" or "total vs active parameters" to understand what size figures mean. Reliable sources include developers' model cards and technical reports, the documentation of inference software such as Hugging Face Transformers, and research papers on scaling. Treat size figures quoted without an official source as estimates.Finding more
Working out what this means for your business?
Aileron Shift builds the systems behind this site: AI newsrooms that research, write and publish on their own, marketing automation and WordPress hosting for companies that need to move faster than their competitors.