fix(prism): rent 1x B200 on Lium 8x split hosts - #192
Merged
Conversation
Prod no_capacity was a false sold-out: the market only lists 8x B200 and the 1x pin rejected every row. Parse Lium split fields and rent one GPU, including idle hosts that omit min_gpu_count_for_rental.
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (6)
📝 WalkthroughWalkthroughLium offers now parse rental metadata and support split GPU matching. Provisioning uses the calculated rental count, including one-GPU rentals from eligible 8× B200 hosts. Provider defaults, tests, and pin guidance were updated. ChangesSplit GPU rental
Estimated code review effort: 4 (Complex) | ~45 minutes Sequence Diagram(s)sequenceDiagram
participant LiumMarketplace
participant Offer
participant LiumClient
participant RentalAPI
LiumMarketplace->>Offer: provide GPU rental metadata
LiumClient->>Offer: match requested GPU count
Offer-->>LiumClient: return eligible offer and rent_count
LiumClient->>RentalAPI: provision with rent_count
RentalAPI-->>LiumClient: return provisioned pod
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
no_capacitywas a false sold-out: Lium only lists 8× B200, and the 1× pin rejected every row.available_gpu_count/min_gpu_count_for_rentaland rent one GPU (including idle hosts that omitmin).Test plan
cargo test -p prism-lium-types -p prism-lium/executors→ 4 B200 hosts become 1× candidatesmainno_capacitywhen B200s are listedprovisioning/ rent withgpu_count=1Summary by CodeRabbit