Skip to content

Add Vast.ai min_inet_down backend option - #4521

Merged
jvstme merged 2 commits into
dstackai:masterfrom
mempirate:issue_4518_vastai_min_inet_down
Nov 24, 2026
Merged

jvstme merged 2 commits into
dstackai:masterfrom
mempirate:issue_4518_vastai_min_inet_down

Conversation

@mempirate

Copy link
Copy Markdown
Contributor

Closes #4518.

The Vast.ai backend filtered offers at a hard-coded inet_down > 128 Mbit/s, which admits hosts too slow for workloads that download large weights on start. This adds a min_inet_down option, in Mbit/s, next to min_reliability and min_score:

backend_options:
  - type: vastai
    min_inet_down: 8000
  • VastAIProfileOptions.min_inet_down sets the offer search filter to inet_down >= min_inet_down. Unset keeps the current > 128 filter, now VASTAI_DEFAULT_MIN_INET_DOWN. Combining options takes the maximum, like min_reliability and min_score.
  • Clients exclude min_inet_down from requests when it is unset, so they keep working with older servers. The excludes cover backend_options in run and fleet profiles and configurations, and in requirements of job specs sent with current_resource. get_profile_excludes now returns a dict, to carry the nested excludes.
  • The reference docs pick up the field description through the existing #SCHEMA# include.

Tests cover the combine behavior, the filter passed to VastAIProvider with and without the option, and the excludes for run specs, job specs and fleet specs.

🤖 Generated with Claude Code

mempirate and others added 2 commits November 24, 2026 10:59
Closes dstackai#4518

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Reword field docs to match what the code does
- Drop redundant test

@jvstme jvstme left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks!

@jvstme
jvstme merged commit d4de787 into dstackai:master Nov 24, 2026
26 checks passed
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.

[Feature]: Vast.ai min_inet_down backend option

2 participants