gpu-router

The cheapest way to run your GPU job across every cloud.

We compare GPU types and cloud providers using measured workload performance to find the lowest cost to finish your job.

Hourly price lies. A $0.5904/h T4 can cost more per token than a $1.1016/h A10 that’s 2.7× faster. gpu-router runs short capped benchmarks of your job and picks the lowest verified cost per unit of work.

ExampleData

Sample LoRA, measured: T4 $0.3540985 per 1k steps vs L4 $0.38341 vs A10 $0.9009545

Describe the job: a container image, a command and a budget. Benchmark it on 2 or 3 candidate GPUs. Run it on the cheapest per unit of work, in your own Modal account, which bills you directly.

Trains ResNet-18 from scratch on CIFAR-10 for one epoch and reports loss and images per second.

jobs1 of 6

Paste your job spec or pick the Vision training sample

$
GB
More options model torchvision/resnet18, fp16, verifier set

Workload

inference may use spot

Verifier

Picked T4 PCIe 16 GB on Modal: the benchmark winner at $ 0.002451 per 1k steps. One full run: measured on T4 (runs 686ad91e, 64715b3d).

Cost on T4 PCIe 16 GB$ 0.007407/runmeasured on T4 (runs 686ad91e, 64715b3d)
Modal rate$ 0.5904/GPU-hr

Candidates

Measured cost of one run on each compatible GPU, lower is better

  1. Modal · T4 PCIe 16 GB$ 0.007407 /job selected lowest cost
  2. Modal · A10 PCIe 24 GB$ 0.01271 /job
  3. Modal · L4 PCIe 24 GB$ 0.01318 /job
  4. Modal · L40S PCIe 48 GB$ 0.021147 /job
  • Lowest cost
  • Other offers

Source: Modal · rate × runtime · 2026/11/24 · 4 of 4 candidates have a job cost

Job cost from measured runs

Cost of one run in one tier, lower is better

  1. Google Cloud · L4 PCIe 24 GB$ 0.011084 /job stale lowest cost
  2. Google Cloud · L4 PCIe 24 GB$ 0.01727 /job stale
  • Lowest cost
  • Other offers

Source: Google Cloud · rate × runtime · 2026/11/24 · 2 of 2 serverless offers have a job cost

All 92 offers

Benchmark

Run the same fixed work, seed, and image on 2 or 3 candidate GPUs, repeated, then rank them by median cost per unit of work.

Capped at 3 probes

GPUCost per unitBasisRate
1. T4 PCIe 16 GB$ 0.002451 per 1k steps (steady state, excluding 51 s startup)measured on T4 (runs da844c43, 6c73d0d3, 7a14b065, 7df95118)$ 0.5904/GPU-hr
2. A10 PCIe 24 GB$ 0.0028735 per 1k steps (steady state, excluding 84 s startup)measured on A10 (runs af1e0e4d, fa4e5cf3)$ 1.1016/GPU-hr
3. L4 PCIe 24 GB$ 0.003169 per 1k steps (steady state, excluding 55 s startup)measured on L4 (runs 42fb7547, 100de606, 191d986b, 9f0a1758)$ 0.7992/GPU-hr
  1. GPUT4 PCIe 16 GB on Modal
  2. StatusSucceeded
  3. Duration0 m 45 s · measured
  4. Cost$ 0.007432 · measured
  5. Exit code0
  6. Verificationpassed
  7. Outputsmodel.pt, metrics.json
  8. ExecutionModal job run 64715b3d27094ac9ba198f4c0df4ce53, finished 2026-10-14, verified

Log tail

last lines from the sandbox
GPU_ROUTER_METRIC {"step": 195, "loss": 1.4766, "t": 36.042}
{"initial_loss": 2.5135, "final_loss": 1.4766, "steps": 195, "images_per_s": 13546.66, "test_accuracy": 0.4956}

Verification

passed · verifier v1 · run 64715b3d measured
  1. expected output filesall 1 expected files are presentPassed
  2. metrics filemetrics.json parsed as a JSON object with 5 keysPassed
  3. metric must decreasefinal_loss 1.4766 decreased from initial_loss 2.5135Passed

Measurement

Duration0 m 45 s measured
Cost on T4 PCIe 16 GB$ 0.007432 /run measured
Cost per unit$ 0.002175 per 1k steps (steady state, excluding 43 s startup) measured

Use sample