Skip to main content
Modal compute agents leverage serverless infrastructure for high-performance, scalable computing workloads.

Quick Start

1

Setup Modal Authentication

Set up Modal token with your credentials from Modal Dashboard
2

Basic Modal Agent


How It Works

Modal provides serverless compute with automatic scaling, custom environments, and high-performance execution.

Serverless Compute

Function Deployment

High-Performance Computing

Parallel Processing


LLM Integration


Common Patterns

Machine Learning Pipeline

Data Processing Pipeline

Scientific Computing


Configuration Options

Compute Resources

GPU Support


Best Practices

Choose appropriate CPU and memory based on workload. Use GPU instances only when needed for deep learning or parallel computation.
Install packages during provisioning for better performance. Cache frequently used environments to reduce cold start times.
Modal charges for compute time. Shutdown functions promptly after use. Monitor usage in the Modal dashboard.
Modal auto-scales serverless functions. Design stateless computations for better parallelization and scaling.

Advanced Features

Custom Images

Shared Storage

Environment Variables


Managed Agents

Overview of managed agent concepts

Docker Compute

Containerized execution environments