CI/CD

Some options for running experiments automatically to save you a lot of time

At a high level, I've experimented with two options so far:

Fixed scale github actions (supports GPU):

First you need to install the docker nvidia runtime (from the instructions below and this repo):

Try running the following now on a desktop with GPUs:

If this returned with the GPU info, the runtime has now been successfully installed!

Next, you'll need to register a runner on this machine by following the below documentation:

After that, you can go ahead and try running a test-ci run to use GPUs:

https://github.com/ezhang7423/research_project/blob/main/.github/workflows/gpu-ci.yml

Autoscaling github actions (doesn't support GPU)

The following script will setup an autoscaling kubernetes cluster on an Ubuntu instance with docker already installed.

The directions are taken from ARC here.

https://github.com/ezhang7423/research_project/blob/main/scripts/setup-autoscaling.bash

This is an example CI file that makes use of the cluster that is setup above.

https://github.com/ezhang7423/research_project/blob/main/.github/workflows/autoscaling-ci.yml

Last updated

Was this helpful?