A100 vs H100 Inference Cost per Million Tokens at Scale

NoraLin 20 2026-12-01 03:15:00 Edit

LLM inference unit cost is the total infrastructure spend required to generate one million output tokens under production latency SLAs, determined by GPU HBM memory bandwidth, quantization throughput, active batch concurrency, and hosting pricing structure. Comparing NVIDIA A100 80GB SXM4 against H100 80GB SXM5 purely on hourly cloud rental rates consistently misleads enterprise buyers. At low-concurrency FP16 decode, H100 delivers roughly 1.6x A100 speed; once native FP8 quantization and high-batch continuous batching engage, H100 cuts cost per million tokens by 35% to 55%.

Hardware Comparison: Where H100 Pulls Ahead of A100 in LLM Serving

H100 SXM5 delivers 1.64x the HBM bandwidth of A100 SXM4 (3.35 TB/s vs 2.04 TB/s) for memory-bound decode and adds native FP8 Transformer Engine Tensor Cores that double effective compute density and halve weight memory footprints.

NVIDIA A100 80GB SXM4 vs H100 80GB SXM5 Inference Roofline: HBM Bandwidth Decode vs FP8 Transformer Engine Prefill

Autoregressive LLM inference splits into two physically distinct execution phases with completely different silicon bottlenecks. During prefill (processing the incoming prompt and RAG context in parallel), matrix multiplications saturate GPU Tensor Core FLOPS—making prefill compute-bound. During decode (generating output tokens sequentially one step at a time), every generated token must stream the entire model weight matrix plus the accumulated KV cache out of HBM into SRAM registers—making low-batch decode strictly memory-bandwidth-bound.

Because both NVIDIA A100 80GB SXM4 and H100 80GB SXM5 share the exact same 80 GB HBM capacity, buyers frequently assume they pack models identically. That assumption breaks down on two hardware realities: first, H100's HBM3 subsystem reads weights 64% faster than A100's HBM2e (3.35 TB/s vs 2.04 TB/s); second, H100's fourth-generation Tensor Cores support hardware-native FP8 (E4M3/E5M2) arithmetic via the Transformer Engine (~1,979 dense FP8 TFLOPS), whereas A100 lacks native FP8 pipelines and incurs software dequantization overhead when loading 8-bit weights into FP16 compute units. Additionally, H100 expands intra-node NVLink interconnect bandwidth from 600 GB/s to 900 GB/s (+50%), accelerating tensor-parallel AllReduce synchronization on 70B+ models.

Symmetric Hardware and Hosting Comparison Matrix

Enterprise inference cost depends equally on silicon choice and hosting architecture. Compare NVIDIA A100 SXM4 on public cloud, NVIDIA H100 SXM5 on public cloud, and dedicated single-tenant bare-metal GPU clusters on OneSource Cloud across the four dimensions that govern production $/1M token economics:

Decision Dimension NVIDIA A100 80GB SXM4 (Public Cloud Hourly) NVIDIA H100 80GB SXM5 (Public Cloud Hourly) OneSource Cloud (Managed Private AI Dedicated Bare Metal)
HBM Bandwidth & Decode Roofline 2.04 TB/s HBM2e; 600 GB/s NVLink; 400W TDP 3.35 TB/s HBM3 (+64% vs A100); 900 GB/s NVLink; 700W TDP 100% uncontended bare-metal HBM & NVLink (zero hypervisor virtualization jitter)
Native FP8 Quantization & GPU Packing No native FP8 Tensor Cores; 70B FP16 requires 2x–4x GPUs with KV headroom Native FP8 Transformer Engine (~1,979 dense TFLOPS); halves 70B weights to ~70 GB Full hardware access for FP8 vLLM / TensorRT-LLM + non-blocking RoCEv2 scaling
Unit Cost per Million Tokens Competitive only at low concurrency when hourly rate is >40% below H100 Lowest cloud $/1M tokens at high batch; idle hourly waste hurts below 35% load Flat-rate monthly pricing lowers effective $/1M tokens sharply at sustained >40% load
Deployment Isolation & Egress Economics Multi-tenant virtualized default; metered outbound data egress fees Multi-tenant virtualized default; regional quota scarcity + metered egress Single-tenant bare-metal isolation, $0/GB zero egress fees, SOC 2 Type II readiness

Why SXM vs PCIe Form Factors Skew Naive Benchmarks

Before comparing vendor price sheets, verify whether quoted A100 or H100 nodes use SXM modules (HGX 8-GPU baseboards with full NVSwitch mesh) or PCIe add-in cards. An H100 PCIe card drops HBM bandwidth to 2.0 TB/s—virtually identical to an A100 SXM4—and falls back to PCIe Gen5 x16 (64 GB/s unidirectional) instead of 900 GB/s NVLink. Running tensor-parallel 70B inference across four PCIe H100s frequently underperforms an SXM4 A100 baseboard on multi-GPU AllReduce latency while still charging Hopper pricing. Always compare SXM4 against SXM5 on equal footing.

Unit Economics: Modeling Dollars per Million Tokens Across FP16 and FP8

Under low-concurrency FP16 decode, H100 only yields ~1.5x–1.6x A100 throughput, meaning A100 wins whenever H100 costs more than 1.65x per hour; once workloads use native FP8 or high-batch continuous batching, H100 throughput climbs 2.4x–3.2x and undercuts A100 $/1M tokens decisively.

Cost per Million Tokens Crossover Matrix: A100 vs H100 Cloud Hourly vs OneSource Flat-Rate Dedicated Bare Metal

To prevent procurement mistakes, convert every GPU quote into dollars per million output tokens using the universal unit-economics equation: Cost per 1M Tokens = (Hourly GPU Cluster Cost / (Effective Output Tokens per Second * 3,600)) * 1,000,000. Notice that two hidden multipliers alter the denominator dramatically: effective HBM bandwidth utilization (typically 60%–75% of theoretical peak under real serving engines like vLLM or TensorRT-LLM after KV-cache fragmentation and scheduler overhead; see our KV cache memory monitoring guide) and fleet duty cycle (average active traffic across 24 hours).

Reproducible 70B LLM Inference $/1M Token Calculation (Illustrative Late-2026 Rates)

The calculation below models a production 70B-parameter Llama-class enterprise model serving 2,048-token prompts and 512-token completions under a strict 40 ms inter-token latency (TPOT) SLA. Illustrative cloud hourly rates ($1.80/GPU-hr A100 SXM4 vs $3.20/GPU-hr H100 SXM5 = 1.78x price ratio) and flat-rate dedicated pricing are explicitly marked as examples so teams can substitute their own quotes:

    # Reproducible Llama-3-70B Serving Unit Cost Model (Illustrative Assumptions, Late 2026)
    # Target SLA: TPOT <= 40 ms/token (>= 25 tok/s per user), 2,048 input / 512 output tokens
    # Deployment: TP=4 on A100 80GB SXM4 (BF16 = 140 GB weights) vs TP=2 on H100 80GB SXM5 (FP8 = 70 GB weights)
    #
    # === CASE 1: Low-Concurrency BF16 Decode (Batch Size = 4 concurrent users) ===
    #   A100 80GB SXM4 (TP=4, total HBM BW = 8.16 TB/s, 65% effective = 5.30 TB/s):
    #     Weight read per decode step = 140 GB -> ~37.8 steps/s * 4 users = 151 output tok/s
    #     Cluster cost (4x A100 @ $1.80/hr illustrative) = $7.20/hr
    #     Unit cost = ($7.20 / (151 * 3,600)) * 1,000,000 = $13.25 / 1M output tokens
    #
    #   H100 80GB SXM5 (TP=4 BF16, total HBM BW = 13.4 TB/s, 65% effective = 8.71 TB/s):
    #     Weight read per decode step = 140 GB -> ~62.2 steps/s * 4 users = 249 output tok/s (+1.65x)
    #     Cluster cost (4x H100 @ $3.20/hr illustrative) = $12.80/hr (1.78x A100 cost)
    #     Unit cost = ($12.80 / (249 * 3,600)) * 1,000,000 = $14.28 / 1M output tokens (A100 WINS by 7.2%)
    #
    # === CASE 2: High-Concurrency Enterprise Serving (Continuous Batching + Native FP8 on H100) ===
    #   A100 80GB SXM4 (TP=4 BF16, Batch = 32 concurrent users before TPOT breaches 40 ms):
    #     Effective decode throughput (prefill + KV pressure) = ~820 output tok/s across 4x A100
    #     Cluster cost (4x A100 @ $1.80/hr)                   = $7.20/hr
    #     Unit cost = ($7.20 / (820 * 3,600)) * 1,000,000     = $2.44 / 1M output tokens
    #
    #   H100 80GB SXM5 (TP=2 Native FP8, 70 GB weights + 90 GB free for KV cache, Batch = 48 users):
    #     Native FP8 halves weight traffic (70 GB) + 3.35 TB/s HBM3 + FP8 prefill = ~1,280 output tok/s on JUST 2x H100!
    #     Cluster cost (2x H100 @ $3.20/hr illustrative)      = $6.40/hr (half the GPU count!)
    #     Unit cost = ($6.40 / (1,280 * 3,600)) * 1,000,000   = $1.39 / 1M output tokens (H100 WINS by 43.0%)
    #
    # === CASE 3: Sustained Dedicated Fleet (>50% 24/7 Utilization on Flat-Rate Bare Metal) ===
    #   Removing public cloud on-demand premiums (~25-35% lower effective $/GPU-hr on dedicated flat-rate),
    #   eliminating hypervisor/noisy-neighbor p99 jitter, and removing $0.05-$0.09/GB response/RAG egress
    #   compresses effective 2x H100 FP8 unit cost further into the ~$0.90-$1.05 / 1M output token range.

The math exposes the exact structural pivot point: the A100 versus H100 crossover is governed by GPU packing density via FP8 and sustained batch concurrency, not single-stream decode speed. When your serving team keeps BF16 weights at low concurrency, H100's 1.64x memory bandwidth boost cannot pay off a 1.78x hourly price premium. The moment you validate FP8 weights on H100—shrinking a 70B deployment from 4x A100 down to 2x H100 while raising continuous-batching throughput past 1,200 tok/s—H100 cuts unit token cost by over 40% while consuming fewer rack GPUs.

KV-Cache FP8 Quantization and Long-Context Concurrency Multipliers

Enterprise RAG and document-analysis workloads routinely push context windows from 2K tokens to 16K–32K tokens, causing KV-cache memory—not model weights—to cap maximum concurrent batch size. On a 70B Grouped-Query Attention (GQA) model with 8 KV heads across 80 layers, a single 16K-token context consumes roughly 5.1 GB of BF16 KV cache. Enabling FP8 KV-cache quantization on H100 (--kv-cache-dtype fp8 in vLLM or TensorRT-LLM) halves per-session KV memory to ~2.55 GB with native hardware conversion, effectively doubling concurrent user capacity per 80 GB card before eviction or preemption triggers. On A100, lacking native FP8 compute forces engineers either to keep BF16 KV caches (halving concurrency) or incur software dequantization penalties during attention kernels—widening H100's $/1M token advantage even further on long-context enterprise retrieval.

Eliminating Virtualization Jitter and Cloud Egress on Dedicated Bare Metal

Even on optimal H100 silicon, real-world $/1M token costs drift upward on multi-tenant public clouds because hypervisor scheduling jitter forces teams to overprovision 20%–30% idle headroom just to protect p99 Time-to-First-Token (TTFT) SLAs, while recurring API payload and weight-distribution egress bills silently add 10%–20% overhead. OneSource Cloud Private AI Infrastructure solves this operational drag by delivering dedicated single-tenant bare-metal GPU clusters in secure U.S. data centers with non-blocking Spine-Leaf RoCEv2 networking, transparent flat-rate monthly pricing, and $0/GB outbound data egress fees. Running vLLM or TensorRT-LLM directly on uncontended bare-metal NVLink baseboards eliminates hypervisor noise so platform teams pack continuous-batching queues tighter and realize the full theoretical token economics of their GPUs.

Conditional Decision Rules: Matching GPU Silicon and Hosting Model to Workload

Select A100 80GB only when hourly pricing is at least 40% below H100 and FP16 low-concurrency serving dominates; select H100 on flat-rate dedicated bare metal once sustained concurrency, FP8 serving, or >40% fleet utilization takes hold.

Neither silicon generation nor hosting archetype wins across every enterprise workload. Evaluate each option profile below against your actual prompt lengths, concurrency profile, FP8 accuracy tolerance, and monthly duty cycle before signing hardware commitments.

Option Profile 1: NVIDIA A100 80GB SXM4 (Public Cloud Hourly)

Role & Best Fit: Mature Ampere-generation 80GB compute rented elastically from hyperscalers. Best suited for low-concurrency internal copilots (<8 simultaneous users), strict FP16/BF16 scientific or regulated models where FP8 quantization fails domain accuracy checks, and intermittent batch-scoring pipelines running under 20% daily duty cycle where hourly shutoff saves idle cost. Key Limitations: Lacks native FP8 Tensor Cores, requires double the GPU count for 70B models compared with FP8 H100, and exposes sustained workloads to public cloud multi-tenant latency jitter and outbound egress fees.

Option Profile 2: NVIDIA H100 80GB SXM5 (Public Cloud Hourly)

Role & Best Fit: Hopper-generation 80GB silicon with native FP8 Transformer Engine accessed via on-demand or short-term cloud reservations. Best suited for rapid proof-of-concept launches, unpredictable seasonal traffic spikes, and high-concurrency RAG workloads with low average utilization (<30% monthly duty cycle) that benefit from elastic scale-to-zero APIs. Key Limitations: On-demand hourly rates penalize 24/7 production endpoints severely, contiguous multi-node H100 quotas remain constrained in prime U.S. regions, and recurring cloud egress plus cross-AZ NAT surcharges inflate effective $/1M token bills.

Option Profile 3: OneSource Cloud (Managed Private AI Dedicated Bare Metal)

Role & Best Fit: Single-tenant bare-metal GPU infrastructure hosted in secure U.S. data centers with non-blocking RoCEv2 networking, NVMe-oF storage, predictable flat-rate monthly pricing, $0/GB data egress, and SOC 2 Type II audit readiness. Best suited for production enterprise LLM serving exceeding 35%–45% sustained utilization, regulated healthcare or financial workloads requiring physical tenant isolation, and teams running continuous FP8/BF16 endpoints that need deterministic p99 TTFT/TPOT latency without variable cloud bill shock. Key Limitations: Optimized for committed monthly dedicated capacity rather than ephemeral 2-hour ad-hoc burst experiments.

Workload-to-Hardware Decision Matrix

Production Workload Profile Primary Bottleneck Recommended Silicon & Hosting Model Mandatory Pre-Commit Verification
8B–14B Internal Copilot (<15% duty cycle, low batch) Idle GPU hours between queries Single A100 80GB or elastic cloud GPU (if A100 rate >40% cheaper than H100) Confirm scale-to-zero cold-start weight pull meets TTFT SLA
70B RAG / Agent Serving (4K–16K context, >20 concurrent users) Prefill FLOPS + KV cache headroom 2x–4x H100 80GB SXM5 with native FP8 + vLLM continuous batching Validate FP8 domain accuracy delta (<0.5% eval drop) before sizing
24/7 Regulated Enterprise Inference (>40% fleet utilization) Sustained monthly TCO, p99 jitter, compliance OneSource Cloud Managed Private AI (Dedicated Bare-Metal SXM + Flat-Rate OpEx) Run 24-hour continuous load test measuring p99 TTFT, TPOT, and zero egress
Strict Unquantized BF16 70B+ Compliance Scoring (low batch) Memory bandwidth without FP8 eligibility 4x A100 SXM4 (only if price ratio < 0.60x H100) or 4x H100 SXM5 if TTFT SLA is tight Measure real tok/s ratio on target prompts; verify SXM vs PCIe SKU

Engineering and FinOps leaders moving production LLM serving beyond unpredictable hourly cloud bills can explore OneSource Cloud's Private AI Infrastructure to benchmark flat-rate single-tenant bare-metal GPU clusters with zero outbound egress fees.

FAQ

At what hourly price ratio does an A100 80GB become cheaper per million tokens than an H100 80GB?

For low-concurrency BF16/FP16 decode where performance scales strictly with HBM bandwidth (2.04 TB/s vs 3.35 TB/s), an A100 80GB SXM4 becomes cheaper per million tokens whenever H100 SXM5 costs more than roughly 1.65x the A100 hourly rate. However, once workloads run native FP8 quantization and high-batch continuous batching—where H100 halves GPU count and boosts throughput 2.4x to 3.2x—H100 remains cheaper per million tokens even at a 2.4x+ hourly price premium.

How does OneSource Cloud lower enterprise LLM inference cost per million tokens compared to public cloud GPUs?

OneSource Cloud eliminates hypervisor overhead, noisy-neighbor tail-latency retries, and outbound data egress fees by hosting inference fleets on single-tenant bare-metal GPU clusters under predictable flat-rate monthly pricing. For sustained enterprise workloads above 40% utilization, combining uncontended NVLink/RoCEv2 throughput with flat-rate billing and $0/GB egress compresses effective cost per million tokens well below metered public cloud hourly rates.

Previous: Private LLM Deployment: Infrastructure Requirements for Enterprise Teams
Next: TGI vs vLLM for Enterprise LLM Serving on Dedicated GPUs
Related Articles