Skip to content

[X86] Remove deprecated Int8DynamicActInt4WeightCPULayout#4037

Open
Xia-Weiwen wants to merge 2 commits intopytorch:mainfrom
Xia-Weiwen:remove_da8w4_cpu_layout
Open

[X86] Remove deprecated Int8DynamicActInt4WeightCPULayout#4037
Xia-Weiwen wants to merge 2 commits intopytorch:mainfrom
Xia-Weiwen:remove_da8w4_cpu_layout

Conversation

@Xia-Weiwen
Copy link
Collaborator

Remove the deprecated Int8DynamicActInt4WeightCPULayout and associated code from the old Config+Layout-based DA8W4 CPU path.

Remove the deprecated Int8DynamicActInt4WeightCPULayout and associated code
from the old Config+Layout-based DA8W4 CPU path. This includes:
- Delete torchao/prototype/dtypes/uintx/dyn_int8_act_int4_wei_cpu_layout.py
- Delete torchao/dtypes/uintx/dyn_int8_act_int4_wei_cpu_layout.py (deprecated shim)
- Remove exports from torchao/dtypes/__init__.py, torchao/dtypes/uintx/__init__.py,
  torchao/prototype/dtypes/__init__.py, torchao/prototype/dtypes/uintx/__init__.py
- Remove dispatch registration from torchao/dtypes/affine_quantized_tensor_ops.py
- Remove Int8DynamicActInt4WeightCPULayout entry from test_uintx_api_deprecation

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@Xia-Weiwen Xia-Weiwen added the module: not user facing Use this tag if you don't want this PR to show up in release notes label Mar 10, 2026
@pytorch-bot
Copy link

pytorch-bot bot commented Mar 10, 2026

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/ao/4037

Note: Links to docs will display an error until the docs builds have been completed.

✅ You can merge normally! (2 Unrelated Failures)

As of commit 9a8cc11 with merge base 3d02561 (image):

BROKEN TRUNK - The following jobs failed but were present on the merge base:

👉 Rebase onto the `viable/strict` branch to avoid these failures

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Mar 10, 2026
@Xia-Weiwen Xia-Weiwen changed the title Remove Int8DynamicActInt4WeightCPULayout and old DA8W4 CPU layout path [X86] Remove Int8DynamicActInt4WeightCPULayout Mar 10, 2026
@Xia-Weiwen Xia-Weiwen changed the title [X86] Remove Int8DynamicActInt4WeightCPULayout [X86] Remove deprecated Int8DynamicActInt4WeightCPULayout Mar 10, 2026
@Xia-Weiwen Xia-Weiwen requested a review from Copilot March 10, 2026 07:37
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Removes the deprecated Int8DynamicActInt4WeightCPULayout and its old Config+Layout-based DA8W4 CPU implementation path, along with the associated backward-compatibility import stub and dispatch registration.

Changes:

  • Deleted the prototype DA8W4 CPU layout + TensorImpl implementation module.
  • Removed the deprecated public exports/import stubs for Int8DynamicActInt4WeightCPULayout from torchao.dtypes and torchao.prototype.dtypes.
  • Dropped the corresponding quantized-linear dispatch registration and updated the deprecation-warning import test.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated no comments.

Show a summary per file
File Description
torchao/prototype/dtypes/uintx/dyn_int8_act_int4_wei_cpu_layout.py Removes the deprecated prototype DA8W4 CPU layout + implementation.
torchao/prototype/dtypes/uintx/init.py Stops exporting the removed layout from prototype uintx.
torchao/prototype/dtypes/init.py Stops re-exporting the removed layout from prototype dtypes.
torchao/dtypes/uintx/dyn_int8_act_int4_wei_cpu_layout.py Removes the backward-compatibility import stub module.
torchao/dtypes/uintx/init.py Removes the deprecated layout export from non-prototype uintx.
torchao/dtypes/affine_quantized_tensor_ops.py Removes DA8W4 CPU dispatch condition/impl registration from the AQT quantized-linear dispatch table.
torchao/dtypes/init.py Removes the deprecated layout from top-level torchao.dtypes exports.
test/dtypes/test_uintx.py Updates the deprecation import-warning test to no longer expect the removed API.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Xia-Weiwen Xia-Weiwen requested review from jcaip and jerryzh168 March 10, 2026 08:39
@Xia-Weiwen Xia-Weiwen marked this pull request as ready for review March 10, 2026 08:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. module: not user facing Use this tag if you don't want this PR to show up in release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants