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

FIX: bnb config wrong argument names #1603

Conversation

BenjaminBossan
Copy link
Member

Several tests were using bnb_4bit_compute_type but the argument should be called bnb_4bit_compute_dtype. Now the
correct name is used.

This change should not affect the tests, because they were passing the default value anyway. Therefore, the fact that this argument was passed incorrectly (and thus, presumably, ignored) should not affect the results.

Also, in some tests quantization_config=BitsAndBytesConfig(load_in_4bit=True) was passed as argument to BitsAndBytesConfig due to an overeager search and replace in #1552. Fixing those changes the test outcome but locally they still passed for me.

It is a bit unfortunate that this sort of typo passes completely silently.

Several tests were using bnb_4bit_compute_type but the argument should
be called bnb_4bit_compute_dtype. Now the correct name is used.

This change should not affect the tests, because they were passing the
default value anyway. Therefore, the fact that this argument was passed
incorrectly (and thus, presumably, ignored) should not affect the
results.

It is a bit unfortunate that this sort of typo passes completely silently.
These were caused by an incorrect search and replace operation in huggingface#1552.
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

Copy link
Contributor

@younesbelkada younesbelkada left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing the wrong argument names for bnb !

@BenjaminBossan BenjaminBossan merged commit 16ec3f9 into huggingface:main Apr 5, 2024
14 checks passed
@BenjaminBossan BenjaminBossan deleted the fix-bnb-config-wrong-argument-name branch April 5, 2024 10:26
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.

3 participants