mirror of
https://github.com/saymrwulf/transformers.git
synced 2026-05-14 20:58:08 +00:00
fix style
This commit is contained in:
parent
93fb98d927
commit
f2c402aa49
1 changed files with 1 additions and 3 deletions
|
|
@ -985,9 +985,7 @@ class AqlmConfig(QuantizationConfigMixin):
|
|||
if not isinstance(self.nbits_per_codebook, int):
|
||||
raise TypeError("nbits_per_codebook must be a float")
|
||||
|
||||
if self.modules_to_not_convert is not None and not isinstance(
|
||||
self.modules_to_not_convert, list
|
||||
):
|
||||
if self.modules_to_not_convert is not None and not isinstance(self.modules_to_not_convert, list):
|
||||
raise ValueError("modules_to_not_convert must be a list of strings")
|
||||
|
||||
if self.modules_to_not_convert is None:
|
||||
|
|
|
|||
Loading…
Reference in a new issue