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

support gguf_q4k_m / gguf_q4k_s #10887

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

rnwang04
Copy link
Contributor

@rnwang04 rnwang04 commented Apr 25, 2024

Description

1. Why the change?

https://github.com/analytics-zoo/nano/issues/1316#issuecomment-2076658639

2. User API changes

  model = AutoModelForCausalLM.from_pretrained(model_path,
                                               load_in_low_bit='gguf_q4k_m',
                                               optimize_model=True,
                                               torch_dtype=torch.float16,
                                               trust_remote_code=True,
                                               use_cache=True)
  model = AutoModelForCausalLM.from_pretrained(model_path,
                                               load_in_low_bit='gguf_q4k_s',
                                               optimize_model=True,
                                               torch_dtype=torch.float16,
                                               trust_remote_code=True,
                                               use_cache=True)

3. Summary of the change

  • add q5k precision
  • add gguf_q4k_m / gguf_q4k_s

4. How to test?

@rnwang04 rnwang04 marked this pull request as draft April 25, 2024 10:30
@rnwang04 rnwang04 marked this pull request as ready for review April 25, 2024 11:40
@rnwang04 rnwang04 changed the title support gguf_q4k_m support gguf_q4k_m / gguf_q4k_s Apr 26, 2024
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.

None yet

1 participant