redkits commited on
Commit
6e9d2f8
·
verified ·
1 Parent(s): 8633cca

Upload server.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. server.py +2 -2
server.py CHANGED
@@ -29,8 +29,8 @@ def load_model():
29
  vae=vae,
30
  torch_dtype=torch.bfloat16,
31
  )
32
- pipe.to("cuda")
33
- print("[video] Model loaded successfully!", flush=True)
34
 
35
  @app.route("/health", methods=["GET"])
36
  def health():
 
29
  vae=vae,
30
  torch_dtype=torch.bfloat16,
31
  )
32
+ pipe.enable_model_cpu_offload()
33
+ print("[video] Model loaded with CPU offload!", flush=True)
34
 
35
  @app.route("/health", methods=["GET"])
36
  def health():