vast-gpu

Rent and manage vast.ai GPU instances from an experiment task description.

Updated May 29, 2026
One-click install
npx skills add https://github.com/Mang30/myskills --skill vast-gpu-mang30
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vast-gpu
Source: https://github.com/Mang30/myskills/tree/main/skills/vast-gpu
Command: npx skills add https://github.com/Mang30/myskills --skill vast-gpu-mang30

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Vast.ai GPU Management removes the hassle of figuring out which GPU to buy or provision by letting you describe your training task while it selects an appropriate GPU offer, rents an instance, sets it up, and destroys it to stop billing.

Core Features & Use Cases

  • Task-driven GPU selection: Infers minimum VRAM, GPU count, disk, CUDA version, and estimated runtime from experiment plans, scripts, or user descriptions so you never choose a GPU model manually.
  • Cost-optimized provisioning options: Searches multiple GPU tiers and presents ranked options with estimated total cost ($/hr × estimated hours) and reliability-aware guidance.
  • Full lifecycle management: Handles rent → setup (dependencies + code sync) → run readiness verification → destroy (with results/logs download) while tracking instances in a root state file.

Quick Start

Ask your agent to run an experiment with on-demand GPUs by setting gpu: vast in your CLAUDE.md and executing /run-experiment "train model".

Frequently Asked Questions about vast-gpu

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

FAQPage Schema
How do I rent on-demand GPUs for machine learning training without owning hardware?

You can rent on-demand GPUs by describing your training task to vast-gpu, which estimates VRAM, disk, and runtime needs to provision a cost-optimized vast.ai instance. It handles the full lifecycle from setup to teardown automatically.

How does task-driven GPU selection work for vast.ai instances?

Task-driven GPU selection works by inferring minimum VRAM, GPU count, disk space, and estimated runtime from your experiment plans or scripts. It searches multiple GPU tiers and presents ranked, cost-optimized provisioning options based on estimated total cost and reliability.

Do I need a vastai CLI API key to automate GPU provisioning?

Yes, you need the vastai CLI authenticated with an API key to automate GPU provisioning. The Skill requires this authenticated environment to search offers, rent instances, and manage the full training lifecycle.

What is the best way to manage the lifecycle of rented vast.ai GPU instances?

The best way to manage vast.ai GPU instances is using state tracking in a vast-instances.json file to coordinate provision, setup, monitoring readiness, and teardown operations. This ensures billing stops automatically when runs complete.

Can I use vast-gpu for evaluation workflows as well as model training?

Yes, you can use vast-gpu for evaluation workflows as well as training. The Skill is designed for any on-demand CUDA GPU workflow where you need temporary compute without specifying exact GPU models.

Why does my on-demand GPU billing continue after my training script finishes?

Billing may continue if the instance is not explicitly destroyed. vast-gpu prevents this by maintaining state in vast-instances.json to coordinate teardown operations and ensure instances are destroyed to stop billing after runs complete.