LLM Training GPU Cluster Design: How Many GPUs, Which Architecture?

LLM Training GPU Cluster Design: How Many GPUs, Which Architecture?

LLM Training GPU Cluster Design: How Many GPUs, Which Architecture?

Published
7 August, 2026
Category
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:

PrecisionBytes/ParamOptimizer Multiplier7B Model13B Model70B Model
FP32 (full)4 bytes3x112 GB208 GB1,120 GB
FP16 / BF16 (mixed precision, Adam)2 bytes7x (gradients + FP32 optimizer states)112 GB208 GB1,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 SizeMinimum GPURecommended GPUGPU CountEst. Cost (Rental/Month)*
1-3B (Phi)2x A100 40GB4x A100 40GB4~$8,000
7-8B (Llama-3 8B)2x A100 80GB4x A100 80GB4~$12,000
13B (Llama-2 13B)4x A100 80GB8x A100 80GB8~$22,000
70B (Llama-3 70B)16x H100 80GB16x H100 80GB16~$45,000
405B (Llama 3.1 405B)88x H100 80GB128x H100 80GB128~$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 80GBH100 80GBB200
Memory Bandwidth2.0 TB/s3.35 TB/s8.0 TB/s
FP8 SupportNoYes (Transformer Engine)Yes (enhanced)
NVLink Bandwidth600 GB/s900 GB/s1,800 GB/s
Training Speed (NVIDIA claims)BaselineUp 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.

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:

LevelTechnologyBandwidth (per GPU)Usage
Intra-Node (GPU-GPU)NVLink 4.0 + NVSwitch900 GB/s bidirectionalUp to 8 GPUs within a single node
Inter-NodeInfiniBand NDR 400400 Gb/sGradient 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 RequirementMinimumRecommended
Dataset StorageNVMe (local) — 5-10 TBShared NVMe — 20-50 TB
Checkpoint StorageNVMe (local) — 10-20 TBBeeGFS shared — 50-100 TB
Archive / Model RepositoryHDD — 50-100 TBTiered 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):

ComponentSpecificationQtyPurpose
GPU ServerNVIDIA DGX H100 or 8xH100 SXM (80 GB)1Primary training hardware
NVSwitchIntegrated in DGX1900 GB/s inter-GPU communication
Head/Login NodeDual-socket Xeon, 256 GB RAM1Job management, user access
Management Network25 GbE1 switchMonitoring, external access
Training StorageNVMe RAID — 30 TB usable1 systemDataset and checkpoints
Job SchedulerSLURM1GPU 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.

  • Share:

Let's Build Future Together.