3/17
Part 1 of 7 · What a playground doesLearn
Size it before you draw anything
Assume 20,000 people a day, each running a prompt 40 times. A run takes about 8 seconds: the first token, then a 300-token answer streaming in.
people, runs_each = 20_000, 40
runs_a_day = people * runs_each
average = runs_a_day / 86_400
# the busiest hour runs at 3 times the average
peak = round(average * 3)
# first token, then a 300-token answer streaming
seconds_per_run = 8
print(f"{runs_a_day:,} runs a day: {average:.1f} a second on average, {peak} at the peak")
print(f"{peak * seconds_per_run} streams open at the peak")
print(f"{runs_a_day * 10 / 1e6:.0f} GB of stored runs a day at 10 KB each")
With runs that last 8 seconds, roughly how many streams are open at once at the peak?
Pick one to see what it prints.
Pick an answer above to see the rest