Huggingface Zerogpu
sickn33/agentic-awesome-skills
AI demos and GPU compute with Gradio Spaces and Hugging Face Spaces ZeroGPU.
Covers the rules for writing Gradio Spaces on ZeroGPU hardware: the @spaces.GPU decorator, duration and quota tuning, process isolation and CUDA build limits.
$ npx skills add huggingface/skills --skill huggingface-zerogpu -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install huggingface/skills huggingface-zerogpu --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/huggingface/skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/huggingface-zerogpu .claude/skills/huggingface-zerogpu && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "huggingface-zerogpu" agent skill from https://github.com/huggingface/skills/tree/main/skills/huggingface-zerogpu into .claude/skills/huggingface-zerogpu/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "huggingface-zerogpu", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/huggingface/skills/tree/main/skills/huggingface-zerogpuType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add huggingface/skills --skill huggingface-zerogpu -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install huggingface/skills huggingface-zerogpu --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/huggingface/skills.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/huggingface-zerogpu .agents/skills/huggingface-zerogpu && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "huggingface-zerogpu" agent skill from https://github.com/huggingface/skills/tree/main/skills/huggingface-zerogpu into .agents/skills/huggingface-zerogpu/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "huggingface-zerogpu", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add huggingface/skills --skill huggingface-zerogpu -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install huggingface/skills huggingface-zerogpu --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/huggingface/skills.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/huggingface-zerogpu .cursor/skills/huggingface-zerogpu && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "huggingface-zerogpu" agent skill from https://github.com/huggingface/skills/tree/main/skills/huggingface-zerogpu into .cursor/skills/huggingface-zerogpu/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "huggingface-zerogpu", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/huggingface/skills.git --path skills/huggingface-zerogpu--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add huggingface/skills --skill huggingface-zerogpu -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install huggingface/skills huggingface-zerogpu --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/huggingface/skills.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/huggingface-zerogpu .gemini/skills/huggingface-zerogpu && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "huggingface-zerogpu" agent skill from https://github.com/huggingface/skills/tree/main/skills/huggingface-zerogpu into .gemini/skills/huggingface-zerogpu/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "huggingface-zerogpu", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install huggingface/skills huggingface-zerogpuInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add huggingface/skills --skill huggingface-zerogpu -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/huggingface/skills.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/huggingface-zerogpu .github/skills/huggingface-zerogpu && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "huggingface-zerogpu" agent skill from https://github.com/huggingface/skills/tree/main/skills/huggingface-zerogpu into .github/skills/huggingface-zerogpu/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "huggingface-zerogpu", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add huggingface/skills --skill huggingface-zerogpu -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install huggingface/skills huggingface-zerogpu --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/huggingface/skills.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/huggingface-zerogpu .opencode/skills/huggingface-zerogpu && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "huggingface-zerogpu" agent skill from https://github.com/huggingface/skills/tree/main/skills/huggingface-zerogpu into .opencode/skills/huggingface-zerogpu/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "huggingface-zerogpu", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
huggingface-zerogpuCovers the rules for writing Gradio Spaces on ZeroGPU hardware: the @spaces.GPU decorator, duration and quota tuning, process isolation and CUDA build limits.
The skill applies only to Gradio SDK Spaces, since Docker and Static Spaces cannot schedule onto ZeroGPU and Streamlit apps now run as Docker Spaces. It points to the official ZeroGPU docs for the current backing GPU and tier thresholds, which change over time, and keeps four reference files for concurrency, how ZeroGPU works, how quota works, and CUDA dependencies such as flash-attn.
ZeroGPU exposes two sizes: large, the default, gives half the backing GPU at 1x quota cost, and xlarge gives the full card at 2x cost, so xlarge is reserved for workloads that genuinely need the extra memory or compute. The skill is meant to trigger automatically on `import spaces` or `@spaces.GPU` in code, or on ZeroGPU-specific errors such as a `PicklingError` across the worker boundary, an `illegal duration` error, or a flash-attn wheel-build failure, covering constraints like pickle-based process isolation, `gr.State` semantics across workers, and the lack of `torch.compile` support.
5 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit ca0325b. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
pythonuvFrom the folder's file list and the shell code blocks in SKILL.md.
Links to these hosts (documentation or services it may open):
huggingface.coFrom URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Hugging Face ZeroGPU loads about 4.6k tokens when it runs, and up to ~8.6k if it reads all its reference files. Until then it costs about 222 tokens; SKILL.md has 2,121 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from huggingface/skills at commit ca0325b, republished under its Apache-2.0 licence (© huggingface). 2,121 words, ~4,551 tokens.
.claude/skills/huggingface-zerogpu/SKILL.md (or your agent's skills folder). This skill also uses 4 other files; get the full folder from GitHub.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.
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 | When to read |
|---|---|
references/concurrency.md | Always read alongside SKILL.md when writing ZeroGPU code — handlers run in parallel by default |
references/how-zerogpu-works.md | When reasoning about cold-starts, worker reuse, why module-scope warmup does not carry to requests, or why returning CUDA tensors hangs |
references/how-quota-works.md | When choosing duration values, debugging illegal duration vs quota exceeded errors, or explaining why default 60s blocks short tasks |
references/cuda-and-deps.md | When installing CUDA-dependent packages (e.g. flash-attn), pinning torch side-cars, or reading wheel filename tags |
ZeroGPU exposes two GPU sizes that map to a fraction of the backing card:
size | Slice of backing GPU | Quota cost |
|---|---|---|
large (default) | Half | 1x |
xlarge | Full | 2x |
Default large gives half a physical GPU, so memory bandwidth and compute are significantly lower than the full card's specs. Use xlarge only when the workload genuinely needs the extra memory or compute.
Backing GPU changes without notice. ZeroGPU has already migrated across GPU generations several times; older write-ups may name A100 or H200, but those are outdated. For the current backing GPU and exact per-size VRAM, always check the ZeroGPU docs before sizing workloads.
import spaces
import torch
from transformers import pipeline
pipe = pipeline("text-generation", model="...", device="cuda")
@spaces.GPU
def generate(prompt: str) -> str:
return pipe(prompt, max_new_tokens=100)[0]["generated_text"]Key rules:
.to("cuda") eagerly. ZeroGPU handles the actual device mapping transparently (see CUDA availability model below).@spaces.GPU. The decorator is a no-op outside ZeroGPU, so it is safe to keep in all environments.duration to match the realistic worst-case workload (default 60s). The platform pre-checks requested duration against the user's remaining quota — not against the actual run time — so a 10-second task left at the 60s default fails with quota exceeded as soon as the user's remaining quota drops below 60s. Smaller declared duration also ranks higher in the node-level queue. See "Duration and Quota" below.torch.compile is NOT supported. Use PyTorch ahead-of-time compilation (AoTI) (torch 2.8+) instead.size="xlarge" sparingly. It allocates the full backing GPU, but costs 2x quota and tends to queue longer.@spaces.GPU(duration=120)
def generate_image(prompt: str):
return pipe(prompt).images[0]Real GPU access is only available inside @spaces.GPU-decorated functions. Outside those functions, the GPU is not attached to the process.
However, import spaces monkey-patches torch so that:
torch.cuda.is_available() returns True globally..to("cuda") / device="cuda" calls at module scope succeed without error.This is intentional. Module-scope model.to("cuda") calls register tensors with the ZeroGPU backend, which writes them to a disk offload directory at a startup "pack" step and frees the corresponding RAM. When a @spaces.GPU call lands, a forked GPU worker process streams those weights from disk into VRAM via a pinned-memory pipeline. Warm workers (reused across requests on the same GPU slot) keep weights resident on the GPU and skip the disk → VRAM step. The user-facing rule: write device="cuda" at module scope and it works — see references/how-zerogpu-works.md for the full lifecycle.
| Action | Where | Why |
|---|---|---|
model.to("cuda") / pipe(..., device="cuda") | Module scope | ZeroGPU registers the tensor and manages device migration |
| Actual CUDA computation (inference, etc.) | Inside @spaces.GPU | Real GPU is only attached during the decorated call |
Branching on torch.cuda.is_available() | Avoid relying on it | Always returns True due to the monkey-patch |
Do not run inference or CUDA kernels at module scope — the real GPU is not attached, so operations either silently run on CPU or fail.
The standard idiom remains correct under ZeroGPU:
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
model = AutoModel.from_pretrained("...").to(device)is_available() is True (monkey-patched), so the model is registered for automatic device migration.is_available() is genuinely True."cpu".Do not hardcode device="cuda" — it breaks on CPU-only environments.
Load models at module scope, not lazily on first request. The Space process starts before any user arrives, so cold-start cost is paid once. Lazy loading (global model; if model is None: ..., @lru_cache wrappers, factory functions instantiating on first call) just pushes that cost onto the first user.
spacesDo not wrap import spaces in try/except and redefine spaces.GPU as a no-op fallback for local runs. Off-ZeroGPU, the spaces package is already a true no-op:
SPACES_ZERO_GPU env var, set only on ZeroGPU.@spaces.GPU returns the undecorated function unchanged off-ZeroGPU.import spaces performs only lightweight imports.The Gradio SDK base image installs spaces on every hardware tier. So even after duplicating a Space onto a dedicated GPU (T4, L4, A10G, etc.) or CPU basic, no code changes are needed — import spaces still succeeds and @spaces.GPU becomes a transparent passthrough.
try:
import spaces
except ImportError:
class spaces: # type: ignore
@staticmethod
def GPU(func=None, **kwargs):
return func if func else (lambda f: f)Problems:
@spaces.GPU call shape — bare decorator, duration=..., size=..., generators, aoti_* helpers — and drifts as the spaces API grows.spaces from requirements.txt, even though the Space needs it at deploy time.Add spaces to dependencies and import it unconditionally:
import spaces
@spaces.GPU
def generate(prompt: str) -> str:
...Three things happen when you declare @spaces.GPU(duration=N):
duration cap. Declaring duration larger than the cap fails immediately with ZeroGPU illegal duration, regardless of remaining quota. (Tier numbers change over time — see the ZeroGPU docs.)requested duration against the user's remaining quota. If remaining < requested, the call fails with ZeroGPU quota exceeded — even if the actual work would have fit. The error message shows the explicit numbers, e.g. "60s requested vs. 30s left". A 10-second task left at the default 60s therefore blocks the user once their remaining quota drops below 60s.duration ranks higher.All three favor declaring the smallest realistic duration — including for short tasks. Explicit @spaces.GPU(duration=15) on a 10-second task avoids premature quota exceeded rejections and ranks higher in the queue.
xlargedoubles the request.requested = N * 2whensize="xlarge", both for the tier-max check and the quota pre-check. So@spaces.GPU(duration=60, size="xlarge")is internally a 120s request.
For workloads whose runtime depends on inputs, pass a callable that estimates per request. A static high duration locks out low-tier users (whose tier cap may be smaller than the static value) and unnecessarily reserves quota for light inputs.
def estimate_duration(prompt, steps):
return int(steps * 3.5)
@spaces.GPU(duration=estimate_duration)
def generate(prompt, steps):
return pipe(prompt, num_inference_steps=steps).images[0]For the full distinction between illegal duration vs quota exceeded, runs-per-day limits, the 24h quota window, and pay-as-you-go billing, see references/how-quota-works.md.
@spaces.GPU-decorated functions run in a separate process managed by the ZeroGPU scheduler. Arguments and return values cross the process boundary via pickle serialization.
Consequences:
PicklingError.torch.cuda._lazy_init(), which ZeroGPU blocks. Convert to CPU first: return tensor.cpu() or tensor.cpu().numpy().gr.State semantics across the boundaryBecause handlers run in a separate process, gr.State values are pickled on every yield — they are NOT shared by reference.
id() differs from the caller's).gr.update() for a gr.State slot skips the update — other handlers continue to see the pre-yield value.Practical guidance:
gr.State on ZeroGPU. Code that mutates state in a generator and expects another handler to see those mutations will silently use stale data.gr.State value triggers a full pickle round-trip. For large state (model sessions, frame buffers), minimize how often you yield it — ideally once at the end. Use gr.update() for the state slot on intermediate yields.torch.cuda._lazy_init() issue as above.Handlers run concurrently by default on ZeroGPU. This is not opt-in. Code that worked in single-user testing can silently corrupt or leak data in production.
Three rules. Full treatment with examples in references/concurrency.md.
tempfile for unique paths.Each entry into a @spaces.GPU function carries non-trivial cost — pickle round-trip across the process boundary, worker warm-up, CUDA re-attach, and a fresh pass through the node-level queue. Calling a decorated function from inside a hot loop multiplies these costs and adds a new failure mode: a later iteration may fail to acquire a GPU slot, stalling the whole job mid-way.
Decorate the outer function that owns the loop, not the per-iteration worker:
# Avoid — N GPU entries for N frames
def process_video(frames):
return [process_frame(f) for f in frames]
@spaces.GPU(duration=...)
def process_frame(frame):
...
# Prefer — one GPU entry for the whole video
@spaces.GPU(duration=...)
def process_video(frames):
return [process_frame(f) for f in frames]
def process_frame(frame):
...If the loop mixes heavy CPU work with GPU work, wrapping the whole loop charges that CPU time against the user's quota. When that cost is material, batching the GPU work so CPU pre/post-processing stays outside the decorator is a situational optimization — not the default.
HF Spaces builds Docker images in a CPU-only environment. On ZeroGPU, the build phase has no nvcc because the base image is python:3.13 (dedicated-GPU Spaces use nvidia/cuda:*-devel-* and have nvcc at build time). A CUDA-dependent package whose only distribution is sdist — e.g. bare flash-attn — therefore cannot be installed via requirements.txt on ZeroGPU. Only pre-built wheels work.
ZeroGPU runtime does have nvcc available, mounted from a CUDA devel image at /cuda-image since 2025-07 (originally added for AoTI support). This is what makes torch.export / AoTI workflows possible inside @spaces.GPU calls.
Bottom line: install every CUDA-dependent package from a pre-built wheel. If no wheel is available on PyPI, build one externally (e.g. host on HF Hub) and pin the URL. For flash-attn, the upstream releases page ships a fairly complete wheel matrix covering most Python × CUDA × torch combinations.
For wheel-tag reading (cxx11 ABI, cu12torch2.X, cp3XX), torch-family side-car drift, and the kernels-community fallback, see references/cuda-and-deps.md.
gr.Examples behavior is environment-dependent. On ZeroGPU specifically:
cache_examples defaults to True (Spaces sets GRADIO_CACHE_EXAMPLES=true).cache_mode defaults to "lazy" (Spaces sets GRADIO_CACHE_MODE=lazy only on ZeroGPU).ZeroGPU defaults to lazy because eager caching pre-runs every example at app startup, but ZeroGPU has no GPU attached at startup — only during request handling. Eager caching of GPU-bound examples would fail there.
When cache_examples=True, the run_on_click / run_examples_on_click parameter is silently ignored. If your app relies on click-populates-only behavior, set cache_examples=False explicitly to preserve it.
To reproduce ZeroGPU example-caching behavior locally:
GRADIO_CACHE_EXAMPLES=true GRADIO_CACHE_MODE=lazy python app.pypython_version pin in README frontmatterPinning python_version is effectively required for ZeroGPU. The runtime default is currently Python 3.10, so a local environment using 3.11+ will fail to install on the Space without an explicit pin. Pin to a ZeroGPU-supported version (3.12 is a reasonable default); the authoritative supported list lives in the ZeroGPU docs — do not hardcode the full list, refer to the docs.
# README.md frontmatter
python_version: "3.12"Both "3.12" and "3.12.12" forms are accepted.
spaces in requirements.txtThe Space platform pins its own spaces version. A conflicting pin in requirements.txt causes pip resolution to fail at build time.
Rule: Do not include
spacesinrequirements.txt.
How to achieve this depends on your tooling:
requirements.txt: simply omit spaces.pyproject.toml-managed): declare spaces in pyproject.toml so uv co-resolves transitive constraints (notably psutil, which spaces pins), then exclude it from the export:uv export --no-hashes --no-dev --no-emit-package spaces -o requirements.txtspaces in pyproject.toml, uv cannot see its transitive constraints and may resolve incompatible versions at build time.pip-compile) / Poetry: use the equivalent exclude mechanism.torch to match wheel tagsIf you install a CUDA-dependent wheel via direct URL, the wheel filename encodes the torch major.minor it was built against (e.g. cu12torch2.8). Pin torch==X.Y.Z in requirements.txt to match — otherwise pip may resolve torch to a different version and the Space fails on first import. Details and the kernels-community alternative are in references/cuda-and-deps.md.
© huggingface, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 4 other files (references) in skills/huggingface-zerogpu of huggingface/skills.
Open the folder on GitHubat commit ca0325b
We found 2 copies of this SKILL.md (exact, near-identical or edited) in other folders, from 2 other GitHub owners. This page covers the copy in huggingface/skills, which our catalogue first saw on October 7, 2026.
Hugging Face ZeroGPU next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Hugging Face ZeroGPU this skillhuggingface/skills | 11k | 2 repos | ~4.6k | Automated safety check: Pass | Apache-2.0 | |
| Huggingface Zerogpusickn33/agentic-awesome-skills | 47k | 1 repos | ~4.6k | Automated safety check: Pass | Apache-2.0 | |
| Runpodericrisco/rsc-harness | 167 | — | ~2.8k | Automated safety check: Pass | MIT | |
| Gradiomajiayu000/claude-skill-registry | 666 | 1 repos | ~1.5k | Automated safety check: Pass | Apache-2.0 | |
| Mamba State-Space ModelsOrchestra-Research/AI-Research-SKILLs | 13k | 3 repos | ~1.8k | Automated safety check: Pass | MIT | |
| Generate Openenv Envadithya-s-k/FineEnvs | 443 | — | ~2.4k | Automated safety check: Pass | Apache-2.0 |
sickn33/agentic-awesome-skills
AI demos and GPU compute with Gradio Spaces and Hugging Face Spaces ZeroGPU.
ericrisco/rsc-harness
A skill your agent uses when running GPU compute on RunPod and deciding between Pods (hourly, always-on) and Serverless (per-second, autoscaling) for training, fine-tuning or inference — serverless…
majiayu000/claude-skill-registry
Python library for building ML demo UIs with minimal code. An agent skill from majiayu000/claude-skill-registry.
Orchestra-Research/AI-Research-SKILLs
Guide to using Mamba selective state-space models for linear-time sequence modeling, from the Mamba block and pretrained checkpoints to Mamba-2 and speed comparisons.
adithya-s-k/FineEnvs
Builds an OpenEnv (Hugging Face) variant of an RL environment.
PaddlePaddle/Paddle
A skill your agent uses when working with Paddle 3.0 compiler full pipeline: SOT (Symbolic Opcode Translator) for bytecode-level dy2st graph capture, PIR (Paddle IR) for SSA-based intermediate…
huggingface/skills
Finds or validates a usable SageMaker execution role before deploying or training, so scripts do not try to create IAM roles they lack permission to create.
huggingface/skills
Chooses the right serving container and current image URI for deploying a Hugging Face model to a SageMaker endpoint, preferring Hugging Face images over generic ones.
huggingface/skills
Trains or fine-tunes language and vision models with TRL or Unsloth on Hugging Face Jobs cloud GPUs, then converts the results to GGUF.
huggingface/skills
Routes a sentence-transformers training task to the right model type and required reference docs and example scripts, covering bi-encoders, rerankers, sparse and multi-vector models.
huggingface/skills
Sets up an isolated Python environment with a supported interpreter and current boto3 before any SageMaker deployment, training or AWS automation code runs.
huggingface/skills
Runs evaluations of Hugging Face Hub models on local hardware with inspect-ai or lighteval, and helps choose between vLLM, Transformers and accelerate backends.
Works with
Categories
Covers the rules for writing Gradio Spaces on ZeroGPU hardware: the @spaces.GPU decorator, duration and quota tuning, process isolation and CUDA build limits. The skill applies only to Gradio SDK Spaces, since Docker and Static Spaces cannot schedule onto ZeroGPU and Streamlit apps now run as Docker Spaces. It points to the official ZeroGPU docs for the current backing GPU and tier thresholds, which change over time, and keeps four reference files for concurrency, how ZeroGPU works, how quota works, and CUDA dependencies such as flash-attn.
Hugging Face ZeroGPU fits situations like: writing or reviewing code that uses @spaces.GPU for a Gradio Space; debugging a PicklingError, illegal duration, or flash-attn build failure on ZeroGPU; choosing a duration value or deciding between large and xlarge GPU sizing.
Run `npx skills add huggingface/skills --skill huggingface-zerogpu -a claude-code`. Or copy the skill folder (skills/huggingface-zerogpu in huggingface/skills) into .claude/skills/huggingface-zerogpu in your project. Claude Code loads it when a task matches its description.
Run `npx skills add huggingface/skills --skill huggingface-zerogpu -a codex`. Or copy the skill folder (skills/huggingface-zerogpu in huggingface/skills) into .agents/skills/huggingface-zerogpu in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add huggingface/skills --skill huggingface-zerogpu -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/huggingface-zerogpu, .gemini/skills/huggingface-zerogpu, .github/skills/huggingface-zerogpu and .opencode/skills/huggingface-zerogpu in your project.
Going by SKILL.md and its folder, Hugging Face ZeroGPU needs the command-line tools its instructions call (python and uv). Our summary lists: A Gradio SDK Space on Hugging Face with ZeroGPU hardware; The `spaces` Python package.
SKILL.md names 1 domain. As links in the text: huggingface.co. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Hugging Face ZeroGPU is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 4.6k tokens (SKILL.md is roughly 18k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 4k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Hugging Face ZeroGPU: Huggingface Zerogpu (sickn33/agentic-awesome-skills, 47k stars), Runpod (ericrisco/rsc-harness, 167 stars), Gradio (majiayu000/claude-skill-registry, 666 stars) and Mamba State-Space Models (Orchestra-Research/AI-Research-SKILLs, 13k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
huggingface (a GitHub organization, an official publisher) maintains it in huggingface/skills, which has 11,148 GitHub stars. The repository holds 25 skills in this directory. The repository was last updated on October 1, 2026.
Source: huggingface/skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.