Repository navigation
Match offers with a dstack-owned OfferMatcher - #4528
Merged
Merged
Conversation
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.
Part of #4519.
OfferMatcherthat reads offer fields directly instead of converting each offer to a gpuhuntCatalogItemforgpuhunt.matches(); results are identical, and a full pass over the ~55k-offer catalog drops from 86ms to 17ms for default requirements (75ms to 12ms forH100:8).filter_instances(), shared instances, fleet spec checks) instead of rebuilding the gpuhunt query filter for every instance.gpu_matches_gpu_spec(), as offer matching already did, which slightly relaxes Kubernetes and Slurm GPU selection.backend_datadirectly instead of validating a pydantic model for every matched offer (~20x faster per offer).offer_to_catalog_item()andfilter_offers_by_requirements().Next step: make the remaining backends that still match offers through gpuhunt use
OfferMatcher: switch Lium and Seeweb toComputeWithAllOffersCached, and applyOfferMatcherto the offers Vast.ai and Daytona get from gpuhunt.