The bill came in two halves
Correction, 2026-11-04. Three things here were overtaken the day this was written. The 80GB card’s Spot quota was granted that morning (
#1116). Spot became the default for PDR2 training later the same day: a job that omitsspotruns on Spot on any GPU with Spot quota, andspot: falseruns on demand (#1169). And#1156was decided; see “Nineteen seconds after the end”. The $5.39 an hour below is the recorder’s list rate; the bill for that card is $5.81 (#1082).
Richard asked for Spot VMs because an on-demand A100 80GB costs us $5.39 an hour, about three times the market. Spot looked like the cheapest lever: it keeps the worker queue, the run records and the cost ledger, and only the VM changes. It shipped on 2026-10-20 as spot: true (#1112, PR #1115). It is off by default, and off trains exactly as before.
Why it needed a guard first
A preempted Spot job does not resume. Vertex starts the container again from the top on a new machine. Our MODE=train always counted from epoch 0, so a preemption would have quietly retrained the run over its own checkpoints and progress lines, and nothing would have said so.
So a Spot job runs train_restartable. Before anything trains, a guard decides whether this is the job’s first start or a restart:
- First start: it claims the run’s output under a GCS generation precondition.
- Restart: it checks that the claim still matches and resumes from the newest checkpoint that this job wrote and whose epoch the progress lines record.
- Anything it cannot verify: it fails the job with exit 4.
An end-to-end test runs the real entrypoint on a toy graph against a fake GCS. In every case, the restarted job ended with the same weights and losses, bit for bit, as a run that never stopped.
What the review found
A fresh reviewer found the hole I had built around. A resumed run’s starting checkpoint defaults to its own latest_state_dict.pt, a file the resumed job overwrites. On a restart the entrypoint downloads that file again. If none of the job’s own checkpoints were complete yet, the guard fell back to that re-downloaded file, unchecked: the job’s own newest weights, at an epoch its history never recorded.
The fix keeps a copy of the starting checkpoint beside the claim, with its hash. Ten tests fail against the old guard. Overnight the fixer took two follow-ups I had filed (#1117, #1122) and merged them before I had retagged the image. So I built the image twice more, the last time from the fixer’s code, and retagged :latest only after a full end-to-end run passed on what was actually going out.
The smoke
It was the smallest valid job on proving ground C: 1 epoch of 90 batches on an A100 40GB. Spot quota for the 80GB card is zero (#1116). Richard approved it at about $0.80. It waited six minutes for a machine, ran seven, and was not preempted. The guard claimed the empty output on real GCS, as designed.
Half a bill
Four hours later the export had four rows for the job, about $0.07 in all, or $0.58 a GPU hour. That was the number I nearly reported. The rows were Vertex’s management fee and a disk, nothing else. The machine itself bills under Compute Engine, and its rows arrived nine hours after the job.
The whole bill is two parts:
- The machine, at Compute Engine’s Spot prices to the cent, over the VM’s entire life. That is 797 seconds for a job Vertex ran for 425, because startup and the image pull are billed.
- Vertex’s fee, over the running time only.
The job cost $0.556, slightly more than the $0.522 the recorder logged at the on-demand rate: on a seven-minute job, billed startup cancels the discount. On a long job the same rates come to about $2.78 an hour on the 40GB card, about 35% below on demand. The catalog puts the 80GB card at about $3.80, against the $5.81 we pay.
What I got wrong on the way
- Double count: my cost script counted the fee’s 425 seconds as GPU time on top of the machine’s 797, which made the rates wrong. The second review caught three more gaps. PR #1157 fixes all of it, and the report now refuses to give a rate until both halves of a Spot bill are in.
- Comparison base: I compared Spot to the recorder’s list rate and called it on demand. Against the catalog’s on-demand price the saving is 35%, not 37%.
- Catalog claim: I said Vertex’s Spot rate was not in the catalog. It is, as two listed parts.
Each wrong copy now carries a dated correction.
What it means
Spot works, and it is safe to use now. It saves about a third, and Vertex’s fee alone is $0.58 to $0.78 an hour. That does not close the factor of three that started this. Plan B, a different provider, is still worth weighing, and that call is Richard’s. How the recorder should price Spot jobs is #1156, his decision too.