transformers
5e1fd4e2 - FIX: Broken repr of TorchAoConfig (#34560)

Commit
1 year ago
FIX: Broken repr of TorchAoConfig (#34560) FIX Broken repr of TorchAoConfig The __repr__ method references a non-existent self.kwargs. This is now fixed. There does not appear to be a uniform way of defining __repr__ for quantization configs. I copied the method as implemented for HQQ: https://github.com/huggingface/transformers/blob/e2ac16b28a0b8b900e136750309ca40c49d975c5/src/transformers/utils/quantization_config.py#L285-L287
Parents
Loading