Skip to content

feat: add spot instance support to AWS VM creation#104

Merged
abrichr merged 1 commit intomainfrom
feat/aws-spot-support
Mar 4, 2026
Merged

feat: add spot instance support to AWS VM creation#104
abrichr merged 1 commit intomainfrom
feat/aws-spot-support

Conversation

@abrichr
Copy link
Copy Markdown
Member

@abrichr abrichr commented Mar 4, 2026

Summary

  • Add spot: bool = False parameter to AWSVMManager.create_vm() with InstanceMarketOptions for EC2
  • Add --spot CLI flag to scripts/train_verl_e2e.py (AWS only, warns on other clouds)
  • Mark TODO complete in docs/spot_instance_analysis.md

Test plan

  • Verify --spot flag logs "(spot)" in output
  • Launch spot instance and confirm lifecycle type in EC2 console
  • Confirm non-AWS clouds get a warning when --spot is passed

🤖 Generated with Claude Code

Add spot=True parameter to AWSVMManager.create_vm() which sets
InstanceMarketOptions for one-time spot pricing with terminate-on-
interruption behavior. Wire --spot flag through train_verl_e2e.py CLI.
Saves ~50% on GPU training costs (e.g. g5.xlarge $0.43/hr vs $1.006/hr).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@abrichr abrichr force-pushed the feat/aws-spot-support branch from 93fc1c6 to 6f3b261 Compare March 4, 2026 17:38
@abrichr abrichr merged commit fd9d229 into main Mar 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant