# Model Size Calculator

- **URL:** https://codeasystem.com/calculators/developer/model-size-calculator/
- **Category:** developer
- **Description:** Compute on-disk model weight size in decimal GB and binary GiB, plus download time over a 100 Mbps link.
- **Primary output:** Disk size (decimal GB): 140 GB

## Inputs
- Parameters (name: `paramsBillions`, type: number, example: 70)
- Data type (name: `dtype`, type: select)

## Outputs
- Disk size (decimal GB): 140 GB
- Disk size (binary GiB): 130.39 GiB
- Bytes on disk: 140,000,000,000
- Download time @ 100 Mbps: 03:06:40

## Formula / methodology
```
bytes = params × 10⁹ × bytes/param
GB = bytes ÷ 10⁹   GiB = bytes ÷ 2³⁰   download s = bytes × 8 ÷ 10⁸
```

Weights dominate model file sizes: parameters times bytes per parameter. Decimal GB suits marketing sheets and network math; binary GiB suits disks and RAM, differing by ~7%; both shown so units never silently mix. Download time divides total bits by an advertised 100 Mbps decimal link.

## Assumptions & limitations
- Weights only; tokenizer/config files are negligible.
- Optimizer states in training checkpoints dwarf these figures.
- Download assumes sustained 100 Mbps with protocol overhead ignored.

## How to use
1. **Enter parameter count**; Straight off the model card.
2. **Choose the distribution dtype**; Most open models ship fp16/bf16 safetensors; GGUF quants are int4/int8 equivalents.
3. **Plan the transfer**; The 100 Mbps row sets expectations before you kick off large pulls.

## Example
A 70-billion-parameter model at fp16 weighs 140 GB decimal (≈130.39 GiB); about 3h 06m 40s to pull over a sustained 100 Mbps connection.

Result for these inputs:

```
Disk size (decimal GB): 140 GB
```

## About this calculator
### GB versus GiB, made concrete

A “140 GB” checkpoint occupies 130.39 GiB on disk. Tools reporting binary units while marketing quotes decimal create recurring confusion; this calculator shows both so a df listing and a spec sheet finally agree.

### Sharded checkpoints

Large models ship as many safetensors shards whose sizes sum to the figures here, plus tokenizer and config JSONs worth kilobytes. Training resumes pull optimizer state files several times larger; check what a repo actually contains before mirroring it.

## FAQs
### Does the download include multiple formats?

No; one copy of the selected dtype. Downloading fp32 and int4 versions doubles and quarters respectively.

### Why 100 Mbps fixed?

It is a common fast-line reference; scale linearly; a 1 Gbps line downloads ten times faster than shown.

### Are GGUF Q4 files exactly half of Q8?

Roughly; mixed-precision quantization makes exact ratios vary a few percent either way.

## Related calculators
- [Download Time Calculator](https://codeasystem.com/calculators/developer/download-time-calculator/)
- [GPU Memory Calculator](https://codeasystem.com/calculators/developer/gpu-memory-calculator/)
- [Data Storage Converter](https://codeasystem.com/calculators/conversion/data-storage-converter/)

---
Last updated: 2026-08-23 · Version: 1.0.0 · [HTML version](https://codeasystem.com/calculators/developer/model-size-calculator/)
