vastai-deploy-integration

Featured

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,940 stars 439 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
1 years ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category