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 6448430 commit aa44e06Copy full SHA for aa44e06
stable-diffusion.cpp
@@ -336,10 +336,14 @@ class StableDiffusionGGML {
336
337
if (sd_ctx_params->lora_apply_mode == LORA_APPLY_AUTO) {
338
bool have_quantized_weight = false;
339
- for (const auto& [type, _] : wtype_stat) {
340
- if (ggml_is_quantized(type)) {
341
- have_quantized_weight = true;
342
- break;
+ if (wtype != GGML_TYPE_COUNT && ggml_is_quantized(wtype)) {
+ have_quantized_weight = true;
+ } else {
+ for (const auto& [type, _] : wtype_stat) {
343
+ if (ggml_is_quantized(type)) {
344
345
+ break;
346
+ }
347
}
348
349
if (have_quantized_weight) {
0 commit comments