Skip to content

Commit 5321712

Browse files
Add missing isinstance for arg checks in GGUFParameter (huggingface#10834)
1 parent f550745 commit 5321712

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/diffusers/quantizers/gguf/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ def __torch_function__(cls, func, types, args=(), kwargs=None):
418418
# so that we preserve quant_type information
419419
quant_type = None
420420
for arg in args:
421-
if isinstance(arg, list) and (arg[0], GGUFParameter):
421+
if isinstance(arg, list) and isinstance(arg[0], GGUFParameter):
422422
quant_type = arg[0].quant_type
423423
break
424424
if isinstance(arg, GGUFParameter):

0 commit comments

Comments
 (0)