Migrating Your GitHub CI to Hugging Face Jobs

AI-generated summary of reporting by Huggingface Blog. Read the original for the full story.

Why it matters

ML teams running CI on GitHub Actions can now offload jobs to Hugging Face's hardware, including GPUs, cheaply and with faster logs.

Read this as

Hugging Face published a how-to for running GitHub Actions CI jobs on its own servers instead of GitHub's machines. GitHub Actions still manages the workflow, but a dispatcher program launches the job on Hugging Face hardware and a temporary runner executes it. This matters to developers whose tests need special hardware, like graphics-processing units (GPUs), which GitHub offers rarely. One project, Trackio, cut its CPU test time about 30% and added GPU tests.

For teams maintaining machine-learning libraries, CI infrastructure is a cost and capability choice. Hugging Face's setup lets GitHub Actions delegate jobs to HF Jobs: a GPU test on a T4 machine ran in 45 seconds for under a cent, and CPU jobs with a tailored Docker image beat GitHub's baseline by roughly 30%. The gain is most relevant to projects needing real CUDA hardware without running their own always-on runner; anyone can replicate it with a duplicated dispatcher Space and a GitHub App.

The bridge is huggingface/jobs-actions: a dispatcher Docker Space receives the GitHub workflow_job.queued webhook via a GitHub App, verifies labels like hf-jobs-cpu-upgrade, mints a short-lived runner registration token, and launches an HF Job whose container registers as an ephemeral self-hosted runner. Setup: duplicate the dispatcher Space on cpu-upgrade, create/install the GitHub App, then change the workflow's runs-on label to an hf-jobs-* label. Trackio's GPU check passed in 45s on t4-small (under $0.01); a bare Ubuntu image was too slow until they switched to the Playwright image mcr.microsoft.com/playwright:v1.60.0-jammy. Volumes can be mounted; billing goes to HF_NAMESPACE.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

Hugging Face Jobs GitHub Actions Trackio jobs-actions dispatcher Playwright t4-small

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading