SkillAgentSearch skills...

modal-gpu

Run Python code on cloud GPUs using Modal serverless platform

Install / Use

npx skills add benchflow-ai/skillsbench --skill modal-gpu

Installs into whichever agent you are using.

About this skill
📄

SKILL.md

Installable skill definition

Quality Score

86/100

Supported Platforms

Universal

Our assessment of modal-gpu

modal-gpu scores 86/100 on our quality scale, 451st of 875 AI & Machine Learning skills we index.

Its SKILL.md is 2.6 KB long, well organised into 12 sections with 4 code examples: a solid amount of guidance for an agent.

With 1,813 GitHub stars, it is one of the more widely adopted skills in the catalogue.

Substance
26/30
Structure
20/20
Description
12/15
Adoption
14/20
Freshness
15/15

Maintenance, license and trust

  • The repository was last updated about 2 months ago, so modal-gpu is actively maintained.
  • It is released under the Apache-2.0 license, a permissive license that allows use, modification and commercial use with attribution.
  • Its trust signals score 100/100, with no cautions. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.

modal-gpu compared with similar skills

All 4 of these similar skills score higher than modal-gpu; compare them before choosing.

SkillScoreStarsUpdatedFormat
modal-gpu (this skill)by benchflow-ai861.8k2mo agoSKILL.md
claude-memby thedotmack10095.0ktodayCLAUDE.md
Agent-Reachby Panniantong10086.4k15d agoCLAUDE.md
Understand-Anythingby Egonex-AI10084.8k2d agoCLAUDE.md
headroomby headroomlabs-ai10074.2ktodayCLAUDE.md

Frequently asked questions

How do I install modal-gpu?
Run npx skills add benchflow-ai/skillsbench --skill modal-gpu. The install tabs above show the steps for each supported agent.
Which AI agents does modal-gpu work with?
It is written for Universal, as a SKILL.md file. Other agents that read the same format can often use it too.
Is modal-gpu safe to use?
It is Apache-2.0-licensed and scores 100/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
Is modal-gpu still maintained?
The repository was last updated about 2 months ago, so modal-gpu is actively maintained.

name: modal-gpu description: Run Python code on cloud GPUs using Modal serverless platform. Use when you need A100/T4/A10G GPU access for training ML models. Covers Modal app setup, GPU selection, data downloading inside functions, and result handling.

Modal GPU Training

Overview

Modal is a serverless platform for running Python code on cloud GPUs. It provides:

  • Serverless GPUs: On-demand access to T4, A10G, A100 GPUs
  • Container Images: Define dependencies declaratively with pip
  • Remote Execution: Run functions on cloud infrastructure
  • Result Handling: Return Python objects from remote functions

Two patterns:

  • Single Function: Simple script with @app.function decorator
  • Multi-Function: Complex workflows with multiple remote calls

Quick Reference

| Topic | Reference | |-------|-----------| | Basic Structure | Getting Started | | GPU Options | GPU Selection | | Data Handling | Data Download | | Results & Outputs | Results | | Troubleshooting | Common Issues |

Installation

pip install modal
modal token set --token-id <id> --token-secret <secret>

Minimal Example

import modal

app = modal.App("my-training-app")

image = modal.Image.debian_slim(python_version="3.11").pip_install(
    "torch",
    "einops",
    "numpy",
)

@app.function(gpu="A100", image=image, timeout=3600)
def train():
    import torch
    device = torch.device("cuda")
    print(f"Using GPU: {torch.cuda.get_device_name(0)}")

    # Training code here
    return {"loss": 0.5}

@app.local_entrypoint()
def main():
    results = train.remote()
    print(results)

Common Imports

import modal
from modal import Image, App

# Inside remote function
import torch
import torch.nn as nn
from huggingface_hub import hf_hub_download

When to Use What

| Scenario | Approach | |----------|----------| | Quick GPU experiments | gpu="T4" (16GB, cheapest) | | Medium training jobs | gpu="A10G" (24GB) | | Large-scale training | gpu="A100" (40/80GB, fastest) | | Long-running jobs | Set timeout=3600 or higher | | Data from HuggingFace | Download inside function with hf_hub_download | | Return metrics | Return dict from function |

Running

# Run script
modal run train_modal.py

# Run in background
modal run --detach train_modal.py

External Resources

  • Modal Documentation: https://modal.com/docs
  • Modal Examples: https://github.com/modal-labs/modal-examples

Related Skills

View on GitHub
GitHub Stars1.8k
CategoryAI
Updated2mo ago
Forks368

Languages

PDDL

Trust signals

100/100

From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.

No cautions