vastai-core-workflow-a

Solid

Execute Vast.ai primary workflow: GPU instance provisioning and job execution. Use when renting GPUs for training, searching offers by price and specs, or managing the full instance lifecycle from search to teardown. Trigger with phrases like "vastai rent gpu", "vastai training job", "vastai provision instance", "run job on vastai".

AI & Automation 2,266 stars 315 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Vast.ai Core Workflow A: Instance Provisioning & Job Execution ## Overview Primary workflow for Vast.ai: search for GPU offers, provision an instance, transfer data, execute a training or inference job, collect artifacts, and destroy the instance to stop billing. This is the money-path operation for every Vast.ai user. ## Prerequisites - Completed `vastai-install-auth` setup - Docker image published to a registry (Docker Hub, GHCR, etc.) - SSH key uploaded to Vast.ai - Training data accessible via URL or local path ## Instructions ### Step 1: Search Offers with Filters ```python import subprocess, json def search_offers(gpu_name="RTX_4090", min_vram=24, min_reliability=0.95, max_price=0.50, num_gpus=1): """Search Vast.ai marketplace with specific filters.""" query = ( f"num_gpus={num_gpus} gpu_name={gpu_name} " f"gpu_ram>={min_vram} reliability>{min_reliability} " f"inet_down>200 dph_total<={max_price} rentable=true" ) result = subprocess.run( ["vastai", "search", "offers", query, "--order", "dph_total", "--raw"], capture_output=True, text=True, check=True, ) offers = json.loads(result.stdout) print(f"Found {len(offers)} offers matching criteria") for o in offers[:5]: print(f" ID {o['id']}: {o['gpu_name']} {o['gpu_ram']}GB " f"${o['dph_total']:.3f}/hr reliability={o['reliability2']:.3f}") return offers ``` ### Step 2: Provision an Instance ```python d...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
7 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Solid

vastai-hello-world

Rent your first GPU instance on Vast.ai and run a workload. Use when starting a new Vast.ai integration, testing your setup, or learning basic Vast.ai GPU rental patterns. Trigger with phrases like "vastai hello world", "vastai example", "vastai quick start", "rent first gpu", "vastai first instance".

2,266 Updated today
jeremylongshore
AI & Automation Solid

vastai-core-workflow-b

Execute Vast.ai secondary workflow: multi-instance orchestration, spot recovery, and cost optimization. Use when running distributed training, handling spot preemption, or optimizing GPU spend across multiple instances. Trigger with phrases like "vastai distributed training", "vastai spot recovery", "vastai multi-gpu", "vastai cost optimization".

2,266 Updated today
jeremylongshore
AI & Automation Solid

vast-gpu

Rent, manage, and destroy GPU instances on vast.ai. Use when user says "rent gpu", "vast.ai", "rent a server", "cloud gpu", or needs on-demand GPU without owning hardware.

11,051 Updated today
wanshuiyin
AI & Automation Solid

vastai-ci-integration

Configure Vast.ai CI/CD integration with GitHub Actions and automated GPU testing. Use when setting up automated testing on GPU instances, or integrating Vast.ai provisioning into CI/CD pipelines. Trigger with phrases like "vastai CI", "vastai github actions", "vastai automated testing", "vastai pipeline".

2,266 Updated today
jeremylongshore
AI & Automation Solid

vastai-deploy-integration

Deploy ML training jobs and inference services on Vast.ai GPU cloud. Use when deploying GPU workloads, configuring Docker images, or setting up automated deployment scripts. Trigger with phrases like "deploy vastai", "vastai deployment", "vastai docker", "vastai production deploy".

2,266 Updated today
jeremylongshore