Hub documentation

Examples & Tutorials

Hugging Face's logo
Join the Hugging Face community

and get access to the augmented documentation experience

to get started

Examples & Tutorials

Guides to train with Jobs

Guides for using popular libraries with Jobs:

hf jobs uv run --flavor a10g-small --secrets HF_TOKEN \
  https://raw.githubusercontent.com/huggingface/transformers/main/examples/pytorch/image-classification/run_image_classification.py \
  --model_name_or_path google/vit-base-patch16-224-in21k \
  --dataset_name ethz/food101 \
  --output_dir vit-food101 \
  --push_to_hub

Process data at scale

DataTrove provides an experimental JobsPipelineExecutor for distributing data processing pipelines across a pool of Jobs. It supports concurrency limits, multi-stage dependencies, retries, and resumable runs — re-running a pipeline skips tasks that already completed and only runs the remaining ones.

See the ready-to-run examples for:

UV Scripts

The uv-scripts organization maintains a collection of self-contained uv scripts that run on Jobs with a single command. Scripts cover OCR, batch inference, text classification, object detection, dataset statistics, embedding visualization, and more.

Unsloth also provides ready-to-run training scripts for fine-tuning LLMs and VLMs on Jobs.

Coding Agent Skills

Coding agents like Claude Code, Codex and Cursor can submit and monitor Jobs for you. Install the hf CLI skill, generated from your installed CLI so it stays current:

hf skills add

See Hugging Face CLI for AI agents for setup per agent, and Agent Skills for training and other workflow skills.

Sandboxes

The expose ports feature of Jobs makes them a great fit for building sandboxes, i.e. temporary self-contained environments used by agents and LLM applications.

Community Tutorials and Projects


Have a tutorial or project using Jobs? Open a PR to add it here.

Update on GitHub