Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

runpod-flash

БесплатноЗапускает вложенные скриптыНе проверен

Code-first serverless with the Runpod Python SDK (`runpod` 2.0): define a `runpod.App` with `@app.queue` / `@app.api` / `@app.task`, iterate on remote…

runpodот runpod★ 57 звёзд на GitHub

Об этом скилле

Runpod SDK apps (Flash)

For an explicit Dockerfile/template project request, use runpod-build-template. Do not replace that deliverable with Flash unless the user chooses its code-first workflow.

Write Python locally, run it on remote Runpod GPUs/CPUs with rp flash dev, then rp flash deploy to ship. Flash is part of the runpod package (2.0): one SDK, one rp CLI, one login. The standalone runpod-flash package is deprecated and gets no fixes after October 29, 2026.

rp --help and rp flash <command> --help are authoritative for the command surface. This skill is the mental model, the decision rules, and the gotchas that help output does not carry. Confirm the installed version with pip show runpod before concluding a command or parameter is unavailable.

Which SDK is this project on?

Check before writing code. The two APIs do not mix.

You see Project is on Do
import runpod, runpod.App(...), @app.queue, rp flash ... Runpod SDK 2.0 This file + reference/
from runpod_flash import Endpoint, @Endpoint(...), flash dev, runpod-flash in deps Legacy runpod-flash reference/runpod-flash-legacy.md to maintain it, reference/migrate-from-runpod-flash.md to move it
A new project Runpod SDK 2.0 Start below

Write new code on the SDK. For an existing runpod-flash project, propose migrating and check its Known differences first; don't migrate silently.

If the SDK path fails on an SDK bug, runpod-flash is the fallback: a traceback inside runpod/apps/, a worker that crashes before your function runs, or the same code working on runpod-flash. Upgrade runpod first; the steps to check for a fix and fall back are in reference/runpod-flash-legacy.md.

Worked examples first for anything multi-step. Flash appears in end-to-end paths: 03 variant B (whisper endpoint), 07 (network-volume handoff) and 08 (fine-tune → serve); the full index is runpod/golden-paths/README.md. Runnable single-file apps live in examples/.

Load on demand:

Need Read
Install, rp login, rp flash init, every rp command reference/setup-and-cli.md
Decorator parameters, call styles, Queue/Api/Endpoint clients, volumes, Model, Secret, GPU & CPU names reference/api.md
Worked patterns: choosing a model, warm model loading, CPU→GPU pipeline, fan-out, tasks, raw HTTP reference/patterns.md
Moving a runpod-flash project to the SDK reference/migrate-from-runpod-flash.md
Maintaining a runpod-flash project as it is reference/runpod-flash-legacy.md

Quick start: uv add "runpod>=2.0.0" (or pip install "runpod>=2.0.0") → rp login (or export RUNPOD_API_KEY=...) → rp flash init my-app → cd my-app && rp flash dev main.py.

The app model

import runpod

app = runpod.App("my-app")                     # names the group of resources

@app.queue(gpu="4090", dependencies=["torch"]) # queue-based serverless endpoint
def infer(x: list[float]):
    import torch
    return {"sum": torch.tensor(x, device="cuda").sum().item()}

@runpod.local_entrypoint                       # runs on YOUR machine
def main():
    print(infer.remote([1.0, 2.0, 3.0]))       # runs on a Runpod worker
Decorator Creates Use for
@app.queue(...) on a function Autoscaling queue-based endpoint Request/response inference, batch jobs
@app.api(...) on a class Load-balanced endpoint serving routes (@runpod.get/@runpod.post, setup in @runpod.init) HTTP services, multi-route APIs, load-once model state
@app.task(...) on a function One ephemeral Pod per call, terminated when it returns Training, fine-tuning, long jobs

Call styles on a queue or task handle: fn.remote(...) (blocks), await fn.remote.aio(...), fn.spawn(...) (returns a Job, or a TaskJob for a task), fn.stream(...) (queue generator functions only), fn.local(...) (runs on your machine). API classes are called by route: MyApi.post("/path", body).

Dev vs deploy

  • rp flash dev main.py — iterate. Creates temporary endpoints (dev-<app>-<resource>-<hash>), runs the @runpod.local_entrypoint on your machine, streams the workers' print output to your terminal, and re-runs after every file save. Ctrl-C deletes the endpoints. There is no local HTTP server; the entrypoint is how you exercise th
Полный SKILL.md на GitHub

Установить runpod-flash в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

evals/client-external-image.eval.mdevals/connect-existing-endpoint.eval.mdevals/cpu-gpu-pipeline.eval.mdevals/dev-loop-iteration.eval.mdevals/lb-multi-route-api.eval.mdevals/migrate-runpod-flash-project.eval.mdevals/qb-gpu-function.eval.mdevals/sdk-failure-fallback.eval.mdevals/volume-cache-model-load.eval.mdexamples/README.mdexamples/api_model_service.pyexamples/call_deployed.pyexamples/cpu_gpu_pipeline.pyexamples/queue_gpu.pyexamples/train_then_serve.pyreference/api.mdreference/migrate-from-runpod-flash.mdreference/patterns.mdreference/runpod-flash-legacy.mdreference/setup-and-cli.md

FAQ

Что делает скилл runpod-flash?

Code-first serverless with the Runpod Python SDK (`runpod` 2.0): define a `runpod.App` with `@app.queue` / `@app.api` / `@app.task`, iterate on remote GPUs/CPUs with `rp flash dev`, ship with `rp flash deploy`, and maintain or migrate legacy `runpod-flash` projects (`from runpod_flash import Endpoint`). Use runpod-build-template for explicit Dockerfile/template project authoring, and runpodctl/runpod-mcp for infrastructure management.

Как установить скилл runpod-flash?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл runpod-flash запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить runpod-flash с