Spaces:
Paused
Paused
Update skyreelsinfer/skyreels_video_infer.py
Browse files
skyreelsinfer/skyreels_video_infer.py
CHANGED
|
@@ -47,10 +47,10 @@ class SkyReelsVideoSingleGpuInfer:
|
|
| 47 |
device="cpu",
|
| 48 |
).to("cpu")
|
| 49 |
if quant_model:
|
| 50 |
-
quantize_(text_encoder, float8_weight_only(), device=
|
| 51 |
text_encoder.to("cpu")
|
| 52 |
torch.cuda.empty_cache()
|
| 53 |
-
quantize_(transformer, float8_weight_only(), device=
|
| 54 |
transformer.to("cpu")
|
| 55 |
torch.cuda.empty_cache()
|
| 56 |
pipe = SkyreelsVideoPipeline.from_pretrained(
|
|
|
|
| 47 |
device="cpu",
|
| 48 |
).to("cpu")
|
| 49 |
if quant_model:
|
| 50 |
+
quantize_(text_encoder, float8_weight_only(), device="cpu")
|
| 51 |
text_encoder.to("cpu")
|
| 52 |
torch.cuda.empty_cache()
|
| 53 |
+
quantize_(transformer, float8_weight_only(), device="cpu")
|
| 54 |
transformer.to("cpu")
|
| 55 |
torch.cuda.empty_cache()
|
| 56 |
pipe = SkyreelsVideoPipeline.from_pretrained(
|