modal-serverless-gpu

Deploy and manage serverless GPU instances for ML workloads using Modal SDK.

Updated May 8, 2026
One-click install
npx skills add https://github.com/superfhp/lumi-agent --skill modal-serverless-gpu-superfhp
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: modal-serverless-gpu
Source: https://github.com/superfhp/lumi-agent/tree/main/optional-skills/mlops/modal
Command: npx skills add https://github.com/superfhp/lumi-agent --skill modal-serverless-gpu-superfhp

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires modal, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill solves the challenge of running GPU-intensive ML workloads without the need for infrastructure management, providing on-demand GPU access for deployment of ML models as APIs or running batch jobs with automatic scaling.

Core Features & Use Cases

  • Serverless GPUs: Access to T4, L4, A10G, L40S, A100, H100, H200, B200 GPUs on-demand.
  • Python-native: Define infrastructure in Python code, no YAML required.
  • Auto-scaling: Instantly scale to zero or over 100 GPUs with sub-second cold starts.
  • Container Caching: Rapid iteration with cached image layers.
  • Web Endpoints: Deploy functions as REST APIs with zero-downtime updates.
  • Use Case: Use Modal to deploy a deep learning model as an API, allowing real-time predictions on incoming data.

Quick Start

Use the 'modal-serverless-gpu' skill to deploy a text generation API using a GPT-2 model on a GPU.

Frequently Asked Questions about modal-serverless-gpu

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I deploy an ML model as an API using serverless GPUs?▼

You can deploy an ML model as an API using serverless GPUs by defining infrastructure in Python code and exposing functions as REST APIs. This allows real-time predictions on incoming data with zero-downtime updates.

What is the best way to run GPU-intensive ML batch jobs without infrastructure management?▼

The best way to run GPU-intensive ML batch jobs without infrastructure management is using on-demand serverless GPU instances. This approach automates resource setup and scaling, allowing automatic scaling to zero or over 100 GPUs.

Do I need YAML to define infrastructure for on-demand GPU access?▼

No, you do not need YAML to define infrastructure for on-demand GPU access. The setup is Python-native, letting you define infrastructure directly in Python code for containerized execution.

Can I use Modal for rapid prototyping of ML applications with sub-second cold starts?▼

Yes, you can use Modal for rapid prototyping of ML applications with sub-second cold starts. It provides instant scaling and container caching with rapid image layers to speed up iteration.

What types of GPUs are available for serverless ML deployment?▼

Available GPUs for serverless ML deployment include T4, L4, A10G, L40S, A100, H100, H200, and B200. These can be accessed on-demand for running model serving and batch processing workloads.

Why use serverless auto-scaling for deep learning model serving instead of fixed instances?▼

Serverless auto-scaling for deep learning model serving provides instant scalability without idle resource costs. It automatically scales to zero or over 100 GPUs with sub-second cold starts, optimizing both cost and performance.