Skills for Real Engineers. Straight from my .agents directory.
modal-gpu
Agent skill frombenchflow-ai/skillsbench
Run Python code on cloud GPUs using Modal serverless platform. Use when you need A100/T4/A10G GPU access for training ML models. Covers Modal app setup, GPU selection, data downloading inside functions, and result handling.
How to install modal-gpu
npx skills add benchflow-ai/skillsbench# or add only this skill to Claude Code: copy the folder
tasks-extra/diff-transformer_impl/environment/skills/modal-gpu/
# into
~/.claude/skills/modal-gpu/ (all projects)
.claude/skills/modal-gpu/ (one project)
1# Modal GPU Training23## Overview45Modal is a serverless platform for running Python code on cloud GPUs. It provides:67- **Serverless GPUs**: On-demand access to T4, A10G, A100 GPUs8- **Container Images**: Define dependencies declaratively with pip9- **Remote Execution**: Run functions on cloud infrastructure10- **Result Handling**: Return Python objects from remote functions1112Two patterns:13- **Single Function**: Simple script with `@app.function` decorator14- **Multi-Function**: Complex workflows with multiple remote calls1516## Quick Reference1718| Topic | Reference |19|-------|-----------|20| Basic Structure | [Getting Started](references/getting-started.md) |21| GPU Options | [GPU Selection](references/gpu-selection.md) |22| Data Handling | [Data Download](references/data-download.md) |23| Results & Outputs | [Results](references/results.md) |24| Troubleshooting | [Common Issues](references/common-issues.md) |2526## Installation2728```bash29pip install modal30modal token set --token-id <id> --token-secret <secret>31```3233## Minimal Example3435```python36import modal3738app = modal.App("my-training-app")3940image = modal.Image.debian_slim(python_version="3.11").pip_install(41 "torch",42 "einops",43 "numpy",44)4546@app.function(gpu="A100", image=image, timeout=3600)47def train():48 import torch49 device = torch.device("cuda")50 print(f"Using GPU: {torch.cuda.get_device_name(0)}")5152 # Training code here53 return {"loss": 0.5}5455@app.local_entrypoint()56def main():57…
Excerpt shown under the repository's Apache-2.0 license.
More skills in skillsbench
Similar skill repositories
An agentic skills framework & software development methodology that works.
A single CLAUDE.md file to improve Claude Code behavior, derived from Andrej Karpathy's observations on LLM coding pitfalls.
Public repository for Agent Skills
Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More
Production-grade engineering skills for AI coding agents.
