AI Infrastructure / GPU Clusters / AI Training

A 70B model on 2T tokens: about 128 H100 GPUs, or 64 B300?

GPU requirements for training Llama, DeepSeek, Qwen, and other leading models. Parallelism strategies, cost estimation, and planning tools.

Quick Take

Quick Take: GPU cluster sizing for AI training requires matching model size, token count, available GPUs, parallelism strategy, and budget. Training a 70B model on 2T tokens needs approximately 128 H100 or 64 B300 GPUs. This guide covers the full calculation framework — FLOPs math, memory constraints, parallelism strategies, and procurement-ready estimates.

Key extractable numbers

Sizing anchors on this page (procurement estimates, confirm against your parallel strategy): a 70B model on 2T tokens needs about 128 H100 or 64 B300 GPUs. Full pretrain from scratch class map — Llama 3 8B on 2T ≈ 8 B300-class; Llama 3 70B ≈ 32; Qwen3 235B ≈ 64; DeepSeek V3 ≈ 128; Llama 3.1 405B on 15T ≈ 256. Fine-tune / LoRA typically needs 10–100× fewer GPUs.

GPU Requirements by Model Size

Quick Answer: Full pre-training from scratch needs 8 B300-class GPUs for Llama 3 8B on 2T tokens, 32 for Llama 3 70B, 64 for Qwen3 235B, 128 for DeepSeek V3, and 256 for Llama 3.1 405B on 15T tokens. Fine-tuning and LoRA need 10 to 100 times fewer.

The table below shows approximate GPU requirements for full pre-training (from scratch) of popular model sizes. Fine-tuning and LoRA require 10-100x fewer GPUs.

Model Parameters Training Tokens Min GPUs (B300) Recommended (B300) Training Time
Llama 3 8B 8B 2T 8 16-32 10-20 days
Llama 3 70B 70B 2T 32 64-128 25-45 days
Llama 3.1 405B 405B 15T 256 512-1,024 60-120 days
DeepSeek V3 671B (MoE) 14.8T 128 256-512 45-90 days
Qwen3 235B 235B (MoE) 5T 64 128-256 30-60 days

Pre-Training: Full GPU Requirements by Model

Quick Answer: Training an 8B model costs 9.6e22 FLOPs and fits on 8 H100s or 4 B300s. A 70B model needs 8.4e23 FLOPs, 140 GB of GPU memory in FP16 and at least 64 H100s. A 405B run demands 3.6e25 FLOPs, 1,024 H100s and roughly 120 TB of dataset storage.

Model Size 8B 70B 405B 671B (MoE)
Training FLOPs 9.6e22 8.4e23 3.6e25 5.9e25
Memory per GPU (FP16) 16 GB 140 GB 810 GB 672 GB (268B active)
Min H100 GPUs 8 64 1,024 512
Min B300 GPUs 4 32 256 128
Storage Needed ~2 TB ~20 TB ~120 TB ~200 TB

The Math Behind GPU Estimation

Quick Answer: GPU requirements are calculated using a well-established formula from the Megatron-LM framework: Training FLOPs = 6 x Parameters x Tokens; Training Time = FLOPs / (GPUs x GPU TFLOPS x MFU x seconds_per_day). Adjust parallelism strategy and memory budget to find the minimum viable GPU count.

GPU requirements are calculated using a well-established formula from the Megatron-LM framework:

Training FLOPs = 6 × Parameters × Training Tokens
Training Time (days) = FLOPs / (GPUs × GPU TFLOPS × MFU × seconds_per_day)
Memory per GPU = (Params × bytes_per_param) + Optimizer + Activations + Overhead
Recommended GPUs = max(FLOPs_constraint, Memory_constraint, Parallelism_constraint)

Key assumptions for 2026 hardware:

  • H100 SXM: 989 TFLOPS (FP16), 80 GB HBM3, NVLink 900 GB/s — MFU ~55%
  • B300: ~1,200 TFLOPS (FP16), 288 GB HBM3e, NVLink 5 — MFU ~55-60%
  • B200: ~1,125 TFLOPS (FP16), 180 GB HBM3e, NVLink 5 — MFU ~55%

Parallelism Strategies

Quick Answer: Model size sets the parallelism plan and the interconnect bill. Under 30B, FSDP or ZeRO-3 runs on a single node over 25GbE. From 30B to 200B, tensor-parallel groups of eight demand NVLink inside the node. Past 200B, dense and MoE builds both add InfiniBand, plus context parallelism beyond 128K sequences.

Distributed training requires splitting the model across GPUs. The right strategy depends on model size and cluster configuration.

Model Size Recommended Strategy Min GPUs per Node Interconnect Requirement
< 30B FSDP or ZeRO-3 1 Any (25GbE+)
30B - 200B 3D Parallelism (TP=8, PP=4-8, DP=auto) 8 NVLink required
200B+ (Dense) 3D Parallelism + SP 8 NVLink + InfiniBand
200B+ (MoE) 3D + Expert Parallelism 8 NVLink + InfiniBand
Long Context (128K+) Add Context Parallelism 8 NVLink + InfiniBand

Fine-Tuning Requirements

Quick Answer: Budget 4-8 H100s to full fine-tune an 8B model, 16-32 for a 70B, and 64-128 for a 405B, with runs finishing in one to fourteen days depending on scale. Switching to LoRA or QLoRA cuts each tier by four to ten times, so a 70B adapter job fits on just 4-8 cards.

Fine-tuning is far less demanding than pre-training. These estimates assume full-parameter fine-tuning on 10B-100B tokens:

Model Size Full Fine-Tune (H100) LoRA / QLoRA (H100) Time Estimate
8B 4-8 GPUs 1-2 GPUs 1-3 days
70B 16-32 GPUs 4-8 GPUs 3-7 days
405B 64-128 GPUs 16-32 GPUs 7-14 days

Inference Serving Requirements

Quick Answer: Serving is sized by queries per second, not FLOPs. At a 10 QPS real-time target, an 8B model runs on a single GPU at any precision, a 70B takes 2-4 H100s in FP16 but one B300 with its 288 GB, and a 405B drops from 8-16 cards to 2-4 when quantized to FP4.

Inference GPU requirements depend on throughput (queries per second), model size, and precision. For real-time serving at 10 QPS:

Model FP16 (H100) FP8 (H100/B200) FP4 (B200/B300) Notes
8B 1 GPU 1 GPU 1 GPU Single GPU sufficient for most use cases
70B 2-4 GPUs 1-2 GPUs 1 GPU B300 288GB can serve full 70B in FP16 on one GPU
405B 8-16 GPUs 4-8 GPUs 2-4 GPUs B300's 288GB reduces GPU count by 50%
671B MoE 4-8 GPUs 2-4 GPUs 2-4 GPUs Only active params (~268B) need to fit in memory

Cost Estimation

Quick Answer: Based on mid-2026 GPU pricing and cloud rates, training a 70B model from scratch on 128 H100 GPUs costs approximately $845K in cloud or $4.2M capex. A 405B training run on 1,024 H100 GPUs costs $20M+ cloud or $33M capex. Inference at 10 QPS for 70B on 4 B300 GPUs runs $320K/year cloud.

Based on mid-2026 GPU pricing and cloud rates:

Scenario GPUs Duration Cloud Cost (On-Demand) Capex (Purchase)
Fine-tune 70B (LoRA) 8 H100 5 days ~$9,400 N/A
Train 70B from scratch 128 H100 30 days ~$845,000 ~$4.2M (128 H100)
Train 405B from scratch 1,024 H100 90 days ~$20.3M ~$33M (1,024 H100)
Inference 70B (10 QPS) 4 B300 12 months ~$320,000 ~$212,000

Planning Tools

Quick Answer: Use LLM Cluster Simulator (github.com/zhebrak) for analytical distributed training simulation, GPU Size (gpusize.com) for quick web-based estimates, and LLM Math Calculator CLI for command-line model sizing. Each tool supports B300, H100, and other GPU types with configurable parallelism and precision.

Recommended Tools for Sizing

  • LLM Cluster Simulator (github.com/zhebrak) — Analytical simulator for distributed LLM training. Estimates MFU, memory, throughput, and cost for any model-cluster-parallelism combination. Supports 70+ models and 25 GPU types including B300.
  • GPU Size (gpusize.com) — Web-based calculator for training and inference. Preset configurations for Llama, DeepSeek, Qwen with GPU-specific benchmarks.
  • LLM Math Calculator (github.com/iannil) — CLI tool for quick estimation. Commands like lmc train --preset Llama-3-70B --tokens 400B --gpu H100-80G-SXM --num-gpus 128.

Frequently Asked Questions

Quick Answer: How many GPUs to train Llama 3 70B? ~128 H100 or 64 B300 GPUs for 30-day training. Llama 3.1 405B? 1,024-2,048 H100s for reasonable timelines. The basic formula is Training FLOPs = 6 x Parameters x Tokens; divide by GPU throughput and MFU to find time. Use the tools and tables in this guide for your specific model and budget.

Key Takeaway

Key Takeaway: Model FLOPs, memory footprint, parallelism strategy and budget together; each one sets a floor, and the binding constraint is rarely raw compute. Turn that floor into a procurement-ready count, then check it against what B300, B200 and H100 inventory can actually be allocated this quarter. BENQUAN GLOBAL LIMITED supplies NVIDIA GPU cluster infrastructure with competitive pricing.

To train a 70B model on 2T tokens in 30 days, you need approximately 128 H100 GPUs or 64 B300 GPUs. With 64 H100s, training takes about 6.5 months. For fine-tuning, 8-16 GPUs are typically sufficient.

Meta trained Llama 3.1 405B on 16,384 H100 GPUs in approximately 54 days. For a smaller cluster, 1,024-2,048 H100 GPUs can train the same model in 8-16 months. B300 GPUs reduce requirements by roughly half due to higher memory capacity.

The basic formula is: Training FLOPs = 6 x Parameters x Tokens. Training Time (days) = FLOPs / (GPUs x GPU TFLOPS x MFU x seconds_per_day). For 70B on 2T tokens at 128 H100 (989 TFLOPS, 55% MFU), this yields approximately 30 days.

For models under 30B, FSDP or ZeRO-3 is sufficient. For 30B-200B, use 3D parallelism (TP=8, PP=4-8, DP=auto). For 200B+, add expert parallelism (EP) for MoE models. Tools like LLM Cluster Simulator can auto-optimize the layout.

BENQUAN GLOBAL LIMITED provides AI infrastructure procurement services from our free-port logistics hub, including GPU cluster design, procurement, and integration. Contact us at info@benquan.hk.

Not sure your GPU cluster BOM is sized right?

If you have a model, token count, and timeline but need validated GPU requirements, submit your workload brief for a free compatibility and delivery risk assessment. We size B300, B200, and H100 clusters with matched storage and fabric — fast validation from a global free-port hub.

Free Compatibility & Delivery Risk Assessment

Or call +852-21349834 · info@benquan.hk

Contents