-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
AttributeError: 'NoneType' object has no attribute 'get' when running torchrun #86
Comments
Obvious reason: You cannot just copy the sample command. In my case, the folder is 'some_path/llama/models/7B', so I would use './models' to replace the |
@tsaijamey Thank you for your response. I just wanted to clarify that I have already set the $TARGET_FOLDER variable to the correct folder path where the 7B files are located.
I execute the following command without torchrun, since torchrun gives me the error I already mentioned.
The output:
I hope this helps clarify the issue. If there is anything else that needs to be checked, please let me know. |
It's a pytorch bug, try Python 3.10 until it is fixed. |
this may work as a hack for those trying python 3.11
|
I encountered an error when running torchrun command on my system with the following traceback:
I am using torchrun with --nproc_per_node 1 option and passing the example.py script as an argument. I also provided the --ckpt_dir and --tokenizer_path arguments to the script. I have downloaded the 7B files and verified the checksum, and $TARGET_FOLDER has been set. I am not sure what caused this error and how to resolve it.
Here is the command I ran:
Can you please help me diagnose the issue and find a solution? Thank you.
The text was updated successfully, but these errors were encountered: