Loading...
Loading...
Run GPU workloads on Modal's serverless infrastructure. Use when the user needs remote GPU compute for training, inference, benchmarks, or batch processing and Modal CLI is available.
npx skill4agent add getcompanion-ai/feynman modal-computemodalpip install modal
modal setup| Command | Description |
|---|---|
| Run a script on Modal (ephemeral) |
| Run detached (background) |
| Deploy persistently |
| Serve with hot-reload (dev) |
| Interactive shell with GPU |
| List deployed apps |
T4L4A10GL40SA100A100-80GBH100H200B200"H100:4"import modal
app = modal.App("experiment")
image = modal.Image.debian_slim(python_version="3.11").pip_install("torch==2.8.0")
@app.function(gpu="A100", image=image, timeout=600)
def train():
import torch
# training code here
@app.local_entrypoint()
def main():
train.remote()command -v modal