vastai-local-dev-loop

v2026.09.24

Build a fast local development loop that promotes a CPU-tested change to one disposable Vast.ai GPU canary and always tears it down. Use when iterating on images, startup scripts, or training code. Trigger with: "test locally then on Vast.ai", "build a GPU canary loop", "shorten Vast.ai iteration".

GitHub
安装命令
npx skhub add jeremylongshore/vastai-local-dev-loop
Markdown
SKILL.md

Vast.ai Local-to-GPU Canary Loop

Overview

Keep slow marketplace operations out of the inner loop. Validate code and the container locally, publish an immutable image, then use a single policy-constrained GPU rental only for the behavior that cannot be proven without CUDA.

Prerequisites

  • Local unit and CPU-mode test commands with expected outputs
  • Immutable image registry and a reproducible startup contract
  • Canary GPU, price, reliability, timeout, and cleanup policy

Instructions

Step 1: Define the local contract

Use Read and Grep to identify entrypoints, required files, ports, and environment names. Write an explicit smoke command that works without cloud credentials.

Step 2: Run local gates

Execute unit tests, build the image, start it in CPU mode where supported, and validate its health or process exit contract.

Step 3: Publish immutable bytes

Push a digest or commit-addressed image. Reject mutable latest as canary evidence because the remote host may pull different bytes.

Step 4: Rent the smallest canary

Search verified offers within the budget, create one instance with the immutable image, and record the contract ID before polling.

Step 5: Compare GPU behavior

Run the same smoke assertion plus a CUDA-specific check. Capture structured output and the image digest, not interactive screenshots.

Step 6: Tear down on every path

Copy only the required evidence, destroy the instance, and confirm removal even when the canary fails.

Authentication

Inject the scoped Vast.ai key only into the local control process. Put workload secrets in an approved runtime secret mechanism and never bake them into the image or startup script.

Tool Discipline

Use Read and Grep to inspect manifests, configuration, provider output, and existing tests before proposing a mutation. Use Write or Edit only for the approved plan, implementation, test, or redacted receipt; do not create, update, destroy, or fund Vast.ai resources without explicit operator approval.

Output

  • Local test/build receipt and immutable image identity
  • GPU canary offer, instance, state, and assertion evidence
  • Confirmed teardown plus a classified local/remote delta

Return commit, image digest, offer and instance IDs, local/GPU outcomes, elapsed time, estimated cost, and cleanup status.

Examples

A model-server change passes CPU request-shape tests, is pushed by digest, then runs one CUDA inference on a verified low-cost GPU before the disposable contract is destroyed.

Error Handling

FailureResponse
Local smoke failsDo not rent a GPU; fix the deterministic local failure first.
Remote bytes differDestroy the canary and republish an immutable digest.
GPU assertion fails only remotelyCollect driver, CUDA, image, and command evidence before teardown.
Teardown is uncertainTreat the instance as actively billable and escalate with its ID.

Resources

发现
标签

此技能尚未发布标签。

版本
最新版本元数据

版本

v2026.09.24

发布时间

Sep 24, 2026

分类

未分类

许可证

MIT

源路径

skills/.curated/vastai-local-dev-loop

默认分支

main

最新提交

e5a6c3b

Tree SHA

c2dc8e8