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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The control flow looks clearer than before, and skipping the default torch index when
ONE_PREPVENV_PIP_OPTIONis explicitly set makes sense.One thing I want to confirm is whether it is intended to ignore
ONE_PREPVENV_TORCH_SOURCEentirely wheneverONE_PREPVENV_PIP_OPTIONis set.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for the record,
ONE_PREPVENV_TORCH_SOURCEwas to override the torch source URL to internal package server for CI and for inhouse developres.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, I mistakenly saw both were same option:
ONE_PREPVENV_PIP_OPTIONandONE_PREPVENV_TORCH_SOURCE. I think I can ignoreTORCH_SOURCE_OPTIONwith current codes.Let's close this PR.