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
This seems to be an edge case with BitsAndBytes and no weights integration (no_weights=true + quantization_scheme=bnb).
TLDR; It will work as intended
Basically when trying to create a no weights model, for AWQ and GPTQ we add the quant config to the model's pretrained config so that the dummy (no weights) model gets loaded in its quantized format. However this is not necessary for BnB models as they're quantized on the fly during model loading, the warning is shown because bnb pre-quantized models (saved in quantized format) don't expect any quantization config rewriting.
If you want to avoid this warning, please consider submitting a PR to change the condition here to only include awq and gptq 🤗
Hello,
I'm running base mistral and using bnb to quantize as below:
I get this error about the model already having a quantization config. Is this expected behaviour?
Is there a mistake in how I'm passing the quantization config in the pytorch backend?
The text was updated successfully, but these errors were encountered: