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

ModuleNotFoundError: No module named 'fused_layer_norm_cuda' #143

Closed
xujin1184104394 opened this issue Mar 19, 2024 · 7 comments
Closed
Labels

Comments

@xujin1184104394
Copy link

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

@xujin1184104394
Copy link
Author

补充:image

@xujin1184104394
Copy link
Author

xujin1184104394 commented Mar 19, 2024

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

Copy link

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

@github-actions github-actions bot added the stale label Mar 27, 2024
@AlphaNext
Copy link

看起来是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

@zhengzangw
Copy link
Collaborator

你遇到的这个问题是由于之前的代码 inference 只支持 torchrun,目前已经支持。可以用最新的代码尝试。

@XavierCHEN34
Copy link

刚刚clone的,好像还是有这个错误

@yuvraj108c
Copy link

Yes, there is still this error

odb9402 pushed a commit to odb9402/Open-Sora that referenced this issue Jul 18, 2024
[fix]: fix sample.sh

Former-commit-id: 7ceacc5f9544d0e27d8cea4981ed12ee784efd6f
JadeCong pushed a commit to CloudEngineHub/Open-Sora that referenced this issue Mar 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants