Commit 62f62d0
authored
Deprecate config functions like
* 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]int4_weight_only (#2994)1 parent 067b273 commit 62f62d0
File tree
3 files changed
+103
-14
lines changed- test/quantization
- torchao
- quantization
3 files changed
+103
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| 41 | + | |
| 42 | + | |
40 | 43 | | |
41 | 44 | | |
42 | 45 | | |
| |||
623 | 626 | | |
624 | 627 | | |
625 | 628 | | |
626 | | - | |
627 | | - | |
| 629 | + | |
| 630 | + | |
628 | 631 | | |
629 | 632 | | |
630 | 633 | | |
| |||
755 | 758 | | |
756 | 759 | | |
757 | 760 | | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
758 | 811 | | |
759 | 812 | | |
760 | 813 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| 95 | + | |
95 | 96 | | |
96 | 97 | | |
97 | 98 | | |
| |||
639 | 640 | | |
640 | 641 | | |
641 | 642 | | |
642 | | - | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
643 | 646 | | |
644 | 647 | | |
645 | 648 | | |
| |||
972 | 975 | | |
973 | 976 | | |
974 | 977 | | |
975 | | - | |
| 978 | + | |
| 979 | + | |
| 980 | + | |
976 | 981 | | |
977 | 982 | | |
978 | 983 | | |
| |||
1033 | 1038 | | |
1034 | 1039 | | |
1035 | 1040 | | |
1036 | | - | |
| 1041 | + | |
| 1042 | + | |
| 1043 | + | |
1037 | 1044 | | |
1038 | 1045 | | |
1039 | 1046 | | |
| |||
1115 | 1122 | | |
1116 | 1123 | | |
1117 | 1124 | | |
1118 | | - | |
| 1125 | + | |
1119 | 1126 | | |
1120 | 1127 | | |
1121 | 1128 | | |
| |||
1325 | 1332 | | |
1326 | 1333 | | |
1327 | 1334 | | |
1328 | | - | |
| 1335 | + | |
1329 | 1336 | | |
1330 | 1337 | | |
1331 | 1338 | | |
| |||
1486 | 1493 | | |
1487 | 1494 | | |
1488 | 1495 | | |
1489 | | - | |
| 1496 | + | |
| 1497 | + | |
| 1498 | + | |
1490 | 1499 | | |
1491 | 1500 | | |
1492 | 1501 | | |
| |||
1595 | 1604 | | |
1596 | 1605 | | |
1597 | 1606 | | |
1598 | | - | |
| 1607 | + | |
| 1608 | + | |
| 1609 | + | |
1599 | 1610 | | |
1600 | 1611 | | |
1601 | 1612 | | |
| |||
1753 | 1764 | | |
1754 | 1765 | | |
1755 | 1766 | | |
1756 | | - | |
| 1767 | + | |
| 1768 | + | |
| 1769 | + | |
1757 | 1770 | | |
1758 | 1771 | | |
1759 | 1772 | | |
| |||
1926 | 1939 | | |
1927 | 1940 | | |
1928 | 1941 | | |
1929 | | - | |
| 1942 | + | |
| 1943 | + | |
| 1944 | + | |
1930 | 1945 | | |
1931 | 1946 | | |
1932 | 1947 | | |
| |||
2009 | 2024 | | |
2010 | 2025 | | |
2011 | 2026 | | |
2012 | | - | |
| 2027 | + | |
| 2028 | + | |
| 2029 | + | |
2013 | 2030 | | |
2014 | 2031 | | |
2015 | 2032 | | |
| |||
2262 | 2279 | | |
2263 | 2280 | | |
2264 | 2281 | | |
2265 | | - | |
| 2282 | + | |
2266 | 2283 | | |
2267 | 2284 | | |
2268 | 2285 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
433 | 433 | | |
434 | 434 | | |
435 | 435 | | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
436 | 455 | | |
437 | 456 | | |
438 | 457 | | |
| |||
0 commit comments