ford442 commited on
Commit
d1d41ee
·
1 Parent(s): 4f618e6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -98,10 +98,9 @@ def load_and_prepare_model(model_id):
98
  torch_dtype=torch.bfloat16,
99
  use_safetensors=True,
100
  add_watermarker=False,
101
- device_map='balanced'
102
  )
103
  pipe.scheduler = EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config)
104
-
105
  if USE_TORCH_COMPILE:
106
  pipe.compile()
107
 
 
98
  torch_dtype=torch.bfloat16,
99
  use_safetensors=True,
100
  add_watermarker=False,
 
101
  )
102
  pipe.scheduler = EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config)
103
+ pipe.to.('cuda')
104
  if USE_TORCH_COMPILE:
105
  pipe.compile()
106