installskill

Skills / huggingface/skills

huggingface-zerogpu

Coding constraints and patterns for Gradio Spaces running on ZeroGPU.

Pinned commit
aafb3adfb809Committed 2026-11-26
Files
534 KB
License
Apache-2.0
Snapshot taken
2026-11-28
Description from the skill
AI demos and GPU compute with Gradio Spaces and Hugging Face Spaces ZeroGPU. Use when writing or reviewing code that uses `@spaces.GPU`, configuring `python_version` or `requirements.txt` for a ZeroGPU Space, or handling ZeroGPU-specific code constraints — pickle-based process isolation, `gr.State` semantics across the worker boundary, no `torch.compile` (use AoTI instead), CUDA wheel-only builds (no `nvcc` at build or runtime), large vs xlarge sizing, and dynamic duration callables. Make sure to use this skill whenever the user mentions ZeroGPU, `@spaces.GPU`, or the `spaces` Python package, or hits ZeroGPU-specific code errors like `PicklingError` across the worker boundary, `illegal duration`, or `flash-attn` wheel-build failures — even when the user does not explicitly ask for ZeroGPU coding guidance. Trigger on `import spaces` or `@spaces.GPU` in code.

This is the text your agent reads to decide when to use the skill.

Install

Choose your agent. Pinned commands install exactly the commit this page describes.

Skill directory .claude/skills/Claude Code · Official docs

Does not read the shared .agents/skills directory. A skill must land in .claude/skills, or arrive inside a plugin.

GitHub CLIpinned

$ gh skill install huggingface/skills skills/huggingface-zerogpu --agent claude-code --pin aafb3adfb80951cc90836cc6fd17bb345aa49eef

gh picks the directory for the agent, names the folder after the source directory (huggingface-zerogpu), and writes source metadata into the SKILL.md frontmatter, so the content hash below will not match. Check the github-tree-sha it records instead: it should read b01abec82ed891fffd1a252f6a8e664af0cd6f89.

skills CLIpinned

$ npx skills add huggingface/skills@aafb3adfb80951cc90836cc6fd17bb345aa49eef --skill huggingface-zerogpu -a claude-code --copy

Downloads and runs the skills package from npm. --copy writes real files instead of symlinks. The CLI sends anonymous telemetry unless DISABLE_TELEMETRY=1 is set, and that setting also turns off its audit lookups.

Plain gitpinned

$ tmp=$(mktemp -d)
$ git clone --quiet https://github.com/huggingface/skills.git "$tmp"
$ git -C "$tmp" checkout --quiet aafb3adfb80951cc90836cc6fd17bb345aa49eef
$ mkdir -p .claude/skills
$ cp -R "$tmp/skills/huggingface-zerogpu" .claude/skills/huggingface-zerogpu

No extra tooling. Files land byte for byte as published in .claude/skills/huggingface-zerogpu, so the content hash below can be checked directly.

Check what landed

Run this after installing. It prints one SHA-256 for the whole directory. If your installer reported a different directory, cd there instead.

$ cd .claude/skills/huggingface-zerogpu && find . -type f -print0 | LC_ALL=C sort -z | xargs -0 shasum -a 256 | shasum -a 256

Expectedc4006abfbf7685b7ae6f3fd26a81332abad1d99ea3261f7b24e88ffa6785cc00

It matches only when the files are byte for byte as published. A difference means something changed: by the installer, by you, or upstream.

What is inside

Pattern matches in the files, each linked to its line. A match is a place to read, not a verdict, and no match is not proof of absence.

Docs · 4SKILL.md · 1

Runs commands1

Code that spawns other processes, or shell code blocks in the instructions.

0 in scripts · 1 in docs and other text files

Network access1

Calls that fetch from or send to a remote host.

0 in scripts · 1 in docs and other text files

Installs packages2

Commands that pull and run third-party packages at use time.

0 in scripts · 2 in docs and other text files

Reads env or credentialsNo match

References to environment variables, tokens, keys or credential files.

Privileged or destructiveNo match

sudo, recursive deletes, permission changes and similar commands.

Dynamic or encoded code1

eval, exec, base64 decoding and remote-script piping, which hide what runs.

0 in scripts · 1 in docs and other text files

Outside hosts mentioned

Hostnames of every URL in the text files.

  • huggingface.co×9
  • github.com×2
  • pypi.org×1

Entries worth a second look

No symlinks, submodules, hidden files, archives, compiled files or unscanned files.

File manifest

Every file in the skill directory at the pinned commit.

Content hash
c4006abfbf7685b7ae6f3fd26a81332abad1d99ea3261f7b24e88ffa6785cc00
Git tree SHA
b01abec82ed891fffd1a252f6a8e664af0cd6f89
PathKindSizeSHA-256
SKILL.mdSKILL.md18 KB829659aec3422497…
references/concurrency.mdDocs2.5 KBb53d9ee64596730d…
references/cuda-and-deps.mdDocs4.7 KB8a0461e7d46dd5b8…
references/how-quota-works.mdDocs3.8 KB0d87d16e65cb2246…
references/how-zerogpu-works.mdDocs4.7 KB649e2bfa6752d794…

Spec and portability

Checked against the Agent Skills specification.

Frontmatter
Parses as YAML
Name matches directory
Yes
Name uses lowercase letters, digits and hyphens
Yes
Description length
869limit 1,024 characters
SKILL.md body
286 linesthe spec suggests under 500 lines
Fields outside the spec
None
License field
None declared
License file
None declared
Repository license
LICENSE (Apache-2.0)

Change history

No changes recorded since the first snapshot on 2026-11-28.

Follow changes to this skill in a feed reader: Atom feed · all skills

Get an email when this skill changes

Email alerts are not built yet. Leave your address and we will write to you once, when they are. The feed above works today.

We store your address, the name of this skill and the date. It is used for nothing else.