Spaces:
Sleeping
Sleeping
:tada: add negative embedding
Browse files
app.py
CHANGED
@@ -33,7 +33,7 @@ if device == 'cuda':
|
|
33 |
current_model_id,
|
34 |
torch_dtype=dtype,
|
35 |
)
|
36 |
-
pipe.
|
37 |
|
38 |
|
39 |
@dataclasses.dataclass
|
@@ -102,7 +102,7 @@ def inference(
|
|
102 |
model_id,
|
103 |
torch_dtype=dtype,
|
104 |
)
|
105 |
-
pipe.
|
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 |
|