Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ from diffusers import DiffusionPipeline
|
|
9 |
device = 'cuda' if torch.cuda.is_available() else 'cpu'
|
10 |
|
11 |
if torch.cuda.is_available():
|
12 |
-
PYTORCH_CUDA_ALLOC_CONF={'max_split_size_mb':
|
13 |
torch.cuda.max_memory_allocated(device=device)
|
14 |
torch.cuda.empty_cache()
|
15 |
|
|
|
9 |
device = 'cuda' if torch.cuda.is_available() else 'cpu'
|
10 |
|
11 |
if torch.cuda.is_available():
|
12 |
+
PYTORCH_CUDA_ALLOC_CONF={'max_split_size_mb': 8000}
|
13 |
torch.cuda.max_memory_allocated(device=device)
|
14 |
torch.cuda.empty_cache()
|
15 |
|