Model File Size Calculator (Quantization)
Enter the number of parameters to compare model sizes at different precisions.
Your numbers
Your results
Model File Size Calculator (Quantization) by TheCalcTools
How the Model File Size Calculator (Quantization) works
Size in bytes = parameters × bits per weight ÷ 8. Quantisation stores weights with fewer bits, cutting memory and download size at a small cost in accuracy.
Sizes here are decimal gigabytes (10⁹ bytes). Files also contain the tokenizer and metadata, which add little.
The formula
Worked example
Using the default values shown in the calculator:
| Parameters (billions) | 13 |
|---|---|
| Your bits per weight | 4.85 |
- 13 billion × 4.85 bits ÷ 8 = 7.88 GB, against 26 GB at FP16.
Result:
| Size at your bits per weight (GB) | 7.88 |
|---|---|
| FP32 (GB) | 52.0 |
| FP16 / BF16 (GB) | 26.0 |
| INT8 (GB) | 13.0 |
| 4-bit (GB) | 6.50 |
| Saving versus FP16 | 69.7% |
Frequently asked questions
Does 4-bit quantisation hurt quality?
Modern 4-bit methods usually lose only a little accuracy for large models; very small models and 2-3 bit formats lose more.
Sources and further reading
Related calculators
More in AI & Computing · All calculators
This calculator gives estimates for information only. Check important results independently before you rely on them. See our disclaimer.
