nousresearch/hermes-agent/modal
Claude Code and agent skill by nousresearch/hermes-agent
Trust tier 2
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Source check pending
Checking that the SKILL.md file is still in the repository.
Serverless GPU cloud for ML jobs and model APIs.
Install
npx vskill@latest install nousresearch/hermes-agent/modalSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as aivrar/portable-hermes-agent/modal.
Modal Serverless GPU
Guide to running ML workloads on Modal's serverless GPU cloud platform.
When to use Modal
Use Modal when:
- Running GPU-intensive ML workloads without managing infrastructure
- Deploying ML models as auto-scaling APIs
- Running batch processing jobs (training, inference, data processing)
- Need pay-per-second GPU pricing without idle costs
- Prototyping ML applications quickly
- Running scheduled jobs (cron-like workloads)
Key features:
- Serverless GPUs: T4, L4, A10G, L40S, A100, H100, H200, B200 on-demand
- Python-native: Define infrastructure in Python code, no YAML
- Auto-scaling: Scale to zero, scale to 100+ GPUs instantly
- Sub-second cold starts: Rust-based infrastructure for fast container launches
- Container caching: Image layers cached for rapid iteration
- Web endpoints: Deploy functions as REST APIs with zero-downtime updates
Use alternatives instead:
- RunPod: For longer-running pods with persistent state
- Lambda Labs: For reserved GPU instances
- SkyPilot: For multi-cloud orchestration and cost optimization
- Kubernetes: For complex multi-service architectures
Quick start
Installation
Hello World with GPU
Run: modal run hello_gpu.py
Basic inference endpoint
Core concepts
Key components
| Component | Purpose | |
|---|---|---|
App | Container for functions and resources | |
Function | Serverless function with compute specs | |
Cls | Class-based functions with lifecycle hooks | |
Image | Container image definition | |
Volume | Persistent storage for models/data | |
Secret | Secure credential storage |
Execution modes
| Command | Description | |
|---|---|---|
modal run script.py | Execute and exit | |
modal serve script.py | Development with live reload | |
modal deploy script.py | Persistent cloud deployment |
GPU configuration
Available GPUs
| GPU | VRAM | Best For | |
|---|---|---|---|
T4 | 16GB | Budget inference, small models | |
L4 | 24GB | Inference, Ada Lovelace arch | |
A10G | 24GB | Training/inference, 3.3x faster than T4 | |
L40S | 48GB | Recommended for inference (best cost/perf) | |
A100-40GB | 40GB | Large model training | |
A100-80GB | 80GB | Very large models | |
H100 | 80GB | Fastest, FP8 + Transformer Engine | |
H200 | 141GB | Auto-upgrade from H100, 4.8TB/s bandwidth | |
B200 | Latest | Blackwell architecture |
GPU specification patterns
Container images
Persistent storage
Web endpoints
FastAPI endpoint decorator
Full ASGI app
Web endpoint types
| Decorator | Use Case | |
|---|---|---|
@modal.fastapi_endpoint() | Simple function → API | |
@modal.asgi_app() | Full FastAPI/Starlette apps | |
@modal.wsgi_app() | Django/Flask apps | |
@modal.web_server(port) | Arbitrary HTTP servers |
Dynamic batching
Secrets management
Scheduling
Performance optimization
Cold start mitigation
Model loading best practices
Parallel processing
Common configuration
Modal 1.0 autoscaler renames (see the migration guide):-container_idle_timeout→scaledown_window-concurrency_limit→max_containers-keep_warm→min_containers-allow_concurrent_inputs=N→ the@modal.concurrent(max_inputs=N)decorator
Debugging
Common issues
| Issue | Solution | |
|---|---|---|
| Cold start latency | Increase scaledown_window, use @modal.enter() | |
| GPU OOM | Use larger GPU (A100-80GB), enable gradient checkpointing | |
| Image build fails | Pin dependency versions, check CUDA compatibility | |
| Timeout errors | Increase timeout, add checkpointing |
References
- [Advanced Usage](references/advanced-usage.md) - Multi-GPU, distributed training, cost optimization
- [Troubleshooting](references/troubleshooting.md) - Common issues and solutions
Resources
- Documentation: https://modal.com/docs
- Examples: https://github.com/modal-labs/modal-examples
- Pricing: https://modal.com/pricing
- Discord: https://discord.gg/modal
Security
- Security scanPassed, 94 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingoptional-skills/mlops/modal/SKILL.md
Popularity
- Repository stars
- 237,448
- Repository forks
- 48,143
- 7-day trend score
- 62
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/nousresearch/hermes-agent/modal)