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

Quantization related issues #224

Merged
merged 7 commits into from
Jul 17, 2024
Merged

Quantization related issues #224

merged 7 commits into from
Jul 17, 2024

Conversation

clefourrier
Copy link
Member

Fix #200 and #176

@clefourrier clefourrier requested a review from NathanHB July 11, 2024 15:03
if not config.model_parallel and config.quantization_config is None:
# might need to use accelerate instead
# self.model = config.accelerator.prepare(self.model)
if not config.model_parallel and not isinstance(config.quantization_config, BitsAndBytesConfig):
Copy link
Member Author

@clefourrier clefourrier Jul 11, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to enter this if the config provided is a GPTQ config, but not bits and bytes

Copy link
Member

@NathanHB NathanHB left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great ! Has this been tested on quantized models ?

@clefourrier
Copy link
Member Author

Yep, tested it both on GPTQ and bitsandbytes models

@clefourrier clefourrier merged commit 44f9a46 into main Jul 17, 2024
2 checks passed
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.

quantized model not loading
2 participants