How much GPU memory does a 7B model actually need, and why do the numbers people quote vary so much?
I want to run a model of around seven billion parameters locally and I am trying to work out what hardware I need. The figures I find range from about four gigabytes to well over twenty, which is too wide to shop with.
Clearly the range depends on something I do not understand — I assume precision and whether it is training or inference, but I cannot assemble it into an estimate.
Is there arithmetic I can do myself rather than looking for somebody with my exact setup?
@vram_vural · 4h ago
Training is a completely different budget, which is the other half of why quoted figures vary so wildly. For full fine-tuning you need, roughly:
That lands full fine-tuning of a 7B model somewhere around 60–80 GB — well beyond a single consumer card, which is why nobody does it that way at home.
What people actually do is parameter-efficient fine-tuning: freeze the weights and train a small number of added parameters. Then the gradient and optimiser terms shrink to almost nothing and the job fits alongside a quantised model on a single consumer card. If you see somebody fine-tuning a 7B model on one GPU, this is what they are doing.
Reply
Report