From 1c301543bba150864636cc9afaf55ced761dc9bc Mon Sep 17 00:00:00 2001 From: Wagner Bruna Date: Thu, 7 Aug 2025 11:12:52 -0300 Subject: [PATCH] cleanup: do not force VAE type to f32 on SDXL This seems to be a leftover from the initial SDXL support: it's not enough to avoid NaN issues, and it's not not needed for the fixed sdxl-vae-fp16-fix . --- stable-diffusion.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/stable-diffusion.cpp b/stable-diffusion.cpp index c5448f92..1a36bb5b 100644 --- a/stable-diffusion.cpp +++ b/stable-diffusion.cpp @@ -269,11 +269,6 @@ class StableDiffusionGGML { model_loader.set_wtype_override(wtype); } - if (sd_version_is_sdxl(version)) { - vae_wtype = GGML_TYPE_F32; - model_loader.set_wtype_override(GGML_TYPE_F32, "vae."); - } - LOG_INFO("Weight type: %s", model_wtype != GGML_TYPE_COUNT ? ggml_type_name(model_wtype) : "??"); LOG_INFO("Conditioner weight type: %s", conditioner_wtype != GGML_TYPE_COUNT ? ggml_type_name(conditioner_wtype) : "??"); LOG_INFO("Diffusion model weight type: %s", diffusion_model_wtype != GGML_TYPE_COUNT ? ggml_type_name(diffusion_model_wtype) : "??");