Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -61,8 +61,8 @@ def init_predictor():
|
|
61 |
model_id,
|
62 |
# subfolder="transformer",
|
63 |
torch_dtype=torch.bfloat16,
|
64 |
-
device="
|
65 |
-
).to("
|
66 |
quantize_(text_encoder, float8_weight_only(), device="cpu")
|
67 |
text_encoder.to("cpu")
|
68 |
torch.cuda.empty_cache()
|
|
|
61 |
model_id,
|
62 |
# subfolder="transformer",
|
63 |
torch_dtype=torch.bfloat16,
|
64 |
+
device="cuda",
|
65 |
+
).to("cuda").eval()
|
66 |
quantize_(text_encoder, float8_weight_only(), device="cpu")
|
67 |
text_encoder.to("cpu")
|
68 |
torch.cuda.empty_cache()
|