container jobs

run any docker container on uvacompute with a single command. jobs are perfect for batch processing, ml training, data pipelines, and any workload that can run in a container.

prerequisites

before running jobs, make sure you have:

  • installed the uva cli
  • authenticated with uva login
1

run your first job

execute a command in any docker image:

uva jobs run alpine echo "hello world"
2

use any docker image

run python, node, or any container image from docker hub:

uva jobs run python:3.11 python -c "print(1+1)"uva jobs run node:20 node -e "console.log('hello')"

examples

run a python script

uva jobs run python:3.11 python -c "import torch; print(torch.cuda.is_available())"

run with gpu support

uva jobs run --gpu pytorch/pytorch:latest python train.py

gpu jobs are only scheduled on nodes where the gpu is idle. if a node owner is using their gpu locally, jobs will wait until a gpu becomes available. check status.uvacompute.com for current gpu availability.

run a bash script

uva jobs run ubuntu:22.04 bash -c "apt update && apt install -y curl"

run a vllm inference server with https endpoint

spin up an OpenAI-compatible API for any open-source model using --expose to get an HTTPS endpoint:

uva jobs run -g -c 4 -r 32 --expose 8000 -n vllm-server \
  vllm/vllm-openai:latest \
  -- vllm serve Qwen/Qwen2.5-7B-Instruct \
    --host 0.0.0.0 \
    --port 8000 \
    --max-model-len 4096

outputs an endpoint URL like https://abc123.uvacompute.com

once logs show "Application startup complete", query it:

curl https://YOUR_ENDPOINT.uvacompute.com/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{
    "model": "Qwen/Qwen2.5-7B-Instruct",
    "messages": [{"role": "user", "content": "Hello!"}],
    "max_tokens": 100
  }'

other models that work on a single GPU:

# Mistral 7B
uva jobs run -g -c 4 -r 32 --expose 8000 -n mistral-server \
  vllm/vllm-openai:latest \
  -- vllm serve mistralai/Mistral-7B-Instruct-v0.3 \
    --host 0.0.0.0 --port 8000
# Llama 3.1 8B (requires HuggingFace token)
uva jobs run -g -c 4 -r 32 --expose 8000 -n llama-server \
  -e HF_TOKEN=your_huggingface_token \
  vllm/vllm-openai:latest \
  -- vllm serve meta-llama/Llama-3.1-8B-Instruct \
    --host 0.0.0.0 --port 8000

tip: first run downloads ~15GB from HuggingFace (10-15 min). a 7B model uses ~14GB VRAM — the 5090's 32GB handles concurrent requests easily via continuous batching.

managing jobs

list your jobs

uva jobs list

view job logs

uva jobs logs <job-id>

cancel a running job

uva jobs cancel <job-id>

github actions runners

use uvacompute as a self-hosted github actions runner. add uvacompute to your workflow's runs-on labels and uvacompute automatically provisions an ephemeral runner for each job via webhook.

1

create an api key

generate an api key from the cli or the profile page. save the key, webhook secret, and webhook url — they are shown once.

uva api-key create "GitHub Runners"
2

add your github token

on the profile page, click add github token on your api key and paste a github personal access token. the token is validated instantly.

classic pat: select the repo scope. works across all your accessible repos and orgs.

fine-grained pat: select the repos you want, then grant administration: read and write permission. only works within a single owner (user or org).

3

add a github webhook

go to your repo's settings → webhooks → add webhook and configure:

payload urlhttps://uvacompute.com/api/github/webhook/<your-key-prefix>
content typeapplication/json
secretyour webhook secret from step 1
eventsselect workflow jobs only
4

use in your workflow

add the uvacompute label to runs-on. when the job is queued, a runner is automatically provisioned:

jobs:
  build:
    runs-on: [self-hosted, uvacompute]
    steps:
      - uses: actions/checkout@v4
      - run: echo "Running on uvacompute!"

resource labels

customize runner resources by adding labels to runs-on. labels starting with uvacompute- are parsed for cpu, ram, disk, and gpu settings.

labeleffect
uvacomputedefault runner (4 cpu, 8gb ram, 32gb disk)
uvacompute-gpuadds 1 gpu
uvacompute-8cpuset to 8 cpus
uvacompute-16gbset to 16gb ram
uvacompute-64diskset to 64gb disk

examples

gpu runner with extra ram:

runs-on: [self-hosted, uvacompute, uvacompute-gpu, uvacompute-32gb]

high-cpu build runner:

runs-on: [self-hosted, uvacompute, uvacompute-8cpu, uvacompute-16gb]

managing api keys

uva api-key create "my runners"uva api-key listuva api-key revoke <key-id>

note: runners are ephemeral — each runner picks up one workflow job then exits. for workflows with multiple jobs, each job automatically gets its own runner.

tip: runner containers start from a bare ubuntu:22.04 image. use sudo apt-get install to install system dependencies your workflow needs.

job options

flagdescriptionexample
-n, --namename for the job--name my-job
-g, --gpurequest a GPU for the job--gpu
-c, --cpunumber of CPUs (default: 1)--cpu 4
-r, --ramRAM in GB (default: 4)--ram 16
-d, --diskscratch disk in GB (mounted at /scratch)--disk 50
-e, --envenvironment variable (can use multiple times)--env KEY=value
--exposeexpose port via HTTPS endpoint--expose 8000
--no-followdon't stream logs after job starts--no-follow