Dev.to AI πŸ€– Ai πŸ‘ 0 πŸ“– 6 min read

B200 vs H200 vs H100 for 70B+ Open-Weight LLM Inference and Fine-Tuning: VRAM Math, Setup, and Per-Minute Cost

The short answer When renting datacenter GPUs for 70B to 405B open-weight LLMs (Llama, Qwen, DeepSeek, or large MoE checkpoints), choosing between H100 (80 GB), H200 (141 GB), and B200 (180 GB) comes down to single-car

B200 vs H200 vs H100 for 70B+ Open-Weight LLM Inference and Fine-Tuning: VRAM Math, Setup, and Per-Minute Cost

B200 vs H200 vs H100 VRAM comparison for 70B and 120B+ open-weight LLMs

The short answer

When renting datacenter GPUs for 70B to 405B open-weight LLMs (Llama, Qwen, DeepSeek, or large MoE checkpoints), choosing between H100 (80 GB), H200 (141 GB), and B200 (180 GB) comes down to single-card VRAM fit, KV cache concurrency, and avoiding unnecessary multi-GPU sharding:

  • H100 (80 GB HBM3): Fits 70B models cleanly in FP8 / AWQ / INT4 inference (single card at moderate context) or 4-bit QLoRA fine-tuning (2K–4K sequence length). For full FP16/BF16 70B weights (~140 GB), you must shard across 2Γ— H100 with tensor parallelism (--tensor-parallel-size 2). See H100 GPU rental.
  • H200 (141 GB HBM3e): Eliminates multi-GPU sharding for most 70B production and fine-tuning workloadsβ€”single-card FP8 inference with deep KV cache windows (32K–128K across multiple concurrent streams), or single-card 8-bit LoRA / long-context QLoRA without cross-GPU synchronization overhead. See H200 GPU rental.
  • B200 (180 GB HBM3e, Blackwell): Adds headroom for full-precision BF16 70B weights plus an active KV cache on a single GPU, or lower-card-count sharding for 120B–405B dense models and large MoE checkpoints in FP8 / FP4 precision. See B200 GPU rental.

For broader model-serving options and templates, see Rent a GPU for LLM inference, Rent a GPU for vLLM, and live availability on /deploy.

1. VRAM math: single-card thresholds for 70B and 120B+ models

Memory pressure in LLM serving and fine-tuning comes from three buckets: model weights, dynamic state (KV cache during inference, or optimizer states + gradients + activations during training), and CUDA runtime + graph capture overhead.

Inference VRAM β‰ˆ Weight Bytes
               + (Concurrent Requests Γ— Context Tokens Γ— KV Bytes/Token)
               + Runtime & CUDA Graph Overhead (~2–5 GB)

For a typical 70B architecture using Grouped-Query Attention (GQA, 80 layers, 8 KV heads, head_dim 128):

  • BF16 weights: ~70B Γ— 2 bytes β‰ˆ 140 GB
  • FP8 weights: ~70B Γ— 1 byte β‰ˆ 70 GB
  • INT4 / AWQ weights: ~70B Γ— 0.55 bytes β‰ˆ 38–42 GB (including quantization scales and metadata)
  • FP16 KV cache per token: 2 (K,V) Γ— 80 layers Γ— 8 heads Γ— 128 dim Γ— 2 bytes β‰ˆ 327 KB/token β†’ ~3.2 GB per 10K active tokens (cut roughly in half with --kv-cache-dtype fp8)

Single-GPU capacity comparison

Workload Estimated Peak VRAM Single H100 (80 GB) Single H200 (141 GB) Single B200 (180 GB)
70B AWQ / INT4 + 16K KV cache ~46–52 GB Fits cleanly Large concurrency headroom Large concurrency headroom
70B FP8 + 64K KV cache ~84–96 GB Needs 2Γ— H100 (tp=2) Fits on 1 card Fits on 1 card with headroom
70B BF16 + 16K–32K KV cache ~150–165 GB Needs 2×–4Γ— H100 Needs 2Γ— H200 Fits on 1 B200
70B 4-bit QLoRA (4K seq, grad ckpt) ~56–68 GB Fits cleanly Extra room for batch/seq Large batch & long seq
70B 8-bit LoRA fine-tuning (4K seq) ~100–112 GB OOM on 1 card Fits on 1 card Fits on 1 card with larger batch
120B–235B MoE (FP8 / INT4) ~125–155 GB Multi-GPU required Borderline / tight Fits on 1 B200 (INT4/FP4)

Why staying on 1 GPU matters when possible

Crossing from 1 GPU to 2 GPUs with tensor parallelism (--tensor-parallel-size 2) introduces all-reduce communication across every transformer layer, doubles your instance GPU count, and adds failure modes around NCCL initialization and imbalanced KV blocks. If a 70B FP8 workload peaks at 92 GB, moving from 2Γ— H100 (160 GB aggregate across two cards) to 1Γ— H200 (141 GB on one card) keeps your deployment single-process and simplifies both serving and LoRA checkpoints.

2. Step-by-step setup: serving a 70B FP8 model on H200 or B200 with vLLM

Step 1: Confirm GPU architecture, driver, and compute capability

After connecting over SSH:

nvidia-smi
python3 -c "import torch; print(torch.__version__, torch.cuda.get_device_name(0), torch.cuda.get_device_capability(0))"

Verify compute capability before installing extensions:

  • H100 / H200 (Hopper) report (9, 0) (sm_90a for FP8 Hopper tensor cores).
  • B200 (Blackwell) reports (10, 0) (sm_100).

Step 2: Create an isolated Python environment and install vLLM

python3 -m venv ~/venv-vllm
source ~/venv-vllm/bin/activate
pip install --upgrade pip
pip install vllm

On Blackwell (B200), confirm that your PyTorch and vLLM wheels target CUDA 12.8+ so Blackwell kernels compile and dispatch without falling back or crashing at kernel launch.

Step 3: Launch vLLM with explicit memory and context limits

For a single H200 (141 GB) or B200 (180 GB) serving a 70B FP8 checkpoint:

vllm serve your-org/your-70b-fp8-model \
  --host 127.0.0.1 \
  --port 8000 \
  --dtype auto \
  --kv-cache-dtype fp8 \
  --max-model-len 32768 \
  --gpu-memory-utilization 0.90 \
  --enable-prefix-caching

If you are running on 2Γ— H100 (80 GB) for BF16 or high-concurrency FP8, add --tensor-parallel-size 2:

vllm serve your-org/your-70b-model \
  --host 127.0.0.1 \
  --port 8000 \
  --tensor-parallel-size 2 \
  --dtype bfloat16 \
  --max-model-len 16384 \
  --gpu-memory-utilization 0.88

Step 4: Forward port 8000 over SSH and verify health

Bind to 127.0.0.1 and tunnel from your workstation rather than exposing an unauthenticated endpoint on the public internet:

ssh -N -L 8000:127.0.0.1:8000 root@<instance-host> -p <ssh-port>

Verify the server responds locally:

curl http://127.0.0.1:8000/v1/models

3. Single-card 70B LoRA / QLoRA fine-tuning checklist

For LoRA fine-tuning of a 70B checkpoint without multi-GPU FSDP complexity, a single H100 (80 GB) handles 4-bit QLoRA (nf4 + paged 8-bit AdamW + gradient checkpointing), while H200 (141 GB) and B200 (180 GB) let you train in 8-bit or longer context windows (4096–8192 tokens) with fewer gradient accumulation steps.

Key settings to keep VRAM predictable during training:

from transformers import BitsAndBytesConfig
import torch

bnb_config = BitsAndBytesConfig(
    load_in_4bit=True,
    bnb_4bit_quant_type="nf4",
    bnb_4bit_compute_dtype=torch.bfloat16,
    bnb_4bit_use_double_quant=True,
)

Pair this with:

  • gradient_checkpointing=True (and use_reentrant=False)
  • optim="paged_adamw_8bit"
  • Target linear projections (q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_proj) with rank r=16 or r=32

For dedicated fine-tuning guidance, see Rent a GPU for LoRA fine-tuning.

4. Common errors on H100 / H200 / B200 and fixes

1. ValueError: The model's max seq len is larger than the maximum number of tokens that can be stored in KV cache

  • Cause: A model's default config context length (for example 131072) requires more KV blocks than remain in VRAM after weights load.
  • Fix: Pass --max-model-len explicitly (such as 16384 or 32768), enable --kv-cache-dtype fp8, or step up from 80 GB (H100) to 141 GB (H200) / 180 GB (B200).

2. no kernel image is available for execution on the device on B200

  • Cause: PyTorch, FlashAttention, or custom quantization wheels compiled without sm_100 Blackwell kernels.
  • Fix: Upgrade PyTorch and vLLM to CUDA 12.8+ builds and smoke-test python3 -c "import torch; print(torch.zeros(1, device='cuda'))" before starting your server.

3. CUDA OOM during warmup CUDA graph capture

  • Cause: Setting --gpu-memory-utilization to 0.95 or higher leaves insufficient scratch memory for CUDA graph capture buffers.
  • Fix: Lower --gpu-memory-utilization to 0.88–0.90, or add --enforce-eager temporarily to confirm baseline memory footprint.

4. Expecting --cpu-offload-gb to rescue quantized models on an undersized GPU

  • Cause: Certain quantized kernel paths (such as AWQ Marlin repacking) do not behave cleanly with CPU weight offload hooks, and even when offload works, PCIe transfers collapse token generation throughput.
  • Fix: Size VRAM to fit weights + active KV cache directly on GPU memory (1Γ— H200 or 1Γ— B200) rather than relying on CPU offload in production.

5. Estimating cost with per-minute billing

CloudGPU uses per-minute billing (1-minute minimum), and billing stops as soon as you destroy the instance. Live rates for H100, H200, and B200 are always listed on CloudGPU Pricing.

Session Cost = (Hourly Rate on /pricing Γ· 60) Γ— Active Minutes Γ— GPU Count

Two practical habits keep datacenter GPU sessions predictable:

  1. Debug tokenization, dataset formatting, and prompt templates on a smaller card or locally first, then rent H100, H200, or B200 strictly for full-scale evaluation, batch inference, or fine-tuning epochs.
  2. Automate checkpoint upload and destroy the instance right away once your adapters or evaluation logs are safely synced out.

Summary

  • 70B quantized inference (AWQ/INT4) or 4-bit QLoRA: Start with H100 (80 GB).
  • Single-card 70B FP8 long-context serving or 8-bit LoRA: Choose H200 (141 GB).
  • Single-card 70B BF16 or 120B+ MoE checkpoints: Choose B200 (180 GB).
  • Check live inventory on /deploy and current per-minute billing rates on /pricing.

Disclosure: Author is from the CloudGPU team.

πŸ“° Read the original article on Dev.to AI

Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes β€” full credit and traffic to the original publisher.