Skip to content

Commit cfda21b

Browse files
authored
Merge branch 'main' into tests-encode-prompt
2 parents 9d39ab2 + 5321712 commit cfda21b

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)