fix: do not force VAE type to f32 on SDXL (#716)

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 .
This commit is contained in:
Wagner Bruna 2025-09-14 01:19:59 -03:00 committed by GitHub
parent 5869987fe4
commit b54bec3f18
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -295,11 +295,6 @@ public:
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));