Production GPU infrastructure for an AI startup has three tiers: development machines, on-demand training and fine-tuning jobs, and an inference tier sized from measured throughput. Add pinned containers, checkpoints stored off the GPU box, GPU and request monitoring, two capacity sources, and a monthly cost-per-request review.
- Three tiers
- Development, training/fine-tuning, inference
- Capacity formula
- GPUs = peak tokens/s ÷ measured tokens/s per GPU × headroom
- Cost per million tokens
- Hourly price ÷ (tokens per hour ÷ 1,000,000)
- Headroom for serving
- Plan for 1.5–2× average load at peak
- Serving engine
- vLLM: OpenAI-compatible API, continuous batching, /metrics
- Biggest early cost mistake
- Idle GPUs left running
Most AI startups do not fail because their GPU infrastructure is too simple. They burn money because it is too big too early, or lose a weekend because nobody wrote down which version of the model was in production. This guide is a practical blueprint for the GPU side of a startup's stack, from the first prototype to paying customers: what tiers you need, how to size them with arithmetic rather than guesses, and what "production-ready" actually requires. It assumes you will fine-tune and serve open models; the training side is covered in depth in our GPU model training guide.
What does production GPU infrastructure look like?
Production GPU infrastructure is the set of machines, software and processes that let you develop, train and serve models reliably, repeatably and at a known cost. For most startups it has three tiers with very different usage patterns.
| Tier | Purpose | Usage pattern | Typical GPUs | Pricing model that fits |
|---|---|---|---|---|
| Development | Notebooks, experiments, debugging | Working hours, idle overnight | 1 × RTX 4090 or L40S | On-demand, stopped when idle |
| Training / fine-tuning | LoRA, QLoRA, full fine-tunes, evaluation | Bursty: hours, then nothing for weeks | 1–8 × A100, H100, B200 | On-demand by the minute |
| Inference | Serving the product | Continuous, follows user traffic | 1+ × L40S, H100, H200 per replica | On-demand early; reserved or owned once steady |
Around them sit four supporting pieces: storage for data and checkpoints, a registry of container images and model versions, monitoring, and a cost process. Each gets a section below.
Stage by stage: what do you need, and when?
The right infrastructure changes as you grow. Building stage 4 at stage 1 is the most common waste.
- Prototype (no users). A hosted model API or one rented GPU. Spend nothing on infrastructure that is not the product.
- First fine-tune (design partners). Add on-demand training machines. Keep data, scripts and configs in git so any run can be repeated.
- First paying users. Move serving to a dedicated GPU replica with vLLM behind a load balancer, add monitoring and alerts, and keep a second replica or a second provider warm enough to fail over.
- Growth. Multiple replicas, autoscaling (your own, or a serverless platform), and reserved capacity or owned hardware for the steady base load, with on-demand on top for peaks.
How do you size the inference tier?
Size inference from measured throughput, not from model size alone. The formula is:
GPUs needed = peak tokens per second ÷ sustained tokens per second per GPU × headroom.
Worked example: a support assistant on a fine-tuned Llama 3.1 8B.
| Input | Value | Source |
|---|---|---|
| Conversations per day | 50,000 | Product forecast |
| Output tokens per conversation | 500 | Logged from pilot |
| Output tokens per day | 25,000,000 | 50,000 × 500 |
| Average output tokens/s | ≈ 290 | 25,000,000 ÷ 86,400 |
| Peak-to-average ratio | 3× | Business-hours traffic |
| Peak output tokens/s | ≈ 870 | 290 × 3 |
Throughput per GPU has to be measured, because it depends on prompt length, output length and concurrency. To get a starting estimate: single-stream decode is memory-bound, roughly 0.6–0.75 × bandwidth ÷ bytes per token. Llama 3.1 8B in FP8 reads about 8 GB per token; on an L40S (864 GB/s) that is about 65–81 tokens/s for one stream. vLLM's continuous batching multiplies aggregate throughput many times over single-stream; assuming a conservative 10–15× at moderate concurrency gives roughly 650–1,200 tokens/s per L40S as an estimate. So one L40S might carry peak load, and two give headroom and redundancy. Then confirm it with a load test, such as vLLM's own benchmark scripts, before launch.
Cost per million output tokens follows directly: hourly price ÷ (tokens per hour ÷ 1,000,000). At an assumed sustained 650 tokens/s, an L40S produces 2.34 million tokens an hour, so cost per million = $1.89/hr ÷ 2.34 ≈ $0.81 at full load. At 30% average utilisation the effective cost per token is about 3.3× higher, which is why utilisation matters as much as price. Our guide to GPU utilisation and cost efficiency goes further.
| Deployment | Replicas | GPU-hours per month | Price per GPU-hour | Monthly cost |
|---|---|---|---|---|
| 1 × L40S, 24/7 | 1 | ≈ 730 | $1.89/hr | $1,380 |
| 2 × L40S, 24/7 (redundant) | 2 | ≈ 1,460 | $1.89/hr | $2,759 |
| 1 × L40S 24/7 + 1 in business hours (12 h × 22 days) | 1–2 | ≈ 994 | $1.89/hr | $1,879 |
| 1 × H100, 24/7 | 1 | ≈ 730 | $4.99/hr | $3,643 |
Throughput figures are estimates; prices as of November 2026.
How should you serve models in production?
On a rented machine such as a Wandering Giants Compute GPU you can run this yourself under Root, or use the built-in API option. Either way, use a serving engine built for concurrency, give it a stable API, and keep the model version explicit. vLLM is the common choice: continuous batching, an OpenAI-compatible API, LoRA adapter hot-loading, a /health endpoint and Prometheus metrics at /metrics.
A minimal, restartable service with systemd:
# /etc/systemd/system/vllm.service
[Unit]
Description=vLLM server
After=network-online.target
[Service]
User=svc
Environment=HF_HOME=/data/hf
ExecStart=/opt/venv/bin/vllm serve /data/models/support-bot-v7 \
--served-model-name support-bot --max-model-len 8192 \
--gpu-memory-utilization 0.90 --api-key ${VLLM_API_KEY} --port 8000
EnvironmentFile=/etc/vllm.env
Restart=always
RestartSec=5
[Install]
WantedBy=multi-user.targetsudo systemctl enable --now vllm
curl -s localhost:8000/health && curl -s localhost:8000/metrics | grep -E "num_requests_(running|waiting)"Principles that matter more than the tool:
- Name model versions.
support-bot-v7, with the training commit, data snapshot and eval results recorded. Clients call a stable alias; you switch the alias. - Keep the API OpenAI-compatible. It lets you fail over to another provider or a hosted model by changing a base URL.
- Put a gateway in front. Rate limits, auth, logging and routing between replicas belong in one place, not in each GPU box.
- Load-test before launch. Know where latency degrades as concurrency rises.
Our walkthrough on building an open-source LLM API covers the serving side step by step.
How should training and fine-tuning run?
Treat training as a repeatable job, not a session on a machine. That means:
- Everything in git: data processing scripts, training config (an Axolotl YAML or a TRL script), evaluation prompts.
- Pinned environments: a container image or a lock file. Transformers, TRL and DeepSpeed rename arguments between releases.
- Data snapshots: each run records the exact dataset version it used.
- Checkpoints off the box: sync to object storage during the run, so stopping or losing the machine loses nothing.
- An evaluation gate: a new model replaces production only if it beats the current one on a fixed test set and a human spot-check.
A minimal run wrapper:
#!/usr/bin/env bash
set -euo pipefail
RUN=ft-$(date +%Y%m%d-%H%M)-$(git rev-parse --short HEAD)
accelerate launch --config_file fsdp.yaml train.py --output_dir /data/runs/$RUN 2>&1 | tee /data/runs/$RUN.log
python eval.py --model /data/runs/$RUN/final --suite evals/support_v3.jsonl > /data/runs/$RUN.eval.json
rclone copy /data/runs/$RUN remote:checkpoints/$RUN # any S3-compatible bucketFor most startups, fine-tuning is single-machine work: LoRA and QLoRA up to 70B fit on one GPU, and full fine-tunes of smaller models fit on 4–8 GPUs. See single vs multi-GPU training for the sizing.
What should you monitor?
Monitor at three levels: the GPU, the serving engine, and the business.
| Level | Metrics | Source | Alert when |
|---|---|---|---|
| GPU | Utilisation, memory used, temperature, power, ECC/Xid errors | nvidia-smi, NVIDIA DCGM exporter | Errors appear; memory near full; utilisation near zero for hours (idle cost) |
| Serving | Requests running and waiting, time to first token, tokens/s, error rate | vLLM /metrics (Prometheus) | Queue grows; p95 latency over target; 5xx errors |
| Business | Cost per request, cost per 1,000 tokens, requests per customer | Gateway logs + bill | Cost per request rises month on month |
A quick GPU log you can run anywhere without extra software:
nvidia-smi --query-gpu=timestamp,index,utilization.gpu,memory.used,memory.total,temperature.gpu,power.draw \
--format=csv -l 30 >> /data/logs/gpu.csvFor a dashboard, NVIDIA's DCGM exporter and vLLM's metrics endpoint both feed Prometheus and Grafana directly.
How do you make it reliable?
Reliability for a small team means removing single points of failure that would take the product down, not chasing five nines. In order of value:
- Two replicas of anything users depend on, ideally in different regions.
- A fallback route in the gateway: if self-hosted replicas fail, send traffic to a second provider or a hosted API.
- Automated restart (systemd
Restart=always, or container restart policies). - Fast rebuild: a script that takes a fresh GPU machine to serving in minutes from a container image and a model in object storage. Test it monthly.
- Capacity from more than one source. GPU availability varies by provider and region; being able to launch elsewhere is real insurance.
Check what each provider actually commits to. Some sell uptime SLAs and support contracts; many on-demand GPU clouds, including us, do not. If your customers need a contractual SLA, buy it from a provider that offers one, or build redundancy across providers yourself.
How do you keep costs under control?
GPU bills grow fastest through idle time and oversizing. The controls that work:
- Stop idle machines. Development and training boxes should be stopped when not in use. Per-minute billing only helps if you stop.
- Right-size the card. An 8B model in FP8 does not need an H100; a 70B model at 4-bit fits a 48 GB L40S for low-traffic use.
- Quantise for serving where evaluation shows no quality loss.
- Separate base load from peaks. Once traffic is steady, commit capacity (reserved instances elsewhere, or owned hardware) for the base and keep on-demand for peaks. See on-demand vs reserved GPUs.
- Set hard limits. Prepaid credit or budget alerts with automatic stops prevent the four-figure surprise from a forgotten 8-GPU box.
- Review monthly: cost per request and utilisation per GPU, not just the total.
More tactics are in how to reduce GPU cloud costs, and the rent-or-buy maths is in renting vs buying GPUs.
What about security and data?
Production GPU machines handle your customers' data and your model weights. Minimum practice: SSH keys only, no passwords; API keys on every endpoint; secrets in environment files or a secrets manager, never in images; least-privilege tokens for Hugging Face and storage; and a clear record of where data is processed. Self-hosting on dedicated GPUs keeps prompts and outputs off shared AI APIs, which is often the reason startups self-host in the first place. If customers ask for SOC 2 or ISO 27001 reports, check which providers hold them before you commit.
When renting from Wandering Giants fits
Wandering Giants Compute fits the development and training tiers well, and the inference tier at early stages. Root gives you whole machines with 1, 2, 4 or 8 of the same GPU for training; API gives you an OpenAI-compatible vLLM endpoint on your own GPU for serving; billing is per minute from prepaid credit with an automatic stop, so there is no surprise bill. Prices show in your currency with VAT handled, and your prompts stay on your machine.
Be clear about what we do not offer: no uptime SLA, no serverless autoscaling or scale-to-zero, no reserved-capacity discounts, no multi-node clusters, no managed Kubernetes and no compliance certifications. As you grow, those may push part of your stack to a hyperscaler or a specialist provider. Many teams keep us for experiments and fine-tuning alongside that. For the full decision framework, read the complete guide to choosing GPU infrastructure for ML.
Frequently asked questions
What GPU infrastructure does an early-stage AI startup need?
Usually less than it thinks: one or two on-demand development GPUs, rented training capacity when you fine-tune, and an inference tier sized to real traffic. Avoid long commitments until usage is predictable; on-demand rental with per-minute billing keeps cost tied to work done.
Should a startup use an API like OpenAI or host its own models?
Start with whatever gets a working product fastest, which is often a hosted API. Move to self-hosted open models when you need privacy, a fine-tuned model, predictable cost at volume, or control over latency. Many startups run both and route by task.
How many GPUs do I need to serve my users?
Measure tokens per second for your model on one GPU with a load test at realistic prompt and output lengths, then divide your peak tokens per second by that figure and add 50–100% headroom. Peak is commonly 2–3× the daily average for business-hours products.
Should I buy GPUs or rent them?
Rent while demand is uncertain or bursty. Buying makes sense when you can keep cards busy most hours for years and have somewhere to run them. Our rent-vs-buy article works through the break-even maths.
Do I need Kubernetes for GPU workloads?
Not at first. A few machines with containers, systemd and a load balancer serve a lot of traffic. Kubernetes with the NVIDIA GPU Operator earns its complexity when you run many services across many machines and need automated scheduling.
How do I keep GPU costs under control?
Track cost per request or per thousand tokens, stop idle machines automatically, right-size the GPU to the model, quantise where quality allows, batch requests, and review the bill monthly against usage. Prepaid credit with a hard stop prevents surprise bills.
Rent the GPU for this, by the minute.
Start with on-demand GPUs billed by the minute: Root machines for training, a vLLM API for serving, and a hard stop when credit runs out.
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
- Complete guideWhat Is GPU Model Training? A Complete Guide
- ComparisonBest GPU Infrastructure for AI SaaS Startups
- TutorialHow to Build Your Own Open-Source LLM API
- Head to headRenting vs Buying GPUs: Which Is Better in 2027?
- GuideHow to Reduce GPU Cloud Costs Without Sacrificing Performance
- GuideThe Complete Guide to Choosing GPU Infrastructure for Machine Learning
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.