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