38/41
Part 7 of 7 · A worked example and follow-upsLearn and do

A worked example: a worker dies at token 3,000

Now put the pieces together on one failure.

Follow the request through every piece

A worker dies at token 3,000Interactive
W1 generates r = attempt 1. At token 3,000 of 4,000, the machine dies.

Rehearse this one, because it touches every piece. Worker W1 holds attempt 1 of request r. It has generated 3,000 of a 4,000-token answer when its machine dies.

  • One crash is bad luck. Poison handling starts at two.
  • The lost work is 3,000 ÷ 31 = 97 seconds of one decode slot.

The customer sees one result, pays once, and sees none of the rest. The retry cost a minute and some GPU time, out of a window measured in hours.

Checkpoints save most of the lost tokens

A strong candidate offers a refinement: checkpoint long generations, say every 512 tokens. A checkpoint saves the tokens generated so far, so a retry can start from them.

Predict

A checkpoint every 512 tokens, and the worker dies at token 3,000. How many generated tokens are lost?

Pick an answer above to see the rest