H100 vs L40S for LLM Serving and Inference Cost

NoraLin 27 2026-08-26 23:13:15 Edit

Quick Verdict: The H100 is a Hopper-class accelerator with HBM and a strong NVLink domain for large models and tight multi-GPU serving; the L40S is an Ada-class inference and graphics GPU with 48 GB of GDDR6 that wins when the model and KV cache fit and you do not need training-class collectives. Treat vendor FLOPS charts as direction. Treat memory, interconnect, and your batch as the decision.

Use H100 when the model, context, or tensor-parallel plan needs HBM and a fast GPU-to-GPU path. Use L40S when you are serving a sized model on dedicated cards and the monthly bill is dominated by many replicas, not by one giant training island. Measure tokens and tail latency on your stack. Do not import a blog’s tokens-per-second as a purchase order.

H100 vs L40S serving comparison

The figures below are vendor-published class traits, not OneSource Cloud benchmarks. Your serving engine, quantization, and sequence mix will move the outcome.

Dimension H100 (Hopper, typical 80 GB HBM3) L40S (Ada, 48 GB GDDR6)
Memory class HBM, built for large models and KV cache GDDR, enough when weights plus cache fit 48 GB
Multi-GPU serving NVLink-class domains are common on HGX nodes Often PCIe-centric; tensor-parallel tax is higher
Typical role Large LLM serving, training, mixed clusters Inference, fine-tunes that fit, media and embedding jobs
Cost shape Higher unit price, fewer cards for a big model Lower unit price, more cards if you shard or shrink the model
Risk if undersized Paying Hopper rates for a 7B-class chat replica OOM or ugly tensor-parallel over PCIe on a 70B-class model

When H100 is the right serving GPU

H100 wins when KV cache and weights will not live comfortably in 48 GB, or when you must shard a model across GPUs that need a tight interconnect. Long-context enterprise assistants, 70B-class dense models in higher precision, and any plan that already uses tensor parallel for training weights are the usual triggers.

H100 also wins when the same node must train by day and serve by night, or when you refuse a second software stack. That convenience has a cost. A fleet of Hopper cards doing small-batch 8B chat is a budget smell, not a performance flex. If utilization is high but the model would fit L40S after an evaluated quantization, you are buying the wrong class.

Private AI infrastructure matters because SKU mix is an isolation problem. OneSource Cloud’s dedicated U.S. environments let you pin Hopper to the jobs that need HBM and keep Ada replicas on a separate serving pool, instead of hoping a shared public queue hands you the right card at 17:00.

When L40S is enough for production inference

L40S is enough when the served artifact fits, including the context you actually allow in production. That last clause is where teams get surprised. A 7B or 13B chat model with a modest context is a different object than the same weights with a 128k default and a RAG dump in the prompt. Memory is weights plus cache plus fragmentation. If your max context is a policy, L40S can be a production GPU. If max context is “whatever the framework default is,” it becomes a raffle.

L40S is also the better cost shape for many embedding, rerank, and classic vision inference services that never needed Hopper. Putting those jobs on H100 because “we standardized” is how inference unit economics quietly die.

Do not assume Ada cannot do FP8-class or quantized serving. Check the precision your engine will actually run, then measure. A precision that exists in a white paper and a precision your runtime compiled are not the same purchase.

How to choose without a fake tokens-per-second bake-off

Run one model, one engine, two SKUs, the same concurrency sweep.

  1. Fix max input, max output, and batch or continuous-batching settings.
  2. Record p95 TTFT, p95 inter-token latency, and whether the replica OOMs.
  3. Repeat at the context length you will advertise to the business, not the demo length.
  4. If L40S needs tensor parallel, include the extra cards and the PCIe tax in the unit cost.
  5. Only then compare GPU-hours. Do not compare list prices of one card as if replicas were equal.

OnePlus, OneSource Cloud’s AI orchestration platform, helps when training and serving shares must stay on different SKUs without a spreadsheet as the scheduler. For day-2 operations across a mixed fleet, managed AI infrastructure keeps driver and runtime drift from turning a careful SKU plan into two incompatible clusters. SaaS teams that sell inference as a feature should also read the cost shape against AI for SaaS constraints: you need predictable replica math, not a one-off Hopper demo.

FAQ

Is L40S good enough for LLM serving?

Yes when weights, KV cache, and batch fit in 48 GB, or when a small shard plan is acceptable on your interconnect. No when you need a large unquantized model, a long default context, or NVLink-class tensor parallel. The model card is not the serving object. The serving object includes cache and concurrency.

Why is H100 more expensive to run for small chat models?

You are paying for HBM, Hopper-class interconnect, and training-capable nodes. If a smaller Ada card meets latency at the same concurrency, the extra capability is unused inventory. That can still be rational if you must keep one SKU for operations. It is not rational as an unexamined default.

Can I tensor-parallel a 70B model on L40S?

You can try. The question is whether PCIe-centric links and 48 GB cards produce a tail-latency and operations story you will live with. Many teams prefer fewer HBM GPUs for that class of model. Prove it with your engine. Do not treat a forum recipe as capacity planning.

Should fine-tuning use the same GPU as serving?

Not always. Fine-tuning cares about optimizer state and step time. Serving cares about cache and TTFT. L40S can be a fine-tune GPU for models that fit. H100 remains the safer default for large full-parameter work. Split the pools if the calendars fight.

How should a private GPU provider talk about this choice?

Ask for the SKU mix, the interconnect on each pool, and a replay of your model on both classes. A provider that only quotes H100 hourly rates is not designing inference. OneSource Cloud’s dedicated environments are built so you can place Hopper and Ada where the job fits, rather than renting one public SKU for every request.

Summary

H100 vs L40S is a memory-and-interconnect decision with a cost-shape consequence. Serve on Ada when the artifact fits. Keep Hopper for large models, long context, and tight multi-GPU graphs. Measure your engine. If you need dedicated U.S. pools to keep that mix stable, review OneSource Cloud private AI infrastructure before you standardize on a single SKU.

Previous: Flat Rate Billing for AI GPU Cloud
Next: What to Do When AWS GPU Quota Blocks Enterprise Deployment
Related Articles