[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M796TJCCVVTVCM8N0KK0CQQM":3,"skill-same:01M796TJCCVVTVCM8N0KK0CQQM":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},"01M796TJCCVVTVCM8N0KK0CQQM","vastai-cost-tuning",null,"Optimize Vast.ai GPU cloud costs through smart instance selection and lifecycle management.\nUse when analyzing GPU spending, reducing training costs,\nor implementing budget controls for Vast.ai workloads.\nTrigger with phrases like \"vastai cost\", \"vastai billing\",\n\"reduce vastai costs\", \"vastai pricing\", \"vastai budget\".","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-cost-tuning\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: vastai-cost-tuning\ndescription: |\n  Optimize Vast.ai GPU cloud costs through smart instance selection and lifecycle management.\n  Use when analyzing GPU spending, reducing training costs,\n  or implementing budget controls for Vast.ai workloads.\n  Trigger with phrases like \"vastai cost\", \"vastai billing\",\n  \"reduce vastai costs\", \"vastai pricing\", \"vastai budget\".\nallowed-tools: Read, Write, Edit, Bash(vastai:*), Grep\nversion: 1.0.0\nlicense: MIT\nauthor: Jeremy Longshore \u003Cjeremy@intentsolutions.io>\ncompatible-with: claude-code, codex, openclaw\ntags: [saas, vast-ai, api, cost-optimization]\n---\n# Vast.ai Cost Tuning\n\n## Overview\nMinimize Vast.ai GPU cloud costs by choosing the right GPU for your workload, leveraging interruptible (spot) instances, eliminating idle compute, and implementing auto-destroy safeguards. Vast.ai pricing is dynamic and varies significantly: RTX 4090 ($0.15-0.30\u002Fhr), A100 80GB ($1.00-2.00\u002Fhr), H100 SXM ($2.50-4.00\u002Fhr).\n\n## Prerequisites\n- Vast.ai account with billing history\n- Understanding of your workload's GPU requirements\n- `vastai` CLI installed\n\n## Instructions\n\n### Step 1: GPU Selection by Cost-Efficiency\n\n```python\n# Compare cost-per-TFLOP across GPU types\nGPU_SPECS = {\n    \"RTX_4090\":  {\"fp16_tflops\": 82.6,  \"vram\": 24},\n    \"A100\":      {\"fp16_tflops\": 77.97, \"vram\": 80},\n    \"H100_SXM\":  {\"fp16_tflops\": 267,   \"vram\": 80},\n    \"RTX_3090\":  {\"fp16_tflops\": 35.6,  \"vram\": 24},\n    \"A6000\":     {\"fp16_tflops\": 38.7,  \"vram\": 48},\n}\n\ndef cost_per_tflop(gpu_name, dph):\n    specs = GPU_SPECS.get(gpu_name, {\"fp16_tflops\": 1})\n    return dph \u002F specs[\"fp16_tflops\"]\n\n# Often RTX 4090 is the best value for inference\n# A100 is best for training large models needing >24GB VRAM\n# H100 is best only when wall-clock time justifies 10x price premium\n```\n\n### Step 2: Spot vs On-Demand Analysis\n\n```bash\n# Interruptible (spot) instances are 30-60% cheaper\nvastai search offers 'num_gpus=1 gpu_name=RTX_4090 rentable=true' \\\n  --order dph_total --limit 5\n# Compare interruptible vs on-demand pricing\n# Use interruptible for: batch inference, checkpointed training\n# Use on-demand for: final training epochs, production inference\n```\n\n### Step 3: Auto-Destroy Safeguards\n\n```python\nimport time, subprocess, json\n\ndef auto_destroy_after(instance_id, max_hours=4):\n    \"\"\"Destroy instance after max_hours to prevent cost overruns.\"\"\"\n    max_seconds = max_hours * 3600\n    time.sleep(max_seconds)\n    subprocess.run([\"vastai\", \"destroy\", \"instance\", str(instance_id)], check=True)\n    print(f\"Instance {instance_id} auto-destroyed after {max_hours}h\")\n\n# Run in background thread when provisioning\nimport threading\nwatchdog = threading.Thread(target=auto_destroy_after, args=(inst_id, 4), daemon=True)\nwatchdog.start()\n```\n\n### Step 4: Idle Instance Detection\n\n```bash\n#!\u002Fbin\u002Fbash\n# Find and destroy idle instances (GPU util \u003C 10% for >10 min)\nvastai show instances --raw | python3 -c \"\nimport sys, json\nfor inst in json.load(sys.stdin):\n    if inst.get('actual_status') == 'running':\n        gpu_util = inst.get('gpu_util', 0)\n        if gpu_util \u003C 10:\n            print(f'IDLE: Instance {inst[\\\"id\\\"]} GPU util={gpu_util}% '\n                  f'(\\${inst.get(\\\"dph_total\\\", 0):.3f}\u002Fhr)')\n\"\n```\n\n### Step 5: Cost Reporting\n\n```python\ndef daily_cost_report():\n    \"\"\"Calculate current daily burn rate from running instances.\"\"\"\n    result = subprocess.run(\n        [\"vastai\", \"show\", \"instances\", \"--raw\"],\n        capture_output=True, text=True)\n    instances = json.loads(result.stdout)\n\n    total_hourly = 0\n    for inst in instances:\n        if inst.get(\"actual_status\") == \"running\":\n            dph = inst.get(\"dph_total\", 0)\n            total_hourly += dph\n            print(f\"  {inst['id']}: {inst.get('gpu_name')} ${dph:.3f}\u002Fhr\")\n\n    print(f\"\\nTotal: ${total_hourly:.3f}\u002Fhr = ${total_hourly * 24:.2f}\u002Fday\")\n```\n\n## Cost Optimization Checklist\n\n- [ ] Always search with `--order dph_total` to find cheapest offers\n- [ ] Use interruptible instances for checkpointed workloads\n- [ ] Implement auto-destroy timeout on all instances\n- [ ] Monitor GPU utilization; destroy idle instances\n- [ ] Use RTX 4090 for workloads that fit in 24GB VRAM\n- [ ] Only use H100 when wall-clock time savings justify cost premium\n- [ ] Pre-install dependencies in Docker images (avoid paying for pip install)\n\n## Output\n- GPU cost-efficiency analysis by model\n- Spot vs on-demand comparison\n- Auto-destroy watchdog for cost protection\n- Idle instance detection script\n- Daily cost burn rate report\n\n## Error Handling\n| Error | Cause | Solution |\n|-------|-------|----------|\n| Unexpected $50+ bill | Forgot to destroy instances | Implement auto-destroy watchdog |\n| GPU idle at $2\u002Fhr | Waiting for data download | Pre-stage data before provisioning GPU |\n| Spot preemption mid-job | Cheapest instance reclaimed | Checkpoint frequently; auto-recover |\n\n## Resources\n- [Vast.ai Pricing](https:\u002F\u002Fvast.ai\u002F)\n- [Search & Filter](https:\u002F\u002Fdocs.vast.ai\u002Fsearch-and-filter-gpu-offers)\n\n## Next Steps\nFor reference architecture, see `vastai-reference-architecture`.\n\n## Examples\n\n**Budget cap**: Set `dph_total\u003C=0.25` in search queries and `auto_destroy_after(inst_id, 4)` to cap any single job at $1.00.\n\n**GPU comparison**: Run the same workload on RTX 4090 ($0.20\u002Fhr) vs A100 ($1.50\u002Fhr). If the A100 finishes in less than 1\u002F7th the time, it's cheaper overall.\n","# Vast.ai Cost Tuning\n\n## Overview\nMinimize Vast.ai GPU cloud costs by choosing the right GPU for your workload, leveraging interruptible (spot) instances, eliminating idle compute, and implementing auto-destroy safeguards. Vast.ai pricing is dynamic and varies significantly: RTX 4090 ($0.15-0.30\u002Fhr), A100 80GB ($1.00-2.00\u002Fhr), H100 SXM ($2.50-4.00\u002Fhr).\n\n## Prerequisites\n- Vast.ai account with billing history\n- Understanding of your workload's GPU requirements\n- `vastai` CLI installed\n\n## Instructions\n\n### Step 1: GPU Selection by Cost-Efficiency\n\n```python\n# Compare cost-per-TFLOP across GPU types\nGPU_SPECS = {\n    \"RTX_4090\":  {\"fp16_tflops\": 82.6,  \"vram\": 24},\n    \"A100\":      {\"fp16_tflops\": 77.97, \"vram\": 80},\n    \"H100_SXM\":  {\"fp16_tflops\": 267,   \"vram\": 80},\n    \"RTX_3090\":  {\"fp16_tflops\": 35.6,  \"vram\": 24},\n    \"A6000\":     {\"fp16_tflops\": 38.7,  \"vram\": 48},\n}\n\ndef cost_per_tflop(gpu_name, dph):\n    specs = GPU_SPECS.get(gpu_name, {\"fp16_tflops\": 1})\n    return dph \u002F specs[\"fp16_tflops\"]\n\n# Often RTX 4090 is the best value for inference\n# A100 is best for training large models needing >24GB VRAM\n# H100 is best only when wall-clock time justifies 10x price premium\n```\n\n### Step 2: Spot vs On-Demand Analysis\n\n```bash\n# Interruptible (spot) instances are 30-60% cheaper\nvastai search offers 'num_gpus=1 gpu_name=RTX_4090 rentable=true' \\\n  --order dph_total --limit 5\n# Compare interruptible vs on-demand pricing\n# Use interruptible for: batch inference, checkpointed training\n# Use on-demand for: final training epochs, production inference\n```\n\n### Step 3: Auto-Destroy Safeguards\n\n```python\nimport time, subprocess, json\n\ndef auto_destroy_after(instance_id, max_hours=4):\n    \"\"\"Destroy instance after max_hours to prevent cost overruns.\"\"\"\n    max_seconds = max_hours * 3600\n    time.sleep(max_seconds)\n    subprocess.run([\"vastai\", \"destroy\", \"instance\", str(instance_id)], check=True)\n    print(f\"Instance {instance_id} auto-destroyed after {max_hours}h\")\n\n# Run in background thread when provisioning\nimport threading\nwatchdog = threading.Thread(target=auto_destroy_after, args=(inst_id, 4), daemon=True)\nwatchdog.start()\n```\n\n### Step 4: Idle Instance Detection\n\n```bash\n#!\u002Fbin\u002Fbash\n# Find and destroy idle instances (GPU util \u003C 10% for >10 min)\nvastai show instances --raw | python3 -c \"\nimport sys, json\nfor inst in json.load(sys.stdin):\n    if inst.get('actual_status') == 'running':\n        gpu_util = inst.get('gpu_util', 0)\n        if gpu_util \u003C 10:\n            print(f'IDLE: Instance {inst[\\\"id\\\"]} GPU util={gpu_util}% '\n                  f'(\\${inst.get(\\\"dph_total\\\", 0):.3f}\u002Fhr)')\n\"\n```\n\n### Step 5: Cost Reporting\n\n```python\ndef daily_cost_report():\n    \"\"\"Calculate current daily burn rate from running instances.\"\"\"\n    result = subprocess.run(\n        [\"vastai\", \"show\", \"instances\", \"--raw\"],\n        capture_output=True, text=True)\n    instances = json.loads(result.stdout)\n\n    total_hourly = 0\n    for inst in instances:\n        if inst.get(\"actual_status\") == \"running\":\n            dph = inst.get(\"dph_total\", 0)\n            total_hourly += dph\n            print(f\"  {inst['id']}: {inst.get('gpu_name')} ${dph:.3f}\u002Fhr\")\n\n    print(f\"\\nTotal: ${total_hourly:.3f}\u002Fhr = ${total_hourly * 24:.2f}\u002Fday\")\n```\n\n## Cost Optimization Checklist\n\n- [ ] Always search with `--order dph_total` to find cheapest offers\n- [ ] Use interruptible instances for checkpointed workloads\n- [ ] Implement auto-destroy timeout on all instances\n- [ ] Monitor GPU utilization; destroy idle instances\n- [ ] Use RTX 4090 for workloads that fit in 24GB VRAM\n- [ ] Only use H100 when wall-clock time savings justify cost premium\n- [ ] Pre-install dependencies in Docker images (avoid paying for pip install)\n\n## Output\n- GPU cost-efficiency analysis by model\n- Spot vs on-demand comparison\n- Auto-destroy watchdog for cost protection\n- Idle instance detection script\n- Daily cost burn rate report\n\n## Error Handling\n| Error | Cause | Solution |\n|-------|-------|----------|\n| Unexpected $50+ bill | Forgot to destroy instances | Implement auto-destroy watchdog |\n| GPU idle at $2\u002Fhr | Waiting for data download | Pre-stage data before provisioning GPU |\n| Spot preemption mid-job | Cheapest instance reclaimed | Checkpoint frequently; auto-recover |\n\n## Resources\n- [Vast.ai Pricing](https:\u002F\u002Fvast.ai\u002F)\n- [Search & Filter](https:\u002F\u002Fdocs.vast.ai\u002Fsearch-and-filter-gpu-offers)\n\n## Next Steps\nFor reference architecture, see `vastai-reference-architecture`.\n\n## Examples\n\n**Budget cap**: Set `dph_total\u003C=0.25` in search queries and `auto_destroy_after(inst_id, 4)` to cap any single job at $1.00.\n\n**GPU comparison**: Run the same workload on RTX 4090 ($0.20\u002Fhr) vs A100 ($1.50\u002Fhr). If the A100 finishes in less than 1\u002F7th the time, it's cheaper overall.\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","cost-optimization","Jeremy Longshore \u003Cjeremy@intentsolutions.io>","1.0.0","Optimize Vast.ai GPU cloud costs through smart instance selection and lifecycle management.\nUse when analyzing GPU spending, reducing training costs,\nor implementing budget controls for Vast.ai workloads.\nTrigger with phrases like \"vastai cost\", \"vastai billing\",\n\"reduce vastai costs\", \"vastai pricing\", \"vastai budget\".\n","Read, Write, Edit, Bash(vastai:*), Grep","claude-code, codex, openclaw","main","99825ad3f3bcc6597ddcc7294a14e6e922f2b67b","skills\u002Fsaas-packs--vastai-pack--vastai-cost-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-cost-tuning",{"tool":49,"command":50},"bunx","bunx skills add jukeyman\u002Fjukeyman-skills --skill vastai-cost-tuning",{"tool":52,"command":53},"pnpm","pnpm dlx skills add jukeyman\u002Fjukeyman-skills --skill vastai-cost-tuning","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsaas-packs--vastai-pack--vastai-cost-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",[],[]]