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

Problem with train_transformer.py - please help... #4

Open
AdrianRobak opened this issue Jun 19, 2023 · 1 comment
Open

Problem with train_transformer.py - please help... #4

AdrianRobak opened this issue Jun 19, 2023 · 1 comment

Comments

@AdrianRobak
Copy link

Dear Coders,

I tried to run the "train_transformer.py" and my PyCharm (under OS X) kicked me out and wrote the error:

"Traceback (most recent call last):
File "/Users/adrianrobak/Documents/GitHub/bachsformer3.0/train_transformer.py", line 5, in
from transformer_decoder_only.trainer import Trainer
File "/Users/adrianrobak/Documents/GitHub/bachsformer3.0/transformer_decoder_only/trainer.py", line 12, in
from mingpt.utils import CfgNode as CN
ModuleNotFoundError: No module named 'mingpt'"

When I tried to install mingpt (pip install mingpt), my terminal said:

"ERROR: Could not find a version that satisfies the requirement mingpt (from versions: none)
ERROR: No matching distribution found for mingpt"

Could you help me in that case, please?
I will appreciate your help.

Adrian

@Cam-ak
Copy link

Cam-ak commented Jul 30, 2023

Change the line

from mingpt.utils import CfgNode as CN

to

from .utils import CfgNode as CN

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