| Variant | KV heads | KV cache size (MB) | Relative vs MHA |
|---|---|---|---|
| MHA (full) | 32 | , | 1.0x |
| MQA | 1 | , | , |
| GQA-2 | 2 | , | , |
| GQA-4 | 4 | , | , |
| GQA-8 | 8 | , | , |
Attention Memory Ledger separates activation tensors and the sequence-squared score allocation. Causal Attention Mask Lab visualizes which query-key pairs are allowed.
TENSOR PREFLIGHT · DOWNLOADABLE PYTORCH TOOLKIT
Trace a local forward pass, inspect tensor shapes in an HTML report, and turn a repair into a regression check. Includes eight broken-and-fixed workflows, source code and setup instructions.
Use the free calculator for a layer formula or a quick shape check.
Consider Tensor Preflight when you have a local PyTorch model and want a forward-pass report plus repeatable checks. Python 3.9+ and PyTorch 2.8+ are required. It does not run your model in this website or automatically repair it.
Open the sample report before buying to check the output format.
Python 3.9+ · PyTorch 2.8+ · Runs locally
Recommended by our team
BeLikeNative.comThe #1 AI writing tool for freelancers, perfect grammar in any language, instantly.