From 4943ec9b4c2ea6b6f18112d06d8e19b23ccf9ff8 Mon Sep 17 00:00:00 2001 From: Wagner Bruna Date: Tue, 9 Sep 2025 15:18:47 -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 17804c11b..4ba2b0582 100644 --- a/stable-diffusion.cpp +++ b/stable-diffusion.cpp @@ -292,11 +292,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", ggml_type_name(model_wtype)); LOG_INFO("Conditioner weight type: %s", ggml_type_name(conditioner_wtype)); LOG_INFO("Diffusion model weight type: %s", ggml_type_name(diffusion_model_wtype));