X Tutup
Skip to content

Fix error message in gguf_quantizer.py#13236

Open
eliemichel wants to merge 1 commit intohuggingface:mainfrom
eliemichel:patch-1
Open

Fix error message in gguf_quantizer.py#13236
eliemichel wants to merge 1 commit intohuggingface:mainfrom
eliemichel:patch-1

Conversation

@eliemichel
Copy link

What does this PR do?

I believe that the error message was wrong, since the shapes mentionned did not match the test trigering the error. I think that there is also an ambiguity on what is meant by "quantized" shape: the value returned by the function _quant_shape_from_byte_shape() is used in dequantize_gguf_tensor() as the shape of the dequantized tensor, but the name of _quant_shape_from_byte_shape() suggests that what it returns is the shape of the quantized tensor. I found it safer to remove the term "quantized" from the error message.

Before submitting

  • This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).

Who can review?

@stevhliu @sayakpaul @DN6

@sayakpaul sayakpaul requested a review from DN6 March 10, 2026 02:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

X Tutup