Main Point
Calculate the quantities under their stated units, then connect a generated decision to evidence and validation. Keep a mathematical construction, an expected behavior and an observed model result distinct.
Key Points
- Matrix entries are not complete model parameters or bytes.
- Attention shares combine value coordinates over allowed positions.
- Negative-log loss concerns the observed training target.
- Raw weight storage excludes runtime state and overhead.
- Context subtraction requires a defined accounting convention.
- MoE active computation does not remove the full weight-access requirement.
- A valid boolean and a preferred token can still produce an unsupported task decision.
1. Prepare your working record
Use the blank worksheet. Record inputs, operation, result, units and what the result establishes. Complete each attempt before opening its explanation. All exercises use supplied classroom data; no API, model, tokenizer or paid experiment is required.
The 6 calculations and explanations let you check representations, prediction and resource limits. The final exercise connects application evidence, generation and validation.
2. Choose the appropriate calculation
For a simple embedding matrix, multiply rows by coordinates per row. For equal allowed attention scores, normalize equal shares and add the corresponding value coordinates. For a fixed target, use the negative natural logarithm of its assigned probability.
For raw weights, multiply parameter count by bytes per parameter and label decimal versus binary units. For a combined context budget, subtract the specified allocations before any unallocated margin. For MoE, distinguish active use from the full collection that must remain accessible.
These operations answer different questions. A model’s conditional next-token preference does not settle an evidence-backed business decision.
3. Validate an expected response
In the fictional policy exercise, keep the policy and product facts together. First identify expected behavior for the complete and incomplete packets. Then separately inspect boolean type, decision correctness and the supplied greedy selection sketch.
No result has been observed from either configuration. The source-input comparison and the internal arithmetic illustrations have different evidential roles.
4. Closing
Check each answer by reconstructing its operation and boundary, rather than memorizing the displayed value. The project will use this discipline to build a connected diagram, calculations, 10 cases and a bounded comparison plan.
5. Learning Checks
Attempt each item before opening its full explanation. You can pause longer than the video’s minimum unanswered interval.
M14-PRACTICE-Q01
A simple embedding table has 30,000 vocabulary entries and 512 coordinates per row. Calculate its scalar entries. Does this count the complete model’s parameters?
Your working and interpretation: ____________________
Show explanation after your attempt
30,000×512=15,360,000 scalar entries in this matrix. A complete model has additional parameter collections, so this is not its total. Entries do not establish bytes without a storage representation and overhead convention.
M14-PRACTICE-Q02
All 3 source positions are allowed and have equal attention scores. Values are (3,0), (0,3) and (0,0). Calculate shares and the combined 2-coordinate output.
Your working and interpretation: ____________________
Show explanation after your attempt
Each normalized share is 1/3. The output is ((3+0+0)/3,(0+3+0)/3)=(1,1). All positions have a share; the 0 vector contributes 0 to each coordinate. This combines source-position values rather than giving output-answer truth probabilities.
M14-PRACTICE-Q03
For the same observed target token, probability rises from 0.1 to 0.8. Calculate each negative natural log loss to 3 decimal places. Does loss rise or fall, and what does this objective measure?
Your working and interpretation: ____________________
Show explanation after your attempt
−ln(0.1)≈2.303 and −ln(0.8)≈0.223, so loss falls. More probability on the same observed target receives a smaller penalty under this objective. It is not a general truth probability or a complete parameter update.
M14-PRACTICE-Q04
A 10-billion-parameter checkpoint stores each parameter at 2 bytes. Calculate raw weight storage in decimal GB and explain what the number excludes.
Your working and interpretation: ____________________
Show explanation after your attempt
10×10^9×2=20×10^9 bytes=20 GB decimal for raw weights. Cache, activations, buffers and overhead need additional runtime accounting; training adds other state. The calculation does not establish a whole running service fits into 20 GB.
M14-PRACTICE-Q05
A hypothetical combined input/output limit is 12,000 tokens. Reserve 2,000 for output and 1,500 for defined other input. Calculate documents/history space before extra formatting or margin.
Your working and interpretation: ____________________
Show explanation after your attempt
12,000−2,000−1,500=8,500 tokens remain under the supplied combined convention. Extra formatting/margin has not been allocated. Actual service accounting and usable evidence quality remain separate checks.
M14-PRACTICE-Q06
An MoE reports 60 billion total parameters and 12 billion active parameters. Can the complete weight-storage plan use only 12 billion? Explain the deployment condition.
Your working and interpretation: ____________________
Show explanation after your attempt
The active count describes per-token parameter use under the reporting convention. All relevant weights still need access through a specified deployment arrangement, including possible distribution or movement. Account for the full needed collection and runtime state; active count alone is insufficient.
M14-PRACTICE-P01
Fictional policy: standard products may be returned within 30 days; customized products are excluded unless defective. The complete case is customized, nondefective, delivered 10 days ago. Same checkpoint: A receives only the 10-day question; B receives full policy/facts. Proposed B output has boolean eligible:true. A separate stipulated vocabulary sketch has scores true=2 and false=1 with greedy selection. Give A’s expected behavior, B’s supported decision, type validity, selection meaning and the factor tested. No model was run.
Your working and interpretation: ____________________
Show explanation after your attempt
A should obtain missing information or qualify its response. B should answer no and set eligible:false, explaining the customization exclusion. The supplied true is a valid boolean type but the wrong task decision. Greedy selection of the stipulated higher-scoring true does not verify the policy result. This A/B design changes input completeness, not checkpoint weights; actual outputs and improvement remain unknown.
Sources
- Devlin, Jacob, and colleagues. *BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding*. NAACL, June 2019. Primary paper, input representations. Retrieved 30 October 2026. Historical representation context; matrix dimensions here are supplied exercises.
- Vaswani, Ashish, and colleagues. *Attention Is All You Need*. Original preprint 12 June 2017; v7, 2 August 2023. Primary paper, scaled attention and vocabulary projection. Retrieved 30 October 2026. Historical mechanism, not measured vectors from the policy case.
- Jiang, Albert Q., and colleagues. *Mixtral of Experts*. 8 January 2024. Primary paper, section 2.1. Retrieved 30 October 2026. Total/active distinction; the 60-billion/12-billion exercise is hypothetical.