gpt-4o-2024-05-13· OpenAI
WildChat-4.8M (AI2)
what is the size in gb of a model with 19 billion parameters and tensor type BF16?
- User
what is the size in gb of a model with 19 billion parameters and tensor type BF16?
- Assistant
To estimate the size of a model with 19 billion (19B) parameters using BF16 (bfloat16) tensor type, we need to know that BF16 is a 16-bit (2-byte) floating point format.
Here's the calculation:
- Each parameter in BF16 requires 2 bytes (since 16 bits = 2 bytes).
- There are 19 billion parameters.
The total size in bytes is: [ \text{Total Size} = 19 \times 10^9 \times 2 = 38 \times 10^9 \text{ bytes} ]
Converting bytes to gigabytes (GB), knowing that 1 GB = ( 2^{30} ) bytes (approximately ( 1.073 \times 10^9 ) bytes):
[ \text{Total Size in GB} = \frac{38 \times 10^9 }{1.073 \times 10^9} \approx 35.4 \text{ GB} ]
Therefore, a model with 19 billion parameters using BF16 tensor type would be approximately 35.4 GB in size.