Open-Sora icon indicating copy to clipboard operation
Open-Sora copied to clipboard

ModuleNotFoundError: No module named 'fused_layer_norm_cuda'

Open xujin1184104394 opened this issue 11 months ago • 4 comments

报错,apex按照说明安装的,但是还是报了奇怪的错误 image

xujin1184104394 avatar Mar 19 '24 09:03 xujin1184104394

补充:image

xujin1184104394 avatar Mar 19 '24 09:03 xujin1184104394

看起来是apex的锅。我找到了解决办法,在apex库的issues中翻到了,https://github.com/NVIDIA/apex/issues/1737
我的ubuntu系统是22.04,所以apex切换一个“22.04-dev”的分支,再安装就行了。

xujin1184104394 avatar Mar 19 '24 10:03 xujin1184104394

This issue is stale because it has been open for 7 days with no activity.

github-actions[bot] avatar Mar 27 '24 01:03 github-actions[bot]

看起来是apex的锅。我找到了解决办法,在apex库的issues中翻到了,NVIDIA/apex#1737 我的ubuntu系统是22.04,所以apex切换一个“22.04-dev”的分支,再安装就行了。

用22.04-dev分支还是报错,enable_layernorm_kernel=False也不管用。

另外直接# text to video python scripts/inference.py configs/opensora-v1-1/inference/sample.py \ --ckpt-path CKPT_PATH --prompt "A beautiful sunset over the city" --num-frames 32 --image-size 480 854 出现如下错误:

RuntimeError: Could not find 'LOCAL_RANK' in the torch environment, visit https://www.colossalai.org/ for more information on launching with torch

AlphaNext avatar Apr 26 '24 16:04 AlphaNext