Skip to content
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

fix: Legacy CI pip installation #2239

Merged
merged 11 commits into from
Aug 25, 2023
Merged

Conversation

gs-olive
Copy link
Collaborator

@gs-olive gs-olive commented Aug 17, 2023

  • Update config.yaml to support legacy CI testing, including upgraded .toml and WORKSPACE files built specifically for the legacy version
  • Add parameters to the configuration file to allow switching CUDA versions for the legacy build
  • Update default in compile() to be TorchScript in the legacy install

@gs-olive gs-olive added the WIP Work is in progress, pull request should not be merged yet label Aug 17, 2023
@gs-olive gs-olive self-assigned this Aug 17, 2023
@gs-olive gs-olive force-pushed the legacy_ci_install_fix branch 2 times, most recently from 53b746a to d79ed9b Compare August 17, 2023 20:28
@gs-olive gs-olive force-pushed the legacy_ci_install_fix branch 2 times, most recently from 9333bbc to 6b6593c Compare August 17, 2023 23:51
@gs-olive
Copy link
Collaborator Author

toolchains special toml for legacy

@gs-olive gs-olive marked this pull request as ready for review August 23, 2023 21:18
@gs-olive gs-olive requested review from peri044 and narendasan and removed request for peri044 August 23, 2023 21:20
@@ -93,13 +100,14 @@ def _get_target_ir(module_type: _ModuleType, ir: str) -> _IRType:
else:
if ir == "default":
# Options are listed in order of preference
if module_is_fxable:
if DYNAMO_ENABLED and module_is_fxable:
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Update default path to be TorchScript if the install is with a legacy Torch version

@gs-olive gs-olive removed the WIP Work is in progress, pull request should not be merged yet label Aug 23, 2023
@gs-olive gs-olive requested a review from peri044 August 23, 2023 21:20
Copy link
Collaborator

@narendasan narendasan left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Collaborator

@peri044 peri044 left a comment

Choose a reason for hiding this comment

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

Looks great

@gs-olive gs-olive merged commit b774440 into pytorch:main Aug 25, 2023
18 checks passed
@gs-olive gs-olive deleted the legacy_ci_install_fix branch August 25, 2023 03:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants