Before you start: words you need#
| Word | Plain meaning |
|---|---|
| Regime | Which resource limits a workload right now: compute, memory bandwidth, memory capacity or the network (6.a). |
| Unit cost | Money per unit of your work: per million tokens served, per training step, per fine-tune. |
| Committed capacity | GPUs a provider contractually reserves for you on given dates, as opposed to whatever happens to be free. |
| Expert parallelism (EP) | Spreading a mixture-of-experts model’s experts across many GPUs, with an all-to-all exchange every MoE layer (14.e). |
| SRAM decode tier | A pool of SRAM accelerators (Groq 3 LPX, Cerebras) that only generates tokens, next to GPUs that do prefill (7.k). |
| QLoRA | Fine-tuning small adapters on top of a 4-bit frozen base model, so large models fit on small GPUs (18.g). |
1. What is it?#
Choosing AI hardware is three questions, in this order:
- What stage is this? It tells you which resource binds (8.a).
- What size is it? It tells you which level of scale you need (8.b).
- What can you actually run and buy? Software support and available capacity eliminate most options before price is even considered (7.g).
Only then compare price per unit of your work. This lesson turns Module 8 into a decision guide and works through four real situations.
Facts checked on 12 November 2026.
2. Why does it matter?#
Because the expensive mistakes are made before anyone benchmarks:
- buying a rack-scale system for a model that fits on one GPU;
- buying the cheapest per-hour GPU for a workload it cannot hold, then paying for tensor parallelism over PCIe;
- choosing a chip whose software stack does not run your model, and losing months porting it;
- comparing list prices per GPU-hour instead of cost per million tokens at your real batch size.
Asking the questions in order rules most of these out on paper.
3. Simple analogy#
Buying a vehicle. First: what is the job? Moving house, commuting, racing? That decides the kind of vehicle. Second: how big is the load? That decides the size. Third: can you get one, and can your mechanic service it? Only then do you compare prices, and you compare cost per trip, not sticker price.
4. Tiny example#
A startup wants to fine-tune an 8B model on 50,000 support tickets.
Stage: fine-tuning → binding resource: memory capacity
Size: QLoRA on 8B → about 10–16 GB → one 24–32 GB card
Feasible: PyTorch + PEFT → runs on any recent NVIDIA card
Unit cost: rent one H100 for a day at ~$2–3/GPU-hour ≈ $50–70
buy an RTX 5090 ≈ worthwhile only if this repeats weekly
Answer: rent one GPU for a day. Do not rent a node.5. Technical explanation#
The guide, branch by branch#
Pretraining. Buy the largest fast domain you can get and a network that will not stall it: NVL72 racks (GB300 now, Vera Rubin as clouds bring it up, 7.d, 7.e), TPU pods (7.i) or Trainium3 UltraServers (7.j), on a rail-optimised 800 Gb/s–1.6 Tb/s fabric (9.d) with fast checkpoint storage (8.c). Between these, the deciding factors are your team’s software (CUDA and PyTorch, or JAX and XLA) and how much capacity a provider can actually commit on your dates.
Post-training and RL. The same cluster, divided into a trainer pool and a rollout pool. Size the rollout pool like a serving fleet, because generation dominates RL time (8.a). Keep weight synchronisation from trainers to generators on the fastest links you have.
Fine-tuning. Capacity decides.
- Up to about 8B parameters: QLoRA on one 24–48 GB GPU (RTX 5090, L40S), or a DGX Spark if slow is acceptable (7.f).
- 8B to 70B: one to eight H100, H200 or B200-class GPUs, or an RTX PRO 6000’s 96 GB with QLoRA.
- Full fine-tuning of 70B and above: a node or more with FSDP (8.c).
Serving. Start with fit (8.d, 12.q):
- If the model plus its KV cache fits one GPU at FP8 or FP4, serve on single GPUs (H100, H200, B200, MI355X) or the equivalent in your cloud (TPU, Trainium).
- If not, a tensor-parallel group inside one NVLink node.
- Large MoE models (about 400B parameters and up) want wide expert parallelism inside one scale-up domain: NVL72, AMD Helios or a TPU slice (14.h).
- If per-user speed is what you sell, add an SRAM decode tier (Groq 3 LPX, Cerebras) and keep GPUs for prefill (7.k, 14.j).
Edge. The device decides: phone and PC NPUs, Jetson Thor for robots, DGX Spark, a Mac Studio or an RTX PRO workstation for a private desk (7.f).
Four worked examples#
1. A startup fine-tunes an 8B model on support tickets. Section 4. One rented GPU for a day.
2. A bank serves a 70B model at FP8 to 2,000 employees, 8k context, in its own data center. Stage: serving; binding: capacity, then bandwidth.
- Weights 70 GB; KV cache at 163,840 bytes per token × 8k tokens × (say) 200 concurrent users ≈ 270 GB (12.f).
- One 8-GPU H200 server (1.1 TB of HBM) holds this with room to spare, and air cooling suffices; two servers give redundancy.
- An NVL72 would be wasted: the model needs no expert parallelism and fits one node.
- On a tight budget, RTX PRO 6000 Server Edition cards (96 GB each) in four-card groups also work, at lower decode speed, because they talk over PCIe (9.b).
3. A lab runs RL post-training on a 1T-parameter MoE with long reasoning rollouts. Stage: post-training; binding: generation bandwidth, then expert all-to-all.
- Rollouts on NVL72 racks with wide expert parallelism; trainers on more NVL72 racks.
- Weight sync over the scale-out fabric after every step.
- Budget most of the GPUs for rollouts. A TPU-pod equivalent works if the code base is JAX.
4. A robotics company puts a vision-language-action model on a warehouse robot. Stage: edge; binding: power and capacity. A Jetson AGX Thor (128 GB, 40–130 W) runs a multi-billion-parameter model at FP4 on the robot. Training happens in the cloud on the same CUDA stack, which is half of why the choice is easy.
The three checks, always#
- Regime. Measure whether the workload is compute-, bandwidth- or capacity-bound on your current hardware (6.a, 22.c). The matching lever predicts your speed-up; the others do not.
- Run it. Run your exact model, precision and serving or training stack on the candidate. Count the days it took to make it work.
- Unit cost. Convert to dollars per million tokens, per training step or per fine-tune, at the batch size you will really run, including power and cost of capital if you own the hardware (7.l, 23.c).
6. Under the hood#
The guide as a function: describe the job, get a first-cut recommendation and the reason.
// choose.go — the decision guide as code.
package main
import "fmt"
type Job struct {
Name string
Stage string // pretrain | rl | finetune | serve | edge
ParamsB float64 // total parameters, billions
MoE bool
BytesPerParam float64 // serving precision
KVGB float64 // KV cache budget for serving
LatencyIsKey bool // per-user tokens/s is the product
Device string // for edge: phone | robot | desk
}
func choose(j Job) (string, string) {
switch j.Stage {
case "pretrain":
return "NVL72 racks, TPU pods or Trainium3 UltraServers on an 800G-1.6T rail fabric",
"bound by FLOPs, network and uptime; pick by software and committed capacity"
case "rl":
return "the training cluster split into trainer and rollout pools",
"rollouts are decode: size them like a serving fleet"
case "finetune":
switch {
case j.ParamsB <= 8:
return "one 24-48 GB GPU with QLoRA (RTX 5090, L40S)", "capacity-bound; 4-bit base fits"
case j.ParamsB <= 70:
return "1-8 H100/H200/B200, or one RTX PRO 6000 with QLoRA", "capacity-bound"
default:
return "an 8-GPU node or more with FSDP", "16 bytes/param of optimizer state"
}
case "serve":
need := j.ParamsB*j.BytesPerParam + j.KVGB
switch {
case j.MoE && j.ParamsB >= 400:
return "NVL72, Helios or a TPU slice with wide expert parallelism", fmt.Sprintf("%.0f GB and an all-to-all every layer", need)
case need <= 0.85*141:
rec := "single GPUs: H100/H200/B200/MI355X, or TPU/Trainium in that cloud"
if j.LatencyIsKey {
rec += ", plus an SRAM decode tier"
}
return rec, fmt.Sprintf("%.0f GB fits one GPU", need)
default:
return "an 8-GPU node with tensor parallelism", fmt.Sprintf("%.0f GB needs several GPUs", need)
}
case "edge":
return map[string]string{"phone": "the device NPU", "robot": "Jetson AGX Thor", "desk": "DGX Spark, Mac Studio or an RTX PRO workstation"}[j.Device],
"bound by power and capacity"
}
return "unknown stage", ""
}
func main() {
jobs := []Job{
{Name: "support-ticket fine-tune", Stage: "finetune", ParamsB: 8},
{Name: "bank assistant, 70B FP8", Stage: "serve", ParamsB: 70, BytesPerParam: 1, KVGB: 270},
{Name: "coding agent, 32B FP8", Stage: "serve", ParamsB: 32, BytesPerParam: 1, KVGB: 40, LatencyIsKey: true},
{Name: "1T MoE serving", Stage: "serve", ParamsB: 1000, MoE: true, BytesPerParam: 0.56, KVGB: 1500},
{Name: "reasoning RL", Stage: "rl", ParamsB: 1000, MoE: true},
{Name: "frontier pretraining", Stage: "pretrain", ParamsB: 2000, MoE: true},
{Name: "warehouse robot", Stage: "edge", Device: "robot"},
}
for _, j := range jobs {
rec, why := choose(j)
fmt.Printf("%-26s → %s\n%28s(%s)\n", j.Name, rec, "", why)
}
fmt.Println("\nThen: find the regime, run the exact model on the candidate, compare cost per unit of work.")
}Output:
support-ticket fine-tune → one 24-48 GB GPU with QLoRA (RTX 5090, L40S)
(capacity-bound; 4-bit base fits)
bank assistant, 70B FP8 → an 8-GPU node with tensor parallelism
(340 GB needs several GPUs)
coding agent, 32B FP8 → single GPUs: H100/H200/B200/MI355X, or TPU/Trainium in that cloud, plus an SRAM decode tier
(72 GB fits one GPU)
1T MoE serving → NVL72, Helios or a TPU slice with wide expert parallelism
(2060 GB and an all-to-all every layer)
reasoning RL → the training cluster split into trainer and rollout pools
(rollouts are decode: size them like a serving fleet)
frontier pretraining → NVL72 racks, TPU pods or Trainium3 UltraServers on an 800G-1.6T rail fabric
(bound by FLOPs, network and uptime; pick by software and committed capacity)
warehouse robot → Jetson AGX Thor
(bound by power and capacity)
Then: find the regime, run the exact model on the candidate, compare cost per unit of work.How to read it:
- The bank job lands on “an 8-GPU node”: 340 GB does not fit one 141 GB GPU.
- The coding agent fits one GPU, and because per-user speed is its product it also gets an SRAM decode tier.
- The function is deliberately crude: real decisions also weigh price, existing contracts, data location and team skills. Its value is the order of the questions, which is the same at any budget.
7. Performance implications#
- Fit first, then speed. A model split across a slow link loses more than a smaller precision costs; try FP8 or FP4 on fewer GPUs before adding GPUs (13.b).
- The scale-up domain sets MoE speed. Wide expert parallelism inside NVL72 or Helios is several times faster than the same GPUs joined by NICs (7.d).
- Per-user speed and throughput are different purchases. SRAM tiers buy the first; HBM GPUs at large batch buy the second (7.k).
8. Production implications#
- Software support is a hard filter. Check that your engine (vLLM, SGLang, TensorRT-LLM) supports your model, precision and parallelism on the candidate chip before you look at price (15.f).
- Capacity is a hard filter too. The best chip you cannot get on your dates is not an option. Rubin, for example, is rolling out cloud by cloud through late 2026 and 2027 (7.e).
- Price your own workload. Rental prices move fast (H100 about $2–3, B200 about $6–10 per GPU-hour on demand in November 2026); cost per million tokens at your batch size is the number that matters (23.c).
- Keep a way out. Prefer stacks that run on more than one vendor’s hardware when the cost of doing so is small.
9. Common mistakes#
- Starting with price. Stage, size and feasibility rule out most options first.
- Buying a rack for a model that fits a node. NVL72 pays off for wide MoE and large tensor parallelism, not for a 70B dense model.
- Ignoring the KV cache when sizing serving. It can exceed the weights.
- Comparing GPU-hour prices. Compare cost per unit of work at the real batch size.
- Skipping the “run it” check. Porting time is a cost too.
10. Hands-on exercise#
- Run
choose.go. Add a job of your own and check whether the recommendation matches what you would have bought. - Change the bank example’s KV budget to 1 TB (long documents). What does the guide say now, and do you agree?
- Extend
choosewith aCloudfield so that serving inside Google Cloud or AWS recommends TPUs or Trainium first. - For worked example 2, price one 8×H200 server against renting the same capacity for three years. Use 7.l’s cost model and state your assumptions.
11. Interview questions#
- What three questions come before price?
- Why does RL post-training need an inference-shaped rollout pool?
- In worked example 2, why would an NVL72 be wasted?
- What are the three checks to run before signing for any hardware?
- When would you add an SRAM decode tier to a GPU fleet?
12. Further reading#
Checked on 12 November 2026.
- The lessons of Modules 7 and 8, and their sources
- vLLM installation and supported hardware
- QLoRA (Dettmers et al., 2023)