vastai-deploy-integration

Solid

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".

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 Deploy Integration ## Overview Deploy ML training jobs and inference services on Vast.ai GPU cloud. Covers Docker image optimization, automated provisioning scripts, data transfer strategies, and deployment automation. ## Prerequisites - Vast.ai CLI authenticated - Docker image published to a registry - Training/inference code tested locally ## Instructions ### Step 1: Optimized Docker Image ```dockerfile # Dockerfile.vastai — optimized for fast pulls on Vast.ai FROM pytorch/pytorch:2.2.0-cuda12.1-cudnn8-runtime # Install dependencies in a single layer COPY requirements.txt /tmp/ RUN pip install --no-cache-dir -r /tmp/requirements.txt && rm /tmp/requirements.txt # Copy application code COPY src/ /workspace/src/ COPY scripts/ /workspace/scripts/ WORKDIR /workspace CMD ["python", "src/train.py"] ``` ```bash # Build and push docker build -t ghcr.io/yourorg/training:v1 -f Dockerfile.vastai . docker push ghcr.io/yourorg/training:v1 ``` ### Step 2: Automated Deployment Script ```python #!/usr/bin/env python3 """deploy.py — Automated Vast.ai deployment with monitoring.""" import subprocess, json, time, argparse, sys def deploy(args): # Search for matching offer query = (f"num_gpus={args.gpus} gpu_name={args.gpu} " f"reliability>{args.reliability} dph_total<={args.max_price} " f"disk_space>={args.disk} rentable=true") offers = json.loads(subprocess.run( ["vastai", "search", "offers", query, "--order", "dph_total", ...

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-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-prod-checklist

Execute Vast.ai production deployment checklist for GPU workloads. Use when deploying training pipelines to production, preparing for large-scale GPU jobs, or auditing production readiness. Trigger with phrases like "vastai production", "deploy vastai", "vastai go-live", "vastai launch checklist".

2,266 Updated today
jeremylongshore
AI & Automation Solid

vastai-core-workflow-a

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".

2,266 Updated today
jeremylongshore
AI & Automation Solid

vastai-performance-tuning

Optimize Vast.ai GPU instance selection, startup time, and training throughput. Use when optimizing instance selection, reducing startup latency, or maximizing GPU utilization on rented hardware. Trigger with phrases like "vastai performance", "optimize vastai", "vastai slow", "vastai gpu utilization", "vastai throughput".

2,266 Updated today
jeremylongshore
AI & Automation Solid

vastai-local-dev-loop

Configure Vast.ai local development with testing and fast iteration. Use when setting up a development environment, testing instance provisioning, or building a fast iteration cycle for GPU workloads. Trigger with phrases like "vastai dev setup", "vastai local development", "vastai dev environment", "develop with vastai".

2,266 Updated today
jeremylongshore