huggingface-zerogpu
CommunityOptimize Gradio Spaces with ZeroGPU hardware, ensure efficient GPU usage.
AuthorAndrew-Girgis
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill provides guidelines and best practices for developing and running Gradio Spaces on Hugging Face Spaces ZeroGPU hardware, optimizing performance and managing resource usage effectively.
Core Features & Use Cases
- ZeroGPU Best Practices: Offers detailed rules and patterns for ZeroGPU hardware, including CUDA usage, memory bandwidth, and compute constraints.
- ML Demo Guidelines: Assists in coding ML demos for ZeroGPU hardware, covering
@spaces.GPUdecorator usage, model instantiation, and GPU-bound function decorations. - Concurrency and Error Handling: Provides guidance on handling concurrency, process isolation, and common errors related to ZeroGPU, ensuring smooth execution.
- Use Case: A developer wants to create a Gradio Space for a text generation model that runs on ZeroGPU. This Skill helps them understand how to instantiate models, manage durations and quotas, and handle potential concurrency issues.
Quick Start
Implement ZeroGPU optimizations by adding @spaces.GPU to your model inference function and configure your duration based on expected workload.
Dependency Matrix
Required Modules
None requiredComponents
scriptsreferences
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: huggingface-zerogpu Download link: https://github.com/Andrew-Girgis/token-holdem/archive/main.zip#huggingface-zerogpu Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 620,000+ vetted skills library on demand.