Calculate Tokens
How It Works
The number of tokens that can fit into a given VRAM budget is calculated using the formula:
Tokens = VRAM Budget (GB) * 1024 * 1024 * 1024 / Token Size (Bytes)
Examples
- 16 GB VRAM with 8-byte tokens: 2,097,152 tokens
- 32 GB VRAM with 4-byte tokens: 8,388,608 tokens
- 8 GB VRAM with 16-byte tokens: 524,288 tokens