Skip to content

Attention Memory Calculator

Estimate the memory of the materialized attention score matrix in standard transformer attention, from sequence length, head count, batch size, and bytes per element — the quadratic term FlashAttention removes.

Inputs

Workload

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?