Skip to content

Effective Batch Size Calculator

Compute the effective (global) batch size for distributed training from the per-device micro-batch, the number of data-parallel devices, and gradient-accumulation steps, plus tokens per optimizer step.

Inputs

Parallelism

≥ 1

Sequence

Results

Enter a value to see results.

Embed this calculator

Preview

Paste this code into your page to show the calculator.

Share this calculation

Anyone who opens this link sees your values already filled in.

200+ calculators · 10 languages · 100% free

Was this calculator helpful?

No

How can we improve this calculator?