Skip to content

[Nebius] Add spot instances and B200 support #165 #166

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Aug 8, 2025

Conversation

peterschmidt85
Copy link
Contributor

Plus, it adds B200 GPU for Nebius

Plus, it adds B200 GPU for Nebius
) -> RawCatalogItem:
def get_price(regular_price: float, spot_price: Optional[float]) -> float:
"""Helper function to get the appropriate price based on spot availability"""
return spot_price if spot and spot_price is not None else regular_price
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(nit) If spot is True, but spot_price is None, I'd expect the function to raise an exception rather than default to regular_price. Otherwise, future bugs can go unnoticed.

Suggested change
return spot_price if spot and spot_price is not None else regular_price
if spot:
if spot_price is None:
raise ValueError("Spot price missing")
return spot_price
return regular_price

Co-authored-by: jvstme <36324149+jvstme@users.noreply.github.com>
@peterschmidt85 peterschmidt85 changed the title [Nebius] Add spot instances support #165 [Nebius] Add spot instances and B200 support #165 Aug 8, 2025
@peterschmidt85 peterschmidt85 merged commit acfacb1 into main Aug 8, 2025
6 checks passed
@peterschmidt85 peterschmidt85 deleted the 165-nebius-spot-instances branch August 8, 2025 12:58
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.

[Nebius] Add spot instances support
2 participants