Skip to content

Commit b017918

Browse files
authored
chore: remove sd3 flash attention warn (#812)
1 parent ac5a215 commit b017918

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

stable-diffusion.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -344,9 +344,6 @@ class StableDiffusionGGML {
344344
LOG_INFO("Using flash attention in the diffusion model");
345345
}
346346
if (sd_version_is_sd3(version)) {
347-
if (sd_ctx_params->diffusion_flash_attn) {
348-
LOG_WARN("flash attention in this diffusion model is currently not implemented!");
349-
}
350347
cond_stage_model = std::make_shared<SD3CLIPEmbedder>(clip_backend,
351348
offload_params_to_cpu,
352349
model_loader.tensor_storages_types);
@@ -1555,7 +1552,7 @@ enum scheduler_t str_to_schedule(const char* str) {
15551552
}
15561553

15571554
void sd_ctx_params_init(sd_ctx_params_t* sd_ctx_params) {
1558-
*sd_ctx_params = {};
1555+
*sd_ctx_params = {};
15591556
sd_ctx_params->vae_decode_only = true;
15601557
sd_ctx_params->vae_tiling = false;
15611558
sd_ctx_params->free_params_immediately = true;
@@ -1639,7 +1636,7 @@ char* sd_ctx_params_to_str(const sd_ctx_params_t* sd_ctx_params) {
16391636
}
16401637

16411638
void sd_sample_params_init(sd_sample_params_t* sample_params) {
1642-
*sample_params = {};
1639+
*sample_params = {};
16431640
sample_params->guidance.txt_cfg = 7.0f;
16441641
sample_params->guidance.img_cfg = INFINITY;
16451642
sample_params->guidance.distilled_guidance = 3.5f;

0 commit comments

Comments
 (0)