Worked example
Useful training tokens (tokens): 300,000
Inputs
- Dataset sequences (count): 1000
- Mean sequence tokens (tokens): 100
- Training epochs (count): 3
- Packed batch capacity (tokens): 1000
- Packing utilization (%): 80
Expected token arithmetic with constant mean length and utilization; each epoch rounds up its own step count.
Use the units shown.
Multiply dataset sequence count, mean length and epochs.
Divide one epoch tokens by useful batch capacity, round up and multiply epochs.
Multiply steps by nominal batch capacity.
Expected token arithmetic with constant mean length and utilization; each epoch rounds up its own step count. Padding tokens are modeled as capacity minus useful tokens.
OpenStax Prealgebra 2e — arithmetic and proportions ↗Useful training tokens (tokens): 300,000
Useful training tokens (tokens): 300,000