Short answer: GPU for LLM training by workload tier
Pretraining and continued pretraining update every weight on billions of tokens, so they are bound by compute and by how fast GPUs exchange gradients. That favors data center GPUs with HBM and NVLink over PCIe cards. Fine-tuning with LoRA is a different job with much smaller needs; see best GPU cloud for fine-tuning for that.
Use the tiers below to shortlist, then size the run with the compute and memory math in the next sections.
| Workload tier | Model size | Typical cluster | Candidate GPUs |
|---|---|---|---|
| Small pretraining or research runs | Up to about 1B | 1 to 8 GPUs | A100 80GB, H100 |
| Continued pretraining | About 1B to 8B | One 8-GPU node with NVLink | H100, H200 |
| Continued pretraining, large models | About 30B to 70B | 2 to 8+ nodes, 400 Gb/s per GPU | H100, H200, B200 |
| Frontier-scale pretraining | Hundreds of billions | Thousands of GPUs | H100, H200, B200 clusters |
References: NVIDIA H100 specifications · NVIDIA H200 specifications · NVIDIA DGX B200 specifications
The 6ND compute rule, with sources
Kaplan and colleagues, in Scaling Laws for Neural Language Models (2020), estimate a forward pass at roughly 2N operations per token, where N is the non-embedding parameter count, and the backward pass at about twice that. They define training compute as C ≈ 6N floating point operations per training token. For D training tokens, total compute is about 6 × N × D.
The rule checks out against a published run. Meta reports that Llama 3 405B was pretrained with 3.8 × 10^25 FLOPs on 15.6T tokens. Six times 405B times 15.6T gives about 3.79 × 10^25, the same figure. The rule ignores attention costs that grow with context length, so treat it as a floor.
How many tokens? The Chinchilla paper (Hoffmann et al., 2022) found that model size and training tokens should be scaled equally: for every doubling of model size, double the tokens. Many current models train on far more tokens than that ratio, because they are cheaper to serve when smaller.
References: Kaplan et al., Scaling Laws for Neural Language Models (2020) · Meta, The Llama 3 Herd of Models (2024) · Hoffmann et al., Training Compute-Optimal Large Language Models (2022)
From FLOPs to GPU-hours
Convert compute to time with GPU-hours = 6ND ÷ (peak FLOPS per GPU × MFU × 3,600). Model FLOPs utilization (MFU), defined in the PaLM paper, is observed throughput as a share of the hardware peak. PaLM 540B reported 46.2% MFU, and Meta reports 38% to 43% BF16 MFU for Llama 3 405B on H100s. Use 30% to 45% for planning, and measure your own.
NVIDIA lists 1,979 TFLOPS of BF16 for the H100 SXM with sparsity, so dense training math has a peak of about 989 TFLOPS. At 40% MFU each H100 delivers about 396 TFLOP/s of useful work. Llama 3 405B at that rate needs about 26.7 million GPU-hours; the Llama 3.1 model card reports 30.84 million for the 405B, about 15% more. Real runs lose time to restarts, evaluation and lower-utilization stages, so budget a margin above the formula.
References: Chowdhery et al., PaLM: Scaling Language Modeling with Pathways (2022) · Meta, The Llama 3 Herd of Models (2024) · Llama 3.1 8B model card · NVIDIA H100 specifications
Memory: why training needs more GPUs than inference
Hugging Face’s memory guide counts mixed-precision training with Adam at 6 bytes per parameter for weights (an FP16 copy and an FP32 main copy), 8 bytes for optimizer states and 4 bytes for gradients: 18 bytes per parameter before activations. Activations add more and grow with batch size and sequence length.
So an 8B model needs about 144 GB of state and does not fit one 80 GB GPU. Sharded data parallelism such as PyTorch FSDP spreads that state across GPUs: on 8 GPUs, about 18 GB each plus activations. A 70B model needs about 1,260 GB, which is 16 H100s or 9 H200s just for state, before activations. Use PyTorch FSDP training for the setup.
| Model size | Training state at 18 bytes/param | Minimum 80 GB GPUs (state only) | Minimum 141 GB GPUs (state only) |
|---|---|---|---|
| 1B | About 18 GB | 1 | 1 |
| 8B | About 144 GB | 2 | 2 |
| 30B | About 540 GB | 7 | 4 |
| 70B | About 1,260 GB | 16 | 9 |
References: Hugging Face Transformers: GPU memory usage
Candidate GPUs for LLM training
These specifications come from NVIDIA product pages. The B200 row divides the DGX B200 system figures by eight: 1,440 GB, 64 TB/s, 14.4 TB/s of NVLink and 36 PFLOPS of dense FP8 across 8 GPUs. BF16 figures are dense, at half the sparse figures NVIDIA lists.
PCIe cards such as the L40S lack NVLink and use PCIe Gen4 at 64 GB/s, so gradient exchange across many of them is slow. They are fine for small experiments and fine-tuning, but not for multi-node pretraining.
| GPU | Memory | Bandwidth | Relevant features | Best for |
|---|---|---|---|---|
| A100 80GB SXM | 80 GB HBM2e | 2,039 GB/s | 312 TFLOPS BF16 dense, 600 GB/s NVLink | Smaller runs on a budget |
| H100 SXM | 80 GB HBM3 | 3.35 TB/s | About 989 TFLOPS BF16 dense, FP8, 900 GB/s NVLink | Default for continued pretraining |
| H200 | 141 GB HBM3e | 4.8 TB/s | Same compute as H100, 900 GB/s NVLink | Fewer GPUs for large-model state |
| B200 (per GPU) | About 180 GB HBM3e | About 8 TB/s | About 1.8 TB/s NVLink, FP8 and FP4 | New large clusters, FP8 training |
| L40S | 48 GB GDDR6 | 864 GB/s | No NVLink, PCIe Gen4 | Small experiments, not pretraining |
References: NVIDIA A100 specifications · NVIDIA H100 specifications · NVIDIA H200 specifications · NVIDIA DGX B200 specifications · NVIDIA L40S specifications
Interconnect and reliability
Inside a node, NVLink carries tensor-parallel and gradient traffic: 900 GB/s per GPU on H100 and H200 SXM. Between nodes, the network sets the pace. Meta reports 400 Gbps interconnects between GPUs on both its RoCE and InfiniBand Llama 3 clusters, and the DGX B200 ships eight ConnectX-7 ports at up to 400 Gb/s. Plan one 400 Gb/s link per GPU for multi-node pretraining. Compare fabrics in InfiniBand vs Ethernet.
At scale, failures are routine. Meta recorded 466 job interruptions in a 54-day snapshot of Llama 3 training, 419 of them unexpected. Save checkpoints often and test restores, as checkpointing GPU training explains. Lost hours between a failure and the last checkpoint are paid hours.
References: NVIDIA H100 specifications · NVIDIA H200 specifications · Meta, The Llama 3 Herd of Models (2024) · NVIDIA DGX B200 specifications
Cost per training run: illustrative numbers
Here is a worked estimate, not a measured result. Continued pretraining of an 8B model on 100B tokens needs 6 × 8 × 10^9 × 10^11 = 4.8 × 10^21 FLOPs. On H100s at an assumed $2.50 per GPU-hour, MFU decides the bill.
At 40% MFU the run takes about 3,370 GPU-hours, or about 53 hours on 64 GPUs. Raising MFU from 30% to 45% cuts the cost by a third, which is why profiling the first hundred steps pays for itself. See low GPU utilization for the usual causes.
| Assumed MFU | Useful TFLOP/s per H100 | GPU-hours | Hours on 64 GPUs | Cost at assumed $2.50 |
|---|---|---|---|---|
| 30% | About 297 | About 4,490 | About 70 | About $11,200 |
| 40% | About 396 | About 3,370 | About 53 | About $8,400 |
| 45% | About 445 | About 3,000 | About 47 | About $7,500 |
References: Kaplan et al., Scaling Laws for Neural Language Models (2020) · NVIDIA H100 specifications
Decision rules and what to test first
If training state fits one 8-GPU node, stay on one node: NVLink is far faster than any network. If state does not fit, prefer H200 or B200 over adding more 80 GB nodes, since fewer GPUs means less communication. If you need many nodes, require 400 Gb/s per GPU and ask the operator for NCCL test results.
Before a long run, test three things. Run NVIDIA nccl-tests all-reduce across all nodes and compare bus bandwidth with the link speed. Run 100 to 200 training steps and compute MFU from tokens per second. Kill a worker, then restore from checkpoint and time the recovery.
References: NVIDIA nccl-tests · nccl-tests performance notes: algbw and busbw · Chowdhery et al., PaLM: Scaling Language Modeling with Pathways (2022)
Checklist and next step
Fix N and D, then compute 6ND. Pick an MFU assumption and convert to GPU-hours. Check training state at 18 bytes per parameter against GPU memory. Choose a node count that keeps state on as few GPUs as possible. Confirm NVLink inside nodes and 400 Gb/s between them. Test NCCL, MFU and checkpoint restore before the full run.
Then book the cluster. NeuraMesh rents cloud GPUs by the hour: choose a GPU, a plan, GPU count, hours and region on rent GPUs, and you receive a confirmed quotation, typically within one business day, with nothing charged until you approve. For a sizing check, ask the compute advisor.
NeuraMesh prices for these GPUs
| GPU | Memory | Data center | Value |
|---|---|---|---|
| RTX 4090 | 24 GB | $0.46 | $0.40 |
| L40S | 48 GB | $1.26 | $0.54 |
| A100 | 80 GB | $1.56 | $0.98 |
| H100 | 80 GB | $2.88 | $2.00 |
Every order is confirmed in a quotation before you pay. See all GPU prices.
Questions readers ask
What is the best GPU for LLM training?
For most continued pretraining today, the H100 or H200 in 8-GPU NVLink nodes. The H200 adds 141 GB per GPU, which cuts the GPU count for large-model state. B200 suits new large clusters with FP8 training. The A100 80GB is a lower-cost option for smaller runs.
How do I estimate LLM training compute?
Use about 6 FLOPs per parameter per token: C ≈ 6 × N × D. Divide by peak FLOPS per GPU times MFU times 3,600 to get GPU-hours. The rule reproduces Meta’s reported 3.8 × 10^25 FLOPs for Llama 3 405B.
How much GPU memory does LLM training need?
About 18 bytes per parameter for mixed-precision Adam training before activations, per Hugging Face’s memory guide. An 8B model needs about 144 GB of state, so shard it across GPUs with FSDP or similar.
Can I train an LLM on consumer GPUs?
Small models and fine-tuning, yes. Full pretraining of multi-billion-parameter models is slow on cards without NVLink, because gradient exchange crosses PCIe. Use data center nodes for anything beyond research-scale runs.
What interconnect do I need for multi-node training?
NVLink inside each node and about 400 Gb/s per GPU between nodes, over InfiniBand or RoCE. Meta used 400 Gbps links for Llama 3, and DGX B200 ships 400 Gb/s ConnectX-7 ports.
Sources and editorial notes
- NVIDIA H100 specifications
- NVIDIA H200 specifications
- NVIDIA DGX B200 specifications
- Kaplan et al., Scaling Laws for Neural Language Models (2020)
- Meta, The Llama 3 Herd of Models (2024)
- Hoffmann et al., Training Compute-Optimal Large Language Models (2022)
- Chowdhery et al., PaLM: Scaling Language Modeling with Pathways (2022)
- Llama 3.1 8B model card
- Hugging Face Transformers: GPU memory usage
- NVIDIA A100 specifications
- NVIDIA L40S specifications
- NVIDIA nccl-tests
- nccl-tests performance notes: algbw and busbw
Primary documentation reviewed November 24, 2026. Provider descriptions reflect published documentation. Recommendations are our analysis; worked figures are illustrative unless explicitly stated otherwise. No independent provider benchmark or uptime ranking is claimed.
Need this GPU? Rent it from NeuraMesh: choose a GPU and plan, get a confirmed quotation, and pay only when you approve. See pricing.


