transformers
81eb7c3b - Fix AqlmConfig error messages to say "int" instead of "float" (#47089)

Commit
76 days ago
Fix AqlmConfig error messages to say "int" instead of "float" (#47089) * Fix AqlmConfig error messages: int fields say "int", not "float" AqlmConfig.post_init validates that in_group_size, out_group_size, num_codebooks and nbits_per_codebook are ints (`not isinstance(x, int)`), but the raised TypeError messages said each "must be a float". That is misleading: passing a float is exactly what triggers the error, so the message told users to do the very thing that fails. Say "int" instead, and add a regression test. * Update tests/quantization/aqlm_integration/test_aqlm.py * Apply repo consistency fixes --------- Co-authored-by: Matt <Rocketknight1@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Author
Parents
Loading