Skip to content

Turn on exclude_reserved_capacity with an environment variable - #292

Merged
Micah Yong (micahtyong) merged 1 commit into
mainfrom
micah/exclude-reserved-env
Nov 15, 2026
Merged

Micah Yong (micahtyong) merged 1 commit into
mainfrom
micah/exclude-reserved-env

Conversation

@micahtyong

Copy link
Copy Markdown
Collaborator

Summary

Setting SPINDLE_EXCLUDE_RESERVED_CAPACITY=1 turns on platform.modal.exclude_reserved_capacity for every recipe loaded in that environment. Multi-node trainers, and trainers with trainer_rdma, then stay off GPUs reserved for the workspace, without each recipe or script having to set the override. When the variable is unset, the platform settings don't change, so existing deployments don't redeploy.

E2E

  • Loaded kimi_k26_lora_32k with the variable set: platform.modal gets exclude_reserved_capacity: True. Without the variable, platform.modal doesn't change.
  • tests/test_deployments.py, tests/test_deployment_cli.py and tests/providers/test_deployment_apps.py pass, and pre-commit passes.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@micahtyong
Micah Yong (micahtyong) marked this pull request as ready for review November 15, 2026 22:47
@micahtyong
Micah Yong (micahtyong) merged commit 58830ba into main Nov 15, 2026
3 checks passed
@micahtyong
Micah Yong (micahtyong) deleted the micah/exclude-reserved-env branch November 15, 2026 22:48
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