You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] _hide_unsupported_quantization_config_for_eval no longer hides a GGUF quantization_config on transformers 5.23 #6366
tests/test_model.py::test_hide_unsupported_quantization_config_for_eval_temporarily_clears_gguf_bits is red on main at be148244 and already red at 89dbcf91. _hide_unsupported_quantization_config_for_eval() no longer hides a GGUF quantization_config, because transformers.quantizers.AutoQuantizationConfig.from_dict() accepts it on transformers 5.23.
test_model.py:693: in test_hide_unsupported_quantization_config_for_eval_temporarily_clears_gguf_bits
assert model.config.quantization_config is None
E AssertionError: assert {'quant_method': 'gguf', 'format': 'gguf', 'bits': 'q4_k_m'} is None
Root cause
gptqmodel/models/auto.py:568:
try:
fromtransformers.quantizersimportAutoQuantizationConfigAutoQuantizationConfig.from_dict(dict(quantization_config))
exceptException:
passelse:
yield# <-- assumes transformers can evaluate this configreturnsetattr(config, "quantization_config", None)
For {"quant_method": "gguf", "format": "gguf", "bits": "q4_k_m"}, transformers 5.23 constructs an AutoQuantizationConfig, so the helper concludes the config is supported and leaves it set. The test (and the helper's docstring contract) says GGUF is not evaluable and must be hidden for the duration of eval.
Classification: pre-existing product bug (also red at 89dbcf91), not merge-wave induced.
Activity
fix(models): correct phi4 package metadata and drop dead GGUF eval hi…