-
Notifications
You must be signed in to change notification settings - Fork 365
infra: Add Torch 1.13.1 testing to nightly CI #1731
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
Conversation
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.
Code conforms to C++ style guidelines
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.
Code conforms to C++ style guidelines
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.
Code conforms to C++ style guidelines
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.
Code conforms to Python style guidelines
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.
Code conforms to C++ style guidelines
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.
Code conforms to Python style guidelines
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.
Code conforms to Python style guidelines
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.
Code conforms to Python style guidelines
@@ -96,12 +99,17 @@ def dynamo_trace( | |||
aten_graph: bool, | |||
tracing_mode: str = "real", | |||
dynamo_config: Optional[DynamoConfig] = None, | |||
) -> Tuple[torch.fx.GraphModule, Set[Guard]]: | |||
) -> Tuple[torch.fx.GraphModule, 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.
The Guard
specification here was removed since this file still needs to be imported even when Torch 1.13 is used (torch_tensorrt.dump_build_info()
automatically imports this). We cannot import the Guard
module with Torch 1.13 since the Dynamo import is disabled on 1.13.
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.
Code conforms to Python style guidelines
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.
Code conforms to C++ style guidelines
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.
Code conforms to C++ style guidelines
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.
Code conforms to Python style guidelines
- Add testing for Torch 1.13.1 path in CI across both TS and FX compilation paths - Disable `aten` tests for 1.13.1, to resolve Torch Dynamo import/functionality issues - Refactor quantization FX tests to resolve key error in pattern dictionary - Add parameter fields to CI to accomodate Torch 1.13.1 version - Update `dispatch_tracer` function docstrings and imports to avoid naming issue with `torch._dynamo` vs `torchdynamo` - Rename CI versioning to use "legacy"
66cc20f
to
7fa598c
Compare
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.
Code conforms to C++ style guidelines
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.
Code conforms to Python style guidelines
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.
Code conforms to C++ style guidelines
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.
Code conforms to Python style guidelines
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.
LGTM
Description
aten
tests for 1.13, to resolve Torch Dynamo import/functionality issuesdispatch_tracer
function docstrings and imports to avoid naming issue withtorch._dynamo
vstorchdynamo
See this CI run for a sample of the 1.13.1 run results. Currently the only failing tests aretest_conv_add_standalone_module
from the FX quantization path, and these failures may arise from API usage changes between 1.13 and 2.0.The CI is now passing with the updates to the FX quantization path. See this CI run.
The following tests are disabled for the 1.13.1 CI workflow, due to Dynamo compatibility issues:
tracer/test_dispatch_tracer.py
tracer/test_resnet.py
tracer/test_resnet.py
converters/aten_op/*
Fixes #1716
Type of change
Please delete options that are not relevant and/or add your own.
Checklist: