aris-serverless-modal

Runs GPU training, fine-tuning, and inference workloads on Modal serverless cloud.

1.1k|116|Updated Feb 26, 2026
One-click install
npx skills add https://github.com/OpenLAIR/dr-claw --skill aris-serverless-modal
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: aris-serverless-modal
Source: https://github.com/OpenLAIR/dr-claw/tree/main/skills/aris-serverless-modal
Command: npx skills add https://github.com/OpenLAIR/dr-claw --skill aris-serverless-modal

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires modal.

What problem does it solve?

Running GPU workloads like model training, fine-tuning, and inference typically requires SSH access, Docker setup, and manual instance management. This Skill lets you execute those workloads on Modal's serverless GPU cloud directly from your local machine, with automatic scale-to-zero billing.

Core Features & Use Cases

  • Serverless GPU Execution: Generate and run Modal launcher scripts for training, evaluation, and benchmarking without SSH or Docker configuration.
  • Cost Estimation & GPU Selection: Analyze model size and VRAM requirements to pick the right GPU (T4 through B200) and estimate cost before every run.
  • Multiple Workload Patterns: Supports one-shot training functions, persistent FastAPI inference services, vLLM serving, batch parallel processing, LoRA fine-tuning, and multi-GPU distributed training.
  • Use Case: You need to fine-tune a 7B model but have no local GPU. The Skill generates a Modal launcher with an A100-80GB, mounts your local code, persists checkpoints to a Modal volume, and runs it with a single modal run command.

Quick Start

Ask the assistant to run your training script on Modal with an A100 GPU and confirm the cost estimate before execution.

Frequently Asked Questions about aris-serverless-modal

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

FAQPage Schema
How do I run a training script on Modal serverless GPUs?

Install the modal package, run modal setup to authenticate, then generate a launcher script that wraps your training code in a Modal function with a chosen GPU. Execute it with modal run launcher.py and results persist to a Modal volume.

What GPU should I choose for a 7B model on Modal?

A 7-8B model in BF16 needs roughly 22GB of VRAM including weights and KV cache, so L4, A10, or A100-40GB are suitable. For benchmarks, H100 is often cheaper overall because its higher bandwidth finishes jobs much faster.

How much does Modal GPU compute cost?

Modal bills per second, ranging from about $0.59/hr for a T4 to $6.25/hr for a B200. The free tier provides $5/month without a card or $30/month with a card, and you can set a workspace spending limit to prevent overcharges.

Can I deploy a persistent inference API on Modal?

Yes, use a Modal class with @modal.enter() to load the model once per container and a FastAPI endpoint or vLLM web server for requests. Deploy it with modal deploy app.py and stop it anytime with modal app stop.

When should I use vast.ai instead of Modal?

For long training runs over four hours, vast.ai typically offers lower cost per GPU-hour than Modal. Modal is better for short to medium workloads where zero setup time and automatic scale-to-zero billing outweigh the higher hourly rate.