Skip to content

Commit

Permalink
[bnb] Fix bnb slow tests (huggingface#28788)
Browse files Browse the repository at this point in the history
fix bnb slow tests
  • Loading branch information
younesbelkada authored Jan 31, 2024
1 parent 74c9cfe commit d703eaa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/transformers/utils/quantization_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,8 @@ def to_dict(self) -> Dict[str, Any]:
"""
output = copy.deepcopy(self.__dict__)
output["bnb_4bit_compute_dtype"] = str(output["bnb_4bit_compute_dtype"]).split(".")[1]
output["load_in_4bit"] = self.load_in_4bit
output["load_in_8bit"] = self.load_in_8bit

return output

Expand Down

0 comments on commit d703eaa

Please sign in to comment.