
LLM Training GPU Cluster Design: How Many GPUs, Which Architecture?
7 August, 2026
Technical Guide
According to Meta’s Llama 3 model card, pretraining Llama 3 70B took 6.4 million H100-80GB GPU hours — more than 700 years on a single GPU. With a properly designed LLM training GPU cluster, those GPU hours are spread across many GPUs working in parallel, and wall-clock time shrinks accordingly. The difference lies in the parallelization strategy and the hardware infrastructure that enables it.
AI research is growing rapidly worldwide. Research labs, universities, and enterprises are seeking to build their own large language model training infrastructure. This guide covers how to size a GPU cluster for LLM training, which hardware decisions are critical, and provides a concrete cost-performance framework.
How to Calculate GPU Requirements for LLM Training
The minimum GPU memory needed to train a model can be roughly estimated with this formula:
GPU Memory = (Model Parameters x Precision Bytes) + Optimizer State + Activation Memory
Memory requirements by precision:
| Precision | Bytes/Param | Optimizer Multiplier | 7B Model | 13B Model | 70B Model |
|---|---|---|---|---|---|
| FP32 (full) | 4 bytes | 3x | 112 GB | 208 GB | 1,120 GB |
| FP16 / BF16 (mixed precision, Adam) | 2 bytes | 7x (gradients + FP32 optimizer states) | 112 GB | 208 GB | 1,120 GB |
Model states only, before activations. The ZeRO paper (Rajbhandari et al., 2019) gives 16 bytes per parameter for mixed-precision Adam training: 2 (FP16 weights) + 2 (gradients) + 12 (FP32 optimizer states).
In practice, FP16/BF16 mixed precision training is the most common approach. A 70B model requires at least ~1,120 GB total GPU memory for model states alone — meaning at least 14 H100 or A100 GPUs with 80 GB each, before activations.
For more on GPU memory management, see GPU Memory Architecture.
GPU Count and Type by Model Size
| Model Size | Minimum GPU | Recommended GPU | GPU Count | Est. Cost (Rental/Month)* |
|---|---|---|---|---|
| 1-3B (Phi) | 2x A100 40GB | 4x A100 40GB | 4 | ~$8,000 |
| 7-8B (Llama-3 8B) | 2x A100 80GB | 4x A100 80GB | 4 | ~$12,000 |
| 13B (Llama-2 13B) | 4x A100 80GB | 8x A100 80GB | 8 | ~$22,000 |
| 70B (Llama-3 70B) | 16x H100 80GB | 16x H100 80GB | 16 | ~$45,000 |
| 405B (Llama 3.1 405B) | 88x H100 80GB | 128x H100 80GB | 128 | ~$350,000 |
Minimum GPU counts cover model states only (16 bytes per parameter, see above); activations need more. *Figures are illustrative assumptions; actual costs depend on configuration and quotation. Training time depends on token count and efficiency: for scale, Meta reports 1.3M (8B) and 6.4M (70B) H100-80GB GPU hours for Llama 3 pretraining on 15T+ tokens.
H100 vs A100 vs B200 — Which is best for LLM training?
| A100 80GB | H100 80GB | B200 | |
|---|---|---|---|
| Memory Bandwidth | 2.0 TB/s | 3.35 TB/s | 8.0 TB/s |
| FP8 Support | No | Yes (Transformer Engine) | Yes (enhanced) |
| NVLink Bandwidth | 600 GB/s | 900 GB/s | 1,800 GB/s |
| Training Speed (NVIDIA claims) | Baseline | Up to 4x vs A100 (GPT-3 175B, projected) | 3x vs DGX H100 (DGX B200, projected) |
For LLM training, NVIDIA cites up to 4x faster training than A100 for GPT-3 (175B), largely thanks to the FP8 Transformer Engine. For a comprehensive GPU comparison guide, see GPU Selection Guide.
NVLink and InfiniBand: GPU Communication
During LLM training, GPUs constantly synchronize gradients (all-reduce operation). If this communication is slow, even a 16-GPU system can underperform a 4-GPU system.
Two-level communication architecture:
| Level | Technology | Bandwidth (per GPU) | Usage |
|---|---|---|---|
| Intra-Node (GPU-GPU) | NVLink 4.0 + NVSwitch | 900 GB/s bidirectional | Up to 8 GPUs within a single node |
| Inter-Node | InfiniBand NDR 400 | 400 Gb/s | Gradient synchronization across nodes |
Critical threshold: For 8 GPUs and below, a single DGX or HGX server is sufficient — all GPUs communicate via NVSwitch, no InfiniBand needed. Beyond 8 GPUs, inter-node communication begins and a high-speed RDMA fabric (InfiniBand or RoCE) becomes necessary.
Example: For 16x H100 training a 70B model, two 8-GPU nodes must be connected via InfiniBand NDR. This connection bandwidth directly impacts training efficiency. See InfiniBand Solutions for details.
Storage Infrastructure: Dataset and Checkpoint Management
Storage is often overlooked but critical in LLM training. A 1-trillion-token training dataset takes several terabytes, both as raw text and tokenized. This data must be fed to GPUs continuously and rapidly.
Checkpoint management: A single 70B model checkpoint in FP16 is ~140 GB. With FP32 optimizer state (12 bytes per parameter per the ZeRO paper), a full checkpoint approaches 1 TB. Frequent checkpointing therefore means several terabytes of storage writes.
| Storage Requirement | Minimum | Recommended |
|---|---|---|
| Dataset Storage | NVMe (local) — 5-10 TB | Shared NVMe — 20-50 TB |
| Checkpoint Storage | NVMe (local) — 10-20 TB | BeeGFS shared — 50-100 TB |
| Archive / Model Repository | HDD — 50-100 TB | Tiered storage (NVMe + HDD) |
For high-performance shared storage, see HPC Storage Solutions.
Sample Configuration: 8xH100 Cluster for Llama-3 Style Training
Reference single-node configuration (note: full 70B training states, ~1,120 GB, exceed this node’s 640 GB of GPU memory without offloading; see the memory table above):
| Component | Specification | Qty | Purpose |
|---|---|---|---|
| GPU Server | NVIDIA DGX H100 or 8xH100 SXM (80 GB) | 1 | Primary training hardware |
| NVSwitch | Integrated in DGX | 1 | 900 GB/s inter-GPU communication |
| Head/Login Node | Dual-socket Xeon, 256 GB RAM | 1 | Job management, user access |
| Management Network | 25 GbE | 1 switch | Monitoring, external access |
| Training Storage | NVMe RAID — 30 TB usable | 1 system | Dataset and checkpoints |
| Job Scheduler | SLURM | 1 | GPU resource management, job queue |
Software Stack:
- PyTorch 2.x + Fully Sharded Data Parallel (FSDP) or DeepSpeed ZeRO-3
- CUDA 12.x + cuDNN
- NVIDIA NeMo or Hugging Face Transformers
Training time: Depends on token count and efficiency. For scale, Meta reports 6.4M H100 GPU hours for Llama 3 70B on 15T+ tokens, so full 70B pretraining is far beyond a single 8-GPU node.
Estimated cost:
- Purchase: $350,000 – $450,000 USD (DGX H100 + storage + network)
- Rental: $18,000 – $25,000 USD/month (depending on usage duration)
Figures are illustrative assumptions; actual costs depend on configuration and quotation.
Next Step with Mevasis
Whether you are at the proof-of-concept stage or planning a production-scale training cluster, Mevasis supports you at every stage:
- GPU cluster deployment: NVIDIA DGX, HGX, or custom configuration. See GPU Cluster Solutions.
- GPU rental: Access H100 and A100 GPUs without large capital investment. See HPC Rental. For short trials, H100 and H200 GPU hourly rental gives per-hour access.
- Consulting and architecture design: Scalable infrastructure planning matched to your model size and budget.
Contact us for your LLM training infrastructure — let us design the most efficient solution together.
Frequently Asked Questions
How much does an 8xH100 system cost?
As an illustrative assumption (not a quote), a DGX H100 (8xH100 SXM, 80 GB) costs approximately $300,000-350,000, and with storage, networking, and installation, total investment ranges from $400,000-500,000 USD; actual prices depend on configuration and quotation. Under a rental model, monthly access is available at $18,000-25,000 USD.
Can we start with rental and purchase later?
Yes. Many organizations start with rental during the PoC phase and transition to purchase after validating the workload. Part of the rental payments may even be credited toward the purchase price.
Is the same infrastructure needed for fine-tuning?
No. Fine-tuning requires far fewer resources than pre-training. With QLoRA, the method’s authors fine-tuned a 65B model on a single 48 GB GPU, so a 70B model can be fine-tuned on 1-2 A100 80GB GPUs. Full training infrastructure is only needed for pre-training from scratch or large-scale continual pre-training.
Are AMD GPUs (MI300X) suitable for LLM training?
AMD MI300X offers 192 GB HBM3 memory and is theoretically a strong alternative. However, the software ecosystem (ROCm, PyTorch support) is not as mature as NVIDIA CUDA. As of 2026, AMD is becoming increasingly competitive for Llama-class models, but NVIDIA remains the first choice for enterprise projects due to its proven ecosystem.
Related Articles
- NVIDIA H200 and B200 GPU Architectures: Next-Gen HPC and AI HardwareNVIDIA H200 (Hopper, HBM3e) and B200 (Blackwell) compared with H100: memory bandwidth, FP8 performance, NVLink 5.0 and which workloads suit …
- GPU Selection Guide for HPC and AI: H100, A100, L40S ComparisonHow to choose a GPU for HPC and AI: NVIDIA H100, A100 and L40S compared by use case, multi-GPU NVLink scaling and TCO, with a decision …
- GPU Hourly Rental: When It Makes Sense for AI and HPC WorkloadsNVIDIA H100 and A100 GPU hourly rental models, cost scenarios, and use cases. A guide to accessing HPC capacity without upfront capital …
- AI Inference: GPU and HPC Infrastructure Guide for LLM ServingHow to build the right GPU and HPC infrastructure for production LLM inference? A guide to vLLM, TensorRT-LLM, KV cache, and scaling …
Let's Build Future Together.
