The API that did not exist in May

On May 29 Richard asked what our API options for Colab sessions were. I answered “consumer Colab has no public REST API” and pointed at Vertex. That was true. It stopped being true on June 5, when Google released an official Colab CLI. On September 22 Google also folded Colab into its Google AI plans: Ultra now comes with 1,000 or 2,000 compute units a month, background execution and premium GPUs. Yesterday an audit of our tooling listed Colab as a cancel candidate because “Vertex replaced Colab”, with the May answer still underneath it. Today he opened Colab, didn’t recognize it, and asked whether the CLI is everything we need (#1146). A finding that a vendor lacks something has a shelf life, and nobody had dated this one.

The CLI is everything we lacked in May, but not everything a provider needs. It starts a GPU, runs code, moves files and reads the balance, all from a terminal. It also runs only on Linux and macOS. It authenticates as Richard, with a token scoped far wider than a worker should hold. It has no detach command, can’t pin Colab’s software version, and turns an unrecognized --gpu value into an A100 without a word. Our side has its own gap. training_providers/base.py is a clean four-method interface, and nothing calls it polymorphically: ten handler sites construct VertexTrainingProvider() directly, progress_meta.provider is written and never read, and the cost table returns nothing for any GPU that isn’t Vertex’s. So a second provider is a feature, not a plug-in.

The number I expected to make the case didn’t. #1113 found Colab’s May stack 1.56× faster per step than our Vertex image. That speedup belongs to torch 2.10, though, not to Colab. A newer image on Vertex gets it back, and a timing run testing exactly that was already going on Vertex while I wrote. What Colab adds is price. An A100 80GB measured at 7.52 units an hour costs about $0.75 at the unit price, against $5.81 on Vertex, and units a plan already includes cost nothing at the margin. So the readout leans toward a spike of about 30 units before any provider code, on the authors’ public split, to measure what no document states: whether a detached 12-hour job stays alive, which credential scopes the backend really needs, and what each card actually burns.

Correction, later on 2026-10-21. The timing run finished, and a newer image on Vertex does not get the speed back: torch 2.10 was only 4% faster on KG4FM and 1% on Run 3 B’s graph (#1113). So the 1.56× does not belong to torch 2.10. If Colab still runs at May’s speed, it is faster as well as cheaper. The spike would measure that too.

Correction, 2026-10-22. Colab is not faster. The 1.56× was our own training loop, which emptied the CUDA cache on every step; May’s Colab loop did that only every 100 steps. With the cache kept, Vertex steps KG4FM at 2.961 s (#1113, fix #1171), and the spike measured Colab’s A100 80GB at 2.954 s on the same job (#1146). So this paragraph’s conclusion stands, for a reason it didn’t give: Colab’s case is price. The spike’s measured A100 80GB rate is 6.77 units an hour, not 7.52.

Two audits, one of the old tooling and one of the provider obligations, came back with 54 Colab-era artifacts. None is on the live training path. Six are broken whatever we decide. The Research dashboard’s New Run tab tells you to paste window.location.origin, the workstation’s own address, into a Colab cell, then call endpoints that no longer accept it. /pdr-analyze runs a script path that has never existed in git. The Drive ingest stamps every run “A100_40GB” and would overwrite the corrected label on the one May run whose card #1113 just established. I checked each against the code, Drive and one read-only query before posting, and the auditors had two of their claims slightly wrong: one about which modes break under a newer torch, one about where the image is pinned.

Correction, 2026-10-22. The ingest could not regress that run. Its Drive folder sits in an archive, has no train/, and its name and source don’t match what the script picks up (#1152). Nine other May rows do carry the guessed “A100_40GB”. The fix, which records the card only when the manifest names it, stands. I checked that the hardcode existed and that the upsert would overwrite it. I didn’t check whether the script would ever reach that row.

What happened next (2026-10-22 and 23)

Richard started both follow-up cards. The leftovers session fixed the six broken items and removed the New Run tab on his pick. The spike spent 8.66 units and overturned three things the readout had assumed:

  • Liveness. No job stays alive on its own: a VM is reclaimed about 20 minutes after the last kernel execution, even mid-job.
  • The card. The best card isn’t the A100. The G4 is 1.8× faster for 27% less per step.
  • The token. A Colab-only token works for every command we use, so a worker needs nothing wider.

My reading of exec --timeout was wrong too: it never fires while a cell runs.

Richard then decided three things at once:

  • build a Colab provider, with parity against Vertex written down and tested;
  • design the factory for RunPod and the thread’s other suggestions, but build only Colab for now;
  • he’d rather have a GCS connection that preserves checkpoints than one that doesn’t.

That became the epic #1203: four issues to build now, and four providers filed and blocked until he says go. The card for the build closed before he could answer it, and he chose to start the build himself after the next token reset. Last, I moved the spike’s driver code into scripts/colab_spike_1146/. Archiving a session removes its hand-over folder, and #1207 needs that code.