dmingod commited on
Commit
b54826a
·
1 Parent(s): 3280a05
Files changed (1) hide show
  1. handler.py +1 -2
handler.py CHANGED
@@ -12,8 +12,7 @@ from diffusers.utils import load_image
12
  class EndpointHandler():
13
  def __init__(self, path=""):
14
  self.pipe = StableDiffusionXLImg2ImgPipeline.from_pretrained("stabilityai/sdxl-turbo", torch_dtype=torch.float16, variant="fp16")
15
- self.pipe.to("cuda")
16
- self.pipe.unet = torch.compile(self.pipe.unet, mode="reduce-overhead", fullgraph=True)
17
  self.pipe.upcast_vae()
18
 
19
 
 
12
  class EndpointHandler():
13
  def __init__(self, path=""):
14
  self.pipe = StableDiffusionXLImg2ImgPipeline.from_pretrained("stabilityai/sdxl-turbo", torch_dtype=torch.float16, variant="fp16")
15
+ self.pipe.to("cuda")
 
16
  self.pipe.upcast_vae()
17
 
18