RigFit Lab

LOCAL AI FIELD GUIDE

How to calculate LLM weight memory

Focus: Formula

Multiply parameter count by weight precision in bits and divide by eight, then convert bytes to GiB.

Test procedure

For a 7-billion parameter model at 4 bits, nominal weight storage is about 3.26 GiB before metadata.

What the result means

Add KV cache and runtime overhead using the calculator rather than using weight size alone.

These are planning recommendations, not measured performance for your particular machine.

Source or calculator · Check your hardware · Our measured lab results