Commit 0596713
authored
Fix float8 + int4 QAT (#2851)
**Summary:** After #2779,
`Float8DynamicActivationInt4Weight` no longer has the `group_size`
field, but QAT continues to read from this field. This commit
fixes it to just use the fixed 128 group size.
**Test Plan:**
```
python test/quantization/test_qat.py -k test_infer_fp8_int4_config
```1 parent 253d65a commit 0596713
File tree
2 files changed
+21
-1
lines changed- test/quantization
- torchao/quantization/qat
2 files changed
+21
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1932 | 1932 | | |
1933 | 1933 | | |
1934 | 1934 | | |
| 1935 | + | |
| 1936 | + | |
| 1937 | + | |
| 1938 | + | |
| 1939 | + | |
| 1940 | + | |
| 1941 | + | |
| 1942 | + | |
| 1943 | + | |
| 1944 | + | |
| 1945 | + | |
| 1946 | + | |
| 1947 | + | |
| 1948 | + | |
| 1949 | + | |
| 1950 | + | |
| 1951 | + | |
| 1952 | + | |
| 1953 | + | |
| 1954 | + | |
1935 | 1955 | | |
1936 | 1956 | | |
1937 | 1957 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
382 | 382 | | |
383 | 383 | | |
384 | 384 | | |
385 | | - | |
| 385 | + | |
386 | 386 | | |
387 | 387 | | |
388 | 388 | | |
| |||
0 commit comments