Whether a model will run on your machine is largely arithmetic. Understanding it means you can tell before downloading several gigabytes whether something will work.
What are parameters?
The numbers that make up the model, counted in billions. A 7B model has around seven billion of them, and the count is the main determinant of both capability and size.
How does that translate to memory?
Each parameter takes a certain amount of space depending on precision. At full precision that is substantial; compressed formats reduce it considerably, which is why the same model comes in files of very different sizes.
What is the rough rule?
Take the file size and add a margin for working memory and context. A file of a given size needs somewhat more than that available, and running right at the limit produces failures rather than slow performance.
What does context add?
- Memory grows with context length. Longer conversations use more.
- It grows during use. Not only at loading.
- Large contexts can exceed the model itself. On long inputs.
Why do file sizes vary for the same model?
Because the same weights are published in several compressed formats, each with a different size and quality trade. A repository listing for one model frequently shows a dozen files spanning a wide range of sizes.
That is not a set of different models but a set of different compressions of one. Choosing among them is the compression decision rather than a capability decision, and the naming conventions are worth a moment to understand before downloading the wrong one.
Why does that catch people out?
Because a model that loads fine can fail partway through a long conversation. The memory was sufficient for the model and not for the model plus a growing context, which looks like instability rather than a limit.
What happens when it does not fit?
Either a refusal to load, or spilling into slower memory, which produces a dramatic slowdown rather than an error. Generation dropping from readable speed to a word every few seconds is the usual sign.
What about models with mixture-of-experts designs?
An architecture worth knowing about, because it changes the memory arithmetic. These models have a large total parameter count while activating only a portion for any given token, which makes them faster than their size suggests.
The catch is that the whole model still generally needs to be in memory even though only part is used at a time. They offer speed benefits rather than memory ones, which is the opposite of what the naming leads people to assume.
How do you check what will fit?
Compare the file size against your available memory and leave a comfortable margin, then confirm by trying it. Most desktop applications now indicate whether a model will run on your hardware before you download it, which removes the arithmetic entirely.
Where that indication is missing, the safe approach is to start smaller than you think necessary. A model that runs well is more useful than one that technically loads, and moving up a size class is a quick experiment once you know the smaller one works.
How much headroom should you leave?
Enough for your operating system and whatever else is running. Attempting to use every available gigabyte produces an unstable machine rather than a faster one.
What is the practical approach?
Start with a model comfortably smaller than your memory, confirm it works, then try larger ones. Working downwards from something that will not load wastes a great deal of downloading.