vastai-core-workflow-b
Execute Vast.ai secondary workflow: Core Workflow B. Use when implementing secondary use case, or complementing primary workflow. Trigger with phrases like "vastai secondary workflow", "secondary task with vastai".
- License 许可
- MIT
- 最近更新
- 2026-05-26
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- vastai-core-workflow-b
- author
- Jeremy Longshore <jeremy@intentsolutions.io>
- license
- MIT
- version
- 1.0.0
- description
- Execute Vast.ai secondary workflow: Core Workflow B. Use when implementing secondary use case, or complementing primary workflow. Trigger with phrases like "vastai secondary workflow", "secondary task with vastai".
- allowed-tools
- Read, Write, Edit, Bash(npm:*), Grep
- compatible-with
- claude-code, codex, openclaw
03 SKILL.md 正文
Vast.ai Core Workflow B
Overview
Secondary workflow for Vast.ai. Complements the instance provisioning workflow by focusing on cost optimization, multi-instance orchestration, and spot interruption handling. Use this skill when you need to run a distributed training job across multiple rented GPUs, implement automatic spot interruption recovery to avoid losing training progress, or analyze your spending history to identify opportunities to reduce per-job cost.
Prerequisites
- Completed
vastai-install-authsetup - Familiarity with
vastai-core-workflow-a - Valid API credentials configured
Instructions
Step 1: Setup
Plan the multi-instance configuration or cost optimization strategy. For distributed workloads, identify how many nodes are needed and which interconnect topology (NVLink, high-bandwidth network) is required for your framework. For cost optimization, pull your billing history from the API and calculate cost-per-compute-hour across past jobs to establish a baseline you can compare against improved configurations.
// Step 1 implementation
Step 2: Process
Provision the required instances using your optimized search criteria. For distributed jobs, start all nodes, verify connectivity between them, and coordinate the start of your distributed training script. Implement checkpoint saving at regular intervals so that if a spot instance is reclaimed, the job can resume from the last checkpoint on a replacement node rather than starting over from scratch.
// Step 2 implementation
Step 3: Complete
After the job finishes or if interrupted, destroy all rented instances to stop billing. Collect all saved checkpoints and output artifacts from the distributed nodes before teardown. Generate a cost report comparing actual spend against the estimate, and record the instance configuration and job parameters that achieved the best cost-efficiency ratio for future reference.
// Step 3 implementation
Output
- Completed Core Workflow B execution
- Distributed job completed with checkpoints and output artifacts collected
- Cost analysis report comparing estimated versus actual spend
- Success confirmation or error details
Error Handling
| Aspect | Workflow A | Workflow B |
|---|---|---|
| Use Case | Primary | Secondary |
| Complexity | Medium | Lower |
| Performance | Standard | Optimized |
Examples
Complete Workflow
// Complete workflow example
Error Recovery
// Error handling code
Resources
Next Steps
For common errors, see vastai-common-errors.
04 同仓库更多 Skills
zustand-store-ts
Create Zustand stores with TypeScript, subscribeWithSelector middleware, and proper state/action separation. Use when building React state management, creating global stores, or implementing reactive state patterns with Zustand.
zustand-store-creator
Zustand Store Creator - Auto-activating skill for Frontend Development. Triggers on: zustand store creator, zustand store creator Part of the Frontend Development skill category.
zero-trust-config-helper
Zero Trust Config Helper - Auto-activating skill for Security Advanced. Triggers on: zero trust config helper, zero trust config helper Part of the Security Advanced skill category.
zapier-integration-helper
Zapier Integration Helper - Auto-activating skill for Business Automation. Triggers on: zapier integration helper, zapier integration helper Part of the Business Automation skill category.
zai-cli
Execute z.AI CLI providing vision, search, reader, and GitHub exploration via CLI and MCP. Use when user needs image/video analysis, OCR, UI-to-code conversion, error diagnosis, real-time web search, web page to markdown extraction, or GitHub code exploration. Trigger with phrases like "analyze this image", "search the web for", "read this page", "explore this repo", or "use zai". Requires Z_AI_API_KEY.
yt-research
Research competitor YouTube channels, niches, and trending topics for your content strategy. Use this skill whenever the user says "research channels", "analyze competitors", "find trending topics", "niche analysis", "competitive research", "what are other creators doing", "scrape YouTube channels", or wants to understand the competitive landscape for a specific tool or topic area. Use when working with yt research. Trigger with 'yt', 'research'.