Reduce peak VRAM by releasing large attention tensors (as soon as they're unnecessary) #3463
Release large tensors in attention (as soon as they're no longer requ…
5b68fa1b
cmdr2
changed the title Release large attention tensors (as soon as they're unnecessary). Reduces peak VRAM by nearly 2 GB for 1024x1024 in pre-torch 2.0 (even after slicing). More savings with larger images. Reduces peak VRAM by releasing large attention tensors (as soon as they're unnecessary) 2 years ago
cmdr2
changed the title Reduces peak VRAM by releasing large attention tensors (as soon as they're unnecessary) Reduce peak VRAM by releasing large attention tensors (as soon as they're unnecessary) 2 years ago
pcuenca
approved these changes
on 2023-05-17
Assignees
No one assigned
Login to write a write a comment.
Login via GitHub