modify style

Former-commit-id: 3bffc1e1b8bcc4582cebea06d35e5146163c7bec
This commit is contained in:
BUAADreamer
2024-04-25 21:27:48 +08:00
parent c425436676
commit 110c2ce2a5
5 changed files with 2 additions and 217 deletions

View File

@@ -188,18 +188,8 @@ class ModelArguments:
if self.new_special_tokens is not None: # support multiple special tokens
self.new_special_tokens = [token.strip() for token in self.new_special_tokens.split(",")]
assert self.quantization_bit in [
None,
8,
4,
], "We only accept 4-bit or 8-bit quantization."
assert self.export_quantization_bit in [
None,
8,
4,
3,
2,
], "We only accept 2/3/4/8-bit quantization."
assert self.quantization_bit in [None, 8, 4], "We only accept 4-bit or 8-bit quantization."
assert self.export_quantization_bit in [None, 8, 4, 3, 2], "We only accept 2/3/4/8-bit quantization."
if self.export_quantization_bit is not None and self.export_quantization_dataset is None:
raise ValueError("Quantization dataset is necessary for exporting.")