-
Notifications
You must be signed in to change notification settings - Fork 108
Enabled BnB NF4 inference on Gaudi #1457
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
base: habana_main
Are you sure you want to change the base?
Conversation
2cc1fdb
to
aac9d3f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we also modify CI file to add the 2 tests that are passing?
models_pre_quant_4bit_to_test = [("hugging-quants/Meta-Llama-3.1-8B-BNB-NF4", | ||
"read_pre-quantized_4-bit_NF4_opt_model")] | ||
|
||
models_pre_quant_8bit_to_test = [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since we are not testing for 8-bit quant support for now, therefore we can remove these lines.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
addressed
model_name, True) | ||
|
||
|
||
@pytest.mark.skipif(torch.cuda.device_count() < 2, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this work for Gaudi?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
addressed
) | ||
|
||
|
||
@pytest.mark.skipif(torch.cuda.device_count() < 2, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this work for Gaudi?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
addressed
This PR adds inference tests for bitsandbytes NF4 quantization on Gaudi, supporting both pre-quantized models and models that are quantized at runtime.