-
-
Notifications
You must be signed in to change notification settings - Fork 223
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
Error while using the Google collab : cannot import name 'DeepSpeedPlugin' from 'pytorch_lightning.plugins' #215
Comments
Having same issue |
Having the same issue but locally (Ubuntu 22.04 ) |
Have the exact same issue on collab |
This may be a compatibility issue with the new version 2.0.0 of
Another possibility is to install directly from master. 78a0bfd looks like it comments out DeepSleepPlugin, which may solve the issue.
#216 also seems to provide some bug fixes. Could try:
|
I tried pip uninstall pytorch-lightning and also but still same error |
Thanks for your answer
and still got an issue (another one, but still an issue): It seems that the module aitextgen need to access a very specific version of pytorch lightning |
Hi. Is there any solution to this? |
Maybe it's related to 7bfbddb, a rollback to an earlier PyTorch-lightning around 1.3.1 |
Tried installing 1.3.1 instead of 1.9.4 and got
|
Did you also a version prior to that commit I mentioned? |
On Ubuntu 22.04 doing pip install pytorch-lightning==1.7.0 got it working for me with the demo. Trying to use the training example gives: pytorch_lightning.utilities.exceptions.MisconfigurationException: The provided lr scheduler |
I've tried various versions of the touch lib + aitext and none of them work as yet. |
I manage to resolve the error on the google colab by running this: !pip install -qq pytorch-lightning==1.7.0 transformers==4.21.3 aitextgen==0.6.0 Please do let me know if it also solves your issue on colab? |
It works fine in both colab and local (CPU) for me, Thanks |
What distro are you using?
Thanks
Darrin
…On Fri, 31 Mar. 2023, 23:04 Fqlox, ***@***.***> wrote:
I manage to resolve the error on the google colab by running this:
!pip install -qq pytorch-lightning==1.7.0 transformers==4.21.3
aitextgen==0.6.0
Please do let me know if it also solves your issue on colab?
It works fine in both colab and local (CPU) for me,
Thanks
—
Reply to this email directly, view it on GitHub
<#215 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AADOCT2TOXZJW7XK5547RL3W63B3FANCNFSM6AAAAAAWCO5FXA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
|
Thanks Veritas83
Thanks, that combo doesn't work with python 3.8.10, which is default for ubuntu 22.04, so I need to try an newer version of python. |
i am getting the same error while training, found any fix ? |
Same issue with me (Python 3.10.8, Mac OS, pip install pytorch-lightning==1.7.0 ). Error with training
|
try this : !pip install git+https://github.com/scorixear/aitextgen #!pip uninstall pytorch-lightning |
it'
it's work but I get this error: |
I've tried the various suggestions here, and none of them work with both generation and fine tuning. With this setup:
You get this error for both text generation and fine tuning: Downgrading pytorch-lightning to 1.9.4 gives this error:
I've chased these errors and have had a case where text generation works (though I unfortunately lost that particular combination of packages), but fine tuning failed. I'm in need of fine tuning so this isn't good for my use case. The requirements file suggests that a wide range of package versions will support the package, but it seems more apparent that a narrow version of packages should be recommended. Do we have any insight into what exact package/python versions allows both text generation and fine tuning to work? |
1.9.4 really works |
I have the same problem. Tried all solutions proposed, none of them work. |
i know this issue is over a year old, but i decided to find the package versions that cause this and similar import-time problems. and thus, i found this configuration:
and these python packages:
notes:
i haven't tested anything other than just importing the package, but at least that works i haven't checked with scorixear's fork yet, but i will at some point |
I tried both google collab (train from scratch or finetune with GPT-NEO) both have an issue while loading the module and gives :
cannot import name 'DeepSpeedPlugin' from 'pytorch_lightning.plugins'
(on the first cell while importing aitextgen)I tried do uninstall and reinstall libraries as mentioned here. But it did not do the trick.
Is there a workaround ?
Thanks in advance.
The text was updated successfully, but these errors were encountered: