Wandering Giants Compute · Learn
Guide

The Complete Guide to Choosing GPU Infrastructure for Machine Learning

The short answer

Choose GPU infrastructure in five steps: classify the workload (training, fine-tuning, inference, image or agents), size its memory in GB, pick the cheapest GPU that fits with 10–20% headroom, decide between one GPU, one multi-GPU machine or a multi-node cluster, then match the pricing model (on-demand, reserved, serverless, owned) to your utilisation.

Inference memory
Weights (2 bytes/param BF16, 1 FP8, ≈0.55 4-bit) + KV cache
Full training memory
≈ 16–20 bytes per parameter + activations
Training compute
≈ 6 × parameters × tokens FLOPs
Cost per million tokens
Hourly price ÷ (tokens per hour ÷ 1,000,000)
Single-card VRAM range rented here
24 GB (RTX 4090) to 288 GB (B300)
H100 on-demand market
$1.79 (Vast.ai median) to $12.29 (Azure) per GPU-hour; most GPU clouds $2.50–$4.90 (provider pages, 25 Nov 2026)
Multi-node needed for
Pre-training large LLMs; full fine-tunes beyond one 8-GPU machine

Choosing GPU infrastructure is mostly arithmetic and honesty about how you will use it. The arithmetic tells you how much memory and compute a workload needs. The honesty tells you whether you will keep GPUs busy 10 hours a month or 600, which decides whether you should rent by the minute, reserve, go serverless or buy. This guide turns both into a step-by-step decision, from classifying the workload to picking a provider, with worked numbers at each stage. It ties together the six pillar guides in this library and points to them where you need more depth.

What decisions does choosing GPU infrastructure involve?

Choosing GPU infrastructure means answering five questions in order, because each answer narrows the next.

  1. What is the workload? Training, fine-tuning, LLM inference, image or video generation, or agents.
  2. How much memory does it need? A number in GB, from bytes-per-parameter rules.
  3. Which GPU fits it best? The cheapest card, per run or per token, that holds the job with headroom.
  4. How many GPUs, and how connected? One card, one multi-GPU machine, or a multi-node cluster.
  5. How will you pay and operate it? On-demand, reserved, serverless or owned; which kind of provider; which region; what support and guarantees.

If you are new to renting compute at all, the foundations are in what GPU cloud computing is.

Step 1: What kind of workload are you running?

Workloads differ in what they stress: memory capacity, memory bandwidth, raw compute, or simply uptime. Identify yours first.

WorkloadWhat it stressesUsage patternTypical hardwareDeep dive
Pre-trainingCompute, interconnectContinuous for weeksMulti-node clusters (large models) or one 8-GPU machine (small)GPU model training
Fine-tuning (LoRA / QLoRA / full)Memory capacity, computeBursty: hours, then idle1 GPU to one 8-GPU machineGPU model training
LLM inferenceMemory bandwidth and capacity (KV cache)Continuous, follows traffic1–8 GPUs per replicaLLM inference
Image and video generationCompute, memory for large modelsBursty or steady, per job1 GPU per workerStable Diffusion on cloud GPUs
AI agentsCPU, memory, tools; GPU only if self-hosting the modelLong-running, spikyCPU machines plus a GPU model endpointAI agent infrastructure

Two common misclassifications cost real money. Teams building agents often rent GPUs for the agent itself, when the agent's loop runs fine on CPUs and only the model needs a GPU (or a hosted API). And teams planning a fine-tune often budget for training when the long-run cost is serving the result.

Step 2: How much GPU memory does the workload need?

Memory is the hard constraint: if a job does not fit, it does not run. The rules of thumb are simple enough to do on paper.

Inference. Weights in GB ≈ parameters in billions × bytes per parameter: 2 for BF16/FP16, 1 for FP8/INT8, about 0.5–0.6 for 4-bit. Add the KV cache: per token, 2 × layers × KV heads × head dimension × bytes. For Llama 3.x 70B (80 layers, 8 KV heads, head dim 128, FP16) that is about 0.33 MB per token, so 32k tokens of context ≈ 10.7 GB per sequence. Leave 10–20% headroom.

Training. Full training with Adam in mixed precision ≈ 16–20 bytes per parameter before activations. LoRA ≈ base weights at 2 bytes per parameter plus a few GB. QLoRA ≈ 4-bit weights plus a few GB.

ModelInference BF16Inference FP8Inference 4-bitQLoRA fine-tuneLoRA fine-tuneFull fine-tune
8B16 GB + cache8 GB + cache≈ 4.4 GB + cache≈ 8–13 GB≈ 20–26 GB≈ 128–160 GB + act.
32B64 GB + cache32 GB + cache≈ 18 GB + cache≈ 22–31 GB≈ 72–80 GB≈ 512–640 GB + act.
70B140 GB + cache70 GB + cache≈ 35–42 GB + cache≈ 45–60 GB≈ 150–165 GB≈ 1,120–1,400 GB + act.
235B MoE (Qwen3 235B-A22B)470 GB + cache235 GB + cache≈ 120–140 GB + cachemulti-GPUmulti-GPUcluster

Worked inference example: Llama 3.3 70B in FP8, serving 4 concurrent 32k-token conversations. Weights 70 GB + KV cache 4 × 10.7 GB ≈ 43 GB (FP16 cache) = 113 GB, plus 15% headroom ≈ 130 GB. That fits a 141 GB H200 or two 80 GB cards with tensor parallelism, but not one H100. Cut context to 8k and the cache falls to about 11 GB, and a 96 GB RTX PRO 6000 would hold it.

For more detail: GPU memory for LLMs covers inference sizing, and VRAM to fine-tune an LLM covers training.

Step 3: Which GPU should you choose?

Shortlist every card that fits the memory number with headroom, then compare cost per unit of work, not cost per hour. Capacity sets what fits; bandwidth sets inference speed; compute sets training speed; precision support (FP8, FP4) sets how much you can compress.

GPUVRAMBandwidthPrecision notesPrice per GPU-hourTypical role
RTX 409024 GB1,008 GB/sFP8 (Ada)$1.59/hrModels to ≈14B, image generation, small fine-tunes
L40S48 GB864 GB/sFP8 (Ada)$1.89/hrModels to ≈32B, 70B at 4-bit, LoRA on 8–14B
A100 80GB80 GB1,935 GB/sNo FP8$3.79/hr70B QLoRA, long contexts
H100 (PCIe)80 GB2.0 TB/sFP8 (Hopper)$4.99/hr70B FP8 serving, fast fine-tunes
RTX PRO 6000 Blackwell96 GB1.8 TB/sFP8, FP4$4.89/hr70B on one card with room, big image/video models
H200141 GB4.8 TB/sFP8 (Hopper)$9.09/hrVery long contexts, large models on one card
B200180 GB8 TB/sFP8, FP4$15.49/hrLargest open models quantised, fast training
B300288 GB8 TB/sFP8, FP4$18.09/hr235B-class models in FP8 on one GPU

Specs are NVIDIA's published figures; our prices as of November 2026. Bandwidth also gives a quick single-stream inference estimate: tokens per second ≈ 0.6–0.75 × bandwidth ÷ bytes read per token. Llama 3.3 70B in FP8 reads about 70 GB per token, so an H100 PCIe (2.0 TB/s) gives roughly 17–21 tokens/s for one user, and an H200 (4.8 TB/s) roughly 41–51. Batched serving with vLLM multiplies aggregate throughput well beyond that. These are estimates; measure your own workload. NVIDIA's H100 product page and H200 page list the full specifications.

The cost-per-work comparison often reverses the hourly ranking. For training, cost per run = (FLOPs ÷ effective FLOPS) × hourly price. For a QLoRA fine-tune of a 70B model on 20 million tokens, our compute estimate (6 × parameters × tokens, NVIDIA dense BF16 peaks, 25% utilisation) gives 29.9 GPU-hours on an A100 80GB and 12.4 on an H100 PCIe. The H100's hourly price is higher, but it needs 2.4× fewer hours, so it is the cheaper run unless its price is more than 2.4× the A100's.

Step 4: One GPU, one machine, or a cluster?

Use the fewest GPUs that fit and finish in time. More GPUs add communication overhead and operational complexity, and you pay for all of them.

ScaleWhen it is rightWhat connects GPUsTypical jobs
One GPUJob fits one card's memory and finishes in acceptable time–Inference up to 70B quantised; QLoRA up to 70B; image generation
One machine, 2–8 GPUsModel too big for one card, or need speedPCIe or NVLink inside the serverTensor-parallel serving of 70B–235B; FSDP full fine-tunes of 8–14B; hyperparameter sweeps
Multi-node clusterMore than 8 GPUs on one job, or more memory than one machine holdsInfiniBand or RoCE between serversPre-training 7B+ LLMs; full fine-tuning 70B+ on smaller cards

The line between one machine and a cluster is clearer than people expect. A full fine-tune of a 70B model needs about 1,120 GB of model state; across 8 GPUs that is 140 GB each before activations. Eight B200s (180 GB) or B300s (288 GB) in one machine can do it; eight H100s cannot, so on those cards it becomes a multi-node job. The strategies (DDP, FSDP, DeepSpeed ZeRO, tensor and pipeline parallelism) are explained in what distributed training is and compared in single vs multi-GPU training.

Step 5: Which pricing model fits your utilisation?

The pricing model matters as much as the price. Match it to how many hours a month your GPUs will actually be busy.

ModelHow it worksBest whenWatch out for
On-demandPay per second, minute or hour while runningBursty or uncertain use: fine-tuning, experiments, early productsIdle machines left running
Spot / interruptibleDiscounted spare capacity that can be reclaimedFault-tolerant batch jobs with frequent checkpointsInterruptions mid-run
Reserved / committedLower hourly rate for a 1–36 month commitmentSteady, predictable load most hoursPaying for capacity you stop needing
ServerlessPay per request or per second of execution; scales to zeroSpiky inference with idle gapsCold starts; higher unit price at steady load
Owned hardwareCapital purchase plus hosting, power and staffVery high utilisation for yearsDepreciation, obsolescence, operations

A simple utilisation test: estimate busy GPU-hours per month and divide by 730. Below roughly 30–40%, on-demand or serverless almost always wins. Above 70–80% for many months, look hard at reserved capacity or ownership. In between, the answer depends on the discount on offer. On-demand vs reserved GPUs and renting vs buying GPUs work through the break-evens.

Step 6: Which kind of provider should you use?

There are five broad kinds of GPU provider, each with real strengths. Most teams end up using two.

Provider typeExamplesStrengthsTrade-offs
HyperscalersAWS, Google Cloud, Microsoft AzureIntegrated with storage, networking, IAM; compliance certifications; enterprise support; global regionsUsually higher GPU prices; quotas and approvals for large GPUs
Specialist GPU cloudsLambda, CoreWeave, Nebius, Hyperstack, RunPod, DigitalOceanLower prices, newest GPUs, simpler setup; some sell large InfiniBand clustersFewer adjacent services; offerings vary widely
MarketplacesVast.ai, TensorDockOften the lowest pricesReliability and security vary by individual host
Serverless and inference platformsModal, Replicate, Together AINo servers to manage; scale to zero; per-request pricingLess control; higher unit price at steady load
On-premise / colocationYour own serversLowest unit cost at very high utilisation; full controlCapital, power, cooling, staff, lead times

For reference, on-demand H100 prices from each provider's own page on 25 November 2026: Vast.ai marketplace median $1.79 (SXM), TensorDock from $2.25 (SXM, marketplace), Hyperstack $2.50 (PCIe), RunPod $2.89 (PCIe, Secure Cloud), Lambda $3.79 (PCIe), DigitalOcean $4.41 (SXM), Nebius $4.50 (SXM), against $4.99/hr for our H100 PCIe. Several of these are cheaper than us per hour. H100 prices rose through 2026 and some providers are still raising them (Crusoe's H100 goes from $3.90 to $4.50 an hour on 1 December 2026), so check current pages before you decide. A full price comparison is in GPU rental cost.

Step 7: What will it actually cost?

Convert every option to cost per unit of output: per training run, per million tokens, or per thousand images. Hourly price alone misleads.

Training run. Cost = (6 × parameters × tokens ÷ (peak FLOPS × utilisation) ÷ 3,600) × hourly price, then add 50–100% for evaluation, data loading and retries.

Inference. Cost per million tokens = hourly price ÷ (tokens per hour ÷ 1,000,000). The tokens-per-hour figure should come from a load test at your real prompt and output lengths.

Images. Cost per 1,000 images = hourly price × seconds per image × 1,000 ÷ 3,600.

Worked examples, all with labelled assumptions:

WorkloadHardwareAssumptionBilled GPU-hoursPrice per GPU-hourCost
Fine-tune Llama 3.1 8B, QLoRA, 20M tokens1 × L40SCompute estimate 3.0 h, ×1.5 budget≈ 4.5$1.89/hr$8.50
Fine-tune Llama 3.3 70B, QLoRA, 20M tokens1 × H100Compute estimate 12.4 h, ×1.5 budget≈ 18.6$4.99/hr$92.81
Serve 8B FP8 chat, 1M output tokens1 × L40SAssumed 650 tokens/s aggregate = 2.34M tokens/h≈ 0.43$1.89/hr$0.81
Serve 70B FP8, 1M output tokens1 × H100Assumed 300 tokens/s aggregate = 1.08M tokens/h≈ 0.93$4.99/hr$4.62
1,000 SDXL images1 × RTX 4090Assumed 4 s per image≈ 1.1$1.59/hr$1.75
Always-on inference replica, 1 month1 × L40S730 hours730$1.89/hr$1,380

Throughput and per-image times are assumptions for illustration, not measurements; prices as of November 2026. Two things stand out. The fine-tunes cost a few to a few dozen GPU-hours, once. The always-on replica costs 730 GPU-hours every month. For most products, serving dominates the bill, and the utilisation of serving GPUs is the biggest lever you have. Image workloads are covered in depth in running Stable Diffusion on a cloud GPU.

Step 8: What else should you check before committing?

Beyond GPUs and prices, a short operational checklist separates a good choice from an expensive surprise.

  • Availability. Can you actually launch the card you need today, in the quantity you need? Popular GPUs sell out by region.
  • Billing granularity and stopping. Per second, per minute or per hour? Does a stopped machine keep its disk, and what does storage cost?
  • Spending limits. Is there a hard stop, or only alerts? Prepaid credit with an automatic stop prevents runaway bills.
  • Access level. Root on a VM or bare machine, or a managed container? Fine-tuning and custom stacks usually need root.
  • Region and data location. Where does your data go? Do you need a particular country for latency or regulation?
  • Privacy. Does your data go to a shared model API, or stay on hardware you control?
  • Guarantees. Uptime SLA, support response times, compliance certifications (SOC 2, ISO 27001, HIPAA). If you need them, buy from a provider that holds them.
  • Exit. Can you take your images, checkpoints and data elsewhere easily? Open formats and OpenAI-compatible APIs keep options open.

How do the choices differ by who you are?

Most readers fall into one of five profiles. Here is a starting point for each.

ProfileTypical workloadStarting infrastructureGrow into
Solo developer or hobbyistRun and lightly fine-tune 8B–32B models, image generationOne on-demand RTX 4090 or L40S, stopped when idleBigger card per job
Researcher or studentExperiments, ablations, fine-tunes, small pre-trainingOn-demand 1–8 GPU machines with root; a marketplace for cheap long runsInstitutional cluster or grant compute for large runs
Early-stage startupFine-tune and serve an open modelOn-demand training machines; one or two inference replicasReserved base capacity plus on-demand peaks; a second provider for failover
Scale-up with steady trafficMany replicas, regular retrainingReserved or committed GPUs for the base; on-demand for burstsOwned or colocated hardware if utilisation stays high
EnterpriseRegulated data, many teamsHyperscaler or specialist with certifications and SLAs; private deploymentsHybrid with on-prem for sensitive workloads

Production concerns for the startup path, including capacity planning, monitoring and reliability, are covered in production GPU infrastructure for AI startups.

What are the most common mistakes?

The same handful of errors appear again and again.

  1. Sizing by model name, not memory sum. "We need H100s" before anyone has computed GB needed.
  2. Ignoring the KV cache. A model that fits at 2k context runs out of memory at 32k with several users.
  3. Comparing hourly prices instead of cost per run or per token.
  4. Buying a cluster for a single-machine job. LoRA on 70B does not need InfiniBand.
  5. Committing early. Reserving a year of capacity before traffic is known.
  6. Leaving GPUs idle. The commonest waste of all; per-minute billing only helps if you stop.
  7. Fine-tuning when retrieval or a better base model would do.
  8. Single-provider lock-in for production serving, with no fallback when capacity or prices change.

A one-page decision checklist

Use this before you rent anything.

  1. Workload type and pattern written down (training, fine-tuning, inference, images, agents; bursty or steady).
  2. Memory sum in GB, with the precision, context length and concurrency stated.
  3. Shortlist of GPUs that fit with 10–20% headroom.
  4. Cost per run or per million tokens for each shortlisted GPU, with the method shown.
  5. Number of GPUs and whether one machine is enough.
  6. Expected busy hours per month, and the pricing model that fits.
  7. Two providers that can supply it, and the checklist in Step 8 answered for each.
  8. A pilot run booked before any commitment.

When renting from Wandering Giants fits

Wandering Giants Compute fits the on-demand, single-machine part of this map: fine-tuning, experiments, inference for products in their early or variable stages, and image and video generation. You choose a GPU from a 24 GB RTX 4090 to a 288 GB B300, in 1, 2, 4 or 8 cards per machine, and how you want in: Chat for a private chat with an open model, API for an OpenAI-compatible vLLM endpoint with your own key, or Root for the whole machine. GPU time is billed by the minute from prepaid credit and stops itself when credit runs out; prices show in your own currency with tax handled; your prompts and data stay on your machine.

We are not the cheapest per hour on every card, and we are not the right choice for everything. We do not offer spot instances, reserved discounts, serverless scale-to-zero, multi-node clusters, managed Kubernetes, uptime SLAs or compliance certifications. If your workload needs those, the providers named above do them well. If what you need is the right GPU, quickly, for as many minutes as the job takes, see our GPUs and prices.

Frequently asked questions

How do I choose a GPU for machine learning?

Work out how much memory your job needs in GB using bytes-per-parameter rules, add 10–20% headroom, and list the GPUs that fit. Then compare cost per run or per million tokens, not just hourly price, because faster cards often finish cheaper.

Should I use a hyperscaler or a specialist GPU cloud?

Hyperscalers (AWS, Google Cloud, Azure) suit teams that need deep integration with other cloud services, compliance certifications and enterprise contracts. Specialist GPU clouds usually offer lower GPU prices, simpler setup and faster access to new cards. Many teams use both.

When do I need a multi-node GPU cluster?

When one machine of eight GPUs cannot hold or finish your job: pre-training LLMs at 7B and above on large token counts, or full fine-tuning of 70B-class models on cards smaller than about 180 GB. LoRA, QLoRA, inference and most fine-tuning fit on one machine.

Is on-demand or reserved GPU capacity better?

On-demand is better when use is bursty or uncertain, because you pay only while running. Reserved or committed capacity is cheaper per hour when you will keep GPUs busy most of the time for months. Many teams reserve a steady base and burst on demand.

What GPU do I need for LLM inference?

Enough memory for the weights at your chosen precision plus the KV cache for your context and concurrency. An 8B model fits a 24 GB card; a 70B model needs about 70 GB in FP8 or 35–42 GB in 4-bit, plus cache.

Is it cheaper to buy GPUs than to rent them?

Only at high, sustained utilisation over several years, once you include power, cooling, hosting, staff time and depreciation. For bursty training and early-stage products, renting is usually cheaper.

What matters besides price when choosing a GPU provider?

Availability of the card you need, billing granularity, data-centre regions, how stopping and storage are charged, root access versus managed containers, support, and whether the provider holds the certifications or SLAs your customers require.

Wandering Giants Compute

Rent the GPU for this, by the minute.

Size your job, then rent exactly that: 24 GB to 288 GB per card, up to eight cards per machine, billed by the minute in your own currency.

Prepaid credit, billed by the minute, stops itself when credit runs out. Prices in £, $, €, ¥, CA$, A$, CHF and S$; UK prices include VAT.

Keep reading

About this article. Written by the Wandering Giants Compute team, the people who run Wandering Giants Compute. Hardware figures are the manufacturers’ published specifications. Speeds and costs marked as estimates are worked out from those specifications and our current prices, with the method shown; they are not measured benchmarks. Wandering Giants prices are taken live from our price list each time this page is built.

Last reviewed 25 November 2026.