We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a2bc0d commit 1d53e2fCopy full SHA for 1d53e2f
ai_diffusion/client.py
@@ -107,7 +107,7 @@ class Quantization(Enum):
107
def from_string(s: str, filename: str | None = None):
108
if s == "svdq":
109
return Quantization.svdq
110
- elif "qwen" in filename and "svdq" in filename:
+ elif filename and "qwen" in filename and "svdq" in filename:
111
112
else:
113
return Quantization.none
0 commit comments