From cf86f4f0a445225b36cfaff801fbcb5880cf147d Mon Sep 17 00:00:00 2001 From: kijai <40791699+kijai@users.noreply.github.com> Date: Thu, 6 Nov 2025 21:01:03 +0200 Subject: [PATCH] Update model.py --- wanvideo/modules/model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wanvideo/modules/model.py b/wanvideo/modules/model.py index af74804..7a7c916 100644 --- a/wanvideo/modules/model.py +++ b/wanvideo/modules/model.py @@ -2605,7 +2605,7 @@ class WanModel(torch.nn.Module): if add_text_emb is not None: self.text_projection.to(self.main_device) add_text_emb = self.text_projection(add_text_emb.to(self.text_projection[0].weight.dtype)).to(text_embed_dtype) - context = torch.cat([context, add_text_emb], dim=1) + context = torch.cat([add_text_emb, context], dim=1) context = self.text_embedding(context) if self.is_longcat: