1inkusFace commited on
Commit
b70627f
·
verified ·
1 Parent(s): 2f64522

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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("cpu").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,
 
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,