hpcaitech / Open-Sora

Open-Sora: Democratizing Efficient Video Production for All
https://hpcaitech.github.io/Open-Sora/
Apache License 2.0
20.02k stars 1.89k forks source link

Not stable in WSL ubuntu with shared memory. #556

Open CQSim opened 4 days ago

CQSim commented 4 days ago

Hello, I have install Opensora in WSL2 which can share memory with GPU. But it just work occasionally. Most of the time, it comes with some error like below. Would anyone help me to solve this!

File "/home/tiy/miniconda3/envs/opensora/lib/python3.9/site-packages/torch/nn/modules/module.py", line 804, in _apply param_applied = fn(param) File "/home/tiy/miniconda3/envs/opensora/lib/python3.9/site-packages/torch/nn/modules/module.py", line 915, in <lambda> return self._apply(lambda t: t.cuda(device)) torch.cuda.OutOfMemoryError: CUDA out of memory. Tried to allocate 22.00 MiB. GPU

pbz134 commented 3 days ago

This indicates that your GPU doesn't have enough RAM (VRAM) to use the program. You need at least 27 GB for 360p generation, and 41 GB for 720p generation.

CQSim commented 3 days ago

This indicates that your GPU doesn't have enough RAM (VRAM) to use the program. You need at least 27 GB for 360p generation, and 41 GB for 720p generation.

Screenshot 2024-06-28 104743 That is the reasion I chosen WSL to run opensora. My Windows system have 64G memory and half of it could be shared to the GPU. Although my graphic card just have 11G memory, it can be load some times. Please see the picture. Most of the time, it come out with "CUDA out of memory".