Skip to content

Commit 0c85173

Browse files
committed
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]
1 parent 9a78ca3 commit 0c85173

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/quantization/test_quant_api.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -758,9 +758,12 @@ def test_config_deprecation(self):
758758
Test that old config functions like `int4_weight_only` trigger deprecation warnings.
759759
"""
760760
from torchao.quantization import (
761+
float8_dynamic_activation_float8_weight,
762+
float8_static_activation_float8_weight,
761763
float8_weight_only,
762764
fpx_weight_only,
763765
gemlite_uintx_weight_only,
766+
int4_dynamic_activation_int4_weight,
764767
int4_weight_only,
765768
int8_dynamic_activation_int4_weight,
766769
int8_dynamic_activation_int8_weight,

0 commit comments

Comments
 (0)