Skip to content

Commit ac6be8a

Browse files
authored
sd: do not force T5 on CPU anymore (LostRuins#1769)
We now have the clip_cpu config parameter for that. Todo: Will make clip cpu on by default
1 parent 4587ccb commit ac6be8a

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

otherarch/sdcpp/stable-diffusion.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -401,17 +401,10 @@ class StableDiffusionGGML {
401401
use_t5xxl = true;
402402
}
403403
if (!clip_on_cpu && !ggml_backend_is_cpu(backend) && use_t5xxl) {
404-
#if 0 // kcpp
405404
LOG_WARN(
406405
"!!!It appears that you are using the T5 model. Some backends may encounter issues with it."
407406
"If you notice that the generated images are completely black,"
408407
"try running the T5 model on the CPU using the --clip-on-cpu parameter.");
409-
#else
410-
if (conditioner_wtype != GGML_TYPE_F32) {
411-
LOG_INFO("CLIP: Forcing CPU backend for T5");
412-
clip_on_cpu = true;
413-
}
414-
#endif
415408
}
416409
if (clip_on_cpu && !ggml_backend_is_cpu(backend)) {
417410
LOG_INFO("CLIP: Using CPU backend");

0 commit comments

Comments
 (0)