A team wants to serve a 7-billion-parameter model with weights in FP16 (2 bytes per parameter). Roughly how much GPU memory do the weights alone need?
- Exam domain
- Software Development24% of the exam
- Difficulty
- Hard
- In this mock
- 13 questions on this domainPractise this domain
Why the exam asks this
Software Development (24% of the exam).
Objective in the exam guide: Identify system data, hardware, or software components required to meet user needs.
Hardware sizing starts with arithmetic.
Why D is the answer
About 14 GB, plus extra memory for the KV cache and activations
7 billion parameters times 2 bytes is about 14 GB for the weights; serving needs more for the KV cache.
How it works
Weights memory is parameters times bytes per parameter.
FP16 uses 2 bytes, so 7 billion parameters need about 14 GB.
The KV cache and activations need additional memory during serving.
Clues in the question
The words that point to the answer, and what each one tells you.
- 7 billion parameters, 2 bytes each
- Multiply.
In detail
- INT8 weights would need about half, roughly 7 GB.
- Long contexts and many users grow the KV cache.
Side by side with look-alikes
| Precision | Bytes per parameter | 7B weights |
|---|---|---|
| FP16 | 2 | ~14 GB |
| INT8 | 1 | ~7 GB |
| FP32 | 4 | ~28 GB |
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. About 7 MB, since parameters are smallWrong
That ignores the billions of parameters.
B. About 1.4 GB, because FP16 halves everything twiceWrong
FP16 is 2 bytes per parameter, not less.
C. About 140 GB, because each parameter needs 20 bytesWrongMost tempting
20 bytes per parameter is far above FP16.
Why it tempts: Training with optimizer states can need many bytes per parameter. But serving FP16 weights needs 2.
D. About 14 GB, plus extra memory for the KV cache and activationsRight
7 billion parameters times 2 bytes is about 14 GB for the weights; serving needs more for the KV cache.
In practice
- Leave headroom for the KV cache, which grows with context length and concurrent users.