[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M796W772W80JE1KX6QYSENWV":3,"skill-same:01M796W772W80JE1KX6QYSENWV":57},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":34,"commitSha":35,"skillDirectory":36,"forksCount":37,"repositoryHtmlUrl":38,"repositoryHomepageUrl":6,"ownerHtmlUrl":39,"ownerBlogUrl":40,"ownerDescription":41,"updatedAt":42,"install":43,"resources":56},"01M796W772W80JE1KX6QYSENWV","vastai-performance-tuning",null,"Optimize Vast.ai GPU instance selection, startup time, and training throughput.\nUse when optimizing instance selection, reducing startup latency,\nor maximizing GPU utilization on rented hardware.\nTrigger with phrases like \"vastai performance\", \"optimize vastai\",\n\"vastai slow\", \"vastai gpu utilization\", \"vastai throughput\".","jukeyman\u002Fjukeyman-skills","jukeyman","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F142960420?v=4","01M78FR4Y3DHMMCBCC0GXXNB3F","RICK JEFFERSON","01M78FR4Z8RVQRAD31Y5J7V6EB",1,"MIT","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsaas-packs--vastai-pack--vastai-performance-tuning\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: vastai-performance-tuning\ndescription: |\n  Optimize Vast.ai GPU instance selection, startup time, and training throughput.\n  Use when optimizing instance selection, reducing startup latency,\n  or maximizing GPU utilization on rented hardware.\n  Trigger with phrases like \"vastai performance\", \"optimize vastai\",\n  \"vastai slow\", \"vastai gpu utilization\", \"vastai throughput\".\nallowed-tools: Read, Write, Edit, Bash(vastai:*), Bash(ssh:*)\nversion: 1.0.0\nlicense: MIT\nauthor: Jeremy Longshore \u003Cjeremy@intentsolutions.io>\ncompatible-with: claude-code, codex, openclaw\ntags: [saas, vast-ai, api, performance]\n---\n# Vast.ai Performance Tuning\n\n## Overview\nOptimize GPU instance selection, startup time, and training throughput on Vast.ai. Key levers: Docker image caching, GPU selection by dlperf score, data pipeline optimization, and multi-GPU scaling.\n\n## Prerequisites\n- Vast.ai account with active or planned instances\n- Understanding of GPU compute bottlenecks\n- Profiling tools (nvidia-smi, torch.profiler)\n\n## Instructions\n\n### Step 1: Optimize Instance Selection by Performance\n\n```bash\n# Sort by dlperf (deep learning performance benchmark) instead of price\nvastai search offers 'num_gpus=1 gpu_ram>=24 reliability>0.95' \\\n  --order 'dlperf-' --limit 10\n\n# The dlperf field measures actual GPU compute throughput\n# Higher dlperf = faster training even at same GPU model\n# Variance within same GPU model can be 20-30%\n```\n\n```python\ndef select_by_performance_per_dollar(offers):\n    \"\"\"Select the offer with best performance per dollar.\"\"\"\n    for o in offers:\n        o[\"perf_per_dollar\"] = o.get(\"dlperf\", 0) \u002F max(o[\"dph_total\"], 0.01)\n    return max(offers, key=lambda o: o[\"perf_per_dollar\"])\n```\n\n### Step 2: Reduce Instance Startup Time\n\n```bash\n# Use smaller, pre-cached Docker images\n# FAST: nvidia\u002Fcuda:12.1.1-runtime-ubuntu22.04 (~2GB, widely cached)\n# MEDIUM: pytorch\u002Fpytorch:2.2.0-cuda12.1-cudnn8-runtime (~4GB)\n# SLOW: custom-image:latest with pip install at build (~10GB+)\n\n# Pre-install deps in the image, not in onstart\n# BAD (slow startup):\nvastai create instance $ID --image pytorch\u002Fpytorch:latest \\\n  --onstart-cmd \"pip install transformers datasets wandb\"\n\n# GOOD (fast startup):\n# Build custom image with all deps pre-installed\n```\n\n### Step 3: Data Pipeline Optimization\n\n```python\n# Profile GPU utilization on the instance\n# SSH into instance and run:\n\"\"\"\nwatch -n 1 nvidia-smi  # Check if GPU util is \u003C80% → data bottleneck\n\n# Common fixes for low GPU utilization:\n# 1. Increase DataLoader num_workers\n# 2. Use pin_memory=True\n# 3. Pre-fetch data to local SSD (not NFS)\n# 4. Use WebDataset or FFCV for streaming datasets\n\"\"\"\n\n# Optimize PyTorch DataLoader\nfrom torch.utils.data import DataLoader\n\nloader = DataLoader(\n    dataset,\n    batch_size=32,\n    num_workers=4,       # Match CPU cores on instance\n    pin_memory=True,     # Faster GPU transfer\n    prefetch_factor=2,   # Pre-load 2 batches per worker\n    persistent_workers=True,  # Don't respawn workers each epoch\n)\n```\n\n### Step 4: GPU Memory Optimization\n\n```python\n# Check available VRAM before selecting batch size\nimport torch\n\ndef optimal_batch_size(model, sample_input, gpu_memory_gb):\n    \"\"\"Binary search for largest batch size that fits in VRAM.\"\"\"\n    lo, hi, best = 1, 512, 1\n    while lo \u003C= hi:\n        mid = (lo + hi) \u002F\u002F 2\n        try:\n            torch.cuda.empty_cache()\n            batch = sample_input.repeat(mid, *([1] * (sample_input.dim() - 1)))\n            _ = model(batch.cuda())\n            best = mid\n            lo = mid + 1\n        except torch.cuda.OutOfMemoryError:\n            hi = mid - 1\n        torch.cuda.empty_cache()\n    return best\n```\n\n### Step 5: Multi-GPU Scaling\n\n```bash\n# Search for multi-GPU offers (NVLink preferred for training)\nvastai search offers 'num_gpus>=4 gpu_name=A100 total_flops>=100' \\\n  --order 'dph_total' --limit 5\n\n# Use torchrun for distributed training\nssh -p $PORT root@$HOST \"torchrun --nproc_per_node=4 train.py --batch-size 128\"\n```\n\n## GPU Performance Reference\n\n| GPU | VRAM | FP16 TFLOPS | Typical $\u002Fhr | Best For |\n|-----|------|-------------|-------------|----------|\n| RTX 4090 | 24GB | 82.6 | $0.15-0.30 | Fine-tuning, inference |\n| A100 40GB | 40GB | 77.97 | $0.80-1.50 | Training medium models |\n| A100 80GB | 80GB | 77.97 | $1.00-2.00 | Training large models |\n| H100 SXM | 80GB | 267 | $2.50-4.00 | High-throughput training |\n\n## Output\n- Performance-per-dollar offer selection\n- Optimized Docker image for fast startup\n- Data pipeline tuning (DataLoader, pin_memory, workers)\n- GPU memory optimization with auto batch sizing\n- Multi-GPU scaling with torchrun\n\n## Error Handling\n| Error | Cause | Solution |\n|-------|-------|----------|\n| Low GPU utilization (\u003C50%) | Data pipeline bottleneck | Increase `num_workers`, use `pin_memory` |\n| OOM during training | Batch size too large | Use `optimal_batch_size()` or gradient accumulation |\n| Slow instance startup | Large Docker image | Pre-install deps in image, not onstart |\n| Poor multi-GPU scaling | Communication bottleneck | Use NVLink-connected GPUs, reduce sync frequency |\n\n## Resources\n- [Vast.ai Search Filtering](https:\u002F\u002Fdocs.vast.ai\u002Fsearch-and-filter-gpu-offers)\n- [PyTorch Performance Guide](https:\u002F\u002Fpytorch.org\u002Ftutorials\u002Frecipes\u002Frecipes\u002Ftuning_guide.html)\n\n## Next Steps\nFor cost optimization, see `vastai-cost-tuning`.\n\n## Examples\n\n**Profile first**: SSH into instance, run `watch nvidia-smi` during training. If GPU-Util \u003C 80%, the bottleneck is data loading, not compute.\n\n**Best value GPU**: Use `perf_per_dollar` scoring to find hosts where the same GPU model runs faster due to better cooling or fewer co-tenants.\n","# Vast.ai Performance Tuning\n\n## Overview\nOptimize GPU instance selection, startup time, and training throughput on Vast.ai. Key levers: Docker image caching, GPU selection by dlperf score, data pipeline optimization, and multi-GPU scaling.\n\n## Prerequisites\n- Vast.ai account with active or planned instances\n- Understanding of GPU compute bottlenecks\n- Profiling tools (nvidia-smi, torch.profiler)\n\n## Instructions\n\n### Step 1: Optimize Instance Selection by Performance\n\n```bash\n# Sort by dlperf (deep learning performance benchmark) instead of price\nvastai search offers 'num_gpus=1 gpu_ram>=24 reliability>0.95' \\\n  --order 'dlperf-' --limit 10\n\n# The dlperf field measures actual GPU compute throughput\n# Higher dlperf = faster training even at same GPU model\n# Variance within same GPU model can be 20-30%\n```\n\n```python\ndef select_by_performance_per_dollar(offers):\n    \"\"\"Select the offer with best performance per dollar.\"\"\"\n    for o in offers:\n        o[\"perf_per_dollar\"] = o.get(\"dlperf\", 0) \u002F max(o[\"dph_total\"], 0.01)\n    return max(offers, key=lambda o: o[\"perf_per_dollar\"])\n```\n\n### Step 2: Reduce Instance Startup Time\n\n```bash\n# Use smaller, pre-cached Docker images\n# FAST: nvidia\u002Fcuda:12.1.1-runtime-ubuntu22.04 (~2GB, widely cached)\n# MEDIUM: pytorch\u002Fpytorch:2.2.0-cuda12.1-cudnn8-runtime (~4GB)\n# SLOW: custom-image:latest with pip install at build (~10GB+)\n\n# Pre-install deps in the image, not in onstart\n# BAD (slow startup):\nvastai create instance $ID --image pytorch\u002Fpytorch:latest \\\n  --onstart-cmd \"pip install transformers datasets wandb\"\n\n# GOOD (fast startup):\n# Build custom image with all deps pre-installed\n```\n\n### Step 3: Data Pipeline Optimization\n\n```python\n# Profile GPU utilization on the instance\n# SSH into instance and run:\n\"\"\"\nwatch -n 1 nvidia-smi  # Check if GPU util is \u003C80% → data bottleneck\n\n# Common fixes for low GPU utilization:\n# 1. Increase DataLoader num_workers\n# 2. Use pin_memory=True\n# 3. Pre-fetch data to local SSD (not NFS)\n# 4. Use WebDataset or FFCV for streaming datasets\n\"\"\"\n\n# Optimize PyTorch DataLoader\nfrom torch.utils.data import DataLoader\n\nloader = DataLoader(\n    dataset,\n    batch_size=32,\n    num_workers=4,       # Match CPU cores on instance\n    pin_memory=True,     # Faster GPU transfer\n    prefetch_factor=2,   # Pre-load 2 batches per worker\n    persistent_workers=True,  # Don't respawn workers each epoch\n)\n```\n\n### Step 4: GPU Memory Optimization\n\n```python\n# Check available VRAM before selecting batch size\nimport torch\n\ndef optimal_batch_size(model, sample_input, gpu_memory_gb):\n    \"\"\"Binary search for largest batch size that fits in VRAM.\"\"\"\n    lo, hi, best = 1, 512, 1\n    while lo \u003C= hi:\n        mid = (lo + hi) \u002F\u002F 2\n        try:\n            torch.cuda.empty_cache()\n            batch = sample_input.repeat(mid, *([1] * (sample_input.dim() - 1)))\n            _ = model(batch.cuda())\n            best = mid\n            lo = mid + 1\n        except torch.cuda.OutOfMemoryError:\n            hi = mid - 1\n        torch.cuda.empty_cache()\n    return best\n```\n\n### Step 5: Multi-GPU Scaling\n\n```bash\n# Search for multi-GPU offers (NVLink preferred for training)\nvastai search offers 'num_gpus>=4 gpu_name=A100 total_flops>=100' \\\n  --order 'dph_total' --limit 5\n\n# Use torchrun for distributed training\nssh -p $PORT root@$HOST \"torchrun --nproc_per_node=4 train.py --batch-size 128\"\n```\n\n## GPU Performance Reference\n\n| GPU | VRAM | FP16 TFLOPS | Typical $\u002Fhr | Best For |\n|-----|------|-------------|-------------|----------|\n| RTX 4090 | 24GB | 82.6 | $0.15-0.30 | Fine-tuning, inference |\n| A100 40GB | 40GB | 77.97 | $0.80-1.50 | Training medium models |\n| A100 80GB | 80GB | 77.97 | $1.00-2.00 | Training large models |\n| H100 SXM | 80GB | 267 | $2.50-4.00 | High-throughput training |\n\n## Output\n- Performance-per-dollar offer selection\n- Optimized Docker image for fast startup\n- Data pipeline tuning (DataLoader, pin_memory, workers)\n- GPU memory optimization with auto batch sizing\n- Multi-GPU scaling with torchrun\n\n## Error Handling\n| Error | Cause | Solution |\n|-------|-------|----------|\n| Low GPU utilization (\u003C50%) | Data pipeline bottleneck | Increase `num_workers`, use `pin_memory` |\n| OOM during training | Batch size too large | Use `optimal_batch_size()` or gradient accumulation |\n| Slow instance startup | Large Docker image | Pre-install deps in image, not onstart |\n| Poor multi-GPU scaling | Communication bottleneck | Use NVLink-connected GPUs, reduce sync frequency |\n\n## Resources\n- [Vast.ai Search Filtering](https:\u002F\u002Fdocs.vast.ai\u002Fsearch-and-filter-gpu-offers)\n- [PyTorch Performance Guide](https:\u002F\u002Fpytorch.org\u002Ftutorials\u002Frecipes\u002Frecipes\u002Ftuning_guide.html)\n\n## Next Steps\nFor cost optimization, see `vastai-cost-tuning`.\n\n## Examples\n\n**Profile first**: SSH into instance, run `watch nvidia-smi` during training. If GPU-Util \u003C 80%, the bottleneck is data loading, not compute.\n\n**Best value GPU**: Use `perf_per_dollar` scoring to find hosts where the same GPU model runs faster due to better cooling or fewer co-tenants.\n",{"name":5,"tags":24,"author":29,"license":15,"version":30,"description":31,"allowed-tools":32,"compatible-with":33},[25,26,27,28],"saas","vast-ai","api","performance","Jeremy Longshore \u003Cjeremy@intentsolutions.io>","1.0.0","Optimize Vast.ai GPU instance selection, startup time, and training throughput.\nUse when optimizing instance selection, reducing startup latency,\nor maximizing GPU utilization on rented hardware.\nTrigger with phrases like \"vastai performance\", \"optimize vastai\",\n\"vastai slow\", \"vastai gpu utilization\", \"vastai throughput\".\n","Read, Write, Edit, Bash(vastai:*), Bash(ssh:*)","claude-code, codex, openclaw","main","99825ad3f3bcc6597ddcc7294a14e6e922f2b67b","skills\u002Fsaas-packs--vastai-pack--vastai-performance-tuning",0,"https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills","https:\u002F\u002Fgithub.com\u002Fjukeyman","https:\u002F\u002FRJBUSINESSSOLUTIONS.ORG","Credit and Finance Expert | Developer\r\n\r\nI'm Rick Jefferson, a seasoned credit and finance expert with over a decade of experience in financial literacy,","2026-07-13 07:03:29",{"source":8,"skillName":5,"commands":44,"prompt":54,"zipAvailable":55},[45,48,51],{"tool":46,"command":47},"npx","npx skills add jukeyman\u002Fjukeyman-skills --skill vastai-performance-tuning",{"tool":49,"command":50},"bunx","bunx skills add jukeyman\u002Fjukeyman-skills --skill vastai-performance-tuning",{"tool":52,"command":53},"pnpm","pnpm dlx skills add jukeyman\u002Fjukeyman-skills --skill vastai-performance-tuning","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsaas-packs--vastai-pack--vastai-performance-tuning\u002FSKILL.md",true,[],[58,65,72,79,86,94],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":19},"01M79ANS2SM329NEP5ZCX106RR","zustand-store-creator","Create zustand store creator operations. Auto-activating skill for Frontend Development.\nTriggers on: zustand store creator, zustand store creator\nPart of the Frontend Development skill category. Use when working with zustand store creator functionality. Trigger with phrases like \"zustand store creator\", \"zustand creator\", \"zustand\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzustand-store-creator\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":19},"01M79AMZKP4YDEZ7EHG1Y7PP74","zero-trust-config-helper","Configure with zero trust config helper operations. Auto-activating skill for Security Advanced.\nTriggers on: zero trust config helper, zero trust config helper\nPart of the Security Advanced skill category. Use when configuring systems or services. Trigger with phrases like \"zero trust config helper\", \"zero helper\", \"zero\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzero-trust-config-helper\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":19},"01M79AMJSBCEJQNBTYNAHYN5HM","zapier-integration-helper","Assist with zapier integration helper operations. Auto-activating skill for Business Automation.\nTriggers on: zapier integration helper, zapier integration helper\nPart of the Business Automation skill category. Use when working with APIs or building integrations. Trigger with phrases like \"zapier integration helper\", \"zapier helper\", \"zapier\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzapier-integration-helper\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":19},"01M79AHJZGVMARS13VFQYRR1MP","yaml-config-validator","Validate yaml config validator operations. Auto-activating skill for DevOps Basics.\nTriggers on: yaml config validator, yaml config validator\nPart of the DevOps Basics skill category. Use when configuring systems or services. Trigger with phrases like \"yaml config validator\", \"yaml validator\", \"yaml\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fyaml-config-validator\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":90,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":19},"01M79AHGDZRN0020RDQSQDPAM8","xvary-stock-research","Thesis-driven equity analysis from public SEC EDGAR and market data; \u002Fanalyze, \u002Fscore, \u002Fcompare workflows with bundled Python tools (Claude Code, Cursor, Codex).","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fxvary-stock-research\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fxvary-stock-research\u002FSKILL.md",[],[],{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":19},"01M79AHCYJ9FV9RMHQ24HDRN33","xss-vulnerability-scanner","Scan xss vulnerability scanner operations. Auto-activating skill for Security Fundamentals.\nTriggers on: xss vulnerability scanner, xss vulnerability scanner\nPart of the Security Fundamentals skill category. Use when working with xss vulnerability scanner functionality. Trigger with phrases like \"xss vulnerability scanner\", \"xss scanner\", \"xss\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fxss-vulnerability-scanner\u002FSKILL.md",[],[]]