FIX: bnb config wrong argument names #1603
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Several tests were using
bnb_4bit_compute_type
but the argument should be calledbnb_4bit_compute_dtype
. Now thecorrect 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 toBitsAndBytesConfig
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.