Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -70,6 +70,8 @@ def encode_prompt(prompt_batch, text_encoder, tokenizer, proportion_empty_prompt
|
|
70 |
truncation=True,
|
71 |
return_tensors="pt",
|
72 |
)
|
|
|
|
|
73 |
|
74 |
print(f"Text Encoder Device: {text_encoder.device}")
|
75 |
text_input_ids = text_inputs.input_ids.cuda()
|
|
|
70 |
truncation=True,
|
71 |
return_tensors="pt",
|
72 |
)
|
73 |
+
for name, param in text_encoder.named_parameters():
|
74 |
+
print(name, param.device)
|
75 |
|
76 |
print(f"Text Encoder Device: {text_encoder.device}")
|
77 |
text_input_ids = text_inputs.input_ids.cuda()
|