Add extra detachments just to be sure on qiep

This commit is contained in:
Jaret Burkett
2025-09-27 08:53:59 -06:00
parent be990630b9
commit 6da417261c

View File

@@ -290,11 +290,11 @@ class QwenImageEditPlusModel(QwenImageModel):
) )
noise_pred = self.transformer( noise_pred = self.transformer(
hidden_states=latent_model_input.to(self.device_torch, self.torch_dtype), hidden_states=latent_model_input.to(self.device_torch, self.torch_dtype).detach(),
timestep=timestep / 1000, timestep=(timestep / 1000).detach(),
guidance=None, guidance=None,
encoder_hidden_states=enc_hs, encoder_hidden_states=enc_hs.detach(),
encoder_hidden_states_mask=prompt_embeds_mask, encoder_hidden_states_mask=prompt_embeds_mask.detach(),
img_shapes=img_shapes, img_shapes=img_shapes,
txt_seq_lens=txt_seq_lens, txt_seq_lens=txt_seq_lens,
return_dict=False, return_dict=False,