Prgckwb commited on
Commit
750ec07
1 Parent(s): 5244e66

:tada: add negative embedding

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -33,7 +33,7 @@ if device == 'cuda':
33
  current_model_id,
34
  torch_dtype=dtype,
35
  )
36
- pipe.enable_sequential_cpu_offload()
37
 
38
 
39
  @dataclasses.dataclass
@@ -102,7 +102,7 @@ def inference(
102
  model_id,
103
  torch_dtype=dtype,
104
  )
105
- pipe.enable_sequential_cpu_offload()
106
 
107
  current_model_id = model_id
108
 
 
33
  current_model_id,
34
  torch_dtype=dtype,
35
  )
36
+ pipe.enable_model_cpu_offload()
37
 
38
 
39
  @dataclasses.dataclass
 
102
  model_id,
103
  torch_dtype=dtype,
104
  )
105
+ pipe.enable_model_cpu_offload()
106
 
107
  current_model_id = model_id
108