Merged
Conversation
**Summary:** This was added for torch 2.5 as a placeholder for torch.int4. Now all torch versions we support have these dtypes, so this class is no longer needed and should not be used by anyone. We will remove it next release (0.18.0). **Test Plan:** Manual testing
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/ao/4100
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit f8ed477 with merge base 95d366c ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
vkuzo
approved these changes
Mar 17, 2026
Contributor
|
@andrewor14 might be good to add a deprecate note in the summary as well so you can copy paste when we do the release notes |
Contributor
Author
|
Ok added |
andrewor14
added a commit
that referenced
this pull request
Mar 23, 2026
**Summary:** #4074 and #4100 deprecated a few classes, but this triggered the following warnings when the user imports torchao from the top-level. This commit suppresses these warnings in this case. Before: ``` /data/users/andrewor/ao/torchao/dtypes/utils.py:89: UserWarning: Deprecation: PlainLayout is deprecated and will be removed in a future release of torchao, see #2752 for more details warnings.warn( /data/users/andrewor/ao/torchao/quantization/quant_primitives.py:95: UserWarning: Deprecation: TorchAODType is deprecated, please use the torch.intN dtype instead (e.g. TorchAODType.INT4 -> torch.int4) warnings.warn( /data/users/andrewor/ao/torchao/dtypes/utils.py:89: UserWarning: Deprecation: PlainLayout is deprecated and will be removed in a future release of torchao, see #2752 for more details warnings.warn( ``` After: ``` ``` **Test Plan:** Manual testing.
andrewor14
added a commit
that referenced
this pull request
Mar 23, 2026
**Summary:** #4074 and #4100 deprecated a few classes, but this triggered the following warnings when the user imports torchao from the top-level. This commit suppresses these warnings in this case. Before: ``` import torchao /data/users/andrewor/ao/torchao/dtypes/utils.py:89: UserWarning: Deprecation: PlainLayout is deprecated and will be removed in a future release of torchao, see #2752 for more details warnings.warn( /data/users/andrewor/ao/torchao/quantization/quant_primitives.py:95: UserWarning: Deprecation: TorchAODType is deprecated, please use the torch.intN dtype instead (e.g. TorchAODType.INT4 -> torch.int4) warnings.warn( /data/users/andrewor/ao/torchao/dtypes/utils.py:89: UserWarning: Deprecation: PlainLayout is deprecated and will be removed in a future release of torchao, see #2752 for more details warnings.warn( ``` After: ``` import torchao \# No warnings ``` **Test Plan:** Manual testing.
andrewor14
added a commit
that referenced
this pull request
Mar 23, 2026
**Summary:** #4074 and #4100 deprecated a few classes, but this triggered the following warnings when the user imports torchao from the top-level. This commit suppresses these warnings in this case. Before: ``` import torchao /data/users/andrewor/ao/torchao/dtypes/utils.py:89: UserWarning: Deprecation: PlainLayout is deprecated and will be removed in a future release of torchao, see #2752 for more details warnings.warn( /data/users/andrewor/ao/torchao/quantization/quant_primitives.py:95: UserWarning: Deprecation: TorchAODType is deprecated, please use the torch.intN dtype instead (e.g. TorchAODType.INT4 -> torch.int4) warnings.warn( /data/users/andrewor/ao/torchao/dtypes/utils.py:89: UserWarning: Deprecation: PlainLayout is deprecated and will be removed in a future release of torchao, see #2752 for more details warnings.warn( ``` After: ``` import torchao \# No warnings ``` **Test Plan:** Manual testing.
andrewor14
added a commit
that referenced
this pull request
Mar 24, 2026
**Summary:** #4074 and #4100 deprecated a few classes, but this triggered the following warnings when the user imports torchao from the top-level. This commit suppresses these warnings in this case. Before: ``` import torchao /data/users/andrewor/ao/torchao/dtypes/utils.py:89: UserWarning: Deprecation: PlainLayout is deprecated and will be removed in a future release of torchao, see #2752 for more details warnings.warn( /data/users/andrewor/ao/torchao/quantization/quant_primitives.py:95: UserWarning: Deprecation: TorchAODType is deprecated, please use the torch.intN dtype instead (e.g. TorchAODType.INT4 -> torch.int4) warnings.warn( /data/users/andrewor/ao/torchao/dtypes/utils.py:89: UserWarning: Deprecation: PlainLayout is deprecated and will be removed in a future release of torchao, see #2752 for more details warnings.warn( ``` After: ``` import torchao \# No warnings ``` **Test Plan:** Manual testing.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary: This was added for torch 2.5 as a placeholder for torch.int4. Now all torch versions we support have these dtypes, so this class is no longer needed and should not be used by anyone. We will remove it next release (0.18.0).
Test Plan: Manual testing
Deprecation notes:
Before:
After: