hf-jobs-workflow

Run Hugging Face Jobs training with pre-flight checks and OOM recovery.

1|Updated Jun 4, 2026
One-click install
npx skills add https://github.com/hung-phan/ml-skills --skill hf-jobs-workflow
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hf-jobs-workflow
Source: https://github.com/hung-phan/ml-skills/tree/main/skills/ml-review/references/ml-training/hf-jobs-workflow
Command: npx skills add https://github.com/hung-phan/ml-skills --skill hf-jobs-workflow

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides a comprehensive operational framework for running training and fine-tuning jobs on Hugging Face Jobs, mitigating common failure modes and ensuring efficient, effective training runs.

Core Features & Use Cases

  • Pre-Flight Checklist: A detailed checklist to ensure all prerequisites are met before submitting a job.
  • GPU Hardware Sizing: Guidelines for selecting appropriate GPU hardware based on model size and training requirements.
  • OOM Recovery: Strategies for handling out-of-memory errors without changing the training task.
  • Sandbox-First Development: Encourages testing in a CPU/GPU sandbox to catch potential issues early.
  • push_to_hub Discipline: Ensures that all job outputs are durable and retrievable.
  • Training Logging: Best practices for logging that survives the logs tab.
  • Submit-One-Then-Batch: Technique for submitting hyperparameter sweep jobs to avoid early failures.
  • Dataset Format by Training Method: Guidance on dataset format requirements for different training methods.
  • Prebuilt Kernels: Recommendations for using prebuilt attention kernels instead of compiling from source.
  • Decision Table: When to use Hugging Face Jobs versus alternative platforms.

Quick Start

Use the hf-jobs-workflow skill to set up a training job on Hugging Face Jobs, ensuring all best practices are followed.

Frequently Asked Questions about hf-jobs-workflow

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I prevent out-of-memory errors when fine-tuning models on Hugging Face Jobs?

To prevent out-of-memory errors during fine-tuning on Hugging Face Jobs, apply OOM recovery strategies and select appropriate GPU hardware based on your model size without altering the original training task.

What is the best way to test training scripts before submitting a batch to Hugging Face Jobs?

The best way to test training scripts before batching is sandbox-first development, which involves running tests in a CPU or GPU sandbox to catch issues early, then using the submit-one-then-batch technique for sweeps.

How do I ensure my Hugging Face Jobs training outputs are durable and retrievable?

To ensure training outputs are durable and retrievable on Hugging Face Jobs, maintain push_to_hub discipline by systematically uploading all checkpoints and final models to the Hugging Face Hub.

When should I use Hugging Face Jobs versus alternative platforms for model training?

Use Hugging Face Jobs for model training when your use case aligns with their specific GPU hardware sizing and prebuilt attention kernels, consulting a decision table to compare against alternative platforms.

Do I need to compile attention kernels from source for training on Hugging Face Jobs?

No, you do not need to compile attention kernels from source; Hugging Face Jobs workflow recommends using prebuilt attention kernels to streamline fine-tuning and avoid unnecessary compilation overhead.