Decoding and constraints / 4 of 9
Parameters and model capacity
What you’ll learn
- Explain the main idea of “Parameters and model capacity” in your own words.
- Trace a concrete example and identify the assumptions behind it.
- Apply the principle in a practice problem and recognize a common failure.
The idea, intuitively
Parameters are learned numeric values such as weights and biases. More parameters can increase representational capacity, but quality also depends on data, training, architecture, and evaluation. Parameter count is not a universal intelligence score.
Separate what a model learned during training from what an application supplies at runtime. Generation settings change how outputs are selected, while architecture and precision affect resource needs. The labs use small transparent calculations so you can understand mechanisms without downloading a model or calling an API.
Under the hood
Raw weight storage is approximately parameter count times bits per parameter divided by eight. Actual inference requires runtime buffers, activations, metadata, and a KV cache. Mixture-of-experts models also distinguish total from active parameters.
A weight-only estimate is a lower bound, not a promise that a device can run the model.
A worked example
A 7-billion-parameter model at 16 bits needs about 14 decimal GB for weights alone.
How to use this way of thinking
Compare one setting at a time using fixed inputs and a written quality rubric. Record the checkpoint, tokenizer, decoding options, and hardware. Report failures and resource costs alongside successful examples. Do not infer factual reliability from confidence, fluency, or parameter count alone.
See the mechanism
Keep the model at 7 billion parameters. Switch from 16 bits to 4 bits and check how much raw weight storage you save.
Opening the experiment…
Try it yourself
Estimate raw weights for 3 billion parameters at 8 bits.
Key takeaways
- Runtime buffers, activations, and KV cache
- A weight-only estimate is a lower bound, not a promise that a device can run the model.
- Check the assumptions with a small example before applying this idea to a larger system.
Check your understanding
Use feedback to learn. Quiz scores and lesson completion are tracked separately.
Go to lesson completionFurther reading
Original papers and reference material for this school. External resources may be in English and require internet access.
Hugging Face: generation configuration (opens a new tab)llama.cpp project (opens a new tab)Finish this lesson
Mark this lesson complete when you’re ready to continue.