AI Hardware & Software Stack
If a 7-billion-parameter (7B) model's weights are held in FP16 (2 bytes), roughly how much memory do the weights take?
- AAbout 14 GB
- BAbout 7 GB
- CAbout 28 GB
Show answer and explanation
Answer: A. About 14 GB
Weight memory is the number of parameters times the bytes per parameter: 7 billion × 2 bytes = 14 billion bytes, about 14 GB. Inference also needs memory for intermediate results and, for large language models, the KV cache. This calculation is the first estimate of which devices or GPUs can run a model.
- A. Correct. 7 billion × 2 bytes.
- B. That is for 1 byte per parameter (INT8).
- C. That is for FP32 (4 bytes).