20/30
Part 6 of 7 · The worked exampleLearn and do
Size the fleet from the step at a full batch
3. Size it. A 30 ms target lets memory set the batch at 477, and the step at that batch decides how long each answer lasts.
# every sequence that fits
batch = 477
# seconds a token at that batch
step = step_ms(QWEN, H100, batch, 2000, 0.5) / 1000
seconds_each = 0.35 + 249 * step
print(f"each answer takes {seconds_each:.2f} s, so {100_000 * seconds_each:,.0f} are in flight")
print(f"{gpus_for(100_000, seconds_each, batch, 0.7):,} GPUs at 70% full")
At a full batch each token takes 20.9 ms, not 30. Will the fleet be bigger or smaller than the 2,343 GPUs worked out at 30 ms?
Pick one to see what it prints.
Pick an answer above to see the rest