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

82/100

Supported Platforms

Universal

Our assessment of modal-gpu

modal-gpu scores 82/100 on our quality scale, 697th of 947 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
11/15

Maintenance, license and trust

  • The repository was last updated about 4 months ago. That is recent enough to be usable, but agent tooling moves fast, so check the instructions against your agent's current version.
  • Our last check on 2026-11-07 found the source still online.
  • 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 98/100, with no cautions. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.

Safety scan

No issues found

Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful.

AI review by kimi-k2.7-code on 2026-10-01. Automated pattern scan on 2026-10-01. It catches known dangerous patterns, not every risk — read a skill 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-ai821.8k4mo agoSKILL.md
claude-memby thedotmack100117.6ktodayCLAUDE.md
taste-skillby Leonxlnx100116.8k8d agoCLAUDE.md
Agent-Reachby Panniantong100112.3k8d agoCLAUDE.md
Understand-Anythingby Egonex-AI10092.8k1d agoCLAUDE.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?
Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful. It is Apache-2.0-licensed and scores 98/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 4 months ago. That is recent enough to be usable, but agent tooling moves fast, so check the instructions against your agent's current version.

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
Updated3mo ago
Forks368

Languages

PDDL

Trust signals

98/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.

1 info