skroed commited on
Commit
ff2924b
·
1 Parent(s): b46ce34

Fix: to cuda later.

Browse files
Files changed (1) hide show
  1. handler.py +2 -1
handler.py CHANGED
@@ -9,7 +9,8 @@ class EndpointHandler:
9
  # load model and processor from path
10
  self.pipeline = AudioLDM2Pipeline.from_pretrained(
11
  "cvssp/audioldm2-music", torch_dtype=torch.float16
12
- ).to("cuda")
 
13
  self.pipeline.unet = torch.compile(
14
  self.pipeline.unet, mode="reduce-overhead", fullgraph=True
15
  )
 
9
  # load model and processor from path
10
  self.pipeline = AudioLDM2Pipeline.from_pretrained(
11
  "cvssp/audioldm2-music", torch_dtype=torch.float16
12
+ )
13
+ self.pipeline.to("cuda")
14
  self.pipeline.unet = torch.compile(
15
  self.pipeline.unet, mode="reduce-overhead", fullgraph=True
16
  )