This guide connects the repo's PR bot flow to a rented GPU machine.
CCO uses a two-stage PR bot flow:
- CPU-only precheck runs automatically on PR open/update
- accepted PRs enter the ordered GPU eval queue
The GPU queue worker needs a self-hosted GitHub Actions runner with a working CUDA stack.
Run:
bash scripts/setup_gpu_runner.shThat script:
- installs basic Ubuntu build tools
- checks
nvidia-smi - creates a Python virtual environment
- installs PyTorch with CUDA wheels
- installs repo Python dependencies
- runs:
python3 eval/run_eval.pypython3 eval/run_eval_gpu.py --seed 1234
Environment variables you can override:
REPO_DIR=/path/to/Cuda-Compute-OSS
VENV_DIR=$HOME/cco-venv
RUNNER_DIR=$HOME/actions-runner
PYTORCH_INDEX_URL=https://download.pytorch.org/whl/cu121Example:
REPO_DIR=$HOME/work/Cuda-Compute-OSS bash scripts/setup_gpu_runner.shIn GitHub:
- open the repository
- go to
Settings->Actions->Runners - click
New self-hosted runner - choose the machine OS and architecture
- run the shown commands on the rented GPU machine
The runner must include the gpu label.
Your workflows target:
runs-on: [self-hosted, gpu]Foreground mode:
cd ~/actions-runner
./run.shService mode:
cd ~/actions-runner
sudo ./svc.sh install
sudo ./svc.sh startAfter the runner is online:
- PR updates trigger
.github/workflows/pr-precheck.yml - passing PRs get
status:gpu-queued - failing PRs get
status:precheck-failedand are auto-closed
When you want to spend GPU time:
- open GitHub
Actions - choose
GPU Queue - click
Run workflow
That worker:
- finds queued PRs
- sorts them by arrival order
- runs real GPU eval one by one
- comments the result back on each PR
- labels each PR as:
status:gpu-passed- or
status:gpu-failed
Self-hosted runners are safest with private repositories or trusted contributors because workflow code runs on your machine.