Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CUDA out of memory #205

Open
nichellehouston opened this issue Mar 7, 2025 · 1 comment
Open

CUDA out of memory #205

nichellehouston opened this issue Mar 7, 2025 · 1 comment

Comments

@nichellehouston
Copy link

GPU:L40S 48GB
CPU:16
RAM:128

!python generate.py --task t2v-14B --size "832*480" --ckpt_dir ./Wan2.1-T2V-14B --offload_model True --t5_cpu --sample_shift 8 --sample_guide_scale 6 --prompt "xxx"

torch.OutOfMemoryError: CUDA out of memory. Tried to allocate 100.00 MiB. GPU 0 has a total capacity of 44.53 GiB of which 91.25 MiB is free. Process 3579258 has 44.43 GiB memory in use. Of the allocated memory 43.93 GiB is allocated by PyTorch, and 18.76 MiB is reserved by PyTorch but unallocated.

@pikachurus
Copy link

use this (#80) PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants