mirror of
https://github.com/ostris/ai-toolkit.git
synced 2026-01-26 16:39:47 +00:00
Small double tap of detach on qwen just for good measure
This commit is contained in:
@@ -284,11 +284,11 @@ class QwenImageModel(BaseModel):
|
||||
txt_seq_lens = prompt_embeds_mask.sum(dim=1).tolist()
|
||||
|
||||
noise_pred = self.transformer(
|
||||
hidden_states=latent_model_input.to(self.device_torch, self.torch_dtype),
|
||||
timestep=timestep / 1000,
|
||||
hidden_states=latent_model_input.to(self.device_torch, self.torch_dtype).detach(),
|
||||
timestep=(timestep / 1000).detach(),
|
||||
guidance=None,
|
||||
encoder_hidden_states=enc_hs,
|
||||
encoder_hidden_states_mask=prompt_embeds_mask,
|
||||
encoder_hidden_states=enc_hs.detach(),
|
||||
encoder_hidden_states_mask=prompt_embeds_mask.detach(),
|
||||
img_shapes=img_shapes,
|
||||
txt_seq_lens=txt_seq_lens,
|
||||
return_dict=False,
|
||||
|
||||
Reference in New Issue
Block a user