Spot instance (AI training)
A spot instance is a cloud GPU rented at a discount (often 50-90% off) on the condition that the provider can reclaim it on short notice — used for cost-sensitive training that can checkpoint and resume.
Example input
Qwen 2.5 7B LoRA on SkyPilot over AWS g5 spot — checkpoint to S3 every 500 steps
In more detail
What it means
Spot pricing for GPUs (AWS, GCP, Vast.ai, Lambda, RunPod) is the cheapest path to large-scale training in 2026 — at the cost of operational complexity. Training jobs must checkpoint to S3 every N steps and resume cleanly when instances are reclaimed; a 1-hour trial run on spot before committing multi-day spend catches resume bugs cheaply. Frameworks like Ray Train, Modal restart hooks, and SkyPilot (managed spot with auto-reclaim handling) handle the orchestration — SkyPilot can diversify across zones and instance types to keep a job alive. For non-resumable workloads (interactive notebooks, live RAG serving, inference) spot is the wrong choice. For batch training, nightly LoRA fine-tunes on 100K pairs, large 5M-doc embedding shards on Vast.ai, and preprocessing, spot can cut compute cost by 5-10× vs on-demand.
Part 1 of 3
When to use it, and when not
Use it for
- Batch training and fine-tuning jobs with checkpointing.
- Large embedding generation pipelines.
- Nightly LoRA fine-tunes on 100K+ pairs that resume from the last checkpoint.
- 5M-doc embedding shards preprocessed on Vast.ai before production RAG indexing.
- Throughput-per-dollar batch inference with idempotent shards.
Skip it for
- Live RAG serving or chat inference — interruptions break p50 latency and UX.
- DPO or RLHF runs without frequent checkpointing — a reclaim loses the reward-model state.
Part 2 of 3
Example
What goes in, and what comes out.
Input
Qwen 2.5 7B LoRA on SkyPilot over AWS g5 spot — checkpoint to S3 every 500 steps
Output
A reclaim at step 12,400 resumes at 12,000 in under 2 minutes on a new zone — 62% cheaper than on-demand for the full run.
Test resume once on a 1-hour slice before the multi-day commitment.
Part 3 of 3
Common mistakes
- No checkpointing — losing hours of training when an instance is reclaimed.
- Using spot for live inference — interruptions break user UX.
- Narrowing to a single AZ or instance type — diversify to keep reclaim rate low.
FAQ
Questions readers ask.
What is spot instance (ai training)?
A spot instance is a cloud GPU rented at a discount (often 50-90% off) on the condition that the provider can reclaim it on short notice — used for cost-sensitive training that can checkpoint and resume.
Are spot GPUs reliable for training?
With checkpoint-every-N-steps and auto-resume (SkyPilot or Ray Train), yes — reclaim rate under 5% is normal when diversified across zones.
How much do spot GPUs save?
50-90% off on-demand; for nightly fine-tunes the saving is usually 5-10×, net of checkpoint I/O and rare re-runs.
Can I use spot for inference?
Only for batch inference with idempotent shards — never for live serving where a reclaim is a user-visible outage.
When should you use spot instance (ai training)?
Batch training and fine-tuning jobs with checkpointing. Large embedding generation pipelines. Nightly LoRA fine-tunes on 100K+ pairs that resume from the last checkpoint. 5M-doc embedding shards preprocessed on Vast.ai before production RAG indexing. Throughput-per-dollar batch inference with idempotent shards.
When should you not use spot instance (ai training)?
Live RAG serving or chat inference — interruptions break p50 latency and UX. DPO or RLHF runs without frequent checkpointing — a reclaim loses the reward-model state.
What are the common mistakes with spot instance (ai training)?
No checkpointing — losing hours of training when an instance is reclaimed. Using spot for live inference — interruptions break user UX. Narrowing to a single AZ or instance type — diversify to keep reclaim rate low.
Last updated: 2026-09-29. Raw markdown: https://promtable.com/glossary/spot-instance.md. Found a mistake? Tell us.