modal-serverless-gpu

Run ML training, inference, and batch jobs on serverless GPU compute.

Updated Mar 25, 2026
One-click install
npx skills add https://github.com/afel6/scal-ai-pipeline --skill modal-serverless-gpu-afel6
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: modal-serverless-gpu
Source: https://github.com/afel6/scal-ai-pipeline/tree/main/hermes_skills_library/mlops/cloud/modal
Command: npx skills add https://github.com/afel6/scal-ai-pipeline --skill modal-serverless-gpu-afel6

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Provides an accessible, serverless GPU platform so teams can run GPU-intensive ML training, inference, and batch processing without managing infrastructure or long-lived instances.

Core Features & Use Cases

  • Serverless GPU access: On-demand GPU types (T4, L4, A10G, L40S, A100, H100, H200) for training and inference with pay-per-second billing.
  • Deployable APIs and ASGI apps: Expose FastAPI/ASGI endpoints and simple REST functions for production inference and integration.
  • Persistent storage and secrets: Volume mounts for model caches and secret management for private tokens, enabling reproducible deployments and scheduled jobs.
  • Use Case: Deploy a Modal function that loads a pretrained model from a shared volume, serves batched inference through a POST endpoint, and auto-scales to handle peak traffic while keeping costs minimal during idle periods.

Quick Start

Deploy a serverless Modal GPU function that loads a model from a shared volume and exposes a POST /predict endpoint for batched inference.

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 a serverless GPU for ML model inference?

Serverless GPU inference is deployed by creating a Modal function that loads a pretrained model from a shared volume and exposes a POST endpoint for batched predictions. This supports selectable GPU types including T4, L4, A100, and H100.

What is the best way to run GPU-intensive ML training without managing cluster infrastructure?

The best way to run GPU-intensive ML training without managing clusters is using on-demand serverless GPU compute. This provides pay-per-second billing and autoscaling for rapid prototyping of ML workloads without long-lived instances.

Does this serverless GPU platform support persistent storage for model caches?

Yes, the serverless GPU platform supports persistent storage through volume mounts for model caches. It also includes secret management for private tokens, which enables reproducible deployments and scheduled batch jobs.

Can I use FastAPI ASGI endpoints with serverless GPU compute?

Yes, you can expose FastAPI and ASGI endpoints directly through the serverless GPU compute platform. This allows you to deploy REST functions and production inference APIs integrated with your ML workloads.

How does autoscaling work for serverless ML inference APIs?

Autoscaling for serverless ML inference APIs works by automatically scaling resources to handle peak traffic while keeping costs minimal during idle periods. It supports dynamic batching to optimize throughput for deployed models.

When should I not use on-demand serverless GPUs for my workloads?

You should not use on-demand serverless GPUs if your ML workloads require continuous, long-lived instances rather than batch processing, scheduled jobs, or rapid prototyping. This platform is optimized for pay-per-second billing rather than persistent cluster management.