Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
renzhc
diffusers_dcu
Commits
53217126
Unverified
Commit
53217126
authored
Feb 19, 2025
by
AstraliteHeart
Committed by
GitHub
Feb 20, 2025
Browse files
Add missing `isinstance` for arg checks in GGUFParameter (#10834)
parent
f550745a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/diffusers/quantizers/gguf/utils.py
src/diffusers/quantizers/gguf/utils.py
+1
-1
No files found.
src/diffusers/quantizers/gguf/utils.py
View file @
53217126
...
...
@@ -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
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment