VA

vastai-prod-checklist

Provides a comprehensive pre-flight checklist for launching production GPU workloads on Vast.ai to ensure safety and stability.

Install

mkdir -p .claude/skills/vastai-prod-checklist && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/8175" && unzip -o skill.zip -d .claude/skills/vastai-prod-checklist && rm skill.zip

Installs to .claude/skills/vastai-prod-checklist

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Execute Vast.ai production deployment checklist for GPU workloads.
66 charsno explicit “when” trigger
Intermediate

Key capabilities

  • Verify account balance and offer availability
  • Implement spot instance preemption handlers
  • Configure checkpointing to persistent storage
  • Monitor GPU utilization and instance health
  • Set budget and spending limits

How it works

The checklist provides a structured set of pre-flight verification steps and scripts to ensure that GPU workloads are configured for reliability, data safety, and cost management.

Inputs & outputs

You give it
Production training configuration
You get back
Readiness verification report

When to use vastai-prod-checklist

  • Audit production readiness for GPU jobs
  • Prepare for large-scale model training
  • Validate instance reliability and disk configuration
  • Implement go-live procedures for AI workloads

About this skill

Vast.ai Production Checklist

Overview

Complete checklist for running production GPU workloads on Vast.ai, covering account setup, instance selection, data safety, monitoring, and cost controls.

Prerequisites

  • Vast.ai account with sufficient credits
  • Docker images tested and published to registry
  • Checkpoint-based training pipeline

Instructions

Account & Authentication

  • API key stored in secrets manager (not in code or env files)
  • Dedicated SSH key pair for Vast.ai (not shared with other services)
  • Account balance sufficient for planned workload duration + 50% buffer
  • Billing alerts configured at cloud.vast.ai

Instance Selection

  • GPU type validated for workload (VRAM, compute capability)
  • Reliability filter set to >= 0.98 for production jobs
  • Internet speed filter set to inet_down >= 200 for data transfer
  • Disk allocation includes room for checkpoints + data + 20% overhead
  • CUDA version on host matches Docker image requirements

Data Safety

  • Training data encrypted before upload to instances
  • Checkpoint saving every N steps (not just per epoch)
  • Checkpoints uploaded to persistent storage (S3/GCS) periodically
  • Instance cleanup script removes data before destruction
  • No sensitive data (API keys, PII) embedded in Docker images

Spot Instance Protection

  • Spot preemption handler implemented (save checkpoint on SIGTERM)
  • Auto-recovery: detect destroyed instance, provision replacement, resume
  • On-demand fallback configured for critical final training stages
  • Checkpoint integrity verification after recovery

Monitoring & Alerting

  • GPU utilization monitoring (alert if < 50% for > 10 min)
  • Instance health polling every 60 seconds
  • Cost accumulation tracking with budget threshold alerts
  • Training loss/metrics logged to external service (W&B, MLflow)
  • Dead instance detection (auto-destroy stuck instances)

Cost Controls

  • Maximum dph_total set in search queries
  • Auto-destroy timeout for all instances (e.g., 24h max)
  • Daily spending limit configured
  • Cost-per-job tracking for budget reporting

Verification Script

#!/bin/bash
set -euo pipefail
echo "Vast.ai Production Readiness Check"

# 1. Auth
vastai show user --raw | python3 -c "
import sys, json; u=json.load(sys.stdin)
balance = u.get('balance', 0)
print(f'  Auth: OK | Balance: \${balance:.2f}')
assert balance >= 10, f'Balance too low: \${balance:.2f}'
" && echo "  Balance: PASS" || echo "  Balance: FAIL"

# 2. Offer availability
COUNT=$(vastai search offers 'reliability>0.98 num_gpus=1 rentable=true' --raw --limit 1 | python3 -c "import sys,json; print(len(json.load(sys.stdin)))")
echo "  Offers available: $COUNT+ | PASS"

# 3. Docker image pullable
docker pull pytorch/pytorch:2.2.0-cuda12.1-cudnn8-runtime > /dev/null 2>&1 && echo "  Docker image: PASS" || echo "  Docker image: FAIL"

echo "Pre-flight checks complete."

Output

  • Production readiness checklist verified
  • Verification script passes all checks
  • Cost controls and monitoring configured
  • Data safety measures in place

Error Handling

ErrorCauseSolution
Insufficient balanceCredits depleted mid-jobSet up auto-top-up or balance alerts
Instance preempted during final epochSpot instance reclaimedUse on-demand for final training stage
Checkpoint corruptedInterrupted mid-saveImplement atomic checkpoint writes (save to temp, rename)
GPU utilization drops to 0%Data pipeline bottleneckProfile data loading; increase disk I/O

Resources

Next Steps

For version upgrades, see vastai-upgrade-migration.

Examples

Pre-launch audit: Run the verification script, check all boxes, confirm Docker image pulls successfully, and verify at least 3 matching offers are available before starting a production training run.

Budget-safe launch: Set max_dph=2.00, auto-destroy timeout of 12 hours, and daily spend alert at $50 to prevent cost overruns.

When not to use it

  • Running production jobs without checkpointing
  • Ignoring billing alerts

Prerequisites

Vast.ai account with creditsCheckpoint-based training pipeline

Limitations

  • Requires sufficient balance for job duration
  • Spot instances may be reclaimed
  • Data pipeline bottlenecks can cause low utilization

How it compares

This checklist provides a formal audit process for production stability compared to launching jobs without predefined safety and recovery measures.

Compared to similar skills

vastai-prod-checklist side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
vastai-prod-checklist (this skill)027dReviewIntermediate
ecs-runtime-debug-playbook04moNo flagsAdvanced
deploy-preflight01moReviewIntermediate
vibeops01moNo flagsBeginner

Try saying

Example prompts that trigger this skill in your AI assistant.

More by jeremylongshore

View all by jeremylongshore

analyzing-logs

jeremylongshore

Analyze application logs to detect performance issues, identify error patterns, and improve stability by extracting key insights.

14123

ollama-setup

jeremylongshore

Configure auto-configure Ollama when user needs local LLM deployment, free AI alternatives, or wants to eliminate hosted API costs. Trigger phrases: "install ollama", "local AI", "free LLM", "self-hosted AI", "replace OpenAI", "no API costs". Use when appropriate context detected. Trigger with relevant phrases based on skill purpose.

1167

backtesting-trading-strategies

jeremylongshore

Backtest crypto and traditional trading strategies against historical data. Calculates performance metrics (Sharpe, Sortino, max drawdown), generates equity curves, and optimizes strategy parameters. Use when user wants to test a trading strategy, validate signals, or compare approaches. Trigger with phrases like "backtest strategy", "test trading strategy", "historical performance", "simulate trades", "optimize parameters", or "validate signals".

1071

generating-database-seed-data

jeremylongshore

Process this skill enables AI assistant to generate realistic test data and database seed scripts for development and testing environments. it uses faker libraries to create realistic data, maintains relational integrity, and allows configurable data volumes. u... Use when working with databases or data models. Trigger with phrases like 'database', 'query', or 'schema'.

1033

cursor-codebase-indexing

jeremylongshore

Execute set up and optimize Cursor codebase indexing. Triggers on "cursor index setup", "codebase indexing", "index codebase", "cursor semantic search". Use when working with cursor codebase indexing functionality. Trigger with phrases like "cursor codebase indexing", "cursor indexing", "cursor".

885

testing-mobile-apps

jeremylongshore

Execute mobile app testing on iOS and Android devices/simulators. Use when performing specialized testing. Trigger with phrases like "test mobile app", "run iOS tests", or "validate Android functionality".

810

Search skills

Search the agent skills registry