huggingface-zerogpu
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.
Pinned to revision 4e8964e24a5a, so it is the text this page describes rather than whatever the author pushed since.
Files
- skills/huggingface-zerogpu/SKILL.md
- skills/huggingface-zerogpu/LICENSE
- skills/huggingface-zerogpu/references/concurrency.md
- skills/huggingface-zerogpu/references/cuda-and-deps.md
- skills/huggingface-zerogpu/references/how-quota-works.md
- skills/huggingface-zerogpu/references/how-zerogpu-works.md
Every link opens the file at its source, pinned to the revision this page describes.