How It Works
The VRAM usage is estimated using the formula:
VRAM Usage (GB) = Model Size (B) × Batch Size × Sequence Length × Precision / 1024
Examples
- A 10B model with a batch size of 16, sequence length of 128, and 32-bit precision uses approximately 160 GB of VRAM.
- A 20B model with a batch size of 8, sequence length of 256, and 16-bit precision uses approximately 80 GB of VRAM.
- A 5B model with a batch size of 32, sequence length of 64, and 32-bit precision uses approximately 100 GB of VRAM.