Skip to content

KV Cache Size Calculator

Estimate the key-value cache memory a transformer holds during inference, from layer count, key/value heads, head dimension, context length, batch size, and bytes per element.

Inputs

Model

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?