We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ed3074 commit 51fcd62Copy full SHA for 51fcd62
stable-diffusion.cpp
@@ -329,8 +329,12 @@ class StableDiffusionGGML {
329
clip_backend = backend;
330
bool use_t5xxl = false;
331
if (sd_version_is_dit(version)) {
332
- // TODO: check if t5 is actually loaded?
333
- use_t5xxl = true;
+ for (auto pair : model_loader.tensor_storages_types) {
+ if (pair.first.find("text_encoders.t5xxl") != std::string::npos) {
334
+ use_t5xxl = true;
335
+ break;
336
+ }
337
338
}
339
if (!ggml_backend_is_cpu(backend) && use_t5xxl && conditioner_wtype != GGML_TYPE_F32) {
340
clip_on_cpu = true;
0 commit comments