From ac6be8ab8ce38d9f7db725b122a384ba715473e5 Mon Sep 17 00:00:00 2001 From: Wagner Bruna Date: Wed, 1 Oct 2025 23:48:16 -0300 Subject: [PATCH] sd: do not force T5 on CPU anymore (#1769) We now have the clip_cpu config parameter for that. Todo: Will make clip cpu on by default --- otherarch/sdcpp/stable-diffusion.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/otherarch/sdcpp/stable-diffusion.cpp b/otherarch/sdcpp/stable-diffusion.cpp index 0fb3e9f5e..997b8a02d 100644 --- a/otherarch/sdcpp/stable-diffusion.cpp +++ b/otherarch/sdcpp/stable-diffusion.cpp @@ -401,17 +401,10 @@ public: use_t5xxl = true; } if (!clip_on_cpu && !ggml_backend_is_cpu(backend) && use_t5xxl) { - #if 0 // kcpp LOG_WARN( "!!!It appears that you are using the T5 model. Some backends may encounter issues with it." "If you notice that the generated images are completely black," "try running the T5 model on the CPU using the --clip-on-cpu parameter."); - #else - if (conditioner_wtype != GGML_TYPE_F32) { - LOG_INFO("CLIP: Forcing CPU backend for T5"); - clip_on_cpu = true; - } - #endif } if (clip_on_cpu && !ggml_backend_is_cpu(backend)) { LOG_INFO("CLIP: Using CPU backend");