Update app.py
Browse files
app.py
CHANGED
@@ -42,8 +42,7 @@ pipe.load_lora_weights(
|
|
42 |
weight_name="40kHalf.safetensors"
|
43 |
)
|
44 |
|
45 |
-
#
|
46 |
-
pipe.enable_model_cpu_offload()
|
47 |
if hasattr(pipe, "enable_xformers_memory_efficient_attention"):
|
48 |
pipe.enable_xformers_memory_efficient_attention()
|
49 |
|
|
|
42 |
weight_name="40kHalf.safetensors"
|
43 |
)
|
44 |
|
45 |
+
# Only enable xformers if available
|
|
|
46 |
if hasattr(pipe, "enable_xformers_memory_efficient_attention"):
|
47 |
pipe.enable_xformers_memory_efficient_attention()
|
48 |
|