Modal Training
Product · Developer tool by Modal
Infrastructure for fine-tuning, RL, and multi-node GPU training at scale.
Modal Training provides serverless infrastructure for fine-tuning, reinforcement learning, and multi-node GPU training. It allows AI teams to scale from single GPUs to massive clusters instantly with per-second billing and zero infrastructure management.
Category: AI Infrastructure
- Platforms
- API, CLI, Web Dashboard
- Programming languages
- Python (primary), JavaScript/TypeScript, Go
- Editors and tools
- Terminal (CLI), Jupyter Notebooks
- GPU Types
- B300, B200, H200, H100, A100 (80GB/40GB), L40S, A10, L4, T4
- Billing Granularity
- Per second of compute time
- Network Egress Cost
- $0.04 / GiB
- On-demand access to multi-node RDMA-connected GPU clusters
- Serverless execution billed by the second of compute time
- Automated GPU health monitoring and hardware replacement
- Scale from a single GPU to thousands of parallel containers
Overview
Modal Training is a serverless cloud infrastructure platform designed for teams to develop, train, and fine-tune AI models at scale. It provides on-demand access to single and multi-node GPU configurations, including RDMA-enabled clusters, without the need for traditional quota requests or long lead times. The platform handles the entire research lifecycle, from parallelizing data preprocessing across thousands of containers to managing distributed training runs and reinforcement learning rollouts. Modal's custom container runtime and image system are built for fast startup, allowing GPUs to spin up in seconds. By defining infrastructure as code, developers can manage complex training stacks using frameworks like PyTorch, TRL, or Unsloth from a single Python file. The service features automated fleet health management, where bad hardware is automatically drained and replaced to ensure training stability.
Training and Fine-tuning Infrastructure
- Multi-node GPU Clusters: Configure multi-GPU nodes and RDMA-connected clusters for distributed training tasks.
- On-demand GPU Access: Access single and multi-node GPU capacity nearly instantly without quota requests or long lead times.
- Open Source Framework Support: Run TRL, Unsloth, or custom PyTorch code in managed containers without managing cluster orchestration.
Data Engineering and Pipelines
- Parallel Data Preprocessing: Fan out massive preprocessing jobs across containers using the.spawn_map() function.
- Distributed Storage Volumes: Store raw and processed data in Volumes for high-bandwidth reuse across functions.
- External Data Integration: Connect existing S3 or Hugging Face data sources directly to training functions.
- Flexible Compute Matching: Run processing on GPUs or CPUs for disaggregated, scalable data pipelines.
Research and Evaluation Workflow
- Checkpoint Management: Save training checkpoints to Volumes to resume training, run evaluations, or serve models.
- Unified Research Management: Manage rollouts, evaluations, and clustered training from a single Python file.
- Disaggregated RL Services: Rollouts, inference, and training run as separate services with their own independent autoscalers.
- Granular Observability: Comprehensive logs and metrics are provided for every function down to the container level.
Use cases
- Researchers run massively parallel data preprocessing jobs to turn raw data into training datasets.
- ML engineers perform supervised fine-tuning (SFT) and LoRA runs on single or multi-node GPU clusters.
- AI teams manage reinforcement learning (RL) rollouts and evaluations using disaggregated autoscaling services.
- Developers save and load model checkpoints to distributed Volumes to resume long-running training jobs.
Specifications
- Platforms
- API, CLI, Web Dashboard
- Programming languages
- Python (primary), JavaScript/TypeScript, Go
- Editors and tools
- Terminal (CLI), Jupyter Notebooks
- Integrations
- S3, Hugging Face, Datadog, OpenTelemetry, Slack, Okta, Microsoft Entra
- Deployment
- Serverless cloud infrastructure spanning 20+ clouds with region selection available
- GPU Types
- B300, B200, H200, H100, A100 (80GB/40GB), L40S, A10, L4, T4
- Billing Granularity
- Per second of compute time
- Network Egress Cost
- $0.04 / GiB
- Storage Cost (Volumes)
- $0.09 / GiB / mo (1 TiB/mo free)
- Memory Cost
- $0.00000222 / GiB / sec
- Cluster Connectivity
- RDMA-enabled clusters
- Scaling Limit
- Up to thousands of GPUs
- Cold Start Performance
- Sub-second startup for containers
How it works
- Install and Authenticate: Install the modal Python package and run 'modal setup' to authenticate your environment.
- Define Infrastructure in Code: Define your training environment, including dependencies and GPU requirements, directly in Python code.
- Deploy and Scale: Use 'modal run' to execute your training script, which Modal containers and scales in the cloud.
- Monitor and Iterate: Monitor training progress through real-time logs and metrics in the Modal dashboard.
Pricing
- Nvidia H100 SXM5
- $0.001097 / sec
- Nvidia A100, 80 GB
- $0.000694 / sec
- Nvidia B200
- $0.001736 / sec
- CPU Core
- $0.0000131 / core / sec
FAQ
What counts as billable time for training?
Modal bills during application load time and while the container is processing inputs, with containers kept alive for 60 seconds after the last input by default.
How do I get access to GPUs for training?
Modal provides instant access to single and multi-node GPUs, including RDMA-enabled clusters, without the need for quota requests.
Can I store my own model weights on Modal?
Yes, you can store model weights and datasets in Modal Volumes, which act as a distributed file system accessible by all your Modal Functions.
What training frameworks are supported?
Modal supports running open source frameworks like TRL, Unsloth, and custom PyTorch code within its managed containers.
Added by AntSpace from public sources (modal.com).