vast-gpu

Rent, configure, and destroy vast.ai GPU instances for ML training workloads.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires vastai.

What problem does it solve?

It helps you quickly obtain on-demand GPU compute for training or experiments without buying hardware, while also preventing wasted spend by destroying instances when work is finished.

Core Features & Use Cases

  • Task-driven GPU provisioning: Analyzes an experiment plan, scripts, and/or user description to estimate VRAM, GPU count, disk needs, CUDA compatibility, and runtime hours, then selects GPU offers without the user choosing specific hardware.
  • Cost-optimized offer selection: Searches across multiple GPU tiers, ranks candidates by estimated total cost, presents options with estimated total price and reliability guidance, and supports selecting a specific offer or instance path.
  • Full instance lifecycle management: Handles rent, setup (dependency install, code sync, environment verification), SSH connectivity checks, results preservation, and safe teardown with state tracking in vast-instances.json.
  • Use case: Run a deep learning training job (e.g., fine-tuning or multi-stage experiments) in a reproducible environment, selecting an appropriate GPU based on the model and dataset scale, then automatically tearing it down after completion.

Quick Start

Request GPU compute by saying: rent gpu for my training run on vast.ai using vast-gpu.

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 ML training without selecting specific hardware?

You can rent on-demand GPUs by providing your experiment plan, existing scripts, or a project description. The system estimates VRAM, GPU count, disk space, and CUDA compatibility to automatically select and provision cost-optimized vast.ai GPU offers for your ML training.

Can I automatically stop billing on vast.ai instances after my training run finishes?

Yes, you can automatically stop billing after your training run finishes. The system manages the full instance lifecycle by preserving results and safely tearing down the vast.ai instances, which halts all compute charges immediately.

Does vastai CLI support syncing project code and establishing direct SSH connectivity?

Yes, vastai CLI supports syncing project code and establishing verified direct SSH connectivity. After provisioning the instance, the system installs dependencies, syncs your environment, and verifies the SSH connection before execution.

What is the best way to estimate GPU compute costs for multi-stage deep learning experiments?

The best way to estimate GPU compute costs for multi-stage deep learning experiments is to analyze your runtime hours and resource requirements. The system searches multiple GPU tiers, ranks candidates by estimated total cost, and presents options with reliability guidance.

Do I need to manually track vast.ai instance state during ad-hoc compute runs?

No, you do not need to manually track vast.ai instance state during ad-hoc compute runs. The system automatically tracks instance state in a vast-instances.json file throughout the provisioning, execution, and teardown lifecycle.

How does cost-optimized GPU selection work when renting compute for fine-tuning models?

Cost-optimized GPU selection works by analyzing your fine-tuning model and dataset scale to estimate runtime and resources. It then searches across available vast.ai offers, ranks candidates by total price, and presents the most cost-effective compute options.