-
Notifications
You must be signed in to change notification settings - Fork 95
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 WOQ int8 failures #884
base: main
Are you sure you want to change the base?
Fix WOQ int8 failures #884
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/ao/884
Note: Links to docs will display an error until the docs builds have been completed. ❌ 1 New Failure, 1 Unrelated FailureAs of commit 828571c with merge base 8236a87 (): NEW FAILURE - The following job has failed:
FLAKY - The following job failed but was likely due to flakiness present on trunk:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
if not TORCH_VERSION_AT_LEAST_2_5: | ||
if ( | ||
not TORCH_VERSION_AT_LEAST_2_5 | ||
) or torch._inductor.config.freezing: |
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.
when is freezing
set? how do user know that they need to call unwrap_tensor_subclass
in that case?
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.
Hi Jerry, freezing
is setting in
ao/test/integration/test_integration.py
Line 829 in 8236a87
@torch._inductor.config.patch({"freezing": True}) |
torch._inductor.config.freezing=True
in script or using the environment variable as TORCHINDUCTOR_FREEZING=1
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.
how do user know that they need to call unwrap_tensor_subclass in that case?
That's a good question. Did you mean we should write document somewhere? And the root-cause for why freezing
needs unwrap_tensor_subclass
is in pytorch/pytorch#123522.
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.
I see, thanks for the context! yeah I think it would be good to add this in the README: https://github.com/pytorch/ao/tree/main/torchao/quantization#workaround-with-unwrap_tensor_subclass-for-export-aoti-and-torchcompile-pytorch-24-and-before-only and link the issue as well
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.
Thanks and adding the readme with issue link in this PR. please help to take a look again.
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
please fix CI before landing |
Thanks @jerryzh168, we should land the PR in PyTorch at first. |
361ac51
to
5fa2288
Compare
5fa2288
to
828571c
Compare
Hi @jerryzh168, since pytorch/pytorch#135928 has been merged into PyTorch, could you approve the CI run for this PR to check if it passes all tests? |
It seems |
Fix WOQ int8 failures as discussed in #843 (comment)