naonauno commited on
Commit
7f71d44
·
verified ·
1 Parent(s): 84ab83e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -42,8 +42,7 @@ pipe.load_lora_weights(
42
  weight_name="40kHalf.safetensors"
43
  )
44
 
45
- # Enable optimizations
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