Skip to content

Conversation

@jainapurva
Copy link
Contributor

@jainapurva jainapurva commented Nov 6, 2025

This pull request moves Int8DynamicActInt4WeightCPULayout and its implementation from torchao/dtypes/uintx/dyn_int8_act_int4_wei_cpu_layout.py to torchao/prototype/dtypes/uintx/dyn_int8_act_int4_wei_cpu_layout.py, and exposed it via torchao.prototype.dtypes while maintaining BC at torchao.prototype.dtypes.uintx with a deprecation warning for future torchao release.
Updates API documentation to reflect the changes

Reference Issue: #2752

@pytorch-bot
Copy link

pytorch-bot bot commented Nov 6, 2025

🔗 Helpful Links

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

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

⏳ No Failures, 12 Pending

As of commit 4706b67 with merge base 6259e98 (image):
💚 Looks good so far! There are no failures yet. 💚

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 Nov 6, 2025
@jainapurva jainapurva added the topic: for developers Use this tag if this PR is mainly developer facing label Nov 6, 2025
@jainapurva jainapurva marked this pull request as ready for review November 6, 2025 04:40
@jainapurva jainapurva requested a review from jerryzh168 November 6, 2025 04:40
Copy link
Contributor

@andrewor14 andrewor14 left a comment

Choose a reason for hiding this comment

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

Thanks, just left some small nits about testing

warnings.simplefilter("always") # Ensure all warnings are captured
assert any(
issubclass(warning.category, DeprecationWarning)
and "CutlassInt4PackedLayout" in str(warning.message)
Copy link
Contributor

Choose a reason for hiding this comment

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

can we merge these tests to do this in a loop or reuse the code somehow?

]
for mod in modules_to_clear:
if mod in sys.modules:
del sys.modules[mod]
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe easier to just reset the warnings like this:

warnings.resetwarnings()

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. topic: for developers Use this tag if this PR is mainly developer facing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants