Skip to content

[Nebius] Add support config file and remove hardcode #5463

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

SalikovAlex
Copy link
Contributor

The Nebius project ID file support has been removed in favor of configuration in ~/.sky/config.yaml, which now includes project_id and fabric options. Enhancements include streamlined GPU cluster creation and clearer documentation for Nebius configurations.

Tested (run the relevant ones):

  • Code formatting: install pre-commit (auto-check on commit) or bash format.sh
  • Any manual or new tests for this PR (please specify below)
  • All smoke tests: /smoke-test (CI) or pytest tests/test_smoke.py (local)

The Nebius project ID file support has been removed in favor of configuration in `~/.sky/config.yaml`, which now includes `project_id` and `fabric` options. Enhancements include streamlined GPU cluster creation and clearer documentation for Nebius configurations.
Copy link
Collaborator

@cg505 cg505 left a comment

Choose a reason for hiding this comment

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

Is there any way we can throw an error if the user typos a region name in the config? E.g. if I accidentally write ue-north1, it should have an error.
Otherwise, I think this looks pretty good. Thanks!


.. code-block:: shell
**Optional**: You can specify a preferable project ID and fabric in `~/.sky/config.yaml`
Copy link
Collaborator

Choose a reason for hiding this comment

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

Question about "preferable" - does this mean that the project id / fabric can be ignored in some cases, or is it always respected?

Optional: GPU cluster disabled if not specified


The configuration can be specified in region-specific sections.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
The configuration can be specified in region-specific sections.
The configuration must be specified in region-specific sections.

Comment on lines +550 to +556
.. code-block:: yaml

echo $NEBIUS_PROJECT_ID > ~/.nebius/NEBIUS_PROJECT_ID.txt
# ~/.sky/config.yaml
nebius:
eu-north1:
project_id: project-e00xxxxxxxxxxxx
fabric: fabric-2
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think this should be moved to cloud-setup/cloud-permissions/nebius.rst. We can just have a link in the "Optional:" part to that page.

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.

2 participants