What problem does it solve?
Enables teams to run GPU-intensive machine learning workloads without managing or maintaining GPU infrastructure, eliminating provisioning, scaling, and idle-cost concerns.
Core Features & Use Cases
- Serverless GPU access: On-demand access to T4, L4, A10G, L40S, A100, H100, H200, and B200 GPUs for training and inference.
- Python-native deployment: Define functions, container images, and lifecycle hooks in Python for fast iteration and reproducible deployments.
- Auto-scaling and cost control: Scale to zero when idle, auto-scale to many GPUs for peak loads, and use container caching to reduce build times.
- Persistent volumes & web endpoints: Mount volumes for model caching and expose functions as REST/ASGI endpoints for production services.
- Use case: Deploy an auto-scaling text-generation API that loads a large model into GPU-backed containers, serves inference traffic with dynamic batching, and persists model weights on a shared volume.
Quick Start
Install modal, run modal setup to authenticate, then deploy or run your GPU function with modal run script.py.