Skip to content

[Tracer] Add TorchDynamo support#97

Merged
zarzen merged 5 commits intoawslabs:mainfrom
chhzh123:dynamo
Jun 6, 2023
Merged

[Tracer] Add TorchDynamo support#97
zarzen merged 5 commits intoawslabs:mainfrom
chhzh123:dynamo

Conversation

@chhzh123
Copy link
Contributor

Description

This PR adds TorchDynamo as the backend tracer, providing more use cases when integrating with PyTorch 2.0.
Also, the legacy HF tracer is fixed to support tracing GPT attention modules.

Checklist

  • PR's title starts with a category (e.g. [Bugfix], [Model], [Tutorial], etc)
  • Changes are complete (i.e. I finished coding on this PR)
  • All changes have test coverage
  • Code is well-documented

cc @comaniac @zarzen @whbldhwj

Copy link
Contributor

@comaniac comaniac left a comment

Choose a reason for hiding this comment

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

LGTM

@chhzh123
Copy link
Contributor Author

We need to update the CI environment to install the PyTorch 2.0 package. Otherwise, this PR cannot pass the test.

@chhzh123
Copy link
Contributor Author

Wait for #100 to be merged.

@zarzen zarzen merged commit f15fb7b into awslabs:main Jun 6, 2023
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.

3 participants