01
Basics of local inference
- 1.1What 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.
- 1.2What is a token?A token is a chunk of text, often part of a word. Speed is measured in tokens per second, and human reading speed is the yardstick.
- 1.3What happens when I press enter?The model first reads your whole prompt, then writes the answer one token at a time. Reading is limited by compute and writing is limited by memory bandwidth.
- 1.4Will the model fit in my memory?A model either fits in memory or it does not, and that decides everything else. Budget for the weights, the context and room for the operating system.
- 1.5What makes a model fast?Memory capacity decides what fits, memory bandwidth decides how fast it writes, and compute decides how fast it reads your prompt. Most slowness is a bandwidth problem.
- 1.6What is quantization?Quantization shrinks a model by storing each number with fewer bits. 4-bit is the usual default and most people never notice the difference.
- 1.7How much can the model keep in mind?The context window is the model's working memory, measured in tokens. Many runtimes start it small to save memory, which quietly breaks agents and long documents.
- 1.8Should I touch temperature and the other sliders?Mostly no. The defaults that ship with a model are usually right, and there are two cases where changing them helps.
- 1.9Why does my model ramble or answer itself?Every model expects a specific wrapper around each message, called a chat template. Get it wrong and the model rambles, talks to itself or prints stray tags.
- 1.10What are reasoning models, and why are they slow?Reasoning models write out their thinking before they answer. Those thinking tokens cost the same time as answer tokens, so turn thinking off when you do not need it.
- 1.11What is a mixture of experts model?In a mixture of experts model only a few parts run for each token, so it writes faster than a dense model of the same size. You still need memory for the whole thing.
- 1.12Local or cloud: which should I use?Local wins on privacy, marginal cost and availability. Cloud wins on the largest models and zero setup, so most people end up using both.