redkits commited on
Commit
32c534e
·
verified ·
1 Parent(s): b08d00c

Upload server.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. server.py +2 -2
server.py CHANGED
@@ -49,8 +49,8 @@ def load_model():
49
  pipe.scheduler = UniPCMultistepScheduler.from_config(
50
  pipe.scheduler.config, flow_shift=8.0
51
  )
52
- pipe.enable_model_cpu_offload()
53
- print("[video-long] Model loaded with CPU offload!", flush=True)
54
 
55
  @app.route("/health", methods=["GET"])
56
  def health():
 
49
  pipe.scheduler = UniPCMultistepScheduler.from_config(
50
  pipe.scheduler.config, flow_shift=8.0
51
  )
52
+ pipe.to("cuda")
53
+ print("[video-long] Model loaded on CUDA!", flush=True)
54
 
55
  @app.route("/health", methods=["GET"])
56
  def health():