+
Skip to content

Conversation

andrewor14
Copy link
Contributor

@andrewor14 andrewor14 commented Sep 12, 2025

Stack from ghstack (oldest at bottom):

Summary: These have been superseded by AOBaseConfig objects
for several releases already, but we never deprecated them.
We will keep them around for another release before breaking BC
and removing them.

Test Plan:

python test/quantization/test_quant_api.py -k test_config_deprecation
>>> int4_weight_only()
/home/andrewor/local/ao/torchao/utils.py:446: UserWarning: `int4_weight_only` is deprecated and will be removed in a future release. Please use `Int4WeightOnlyConfig` instead. Example usage:
    quantize_(model, Int4WeightOnlyConfig(...))
  warnings.warn(
Int4WeightOnlyConfig(group_size=128, layout=TensorCoreTiledLayout(inner_k_tiles=8), use_hqq=False, zero_point_domain=<ZeroPointDomain.NONE: 3>, set_inductor_config=True, preserve_zero=None, int4_packing_format=<Int4PackingFormat.PLAIN: 'plain'>, int4_choose_qparams_algorithm=<Int4ChooseQParamsAlgorithm.TINYGEMM: 'tinygemm'>, version=2)

**Summary:** These have been superseded by `AOBaseConfig` objects
for several releases already, but we never deprecated them.
We will keep them around for another release before breaking BC
and removing them.

**Test Plan:**

```
python test/quantization/test_quant_api.py -k test_config_deprecation
```

[ghstack-poisoned]
andrewor14 added a commit that referenced this pull request Sep 12, 2025
**Summary:** These have been superseded by `AOBaseConfig` objects
for several releases already, but we never deprecated them.
We will keep them around for another release before breaking BC
and removing them.

**Test Plan:**

```
python test/quantization/test_quant_api.py -k test_config_deprecation
```

ghstack-source-id: efd30d0
Pull Request resolved: #2994
Copy link

pytorch-bot bot commented Sep 12, 2025

🔗 Helpful Links

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

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

❌ 4 New Failures

As of commit 155c576 with merge base 58c3064 (image):

NEW FAILURES - The following jobs have failed:

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 Sep 12, 2025
@andrewor14 andrewor14 added the topic: deprecation Use this tag if this PR deprecates a feature label Sep 12, 2025
**Summary:** These have been superseded by `AOBaseConfig` objects
for several releases already, but we never deprecated them.
We will keep them around for another release before breaking BC
and removing them.

**Test Plan:**

```
python test/quantization/test_quant_api.py -k test_config_deprecation
```

[ghstack-poisoned]
andrewor14 added a commit that referenced this pull request Sep 12, 2025
**Summary:** These have been superseded by `AOBaseConfig` objects
for several releases already, but we never deprecated them.
We will keep them around for another release before breaking BC
and removing them.

**Test Plan:**

```
python test/quantization/test_quant_api.py -k test_config_deprecation
```

ghstack-source-id: cccdd5a
Pull Request resolved: #2994
**Summary:** These have been superseded by `AOBaseConfig` objects
for several releases already, but we never deprecated them.
We will keep them around for another release before breaking BC
and removing them.

**Test Plan:**

```
python test/quantization/test_quant_api.py -k test_config_deprecation
```

[ghstack-poisoned]
andrewor14 added a commit that referenced this pull request Sep 12, 2025
**Summary:** These have been superseded by `AOBaseConfig` objects
for several releases already, but we never deprecated them.
We will keep them around for another release before breaking BC
and removing them.

**Test Plan:**

```
python test/quantization/test_quant_api.py -k test_config_deprecation
```

ghstack-source-id: 9b2f9a3
Pull Request resolved: #2994
andrewor14 added a commit that referenced this pull request Sep 12, 2025
**Summary:** These are now deprecated as of #2994. We should
stop using them internally as well.

**Test Plan:** CI

[ghstack-poisoned]
andrewor14 added a commit that referenced this pull request Sep 12, 2025
**Summary:** These are now deprecated as of #2994. We should
stop using them internally as well.

**Test Plan:** CI

ghstack-source-id: da216cb
Pull Request resolved: #2995
andrewor14 added a commit that referenced this pull request Sep 12, 2025
…eight_only`"

**Summary:** These are now deprecated as of #2994. We should
stop using them internally as well.

**Test Plan:** CI

[ghstack-poisoned]
andrewor14 added a commit that referenced this pull request Sep 12, 2025
**Summary:** These are now deprecated as of #2994. We should
stop using them internally as well.

**Test Plan:** CI

ghstack-source-id: 6bd1b7d
Pull Request resolved: #2995
andrewor14 added a commit that referenced this pull request Sep 12, 2025
…eight_only`"

**Summary:** These are now deprecated as of #2994. We should
stop using them internally as well.

**Test Plan:** CI

[ghstack-poisoned]
andrewor14 added a commit that referenced this pull request Sep 12, 2025
**Summary:** These are now deprecated as of #2994. We should
stop using them internally as well.

**Test Plan:** CI

ghstack-source-id: e493e74
Pull Request resolved: #2995
andrewor14 added a commit that referenced this pull request Sep 15, 2025
**Summary:** These have been superseded by `AOBaseConfig` objects
for several releases already, but we never deprecated them.
We will keep them around for another release before breaking BC
and removing them.

**Test Plan:**

```
python test/quantization/test_quant_api.py -k test_config_deprecation
```

ghstack-source-id: 9b2f9a3
Pull Request resolved: #2994
andrewor14 added a commit that referenced this pull request Sep 15, 2025
**Summary:** These are now deprecated as of #2994. We should
stop using them internally as well.

**Test Plan:** CI

ghstack-source-id: e493e74
Pull Request resolved: #2995
…ht_only`"


**Summary:** These have been superseded by `AOBaseConfig` objects
for several releases already, but we never deprecated them.
We will keep them around for another release before breaking BC
and removing them.

**Test Plan:**

```
python test/quantization/test_quant_api.py -k test_config_deprecation
```

```
>>> int4_weight_only()
/home/andrewor/local/ao/torchao/utils.py:446: UserWarning: `int4_weight_only` is deprecated and will be removed in a future release. Please use `Int4WeightOnlyConfig` instead. Example usage:
    quantize_(model, Int4WeightOnlyConfig(...))
  warnings.warn(
Int4WeightOnlyConfig(group_size=128, layout=TensorCoreTiledLayout(inner_k_tiles=8), use_hqq=False, zero_point_domain=<ZeroPointDomain.NONE: 3>, set_inductor_config=True, preserve_zero=None, int4_packing_format=<Int4PackingFormat.PLAIN: 'plain'>, int4_choose_qparams_algorithm=<Int4ChooseQParamsAlgorithm.TINYGEMM: 'tinygemm'>, version=2)
```

[ghstack-poisoned]
**Summary:** These have been superseded by `AOBaseConfig` objects
for several releases already, but we never deprecated them.
We will keep them around for another release before breaking BC
and removing them.

**Test Plan:**

```
python test/quantization/test_quant_api.py -k test_config_deprecation
```

```
>>> int4_weight_only()
/home/andrewor/local/ao/torchao/utils.py:446: UserWarning: `int4_weight_only` is deprecated and will be removed in a future release. Please use `Int4WeightOnlyConfig` instead. Example usage:
    quantize_(model, Int4WeightOnlyConfig(...))
  warnings.warn(
Int4WeightOnlyConfig(group_size=128, layout=TensorCoreTiledLayout(inner_k_tiles=8), use_hqq=False, zero_point_domain=<ZeroPointDomain.NONE: 3>, set_inductor_config=True, preserve_zero=None, int4_packing_format=<Int4PackingFormat.PLAIN: 'plain'>, int4_choose_qparams_algorithm=<Int4ChooseQParamsAlgorithm.TINYGEMM: 'tinygemm'>, version=2)
```

[ghstack-poisoned]
andrewor14 added a commit that referenced this pull request Sep 15, 2025
…ons like `int4_weight_only`"

**Summary:** These are now deprecated as of #2994. We should
stop using them internally as well.

**Test Plan:** CI

[ghstack-poisoned]
andrewor14 added a commit that referenced this pull request Sep 15, 2025
…eight_only`"

**Summary:** These are now deprecated as of #2994. We should
stop using them internally as well.

**Test Plan:** CI

[ghstack-poisoned]
andrewor14 added a commit that referenced this pull request Sep 15, 2025
**Summary:** These are now deprecated as of #2994. We should
stop using them internally as well.

**Test Plan:** CI

ghstack-source-id: 016b19e
Pull Request resolved: #2995
andrewor14 added a commit that referenced this pull request Sep 16, 2025
**Summary:** These have been superseded by `AOBaseConfig` objects
for several releases already, but we never deprecated them.
We will keep them around for another release before breaking BC
and removing them.

**Test Plan:**

```
python test/quantization/test_quant_api.py -k test_config_deprecation
```

ghstack-source-id: 9b2f9a3
Pull Request resolved: #2994
andrewor14 added a commit that referenced this pull request Sep 16, 2025
**Summary:** These are now deprecated as of #2994. We should
stop using them internally as well.

**Test Plan:** CI

ghstack-source-id: e493e74
Pull Request resolved: #2995
…ht_only`"


**Summary:** These have been superseded by `AOBaseConfig` objects
for several releases already, but we never deprecated them.
We will keep them around for another release before breaking BC
and removing them.

**Test Plan:**

```
python test/quantization/test_quant_api.py -k test_config_deprecation
```

```
>>> int4_weight_only()
/home/andrewor/local/ao/torchao/utils.py:446: UserWarning: `int4_weight_only` is deprecated and will be removed in a future release. Please use `Int4WeightOnlyConfig` instead. Example usage:
    quantize_(model, Int4WeightOnlyConfig(...))
  warnings.warn(
Int4WeightOnlyConfig(group_size=128, layout=TensorCoreTiledLayout(inner_k_tiles=8), use_hqq=False, zero_point_domain=<ZeroPointDomain.NONE: 3>, set_inductor_config=True, preserve_zero=None, int4_packing_format=<Int4PackingFormat.PLAIN: 'plain'>, int4_choose_qparams_algorithm=<Int4ChooseQParamsAlgorithm.TINYGEMM: 'tinygemm'>, version=2)
```

[ghstack-poisoned]
**Summary:** These have been superseded by `AOBaseConfig` objects
for several releases already, but we never deprecated them.
We will keep them around for another release before breaking BC
and removing them.

**Test Plan:**

```
python test/quantization/test_quant_api.py -k test_config_deprecation
```

```
>>> int4_weight_only()
/home/andrewor/local/ao/torchao/utils.py:446: UserWarning: `int4_weight_only` is deprecated and will be removed in a future release. Please use `Int4WeightOnlyConfig` instead. Example usage:
    quantize_(model, Int4WeightOnlyConfig(...))
  warnings.warn(
Int4WeightOnlyConfig(group_size=128, layout=TensorCoreTiledLayout(inner_k_tiles=8), use_hqq=False, zero_point_domain=<ZeroPointDomain.NONE: 3>, set_inductor_config=True, preserve_zero=None, int4_packing_format=<Int4PackingFormat.PLAIN: 'plain'>, int4_choose_qparams_algorithm=<Int4ChooseQParamsAlgorithm.TINYGEMM: 'tinygemm'>, version=2)
```

[ghstack-poisoned]
andrewor14 added a commit that referenced this pull request Sep 16, 2025
…ons like `int4_weight_only`"

**Summary:** These are now deprecated as of #2994. We should
stop using them internally as well.

**Test Plan:** CI

[ghstack-poisoned]
andrewor14 added a commit that referenced this pull request Sep 16, 2025
…eight_only`"

**Summary:** These are now deprecated as of #2994. We should
stop using them internally as well.

**Test Plan:** CI

[ghstack-poisoned]
andrewor14 added a commit that referenced this pull request Sep 16, 2025
**Summary:** These are now deprecated as of #2994. We should
stop using them internally as well.

**Test Plan:** CI

ghstack-source-id: d75abd1
Pull Request resolved: #2995
@andrewor14 andrewor14 changed the base branch from gh/andrewor14/23/base to main September 17, 2025 13:04
@andrewor14 andrewor14 merged commit 62f62d0 into main Sep 17, 2025
26 of 34 checks passed
andrewor14 added a commit that referenced this pull request Sep 17, 2025
…#2995)

* Deprecate config functions like `int4_weight_only`

**Summary:** These have been superseded by `AOBaseConfig` objects
for several releases already, but we never deprecated them.
We will keep them around for another release before breaking BC
and removing them.

**Test Plan:**

```
python test/quantization/test_quant_api.py -k test_config_deprecation
```

[ghstack-poisoned]

* Update on "Deprecate config functions like `int4_weight_only`"


**Summary:** These have been superseded by `AOBaseConfig` objects
for several releases already, but we never deprecated them.
We will keep them around for another release before breaking BC
and removing them.

**Test Plan:**

```
python test/quantization/test_quant_api.py -k test_config_deprecation
```

[ghstack-poisoned]

* Update on "Deprecate config functions like `int4_weight_only`"


**Summary:** These have been superseded by `AOBaseConfig` objects
for several releases already, but we never deprecated them.
We will keep them around for another release before breaking BC
and removing them.

**Test Plan:**

```
python test/quantization/test_quant_api.py -k test_config_deprecation
```

[ghstack-poisoned]

* Remove internal usage of all config functions like `int4_weight_only`

**Summary:** These are now deprecated as of #2994. We should
stop using them internally as well.

**Test Plan:** CI

[ghstack-poisoned]

* Update on "Remove internal usage of all config functions like `int4_weight_only`"


**Summary:** These are now deprecated as of #2994. We should
stop using them internally as well.

**Test Plan:** CI

[ghstack-poisoned]

* Update on "Remove internal usage of all config functions like `int4_weight_only`"


**Summary:** These are now deprecated as of #2994. We should
stop using them internally as well.

**Test Plan:** CI

[ghstack-poisoned]
andrewor14 added a commit that referenced this pull request Oct 10, 2025
**Summary:** As a follow-up to #2994,
this commit removes all quantization functions that were used
as configs. These functions were deprecated in 0.14.0 and will
be removed in the next release, 0.15.0.

**Test Plan:** CI

[ghstack-poisoned]
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.

3 participants

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载