still getting the same error.
I tried different lightning versions and it didn't work. I rolled back to 0.4.2 and although generation was running fine but training wasn't running!
I now have aitextgen 0.6.0 with pytorch-lightning 1.7.0
LOCAL_RANK: 0 - CUDA_VISIBLE_DEVICES: [0]
Traceback (most recent call last):
File "trainai[trainai.py](http://trainai.py/)", line 28, in LambdaLR doesn't follow PyTorch's LRScheduler API. You should override the LightningModule.lr_scheduler_step hook with your own logic if you are using a custom LR scheduler.
=============
if i upgrade to lightning==2.0.0 then I will get:
Traceback (most recent call last):
File "trainai[trainai.py](http://trainai.py/)", line 1, in
Please help.
Same I recently tried this out and I was getting all sorts of errors, let me know when this is fixed because I want to use it ASAP.
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
Thanks. It was solved earlier. But now there's another problem. I remember testing it a week ago and it was working but for unknown reason it's not working now.
ImportError Traceback (most recent call last)
1 frames
/usr/local/lib/python3.9/dist-packages/aitextgen/aitextgen.py in
ImportError: cannot import name 'DeepSpeedPlugin' from 'pytorch_lightning.plugins' (/usr/local/lib/python3.9/dist-packages/pytorch_lightning/plugins/init.py)
Thanks. It was solved earlier. But now there's another problem. I remember testing it a week ago and it was working but for unknown reason it's not working now. ImportError Traceback (most recent call last) in <cell line: 1>() ----> 1 from aitextgen import aitextgen 2 from aitextgen.colab import mount_gdrive, copy_file_from_gdrive 3 ai = aitextgen(tf_gpt2="124M", to_gpu=True)
1 frames /usr/local/lib/python3.9/dist-packages/aitextgen/aitextgen.py in 12 import torch 13 from pkg_resources import resource_filename ---> 14 from pytorch_lightning.plugins import DeepSpeedPlugin 15 from tqdm.auto import trange 16 from transformers import (
ImportError: cannot import name 'DeepSpeedPlugin' from 'pytorch_lightning.plugins' (/usr/local/lib/python3.9/dist-packages/pytorch_lightning/plugins/init.py)
as you already figured out, aitextgen is build on older versions of pytorch_lightning, but doesn't have any max-version in their requirements. #216 updates those library changes, they are however mostly for show, the algorithms behind them (or api calls) all stayed the same.