Migrating Your GitHub CI to Hugging Face Jobs

Hugging Face published a guide showing how to route GitHub Actions CI jobs onto its serverless Jobs platform, cutting Trackio CPU CI time by about 30 percent and adding GPU tests.

Tuesday June 9, 2026 Source: huggingface.co
TL;DR — Quick Answer

Hugging Face published a step-by-step guide on June 9, 2026 for running GitHub Actions CI jobs on Hugging Face Jobs instead of GitHub-hosted runners. The bridge, called jobs-actions, turns a queued GitHub workflow job into an ephemeral self-hosted runner inside an HF Job. In the reference migration, Trackio cut CPU CI runtime from about 1 minute 40 seconds to 1 minute 10 seconds, roughly 30 percent faster, and added a GPU test suite that passed in 45 seconds on a t4-small for less than a cent.

Key Takeaways

Migrating Your GitHub CI to Hugging Face Jobs — AI news article illustration

Hugging Face published a hands-on guide on June 9, 2026 showing how to keep GitHub Actions in charge of CI while running the actual jobs on Hugging Face Jobs. The writeup is based on a real migration of Trackio, Gradio’s experiment-tracking library.

What Hugging Face Jobs Adds

A Job is a command, a Docker image, a hardware flavor and optional secrets bundled together. That makes it a natural fit for CI, where steps are already command-driven and often benefit from picking exactly the right accelerator.

The Bridge Architecture

The huggingface/jobs-actions project turns a GitHub Actions job into an ephemeral self-hosted runner. A triggered workflow sends a signed webhook to a dispatcher Space, which verifies the event, mints a short-lived runner registration token and launches an HF Job on matching hardware.

Setup in Five Steps

The Results

For Trackio, the numbers were concrete: a GitHub ubuntu-latest baseline of about 1m40s, an HF Jobs CPU run on the Microsoft Playwright image at 1m10s (about 30 percent faster), and a GPU check on t4-small finishing in 45s for less than a cent.

Images, Logs and Next Steps

The guide notes that image choice matters. A bare ubuntu:22.04 was slower than GitHub’s loaded runner, while mcr.microsoft.com/playwright:v1.60.0-jammy and nvidia/cuda:12.4.0-runtime-ubuntu22.04 worked well. Logs can be pulled with hf jobs logs, and Jobs also supports volume mounts for datasets and models.

Frequently Asked Questions

What is Hugging Face Jobs?

Hugging Face Jobs runs a command or script on Hugging Face serverless infrastructure with a chosen Docker image and hardware flavor such as CPU or a t4-small GPU, with optional environment variables and secrets.

How do you connect GitHub Actions to Hugging Face Jobs?

You duplicate the jobs-actions-dispatcher Space, create and install a GitHub App from it, store an HF token as a Space secret, then change the workflow runs-on label to something like hf-jobs-cpu-upgrade.

Does this replace GitHub Actions?

No. GitHub Actions still orchestrates workflows and scheduling. It simply hands the actual job execution to a self-hosted runner that lives inside a Hugging Face Job.

Can it run GPU CI?

Yes. Using a GPU label such as hf-jobs-t4-small launches the job on real GPU hardware, which is difficult and expensive with default GitHub-hosted runners.

This article is based on the official announcement from huggingface.co . Read the original for full technical details.

Related Articles

Back to all news