feat: reduce CLIP memory usage with no embeddings (#768)

This commit is contained in:
Wagner Bruna
2025-09-14 01:08:00 -03:00
committed by GitHub
parent ddc4a18b92
commit 48956ffb87
3 changed files with 53 additions and 76 deletions

View File

@@ -373,7 +373,6 @@ public:
cond_stage_model = std::make_shared<T5CLIPEmbedder>(clip_backend,
offload_params_to_cpu,
model_loader.tensor_storages_types,
-1,
sd_ctx_params->chroma_use_t5_mask,
sd_ctx_params->chroma_t5_mask_pad);
} else {
@@ -391,7 +390,6 @@ public:
cond_stage_model = std::make_shared<T5CLIPEmbedder>(clip_backend,
offload_params_to_cpu,
model_loader.tensor_storages_types,
-1,
true,
1,
true);