Unverified Commit 53217126 authored by AstraliteHeart's avatar AstraliteHeart Committed by GitHub
Browse files

Add missing `isinstance` for arg checks in GGUFParameter (#10834)

parent f550745a
......@@ -418,7 +418,7 @@ class GGUFParameter(torch.nn.Parameter):
# so that we preserve quant_type information
quant_type = None
for arg in args:
if isinstance(arg, list) and (arg[0], GGUFParameter):
if isinstance(arg, list) and isinstance(arg[0], GGUFParameter):
quant_type = arg[0].quant_type
break
if isinstance(arg, GGUFParameter):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment