Skip to content
huggingface avatar

Huggingface Zerogpu

Guide for writing and debugging ML demos on ZeroGPU Gradio Spaces, covering @spaces.GPU, quota, and build constraints.

CCM score
76 of 100
skills.sh installs
1.5K
GitHub stars
11.4K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers ZeroGPU code rules: module-scope model loading, @spaces.GPU placement, duration tuning, and CUDA availability behavior
  • Includes four reference files on concurrency, worker lifecycle, quota rules, and CUDA wheel dependencies
  • Enforces no torch.compile in favor of AoTI, and warns against hardcoded device="cuda" and ImportError fallbacks for spaces
  • Designed for Gradio SDK Spaces on ZeroGPU hardware; Docker and Static Spaces are out of scope

Install

$ npx -y skills add huggingface/skills --skill huggingface-zerogpu -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Hugging Face ZeroGPU

Rules and patterns for ML demos on Hugging Face Spaces with ZeroGPU hardware. Covers @spaces.GPU, duration and quota tuning, process isolation, the CUDA availability model, concurrency safety, and CUDA build constraints.

Scope

This skill is for Gradio SDK Spaces using ZeroGPU hardware. Docker and Static Spaces cannot schedule onto ZeroGPU, and Streamlit apps now run as Docker Spaces — so this skill applies only to Gradio. For general Gradio coding (components, layouts, event listeners), see the huggingface-gradio skill in this repo. The authoritative ZeroGPU docs live at https://huggingface.co/docs/hub/spaces-zerogpu — refer to them for the current backing GPU, runtime version lists, and tier thresholds, all of which change over time.

Reference Files

Details

Repository
github.com/huggingface/skills
Categories
AI Agents & LLM Apps, Frontend & UI Code, Python
First seen
Jul 14, 2026

Questions

What does the huggingface-zerogpu skill do?

It gives your agent rules and patterns for ML demos on Hugging Face Spaces with ZeroGPU hardware, covering @spaces.GPU, duration and quota tuning, and process isolation. It applies to Gradio SDK Spaces using ZeroGPU and covers ZeroGPU-specific code constraints like pickle-based isolation and no torch.compile.

How do I install the huggingface-zerogpu skill?

Run npx -y skills add huggingface/skills --skill huggingface-zerogpu -y in your project. Once installed, the agent can write and review ZeroGPU Space code that uses @spaces.GPU and handle ZeroGPU-specific errors.

Who is the huggingface-zerogpu skill for?

It is for developers building Gradio SDK Spaces on ZeroGPU hardware, since Docker and Static Spaces cannot run on ZeroGPU. It also helps anyone who hits ZeroGPU errors such as PicklingError across the worker boundary, illegal duration, or flash-attn wheel-build failures.

Where does huggingface-zerogpu stand in its category?

It is in the AI Agents & LLM Apps category on Claude Marketplaces, alongside skills such as microsoft-foundry, azure-ai and google-agents-cli-adk-code. It differs from those by focusing on GPU-backed Gradio demos on Hugging Face Spaces, with rules for sizing, duration and CUDA build constraints.

More from huggingface/skills

All 20

Similar to Huggingface Zerogpu

More AI Agents & LLM Apps