Skip to content

Upload GPTQ Quantized models in 4-bit precision format for different bin-sizes to Huggingface #2

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

Open
7 tasks
Ayushk4 opened this issue Mar 19, 2023 · 2 comments

Comments

@Ayushk4
Copy link
Member

Ayushk4 commented Mar 19, 2023

  • GPTJ
  • BLOOM
  • GPT-NeoX
  • Pythia Series
  • Open-Assistant
  • Codegen
  • OPT & Galactica
    ...
@Ayushk4 Ayushk4 changed the title GPTQ Quantize models and Upload to Huggingface Quantize the models using GPTQ and Upload in 4-bit precision format to Huggingface Mar 19, 2023
@MarkSchmidty
Copy link

MarkSchmidty commented Mar 20, 2023

Per Int-4 LLaMa is not enough - Int-3 and beyond binning with a bin size of 128 appears to reduce most of the remaining output quality loss of GPTQ for models larger than ~10B while only negligably effecting the memory requirement.

GPTQ-for-LLaMa, one of the first GPTQ projects, is already moving towards 3bit with binning being the new default.

Given that memory bandwidth is the major bottleneck on CPU, fewer bits means faster inference. For models large enough (~10B+) 3bit GPTQ with binning may be the way to go.

@Ayushk4 Ayushk4 changed the title Quantize the models using GPTQ and Upload in 4-bit precision format to Huggingface Upload GPTQ Quantized models in 4-bit precision format for different bin-sizes to Huggingface Mar 20, 2023
@Ayushk4
Copy link
Member Author

Ayushk4 commented Mar 20, 2023

Thanks for the suggestion @MarkSchmidty . I am opening a separate issue (#12) as this will require new C/CPP kernels to be added as well.

In short Int-4 LLaMa is not enough study assumed that only weight was being quantized, not intermediate representations. We need to either add new kernels or do another study of the performance drop.

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