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

4 bit quantization support #260

Open
bil-ash opened this issue Oct 6, 2024 · 1 comment
Open

4 bit quantization support #260

bil-ash opened this issue Oct 6, 2024 · 1 comment

Comments

@bil-ash
Copy link

bil-ash commented Oct 6, 2024

I would like to use this library for in-browser web ml inference because with the upcoming CPU support it is better than

  1. ggml.cpp(llama.cpp/whisper.cpp) - as it supports both CPU and GPU and can use GPU on devices where WebGPU is available thereby providing better performance
  2. web-llm(which is WEBGPU only) - as it (will) have a CPU backend thereby allowing inference on devices where WEBGPU is not supported(many android browsers)
  3. onnx - it is ligter than onnx

However, all 3 of them support 4 bit quantization whereas (apparently) ratchet only supports 8 bit quantization. 4-bit quantization is very much required because without that, it is impossible to run whisper-v3-turbo and llama-3.2-1b on browser with limited RAM. So, please support 4bit quantization soon.

@FL33TW00D
Copy link
Collaborator

Hey @bil-ash,
Thanks for raising these points.

We have done some work on 4 bit quantization here, but it's not completed.

CPU + 4 bit are very important to us, stay tuned.

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