CalcuDay
  1. Home
  2. AI & Tech
  3. AI GPU VRAM & Server Calculator

AI GPU VRAM & Cloud Server Calculator

Choose a model size, precision and context length to see the VRAM a large language model needs, how many GPUs that takes and what renting them costs each month.

Your numbers

tokens
%
Model architecture (advanced)
GB
USD
hrs/mo

Results

Share
VRAM needed157 GBweights alone: 140 GB
GPUs needed298.1% of their memory in use
Cloud cost per month$5,095$6.98 per hour for all GPUs
Generation speed (estimate)33 tok/sper user, limited by memory bandwidth

Results

Where the VRAM goes
Total157 GB
  • Weights140 GB89.2%
  • KV cache2.7 GB1.7%
  • Overhead14.3 GB9.1%
Monthly cost on each GPU type
Same model at other precisions
PrecisionWeightsTotalGPUsPer month
FP32280 GB311 GB4$10,191
FP16 / BF16140 GB157 GB2$5,095
FP8 / INT870 GB80 GB1$2,548
INT439.4 GB46.3 GB1$2,548

How to use it

  1. Select a model size (7B to 405B) or type your own parameter count, then choose the weight precision and whether you serve the model or fine-tune it.
  2. Set the context length and how many users or sequences run at once. The architecture group holds layers and KV width; the presets fill typical values.
  3. Pick a GPU. Its memory and a typical on-demand hourly price fill in automatically; replace the price with your provider’s quote and read the card count and monthly cost.

How VRAM is estimated

Memory is the sum of four parts, with sizes in gigabytes and parameters in billions:

weights   = parameters × bytes per weight   (FP16 = 2, FP8 = 1, INT4 ≈ 0.56)
KV cache  = 2 × layers × KV width × KV bytes × context × users ÷ 10⁹
training  = full: parameters × (16 − bytes)   LoRA: parameters × 0.16
total     = (weights + KV cache + training) × (1 + overhead)
GPUs      = ⌈ total ÷ memory per GPU ⌉
speed     ≈ bandwidth × GPUs × 0.7 ÷ bytes read per token

Full fine-tuning with Adam needs about 16 bytes per parameter: the weights, their gradients, two optimizer moments and an FP32 master copy. The speed figure is a ceiling for one user, because generating each token means reading all weights from memory.

Example: serving a 70B model on H100s

A 70B model in FP16 needs 140 GB for the weights alone. An 8,192-token context for one user adds 2.7 GB of KV cache, and a 10% margin brings the total to 157 GB. That fills two H100 80GB cards to 98%.

At $3.49 per GPU-hour running all month (730 hours), the bill is $5,095. Quantising to INT4 shrinks the need to 46 GB, so a single H100 is enough and the cost halves to $2,548; the speed ceiling rises from about 33 to 56 tokens per second.

Serving 32 users at once with the same context needs 248 GB because each user has a KV cache, so you would rent four cards.

Tips for sizing GPUs

  • Leave headroom. Inference servers reserve memory for batching, and a card at 98% will reject longer prompts.
  • Try FP8 before INT4. It halves memory with very little quality loss on recent hardware, while INT4 can hurt reasoning on small models.
  • For many users, KV cache dominates. FP8 KV cache, shorter contexts or paged attention free more memory than buying bigger cards.

GPU memory questions

Can I run a 7B model on a gaming GPU?

Yes. An 8B model in INT4 needs about 6 GB, so a 24 GB RTX 4090 runs it with room for long contexts. In FP16 it needs about 19 GB.

Why do the cloud prices differ from my provider?

The defaults are median on-demand rates from GPU price trackers in December 2026. Spot, reserved and hyperscaler prices can be far lower or higher, so enter your own.

Does fine-tuning with LoRA fit on one card?

Usually. LoRA freezes the base model and trains small adapters, so a 7B model needs about 18 GB. QLoRA adds INT4 weights and fits even larger models.

Is the token speed exact?

No. It ignores compute limits, interconnect and software overhead, so real throughput for one user is often 50–80% of the ceiling.

Results are estimates for planning only and are not financial, legal or engineering advice.