Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Training the model throws an error after quantization #112

Open
dingtine opened this issue Jul 28, 2024 · 1 comment
Open

Training the model throws an error after quantization #112

dingtine opened this issue Jul 28, 2024 · 1 comment

Comments

@dingtine
Copy link

When I use 8-bit quantization in the pre-training process, the code throws an error.

You cannot perform fine-tuning on purely quantized models. Please attach trainable adapters on top of the quantized model to correctly perform fine-tuning. Please see: https://huggingface.co/docs/transformers/peft for more details

@ababam
Copy link

ababam commented Aug 8, 2024

I delete model = model.merge_and_unload(), then everything is fine.

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

No branches or pull requests

2 participants