c06 · E3

Open: The Real Machine

c06.E3.1E3 · open

Section 6.6 gives two budgets and three repairs. A narrow format fails when a value leaves its range, and it fails again when a change is smaller than its step. Loss scaling moves values into the range, a master copy keeps a wide version of the weights, and a wider accumulator repairs a long sum. The section does not say which tensors may go narrow, and no rule in it chooses a format per tensor.

That choice is now made thousands of times in a training run, and the field has no settled procedure for it. A single global loss scale is the common default, and it fails when the gradients of different layers sit at different magnitudes. Per-tensor scales fix that and introduce a new question: which statistic of a tensor, measured when, decides the scale. The 8-bit and 4-bit formats arriving now sharpen the question. Their range is small enough that the scale must be recomputed during the run, and a scale that changes changes the arithmetic.

Take a position on this question: what procedure should decide the format and the scale of each tensor in a training run, and what should the run be allowed to claim about its result?

In your answer, name the quantity you measure and the moment you measure it. State the rule that turns the measurement into a format and a scale. Say what the run promises about its result, against which reference and on which metric. Name one way your procedure fails even when every step is followed. State what your procedure costs in memory, traffic or time.

Rubric. Tick each criterion your answer meets, then save the self-assessment. The platform does not grade it.

Other tiers

E1 Practise · E2 Derive

Every hint opened, solution viewed and answer checked is recorded in this browser only. See Progress to export or delete it.