Manjushri commited on
Commit
b50af58
·
verified ·
1 Parent(s): adff792

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -7,6 +7,7 @@ from diffusers import DiffusionPipeline, StableDiffusion3Pipeline
7
  from huggingface_hub import hf_hub_download
8
 
9
  device = 'cuda' if torch.cuda.is_available() else 'cpu'
 
10
  torch.cuda.max_memory_allocated(device=device)
11
  torch.cuda.empty_cache()
12
  pipe = DiffusionPipeline.from_pretrained("circulus/canvers-fusionXL-v1").to(device)
 
7
  from huggingface_hub import hf_hub_download
8
 
9
  device = 'cuda' if torch.cuda.is_available() else 'cpu'
10
+ PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True
11
  torch.cuda.max_memory_allocated(device=device)
12
  torch.cuda.empty_cache()
13
  pipe = DiffusionPipeline.from_pretrained("circulus/canvers-fusionXL-v1").to(device)