Main Point
Parameters define learned transformations and persist with a checkpoint. Activations are computed for particular inputs; weight storage is only 1 component of a running system’s memory.
Key Points
- A changed output can follow from a changed input while parameters remain fixed.
- Training or adaptation can produce a different saved parameter state.
- Parameter counts describe learned scalar values under a reporting convention.
- Parameter count × bytes per value gives a defined weight-storage estimate.
- Runtime activations, caches, workspace, metadata and overhead need their own allowance; training can also need gradients and optimizer state.
1. Follow 1 fixed transformation
The classroom rule is `y = 2x + 1`. The weight is 2 and the bias is 1. These supplied values let us inspect the roles without claiming a training experiment.
| Input | Calculation | Computed result |
|---|---|---|
| 3 | 2 × 3 + 1 | 7 |
| 5 | 2 × 5 + 1 | 11 |
The learned-value roles stay fixed in both rows. An activation is produced while computing for a particular input; larger models produce many intermediate values before their final output. A separate log can preserve an output trace without turning that trace into model parameters.
2. Cross the update boundary explicitly
If a separate training process produces weight 3 with bias 1, the same input 5 yields `3 × 5 + 1 = 16`. This is a supplied update condition, not an observed training outcome. A checkpoint can carry that changed transformation into later requests. To explain an actual output change, record the model identities, input conditions and update history.
An embedding table and other learned transformations belong to the saved model. Their input-dependent results belong to computation. A prompt can supply information for a request while the checkpoint remains unchanged. Runtime caching or logging is a separate retention decision.
3. Inspect a dated model identity
Parameter count describes learned scalar values under a reporting convention. Learned relationships can support generation without a normal database row for each claim. A system needing exact source support or a targeted update must provide an appropriate method.
Meta’s card for the 23 July 2024 Llama 3.1 release describes pretrained and instruction-tuned configurations labelled 8B, 70B and 405B. It identifies a trained offline model state. The dated names help identify which configuration a team means; exact checkpoint, representation and runtime still have to be specified. This historical release is used here without adopting its benchmark claims or treating it as a current model recommendation.
4. Calculate weight storage with units
Use the supplied rounded counts and 2 bytes per parameter:
| Assumed parameter count | Bytes per value | Weight-value estimate |
|---|---|---|
| 8,000,000,000 | 2 | 16,000,000,000 bytes = 16 GB decimal |
| 70,000,000,000 | 2 | 140,000,000,000 bytes = 140 GB decimal |
Here 1 GB means 1,000,000,000 bytes. These are calculations for parameter values under stated assumptions. They are not measured download sizes or complete device-memory requirements. The stored format, counting convention and metadata need inspection for an actual checkpoint.
5. Complete the memory plan
A running workload can need activations, attention caches, buffers, metadata and overhead alongside weights. Request length, batch, precision and implementation affect the plan. Training can additionally need gradients and optimizer state. Record each component and its assumptions; leave an unmeasured amount unknown. Later lessons will distinguish prefill/decode state and calculate a defined cache size.
6. Closing
The opening output change can be explained with fixed parameters and different inputs. You can now separate that change from an updated checkpoint and distinguish a weight-only estimate from a complete runtime requirement. Attention will apply this distinction to learned transformations and computed sequence representations.
7. Learning Checks
Attempt each question before opening its explanation. Use the blank worksheet for a longer response.
M14-L04-Q01
Our supplied rule uses weight 2 and bias 1. Input changes from 3 to 5, and output changes from 7 to 11. Has this shown a parameter update? Under a 2-byte-per-parameter assumption, what does the 140 GB estimate for 70 billion parameters cover?
Your explanation: ____________________
Show explanation after your attempt
The supplied weight and bias stay fixed while a changed input produces another result. This does not demonstrate a parameter update. Under the stated assumptions, 70 billion × 2 bytes = 140 billion bytes = 140 GB decimal for the parameter values. Activations, caches, working space, metadata and operating overhead remain outside the estimate.
M14-L04-P01
A checkpoint has a rounded count of 10 billion parameters. Use 2 bytes per parameter to estimate weight storage in decimal GB. A colleague proposes exactly that much runtime memory and claims the calculation proves the workload will fit. What remains to be checked?
Your calculation and missing conditions: ____________________
Show explanation after your attempt
10 billion × 2 bytes = 20 billion bytes = 20 GB decimal for the specified weight values. Confirm the actual checkpoint count and format, then budget the other runtime state and overhead under the intended request, batch and implementation. The weight estimate alone cannot establish complete workload fit or performance.
Sources
- Meta. *Llama 3.1 model card*, model release 23 July 2024. Primary model card, Model Information/release/status sections. Retrieved 30 October 2026. Used for historical configuration and trained-state identification. Storage arithmetic uses separately stated rounded-count/2-byte classroom assumptions; current hardware fit and benchmark performance are not inferred.