Migrating quantization difficulty
NumericalIntermediate⏱ 30 minQuantizationsmoothquantscalingmigration
Problem
A channel has activation maximum and weight-row maximum . Typical channels have activation max and weight max .
- Compute the migration scale at and the resulting maxima.
- Repeat at .
- Compute the activation and weight dynamic ranges before and after in each case, and say which you would choose given that weights are quantized per channel to INT8 and activations per tensor to INT8.
Compute the requested quantities and say what they mean. A number without an interpretation is not an answer.
Solution
Opening this before you have a real attempt on paper is the fastest way to feel like you understand something you cannot reproduce.
Related problems
All problems| Solved | Problem | Field | Type | Difficulty | Time |
|---|---|---|---|---|---|
| Derive the attention crossover length | LLM Ops | Proof | 15 min | ||
| Effective bits lost to dynamic range | Quantization | Numerical | 15 min | ||
| Mini-batching and the compute budget | SGD | Numerical | 30 min | ||
| The α/r scaling | Fine-Tuning | Proof | 30 min | ||
| Why attention divides by the square root of d_k | Deep Learning | Proof | 30 min |