1inkusFace commited on
Commit
206d706
·
verified ·
1 Parent(s): b10662a

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=gpu_device)
51
  text_encoder.to("cpu")
52
  torch.cuda.empty_cache()
53
- quantize_(transformer, float8_weight_only(), device=gpu_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(