Skip to content

Conversation

@vkuzo
Copy link
Contributor

@vkuzo vkuzo commented Dec 15, 2025

Summary:

Moves the following workflows to prototype:

  • Int8DynamicActivationInt4WeightConfig
  • Int4DynamicActivationInt4WeightConfig
  • GemliteUIntXWeightOnlyConfig
  • Float8StaticActivationFloat8WeightConfig
  • UIntXWeightOnlyConfig
  • FPXWeightOnlyConfig

Specifically:

  1. move the deprecated workflows to
    torchao/prototype/quantization/quant_api.py
  2. move utils to torchao/quantization/utils.py as needed
  3. make some imports happen at runtime to avoid circular imports
  4. change the warnings in the six workflows to reflect their new state
  5. update the README.md files as needed

For now, keep BC by importing them from the old location. So, we get the
benefits of the simpler quant_api.py file with this PR, and we will defer breaking
BC until a future time to amortize the eng cost.

Test Plan:

CI

Reviewers:

Subscribers:

Tasks:

Tags:

[ghstack-poisoned]
@vkuzo
Copy link
Contributor Author

vkuzo commented Dec 15, 2025

Stack from ghstack (oldest at bottom):

@pytorch-bot
Copy link

pytorch-bot bot commented Dec 15, 2025

🔗 Helpful Links

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

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

⏳ No Failures, 1 Pending

As of commit 00a23fa with merge base ff6d9e2 (image):
💚 Looks good so far! There are no failures yet. 💚

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

vkuzo added a commit that referenced this pull request Dec 15, 2025
Summary:

Moves the following workflows to prototype:
* Int8DynamicActivationInt4WeightConfig
* Int4DynamicActivationInt4WeightConfig
* GemliteUIntXWeightOnlyConfig
* Float8StaticActivationFloat8WeightConfig
* UIntXWeightOnlyConfig
* FPXWeightOnlyConfig

Specifically:
1. move the deprecated workflows to
   `torchao/prototype/quantization/quant_api.py`
2. move utils to `torchao/quantization/utils.py` as needed
3. make some imports happen at runtime to avoid circular imports
4. change the warnings in the six workflows to reflect their new state

For now, keep BC by importing them from the old location. So, we get the
benefits of the simpler `quant_api.py` file with this PR, and we will defer breaking
BC until a future time to amortize the eng cost.

Test Plan:

CI

Reviewers:

Subscribers:

Tasks:

Tags:
ghstack-source-id: 6e22be1
ghstack-comment-id: 3657392357
Pull-Request: #3491
@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 Dec 15, 2025
@vkuzo vkuzo added the topic: deprecation Use this tag if this PR deprecates a feature label Dec 15, 2025
[ghstack-poisoned]
vkuzo added a commit that referenced this pull request Dec 15, 2025
Summary:

Moves the following workflows to prototype:
* Int8DynamicActivationInt4WeightConfig
* Int4DynamicActivationInt4WeightConfig
* GemliteUIntXWeightOnlyConfig
* Float8StaticActivationFloat8WeightConfig
* UIntXWeightOnlyConfig
* FPXWeightOnlyConfig

Specifically:
1. move the deprecated workflows to
   `torchao/prototype/quantization/quant_api.py`
2. move utils to `torchao/quantization/utils.py` as needed
3. make some imports happen at runtime to avoid circular imports
4. change the warnings in the six workflows to reflect their new state

For now, keep BC by importing them from the old location. So, we get the
benefits of the simpler `quant_api.py` file with this PR, and we will defer breaking
BC until a future time to amortize the eng cost.

Test Plan:

CI

Reviewers:

Subscribers:

Tasks:

Tags:
ghstack-source-id: e06f561
ghstack-comment-id: 3657392357
Pull-Request: #3491
Our framework makes it straightforward to add tensor parallel support to your custom quantized tensor subclass. Check out our [tensor parallel tutorial](tutorials/developer_api_guide/tensor_parallel.py) to see how a quantized tensor subclass can be extended to support column and row-wise tensor sharding while maintaining compatibility with `torch.compile`.
### Custom Kernels
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is no longer relevant

[ghstack-poisoned]
vkuzo added a commit that referenced this pull request Dec 15, 2025
Summary:

Moves the following workflows to prototype:
* Int8DynamicActivationInt4WeightConfig
* Int4DynamicActivationInt4WeightConfig
* GemliteUIntXWeightOnlyConfig
* Float8StaticActivationFloat8WeightConfig
* UIntXWeightOnlyConfig
* FPXWeightOnlyConfig

Specifically:
1. move the deprecated workflows to
   `torchao/prototype/quantization/quant_api.py`
2. move utils to `torchao/quantization/utils.py` as needed
3. make some imports happen at runtime to avoid circular imports
4. change the warnings in the six workflows to reflect their new state

For now, keep BC by importing them from the old location. So, we get the
benefits of the simpler `quant_api.py` file with this PR, and we will defer breaking
BC until a future time to amortize the eng cost.

Test Plan:

CI

Reviewers:

Subscribers:

Tasks:

Tags:
ghstack-source-id: c43b02e
ghstack-comment-id: 3657392357
Pull-Request: #3491
[ghstack-poisoned]
vkuzo added a commit that referenced this pull request Dec 16, 2025
Summary:

Moves the following workflows to prototype:
* Int8DynamicActivationInt4WeightConfig
* Int4DynamicActivationInt4WeightConfig
* GemliteUIntXWeightOnlyConfig
* Float8StaticActivationFloat8WeightConfig
* UIntXWeightOnlyConfig
* FPXWeightOnlyConfig

Specifically:
1. move the deprecated workflows to
   `torchao/prototype/quantization/quant_api.py`
2. move utils to `torchao/quantization/utils.py` as needed
3. make some imports happen at runtime to avoid circular imports
4. change the warnings in the six workflows to reflect their new state

For now, keep BC by importing them from the old location. So, we get the
benefits of the simpler `quant_api.py` file with this PR, and we will defer breaking
BC until a future time to amortize the eng cost.

Test Plan:

CI

Reviewers:

Subscribers:

Tasks:

Tags:
ghstack-source-id: 30d8a0d
ghstack-comment-id: 3657392357
Pull-Request: #3491
[ghstack-poisoned]
vkuzo added a commit that referenced this pull request Dec 16, 2025
Summary:

Moves the following workflows to prototype:
* Int8DynamicActivationInt4WeightConfig
* Int4DynamicActivationInt4WeightConfig
* GemliteUIntXWeightOnlyConfig
* Float8StaticActivationFloat8WeightConfig
* UIntXWeightOnlyConfig
* FPXWeightOnlyConfig

Specifically:
1. move the deprecated workflows to
   `torchao/prototype/quantization/quant_api.py`
2. move utils to `torchao/quantization/utils.py` as needed
3. make some imports happen at runtime to avoid circular imports
4. change the warnings in the six workflows to reflect their new state

For now, keep BC by importing them from the old location. So, we get the
benefits of the simpler `quant_api.py` file with this PR, and we will defer breaking
BC until a future time to amortize the eng cost.

Test Plan:

CI

Reviewers:

Subscribers:

Tasks:

Tags:
ghstack-source-id: 2ecf4d8
ghstack-comment-id: 3657392357
Pull-Request: #3491
[ghstack-poisoned]
vkuzo added a commit that referenced this pull request Dec 16, 2025
Summary:

Moves the following workflows to prototype:
* Int8DynamicActivationInt4WeightConfig
* Int4DynamicActivationInt4WeightConfig
* GemliteUIntXWeightOnlyConfig
* Float8StaticActivationFloat8WeightConfig
* UIntXWeightOnlyConfig
* FPXWeightOnlyConfig

Specifically:
1. move the deprecated workflows to
   `torchao/prototype/quantization/quant_api.py`
2. move utils to `torchao/quantization/utils.py` as needed
3. make some imports happen at runtime to avoid circular imports
4. change the warnings in the six workflows to reflect their new state

For now, keep BC by importing them from the old location. So, we get the
benefits of the simpler `quant_api.py` file with this PR, and we will defer breaking
BC until a future time to amortize the eng cost.

Test Plan:

CI

Reviewers:

Subscribers:

Tasks:

Tags:
ghstack-source-id: 4b7b474
ghstack-comment-id: 3657392357
Pull-Request: #3491
[ghstack-poisoned]
vkuzo added a commit that referenced this pull request Dec 16, 2025
Summary:

Moves the following workflows to prototype:
* Int8DynamicActivationInt4WeightConfig
* Int4DynamicActivationInt4WeightConfig
* GemliteUIntXWeightOnlyConfig
* Float8StaticActivationFloat8WeightConfig
* UIntXWeightOnlyConfig
* FPXWeightOnlyConfig

Specifically:
1. move the deprecated workflows to
   `torchao/prototype/quantization/quant_api.py`
2. move utils to `torchao/quantization/utils.py` as needed
3. make some imports happen at runtime to avoid circular imports
4. change the warnings in the six workflows to reflect their new state

For now, keep BC by importing them from the old location. So, we get the
benefits of the simpler `quant_api.py` file with this PR, and we will defer breaking
BC until a future time to amortize the eng cost.

Test Plan:

CI

Reviewers:

Subscribers:

Tasks:

Tags:
ghstack-source-id: 454af42
ghstack-comment-id: 3657392357
Pull-Request: #3491
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: deprecation Use this tag if this PR deprecates a feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants