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

[BUG]: No module named 'chatgpt.nn' #2810

Closed
shendlcode opened this issue Feb 18, 2023 · 8 comments
Closed

[BUG]: No module named 'chatgpt.nn' #2810

shendlcode opened this issue Feb 18, 2023 · 8 comments
Labels
bug Something isn't working

Comments

@shendlcode
Copy link

🐛 Describe the bug

Hi,
I can not run demo of ColossalAI.
The following is the output.

/ColossalAI/dev_test/benchmark_gpt_dummy.py", line 1, in
from chatgpt.nn import GPTActor, GPTCritic, RewardModel
ModuleNotFoundError: No module named 'chatgpt.nn'

Environment

No response

@shendlcode shendlcode added the bug Something isn't working label Feb 18, 2023
@JThh
Copy link
Contributor

JThh commented Feb 18, 2023

Please follow what's instructed in this file (most importantly, pip install . in the applications/ChatGPT folder.)

@chaos2024
Copy link

got the same error, and i already pip install . under the chatgpt folder. I can import chatgpt from python environment, the error comes out with the torchrun command

@A-biao96
Copy link

chatgpt.nn is in this path "ColossalAI/applications/ChatGPT/chatgpt/nn", put trian_XX.py with the folder chatgpt, in the same path.

@A-biao96
Copy link

得到同样的错误,我已经 pip install .在 chatgpt 文件夹下。我可以从python环境中导入chatgpt,torchrun命令出现错误

You did not successfully install pytorch,please test it with the following code:
import torch
print(torch.cuda.is_available())

@chaos2024
Copy link

得到同样的错误,我已经 pip install .在 chatgpt 文件夹下。我可以从python环境中导入chatgpt,torchrun命令出现错误

You did not successfully install pytorch,please test it with the following code: import torch print(torch.cuda.is_available())

thanks

moving file to chatgpt/nn didn't work, the error became no module named transformers while it's been installed.

and torch.cuda.is_available()) is True

@wqw547243068
Copy link

wqw547243068 commented Mar 14, 2023

Warning:

  • chatgpt.nn has been modified as chatgpt.models
  • The overall arch diagram is ...

image

If this error (No module named 'chatgpt.nn') still pops up, remember to git pull in order to update the code

@binmakeswell
Copy link
Member

Warning:

  • chatgpt.nn has been modified as chatgpt.models
  • The overall arch diagram is ...

image

If this error (No module named 'chatgpt.nn') still pops up, remember to git pull in order to update the code

Thanks for such a clear summary!

@binmakeswell
Copy link
Member

We have updated a lot.
Please check the latest instructions
https://github.com/hpcaitech/ColossalAI/tree/main/applications/Chat#install
This issue was closed due to inactivity. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants