gpu-rich
Free GPUs, driven from your terminal by your agent.

One command-line tool sends a notebook or a training script to Kaggle, Colab, Modal, Hugging Face Jobs or NVIDIA Brev. A searchable index of public notebooks and fine-tuning recipes tells the agent what to run.

Implementation plan · written 2026-11-29 · build in progress · see section 13 for what works today
v1 runs training jobs and any notebook 5 backends Kaggle · Colab · Modal · HF Jobs · Brev catalog index only, tested along the way users students, global, English phase 0 spikes done · section 12 phase 1 passed: a LoRA fine-tune ran on a Kaggle T4 through the CLI · section 13
# the loop an agent runs for a student
$ gpu-rich search "fine-tune whisper small"
hf-notebooks/audio/fine_tune_whisper · T4 · Apache-2.0
$ gpu-rich plan hf-notebooks/audio/fine_tune_whisper
Kaggle T4 x2 · free · 21 h left this week
$ gpu-rich run hf-notebooks/audio/fine_tune_whisper --detach
run r-7f3a queued on kaggle
$ gpu-rich wait r-7f3a --timeout 300
running · step 400/2000 · loss 0.41
$ gpu-rich pull r-7f3a
outputs/ saved · result.json · executed.ipynb
01Goal and scope

A student with no budget asks an AI coding agent to train a model. The agent finds a recipe, picks a free GPU, runs the job, reads the logs, and brings the results back to the local folder.

In scope for v1

  • Run a Python script or a .ipynb notebook on a remote GPU with one command.
  • Five backends: Kaggle, Google Colab, Modal, Hugging Face Jobs, NVIDIA Brev.
  • A router that reads live quota and picks the cheapest backend that fits the job.
  • Status, live logs, output download and cancel for every run.
  • A catalog that indexes public notebooks and recipes by link and metadata.
  • A skill pack (SKILL.md) so Claude Code, Codex, Gemini CLI and Qwen Code can drive the tool.
  • --json output and stable exit codes on every command.

Out of scope for v1

  • Model serving and public tunnels in the style of kllm. This can be a later backend feature.
  • Several accounts on one platform to stack free hours. Platform terms forbid it.
  • Keep-alive tricks that fake activity on an idle session.
  • Copies of third-party notebooks inside our repository. The catalog stores links.
  • Our own hand-written recipe collection. Tested status grows from real runs.
  • A web UI, a hosted service, or user accounts.
  • Native Windows support for the Colab backend, because the Colab CLI supports Linux and macOS only.
02Current state

The local folder gpu-poor/ is an empty git repository. The starting material is kllm and the tools that already exist.

What kllm does and what we take from it

kllm today MIT · alpha · created 2026-11-28

kllm serves one GGUF model on Kaggle T4 x2 and exposes it through an ngrok URL. It supports one platform and one task. It has no training flow and no recipe catalog.

Ideas we reuse

  • A generated notebook carries the job to Kaggle.
  • The Kaggle Python API streams logs (kernels_logs_stream) and reports GPU quota. The public CLI docs do not list these calls.
  • The remote job prints tagged log lines, and the local tool parses them for progress.
  • A private Kaggle dataset carries secrets, because Kaggle Secrets have no CLI support.

Existing tools and the gap

ToolWhat it coversFree GPUAgent supportWhat a free-tier student still lacks
Google Colab CLIcolab run, exec, download. Official, Apache-2.0, released 2026.T4 when availableShips a skillColab only. No recipes. No fallback when no GPU is free.
Kaggle CLIPush, status and output for notebooks.YesNone foundNo log or stop command in the docs. Kaggle only.
hf jobs + huggingface/skillsClean job runner and training skills.No free computeStrong skill packCosts money from the first minute.
Modal CLIServerless GPU functions.Monthly creditsOfficial skillNeeds a card for GPU use. Code must be written for Modal.
SkyPilot, dstackOne job spec across many clouds.Paid cloudsBoth ship a skillNo Kaggle or Colab backend.
Unsloth, Axolotl, LLaMA-FactoryFine-tuning libraries with notebooks or YAML recipes.Through notebooksVariesThey are recipe sources. They do not launch remote compute.
The gap. The research found no tool that routes one job across the free quotas of Kaggle, Colab and Modal, falls back when a quota is empty, and gives the agent a recipe index sized for a 16 GB T4. gpu-rich fills that gap and wraps the official tools where they exist.
03Platforms

The five v1 backends cover five different shapes of compute. Every later platform fits one of these shapes, so a new adapter is small.

Kaggle free

Shape: batch notebook.

submit
kernels_push with accelerator and timeout
logs
kernels_logs_stream (Python API)
outputs
kaggle kernels output
stop
Delete the kernel. The spike confirmed that the GPU session stops at once. Each run gets its own kernel.
quota
Accelerator quota API. 30 GPU hours per week, confirmed by the spike.
watch
Secrets have no CLI support.

Google Colab free, not guaranteed

Shape: live session runtime.

submit
colab run --gpu T4 script.py or colab exec -f nb.ipynb
logs
Command output, colab log
outputs
Tar file on the VM, then colab download. Download takes single files only.
stop
colab stop
quota
colab usage. Free sessions last at most 12 hours.
watch
Linux and macOS only. One account per person. colab exec always exits 0, so the bootstrap writes an exit-code file.

Modal $30 credits each month

Shape: serverless function.

submit
One modal.Sandbox per run, in its own app. No generated wrapper is needed.
logs
Sandbox log fetch and tail, or modal app logs. Kept for 1 day on the Starter plan.
outputs
Modal Volume
stop
Sandbox.terminate(), under 1 s
quota
No API gives the credits left. Only credits used this month are readable.
watch
GPU use needs a payment method on file.

Hugging Face Jobs paid

Shape: container job.

submit
hf jobs uv run --flavor t4-small script.py
logs
fetch_job_logs (Python API)
outputs
Push to a Hub repo or bucket
stop
hf jobs cancel
price
T4-small $0.40/h, A10G-small $1.00/h
watch
Default timeout is 30 minutes. The router uses it only with --allow-paid.

NVIDIA Brev paid, prepaid credits

Shape: GPU machine reached over SSH.

submit
brev create NAME -g T4, then brev copy and brev exec
logs
Tail the log file with brev exec
outputs
brev copy back to the local folder
stop
brev stop, brev delete
price
L4 about $0.17/h, T4 about $0.40/h, spot is lower. These are page estimates.
watch
Sign-in is a browser flow. A forgotten instance keeps billing, so the adapter always sets an auto-stop. Brev ships its own agent skill (brev agent-skill).

Generic SSH and local same adapter

The Brev adapter splits into two parts: instance lifecycle and SSH execution. The SSH part alone serves a university server, a lab machine, RunPod, Vast.ai and Lambda. A local backend runs the same bundle on the student's own GPU or Mac.

All candidate platforms

A research sweep on 2026-11-29 listed 60 candidates in seven categories. The verdict column says when each one enters the project. Items marked unconfirmed come from third-party pages and need a check on the official page before we build on them.

Best for a student with no budget

  1. Kaggle: weekly GPU quota and a real API.
  2. Google Colab: free T4 when one is available.
  3. Local NVIDIA GPU or Apple Silicon with MLX.
  4. Modal: monthly credits after a card is added.
  5. Saturn Cloud free tier and Lightning AI credits, both shrinking.

Best for about $10 per month

  1. NVIDIA Brev: an L4 costs about $0.17/h on demand and about $0.05/h on spot (estimates from the pricing page).
  2. Hugging Face Jobs: T4-small at $0.40/h gives 25 hours.
  3. Thunder Compute: A100 80GB at $1.09/h gives 9 hours.
  4. Scaleway: L4 at €0.79/h, EU region, good CLI.
  5. Salad: very low headline price, reliability unknown.
1 · Free GPU notebook services
PlatformFree offerHeadless interfaceVerdict
KaggleT4 x2, weekly quotaCLI and Python APIv1
Google ColabT4 when available, 12 h sessionsOfficial CLI and MCP serverv1
Lightning AIUp to 30 credits to start. A cut was reported in November 2026 unconfirmedSDK exists, not yet checkednext
Saturn CloudOne T4-class GPU, hours unpublishedNone foundlater
HF ZeroGPU Spaces5 GPU minutes per day, 40 with PROGradio apps onlylater, demos only
SageMaker Studio LabAWS docs say it closed to new customers on 2026-07-30Noneskip
Paperspace GradientFree M4000 GPU in private notebooksAPI not confirmedlater
Deepnote, DataloreNo clear free GPUNone foundskip
Baidu AI Studio, ModelScope, Alibaba PAI-DSW, OpenBayesFree hours claimed unconfirmed. Accounts may need a China-region phone number.None found, or cloud API onlylater, community
2 · Serverless GPU and job platforms
PlatformOffer and priceHeadless interfaceVerdict
Modal$30 credits each month, card needed for GPUCLI and SDKv1
Hugging Face JobsPaid. T4-small $0.40/hCLI and SDKv1
RunPod ServerlessPaid per secondAPInext
ReplicateT4 $0.81/hHTTP API, Coglater
BeamNo free tier. RTX 4090 $0.69/hSDK and CLIlater
Cerebrium, Baseten, fal, Northflank, Anyscale, KoyebPaid, small or unpublished credits unconfirmedCLI or APIlater, on request
SaladVery low consumer-GPU prices unconfirmedREST APIlater
3 · GPU instance clouds and marketplaces
PlatformPrice signalHeadless interfaceVerdict
NVIDIA BrevL4 about $0.17/h, T4 about $0.40/h. Prepaid credits, no free credits found.brev CLI, ships an agent skillv1
RunPod, Vast.ai, LambdaPaid, no free tierCLI and APInext, through the SSH adapter
Thunder ComputeA100 80GB $1.09/h, per-minute billingCLInext
ScalewayL4 €0.79/hscw CLIlater
Shadeform, Prime Intellect, SF ComputeAggregators and compute marketsCLI or APIlater
Hyperstack, Nebius, Verda, Jarvis Labs, Vultr, OVHcloud, Akash, io.netPaid, mostly H100 and A100 classAPIlater, on request
CoreWeave, Crusoe, Hetzner GPUSized for teams and monthly contractsAPIskip
TensorDockAvailability reports are poor unconfirmedNot verifiedskip
4 · Hosted fine-tuning APIs
PlatformOfferVerdict
Together AI$4 minimum per job, SDK and CLIlater, different job shape
FireworksLoRA tuning billed per token unconfirmedlater
Vertex AI tuningPaid, gcloudlater
OpenAI fine-tuning, PredibaseClosed to new users, or absorbed by another companyskip

These services manage the GPU for you and accept a dataset. They do not run arbitrary notebooks, so they stay outside the v1 job model.

5 and 6 · Student credits and academic compute
ProgramOfferHow gpu-rich uses it
Azure for Students$100, no card at sign-up. GPU access without a card is unclear.Docs page that explains the route. No adapter in v1.
GitHub Student Developer PackIncludes the Azure credit unconfirmedDocs page
Google Cloud for EducationCredits given through a teacherDocs page
Modal academic creditsUp to $10k for graduate students and labsWorks with the Modal adapter
NSF ACCESS, NAIRR pilotFree allocations for US researchers and studentsSlurm over SSH, a later adapter
Google TPU Research CloudFree TPUs by invitationLater
EuroHPCNo student route foundSkip

gpu-rich doctor can print these programs as hints when a student has no usable backend.

7 · Local and self-managed machines
TargetInterfaceVerdict
Local NVIDIA GPUDirect processv1, the local backend
Any machine with SSHsshv1, shared with Brev
Apple Silicon with MLXmlx_lm CLInext
University Slurm clustersbatch over SSHnext
Do not spend time on these. SageMaker Studio Lab (closed to new customers), Oracle Always Free (it never had a GPU), OpenAI fine-tuning (closed to new users), Predibase (absorbed), TensorDock (availability reports are poor), Koyeb (sign-ups reportedly restricted), and the site hyperstack.my, which impersonates Hyperstack.
04Proposed design

A plain CLI is the product. The agent learns it from a skill file. Each platform sits behind one adapter with the same eight methods.

Architecture. Ctrl/Cmd + wheel to zoom. Drag to pan. Double-click to fit.

Loading...

Four building blocks

1. Job spec

A job is a source, a hardware need, dependencies, secrets and output paths. For scripts the spec lives in the PEP 723 header that uv and hf jobs uv run already read. For notebooks the spec comes from the catalog entry or from flags.

2. Bundle and bootstrap

The tool packs the source with one small bootstrap script. The bootstrap runs on the remote machine. It installs dependencies with uv, runs the script or executes the notebook with papermill, prints tagged progress lines, and writes result.json. Every adapter ships the same bundle.

3. Adapter

An adapter turns the bundle into the platform's native form: a generated notebook for Kaggle, a Colab session with a background process, a Modal Sandbox, a uv job for Hugging Face, an SSH session for Brev. Adapters hold all platform knowledge.

4. Router

The router drops backends that cannot meet the VRAM and time need. It reads live quota. It ranks free backends first and then the cheapest paid one. A paid backend runs only when the user passes --allow-paid or sets a budget.

One run from search to results. The agent polls with bounded waits, so a long job never blocks its session.

Loading...

Catalog pipeline

The catalog is a build product. A weekly job crawls the source repositories, extracts metadata from each notebook, and publishes one file. The CLI downloads that file and searches it locally with SQLite full-text search. The search works offline and needs no server.

Catalog build. The notebook itself is fetched from its upstream URL only when a user runs it.

Loading...
First sources. Counts are raw files on the default branch, checked 2026-11-29.
SourceSizeTopicsLicence
huggingface/notebooks1,525 notebooksTransformers, diffusers, many tasksApache-2.0
unslothai/notebooks610 notebooksLLM, vision and TTS fine-tuningLGPL-3.0
keras-team/keras-io265 notebooksVision, NLP, classic deep learningApache-2.0
NielsRogge/Transformers-Tutorials153 notebooksVision and multimodalMIT
huggingface/cookbook139 notebooksLLM, RAG, agentsApache-2.0
roboflow/notebooks98 notebooksDetection, segmentationNone stated
rasbt/LLMs-from-scratch69 notebooksBuild an LLM step by stepApache-2.0
meta-llama/llama-cookbook69 notebooksLlama fine-tuning and inferenceMIT
axolotl, LLaMA-Factory357 and 120 YAML recipesFine-tuning configsApache-2.0
diffusers examples, pytorch/tutorials, cleanrlScriptsLoRA training, PyTorch basics, RLApache-2.0, BSD-3, MIT
Licence rule. The catalog stores a link and metadata for every entry and shows the licence. That is safe for repositories with no licence (Roboflow, the Qwen cookbook), for copyleft code (Unsloth, Ultralytics, fastbook), and for permissive ones. The research found no standard metadata for a notebook's GPU need, so the crawler infers it and real runs correct it.

Testing along the way

Every run writes a small report: recipe id, backend, GPU, result, duration and error class. The command gpu-rich report shares that report when the user agrees. The weekly build merges shared reports, so each catalog entry shows where it last worked. Most indexed notebooks will need small fixes before they run headless. The agent makes those fixes, and that is where an agent adds the most value.

Agent layer

Skill pack

One SKILL.md in the open Agent Skills format teaches the loop: doctor, search, plan, run, wait, pull, fix. gpu-rich skills install copies it into the agent's skill folder.

Machine output

Every command accepts --json. Exit codes separate a failed run, an auth problem and an empty quota. Few existing tools offer this.

Error hints

The tool classifies a failed run as out of memory, missing dependency, quota, timeout or platform error. The JSON carries a short hint, for example a smaller batch size or another backend.

05Build sequence

Estimates are working days of agent-led building with you reviewing. They hold only if the phase 0 spikes pass. Phases 2 and 3 can run in parallel.

Phase 0 · Spikes about 1 day · needs your sign-ins, about 20 minutes

  • Kaggle: push a script with a GPU, stream logs, download output, cancel, read quota.
  • Colab: colab run --gpu T4 on a free account. Record what happens when no T4 is free.
  • Modal: generated wrapper, detached run, logs, Volume download.
  • HF Jobs: hf jobs uv run, logs, outputs pushed to the Hub.
  • Brev: create an instance, run over SSH, stop it, read the cost.
  • Catalog: crawl three repositories and check the search quality on ten real questions.
Done when: each spike has a short script that works and a note of every surprise.

Phase 1 · Core and Kaggle about 2 days · depends on phase 0

  • Job spec, bundle, bootstrap runner, run store, adapter interface.
  • Kaggle adapter and the commands doctor, run, status, logs, wait, pull, cancel.
  • --json output, exit codes, first version of SKILL.md.
Done when: an agent fine-tunes a small model on a Kaggle T4 from a clean folder and the adapter files land locally.

Phase 2 · Four more backends and the router about 3 days · depends on phase 1

  • Colab, Modal, HF Jobs, Brev with the shared SSH part, and local.
  • Router with live quota, plan, backends, --allow-paid and a budget cap.
  • Secret handling per backend.
Done when: the same script runs on all five backends without edits, and the router falls back when Kaggle quota is empty.

Phase 3 · Catalog 2 to 3 days · depends on phase 1 · parallel with phase 2

  • Crawler, metadata extraction, portability score, SQLite build, weekly GitHub Action.
  • One LLM pass per notebook family at build time. It writes the main task, the main model, a trains flag and a summary.
  • Entries group their copies in a variants list.
  • search, show, fetch, and run by catalog id.
  • Run reports and the merge of shared reports.
Done when: the index holds about 1,500 entries after copies are removed, and eight of ten fresh test questions return a fitting recipe at rank 1.

Phase 4 · Agent experience 1 to 2 days · depends on phases 2 and 3

  • Full skill pack with reference files for each backend and for common failures.
  • Error classification and hints.
  • End-to-end sessions with Claude Code and one other agent.
Done when: an agent recovers from an out-of-memory failure without help.

Phase 5 · Public release 1 to 2 days

  • README, demo recording, PyPI package, guide for adding a backend.
  • A list of ten starter recipes that passed on a free backend.
Done when: a new user goes from install to a finished run in under ten minutes.
06File map

Everything is new. The stack is Python 3.11+, uv, Typer, Rich, Pydantic and the standard-library SQLite. The README says that a Rust rewrite follows when the tool is stable, so the adapter interface and the JSON contracts stay language-neutral.

Repository layout
gpu-rich/
├── pyproject.toml              package, extras per backend: [kaggle] [modal] [hf]
├── README.md · LICENSE
├── src/gpu_rich/
│   ├── cli.py                  Typer app, all commands
│   ├── models.py               JobSpec, Run, Offer, Quota (Pydantic)
│   ├── jobspec.py              reads PEP 723 header, notebook metadata, flags
│   ├── bundle.py               packs source + bootstrap into one archive
│   ├── bootstrap/runner.py     runs on the remote machine
│   ├── router.py               picks a backend
│   ├── store.py                SQLite run store under ~/.gpu-rich
│   ├── secrets.py              OS keychain access
│   ├── output.py               human view and --json view, exit codes
│   ├── errors.py               failure classes and hints
│   ├── backends/
│   │   ├── base.py             the Backend protocol
│   │   ├── kaggle.py · colab.py · modal.py · hf_jobs.py
│   │   ├── brev.py · ssh.py · local.py
│   └── catalog/
│       ├── index.py            local full-text search
│       ├── fetch.py            downloads an entry from its upstream URL
│       └── report.py           run reports
├── catalog-build/              runs in CI, never ships in the package
│   ├── sources.yaml            repo, licence, link-only flag
│   ├── crawl.py · extract.py · build.py
├── skills/gpu-rich/
│   ├── SKILL.md
│   └── references/             one file per backend, one for failures
├── tests/
│   ├── unit/ · contract/ · catalog/
│   └── live/                   real platforms, off by default
├── spikes/                     phase 0 experiments, kept for reference
├── docs/plan.html
└── .github/workflows/ci.yml · catalog.yml
07Interfaces and contracts

These contracts are the stable surface. Agents and contributors depend on them.

Commands

CommandPurpose
gpu-rich doctorChecks sign-in and quota for every backend and tells the user how to fix each problem.
gpu-rich backendsLists backends with GPU types, price and quota left.
gpu-rich search QUERYSearches the catalog. Filters: --task, --framework, --max-vram, --source.
gpu-rich show IDPrints one entry: link, licence, needs, where it last worked.
gpu-rich fetch IDDownloads the notebook or script from its upstream URL for local edits.
gpu-rich plan TARGETDry run. Shows the chosen backend, the reason and the cost.
gpu-rich run TARGETRuns a file or a catalog id. Flags: --backend, --gpu, --hours, --detach, --allow-paid, --secret.
gpu-rich status [RUN]State of one run or of all recent runs.
gpu-rich logs RUNLog lines. Flags: -f, --tail.
gpu-rich wait RUNBlocks until the run ends or --timeout passes, then prints state and the last lines.
gpu-rich pull RUNDownloads outputs, result.json and the executed notebook.
gpu-rich cancel RUNStops the run and frees the remote machine.
gpu-rich report RUNShares the test result of a catalog run after the user agrees.
gpu-rich skills installCopies the skill pack into the agent's skill folder.

Global flags: --json, --yes, --quiet. Exit codes: 0 success, 1 run failed, 2 wrong usage, 3 sign-in problem, 4 quota empty, 5 platform error.

Job spec in a script header (PEP 723)
# /// script
# requires-python = ">=3.11"
# dependencies = ["unsloth", "datasets", "trackio"]
#
# [tool.gpu-rich]
# min_vram_gb = 15
# max_hours = 2
# outputs = ["outputs/"]
# secrets = ["HF_TOKEN"]
# ///

The same file runs with plain uv run and with hf jobs uv run. Tools that do not know the [tool.gpu-rich] table ignore it.

Backend protocol
class Backend(Protocol):
    name: str
    def doctor(self) -> AuthState: ...
    def offers(self) -> list[Offer]: ...          # gpu, vram_gb, max_hours, usd_per_hour
    def quota(self) -> Quota | None: ...          # hours or credits left
    def submit(self, bundle: Bundle, spec: JobSpec) -> RemoteRef: ...
    def status(self, ref: RemoteRef) -> RunState: ...
    def logs(self, ref: RemoteRef, follow: bool) -> Iterator[str]: ...
    def pull(self, ref: RemoteRef, dest: Path) -> list[Path]: ...
    def cancel(self, ref: RemoteRef) -> None: ...

# RunState: queued | running | succeeded | failed | cancelled | timed_out
Run record returned by --json
{
  "run_id": "r-7f3a",
  "target": "hf-notebooks/audio/fine_tune_whisper",
  "backend": "kaggle",
  "gpu": "T4 x2",
  "state": "failed",
  "started_at": "2026-12-03T10:12:00Z",
  "duration_s": 912,
  "cost_usd": 0.0,
  "error": {
    "class": "out_of_memory",
    "hint": "Lower per_device_train_batch_size or run on a GPU with 24 GB."
  },
  "last_lines": ["torch.OutOfMemoryError: CUDA out of memory ..."],
  "outputs_dir": null
}
Catalog entry
{
  "id": "hf-notebooks/audio/fine_tune_whisper",
  "title": "Fine-tune Whisper for multilingual ASR",
  "source_repo": "huggingface/notebooks",
  "url": "https://github.com/huggingface/notebooks/blob/main/...",
  "licence": "Apache-2.0",
  "kind": "notebook",
  "tasks": ["speech-recognition", "fine-tuning"],
  "frameworks": ["transformers"],
  "models": ["openai/whisper-small"],
  "dependencies": ["transformers", "datasets", "evaluate", "jiwer"],
  "min_vram_gb": 11,
  "vram_source": "observed",
  "trains": true,
  "variants": ["kaggle", "colab"],
  "portability": 0.7,
  "last_commit": "2026-10-02",
  "tested": [
    {"backend": "kaggle", "gpu": "T4 x2", "date": "2026-12-03", "result": "passed"}
  ]
}
08Risks and decisions
RiskAreaLevelAnswer
Platform termsReleasehighThe tool uses official CLIs and APIs only. It supports one account per platform. It ships no tunnel, no keep-alive and no serving. The README states these rules.
Free quota is unreliableUXhighColab gives a free GPU only when one is available. The router falls back to the next backend and says why.
Indexed notebooks do not run headlessCorrectnesshighMany notebooks use Drive mounts, widgets and Colab-only imports. A portability score ranks search results. The skill teaches the agent the usual fixes. Run reports record what passed.
Surprise costSafetyhighPaid backends need --allow-paid. Every run has a time limit. plan shows the cost before the run. Brev instances always get an auto-stop.
Secret leakSecuritymediumTokens stay in the OS keychain. The tool never writes a token into pushed source. Kaggle receives secrets through a private dataset. Log output is redacted.
API driftMaintenancemediumThe Colab CLI is seven months old. The Kaggle log call is missing from the CLI docs. Each adapter is isolated, and a weekly live smoke test catches breaks.
Windows usersReachmediumThe Colab CLI does not support Windows. The Colab backend reports this in doctor and suggests WSL. The other backends work on Windows.
Catalog licencesLegalmediumThe catalog holds links and metadata. The licence of public Kaggle notebooks is unconfirmed, so Kaggle notebooks stay out of the index until that is checked.
Project nameReleasemediumThe name is decided: gpu-rich. The PyPI and GitHub names are not checked yet. Check them before the first release.
Scope growthDeliverymediumDozens of platforms are possible. v1 ships five. A new backend is a contribution that follows the adapter guide.

Decisions already made

DecisionChoiceReason
Agent interfaceCLI with --json plus a skill packSkyPilot, dstack, Modal and the Colab CLI all ship skills. A skill works in every major coding agent. An MCP server can follow if a live tool needs it.
LanguagePython now, Rust laterThe Kaggle, Modal and Hugging Face SDKs are Python, and students already have it. A Rust rewrite follows when the tool is stable. The README says so.
Job formatPEP 723 script headerIt is an existing standard, and Hugging Face Jobs already reads it.
Colab accessWrap the official Colab CLIIt is maintained by Google and has colab run. We write no private API client.
Catalog storageOne SQLite file with full-text searchIt works offline and needs no server or vector database.
Catalog contentIndex onlyYour choice. It also removes the licence problem.
ServingLeft out of v1Your choice of v1 job. Serving from a free notebook is the part with the most terms risk.
09Test plan
LayerWhat it checksWhereRuns
UnitJob spec parsing, router ranking, bundle content, run store, JSON shape, exit codes, log redaction.tests/unit/Every commit
ContractEvery adapter passes one shared suite against a fake platform: submit, status changes, log order, pull, cancel twice, expired sign-in.tests/contract/Every commit
BootstrapThe runner executes a script and a notebook in a clean container and writes a correct result.json on success, failure and timeout.tests/unit/test_runner.pyEvery commit
CatalogExtraction on fixture notebooks: pip cells, GPU hints, Colab-only imports, missing licence. Search returns expected ids for ten fixed questions.tests/catalog/Every commit
Live smokeA two-minute job on each real backend: nvidia-smi, one training step, one output file.tests/live/Weekly and before a release, with GPU_RICH_LIVE=1
Agent end-to-endAn agent with only the skill pack completes search, run, a forced out-of-memory failure, a fix and a pull.Manual script in docs/Before a release
Isolation rule. Every test sets GPU_RICH_HOME to a temporary folder. No test reads the real run store or the real keychain. Live tests use a throwaway project name and delete their remote resources at the end.

Edge cases with a named test: quota runs out during a run, a session is preempted, a notebook asks for input, output is larger than the platform limit, the network drops during logs -f, two runs start at once on a platform that allows one.

10Acceptance checklist for v1
11Your next steps

Phase 0 needs accounts that only you can open. Three decisions are yours.

Accounts for the spikes

  • Kaggle: an API token and a phone-verified account for GPU use.
  • Google: one account for the Colab CLI sign-in.
  • Modal: an account. GPU use needs a card on file.
  • Hugging Face: a token and a few dollars of credit for Jobs.
  • NVIDIA Brev: an account.

You sign in yourself in your terminal. I never see or type the passwords.

Decisions for you

  • Name: decided. The project is gpu-rich. The local folder still has the old name.
  • kllm author: decided. No invitation.
  • Licence: open. I recommend Apache-2.0. It matches most of the tools we wrap.
First action. Create the Kaggle API token and run uv tool install google-colab-cli. Those two unlock the two free backends, and phase 0 can start.
12Phase 0 results

Real runs on real accounts, 2026-11-29. Scripts and raw findings are in spikes/.

SpikeVerdictWhat the run showed
Kagglepass30 GPU hours per week confirmed. Push takes 1.5 s. Logs stream live. Outputs download. Queue time was 8 s twice and more than 10 minutes once. The spikes used 5 min 19 s of quota.
Colabpass, with trapsA T4 is ready in 4 to 6 s, once in 96 s. Logs stream live. Notebooks come back executed. A detached job ran with no local process. About 0.12 compute units used. The test account has paid units, so free-tier GPU availability is still untested.
CatalogpartialCrawl, extract and build take under 20 s for 3 repos. Search answers in 2.6 ms. 2,288 notebooks shrink to 695 entries after copies are removed. On 8 fresh questions, 52% of top-5 results fit.
ModalpassA Modal Sandbox runs a plain script on a T4 with no wrapper app. The run id returns in 1.5 s, the T4 starts in 3 to 5 s, and cancel takes under 1 s. Logs, exit code and partial outputs all come back. Three GPU runs cost $0.024.
HF Jobsnot runYour choice. The adapter is built from the documentation and stays marked untested.
BrevskippedThe CLI is not installed yet.

Design changes that come from the spikes

Kaggle adapter

  • Each run gets its own kernel. cancel deletes that kernel, and the GPU session stops at once.
  • The official cancel call needs a session id that Kaggle does not expose. A replacement push leaves the old session running.
  • The adapter saves logs and outputs before it deletes a kernel.
  • A queue timeout, 5 minutes by default, sends the job to the next backend.
  • The adapter pushes notebooks. A save-without-run push fails on script kernels.
  • The log ends with about ten lines of conversion noise. The adapter removes them.
  • Kaggle CLI 2.2.5 needs the six package and does not declare it.

Colab adapter

  • The adapter starts a session, launches the bootstrap as a background process, and polls marker files. This gives a real --detach.
  • colab exec always exits 0. The bootstrap writes the exit code to a file.
  • The default 30 s silence limit kills quiet jobs. The adapter sets --timeout 0.
  • --env stores secret values in a local history file in clear text. The adapter uploads secrets as a file and deletes it after the bootstrap reads it.
  • Outputs travel as one tar file, because download takes single files.
  • The CLI has no JSON output and waits for keyboard input when the sign-in expires. The adapter parses text and closes stdin.
  • Open point: how long Colab keeps a detached job alive when the kernel is idle. The longest check was 81 s.

Bootstrap runner

  • It writes exit_code and result.json on every backend. The adapters read these files and ignore the platform's own exit status.
  • It executes notebooks with papermill, which stops at the first failing cell. colab exec -f continues after a failing cell.
  • It reads secrets from a file and removes the file.

Modal adapter

  • The adapter creates one Sandbox per run inside its own app, with the outputs folder on a Volume. This replaces the generated wrapper app in the first design.
  • A later process reads the state with the sandbox id: running, exit code, 124 for a timeout, 137 for a kill.
  • Exit code 137 is ambiguous. The adapter records its own cancel in the run store.
  • Cost is reported per app, so one app per run gives the cost of each run about a minute after it ends.
  • Secrets pass through an anonymous secret at create time. The value did not appear in logs or metadata.
  • Modal has no call for credits left. The router shows "unknown" and asks for a budget.
  • Open points: GPU containers can be preempted, and nobody tested a run longer than 300 s or how long a sandbox id stays valid.

Catalog

  • About 70% of notebook files are copies: translations, framework variants and vendor copies. Each source repo needs its own copy rule.
  • Keyword search alone is too weak. More than half of the notebooks contain "fine-tune". One LLM pass per notebook family at build time adds the main task, the main model and a trains flag.
  • 92 Unsloth notebooks print their peak GPU memory in saved outputs. The crawler reads these as vram_source: observed.
  • VRAM is known for 42% of entries. The rest shows "unknown" until a run report fills it.
  • Colab-only code appears in about 1% of notebooks. Login prompts (15%) and secrets (32%) are the real blockers.
  • Three repos give 695 entries. The earlier target of 3,000 is replaced by about 1,500, to be confirmed when more sources are crawled.
13Build status

State on 2026-11-29. The parts were built in parallel by subagents and joined through one adapter contract. Nothing is released and nothing is committed to git.

Phase 1 acceptance passed. gpu-rich run examples/finetune_lora.py --backend kaggle --detach sent a LoRA fine-tune of DistilBERT to Kaggle. The queue took 9 s. The job ran 53 s on 2x Tesla T4 and reached 0.86 accuracy on SST-2. wait reported succeeded, and the adapter files, metrics.json and result.json landed in the local folder.
PartStateProof
CLI coreworksdoctor, backends, plan, run, status, logs, wait, pull, cancel. End-to-end tests on the local backend cover detach, failure hints, cancel, secrets and notebooks.
Bootstrap runner and bundleworks58 tests. Ran for real on Kaggle, Colab and Modal.
RouterworksOn the real accounts it chose Kaggle as free and refused Colab, Modal and HF as paid, with a cost for each.
Kaggle backendverified liveFull run through the CLI on 2x T4. Cancel by kernel delete was proven in the spike.
Colab backendverified liveFull run with pull and a cancel on a real T4. The idle watchdog is tested with fakes only.
Modal backendverified liveFull run in 42 s and a cancel in 1.7 s on a real T4. Cost about $0.007.
HF Jobs backendunverified54 tests against a fake API. No real job has run. The account reports that it cannot pay.
Brev backendunverifiedBuilt from the documentation. The CLI is not installed. Prices are estimates.
SSH and local backendsworksEvery remote script ran for real through a local transport. No real SSH host was used.
Skill pack and docswrittenskills install for Claude Code, Codex, Gemini CLI, Qwen Code and Cursor. README, backend guide, CI workflow. No agent has driven a full session with the skill yet.
Catalogworks2,049 entries from 19 repos in a 6.5 MB index that ships in the package. search, show, fetch, report and run ID work. On 10 new questions, 64% of top-5 results fit and 8 of 10 have a fitting recipe at rank 1. One judge scored this, so the numbers are rough.

What the real runs changed

First catalog recipe on a real GPU

gpu-rich run unsloth/nb/whisper fetched the Kaggle copy of the Unsloth Whisper notebook and ran it headless on 2x T4 with no edits. The run failed after 92 s at the import of Unsloth: a CUDA library that the notebook's own installs need is missing on Kaggle's image. The executed notebook, the log and a test report came back. So the path from catalog id to a real run works, and a portability score of 1.00 does not mean a notebook runs today. Run reports are the only real proof.

The first submission of that run stayed in Kaggle's queue for 29 minutes. A second submission started in 12 s. run now submits again to the same backend, twice by default, before it moves to the next one.

Still open