Skip to content

Commit

Permalink
fix error message
Browse files Browse the repository at this point in the history
  • Loading branch information
eljandoubi committed Oct 22, 2024
1 parent 825e8bf commit d25bb29
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/accelerate/utils/dataclasses.py
Original file line number Diff line number Diff line change
Expand Up @@ -2451,10 +2451,10 @@ def __post_init__(self):
raise ValueError("load_in_4bit must be a boolean")

if self.load_in_4bit and self.load_in_8bit:
raise ValueError("load_in_4bit and load_in_8 can't be both True")
raise ValueError("load_in_4bit and load_in_8bit can't be both True")

if not self.load_in_4bit and not self.load_in_8bit:
raise ValueError("load_in_4bit and load_in_8 can't be both False")
raise ValueError("load_in_4bit and load_in_8bit can't be both False")

if not isinstance(self.llm_int8_threshold, (int, float)):
raise ValueError("llm_int8_threshold must be a float or an int")
Expand Down

0 comments on commit d25bb29

Please sign in to comment.