Gpu Route
gpu_routePreview where a training job would run and why, without submitting it. Shows routing candidates, approval rules, and which files would ship.
Instructions
Dry run: where a job would run and why, without submitting anything. Same arguments as gpu_submit. Returns {"spec", "route": {outcome place|wait|no_fit, chosen, candidates (ranked, each with a one-line reason and quota left), rejected (provider + why), reason, hours, hours_source}, "approval": {would_ask, reason} (what the approval rules say right now), "bundle" (what would ship, bundle.left_out = git-ignored paths that would not), "guidance"}. Use it before a long or big-VRAM job, when the user asks where something would run, or to check that the files the job needs ship. Read-only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gpu | No | GPU type constraint, e.g. T4. Usually omit. | |
| args | No | Arguments passed to the script, e.g. ["--epochs", "10"]. | |
| data | No | Datasets as [NAME=]PATH (relative to project_dir, or absolute) or hf://datasets/... URIs. Uploaded once, cached by content, readable at gpu.data_dir()/NAME on the GPU. | |
| hours | No | Honest expected wall-clock runtime in hours (e.g. 0.25 for 15 minutes). Agent jobs with no hours or over 1 hour wait for approval, and a job still running well past its hours is stopped for approval. | |
| smoke | No | A quick smoke test: prefers this Mac (MPS) and runs in minutes. | |
| script | No | Script to run, relative to project_dir (e.g. train.py or scripts/train.py). Omit to use gpu.yaml's `script`. A non-.py value runs as a command line, split like a shell would, e.g. `bash jobs/run.sh`. Paths in it and in args are relative to project_dir and must ship (see bundle.warnings). | |
| include | No | Paths or globs relative to project_dir that ship even if git ignores them, e.g. ["third_party/", "data/crops/*.png", "experiments/**/out"] (a directory ships whole; nested git repos too). Added to gpu.yaml `include:`. For code and small files; pass datasets as data. Credential files never ship. | |
| verbose | No | Return the full documents (null fields, every event) instead of the trimmed ones. | |
| vram_gb | No | GB of GPU memory the job needs (a hard filter). | |
| provider | No | Pin one provider (kaggle, colab, local, ...). local = this Mac through gpu-router's queue, one job at a time. Usually omit and let gpu-router choose. | |
| project_dir | Yes | Absolute path of the project directory on this Mac (where the script and gpu.yaml live; inside a git repo the whole repo ships). Example: /Users/me/code/yolo |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||