Skip to content

Commit f92e599

Browse files
Update pipeline_cogview4.py (#10944)
1 parent 982f9b3 commit f92e599

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/diffusers/pipelines/cogview4/pipeline_cogview4.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ def _get_glm_embeds(
215215
)
216216
text_input_ids = torch.cat([pad_ids, text_input_ids], dim=1)
217217
prompt_embeds = self.text_encoder(
218-
text_input_ids.to(self.text_encoder.model.device), output_hidden_states=True
218+
text_input_ids.to(self.text_encoder.device), output_hidden_states=True
219219
).hidden_states[-2]
220220

221221
prompt_embeds = prompt_embeds.to(dtype=dtype, device=device)

0 commit comments

Comments
 (0)