Skip to content

Commit 93030e7

Browse files
authored
Enable using HF PARQ checkpoints in torchao (#2985)
up
1 parent 011027c commit 93030e7

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

torchao/core/config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@ def config_to_dict(config: AOBaseConfig) -> Dict[str, Any]:
193193
"torchao.sparsity.sparse_api",
194194
"torchao.prototype.quantization",
195195
"torchao.prototype.mx_formats",
196+
"torchao.prototype.parq",
196197
"torchao.dtypes",
197198
"torchao.prototype.awq",
198199
"torchao.quantization.quantize_.common",

torchao/prototype/parq/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,8 @@
2020
UnifQuantizer,
2121
UnifTorchaoQuantizer,
2222
)
23+
from .quant.config_torchao import StretchedIntxWeightConfig
24+
25+
__all__ = [
26+
"StretchedIntxWeightConfig",
27+
]

0 commit comments

Comments
 (0)