|

报错:
ERROR DURING GENERATION: CUDA out of memory. Tried to allocate 72.00 MiB. GPU 0 has a total capacity of 12.00 GiB of which 6.88 GiB is free. Of the allocated memory 2.69 GiB is allocated by PyTorch, and 52.20 MiB is reserved by PyTorch but unallocated. If reserved but unallocated memory is large try setting PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True to avoid fragmentation. See documentation for Memory Management
==================================================
Traceback (most recent call last):
File "E:\AI\FramePack-V4\app.py", line 1141, in worker
File "E:\FramePack-V4\FramePack-V4\diffusers_helper\memory.py", line 92, in move_model_to_device_with_memory_preservation
if hasattr(m, 'weight'):
File "E:\FramePack-V4\FramePack-V4\diffusers_helper\memory.py", line 26, in hacked_get_attr
return torch.nn.Parameter(p.to(**kwargs), requires_grad=p.requires_grad)
torch.OutOfMemoryError: CUDA out of memory. Tried to allocate 72.00 MiB. GPU 0 has a total capacity of 12.00 GiB of which 6.88 GiB is free. Of the allocated memory 2.69 GiB is allocated by PyTorch, and 52.20 MiB is reserved by PyTorch but unallocated. If reserved but unallocated memory is large try setting PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True to avoid fragmentation. See documentation for Memory Management |
|