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

[Usage]: Loading a model with bitsandbytes quantization with 8bit #8720

Closed
IkhlasAlhussien opened this issue Sep 23, 2024 · 2 comments
Closed
Labels
stale usage How to use vllm

Comments

@IkhlasAlhussien
Copy link

IkhlasAlhussien commented Sep 23, 2024

How can I load a model using bitsandbytes quantization in 8-bit format? I'm currently loading the model with the following code:

model_id = "path/to/model"
llm = LLM(model=model_id, dtype=torch.bfloat16, trust_remote_code=True, \
quantization="bitsandbytes", load_format="bitsandbytes")

This loads the model in 4-bit format, but I can't figure out how to load it in 8-bit. What should I change to load the model in 8-bit instead?

@IkhlasAlhussien IkhlasAlhussien added the usage How to use vllm label Sep 23, 2024
@IkhlasAlhussien IkhlasAlhussien changed the title [Usage]: Loading a model with BitsandBytes quantization with 8bit [Usage]: Loading a model with bitsandbytes quantization with 8bit Sep 23, 2024
Copy link

This issue has been automatically marked as stale because it has not had any activity within 90 days. It will be automatically closed if no further activity occurs within 30 days. Leave a comment if you feel this issue should remain open. Thank you!

@github-actions github-actions bot added the stale label Dec 22, 2024
Copy link

This issue has been automatically closed due to inactivity. Please feel free to reopen if you feel it is still relevant. Thank you!

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale usage How to use vllm
Projects
None yet
Development

No branches or pull requests

1 participant