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

error while trying import aitextgen #208

Open
dogukan33 opened this issue Jan 30, 2023 · 2 comments
Open

error while trying import aitextgen #208

dogukan33 opened this issue Jan 30, 2023 · 2 comments

Comments

@dogukan33
Copy link

from aitextgen import aitextgen gives the error below...

Output exceeds the size limit. Open the full output data in a text editor

ImportError Traceback (most recent call last)
Cell In[7], line 1
----> 1 from aitextgen import aitextgen

File /opt/homebrew/lib/python3.10/site-packages/aitextgen/init.py:1
----> 1 from .aitextgen import aitextgen # noqa

File /opt/homebrew/lib/python3.10/site-packages/aitextgen/aitextgen.py:31
29 from .colab import create_gdrive_folder
30 from .TokenDataset import TokenDataset
---> 31 from .train import ATGProgressBar, ATGTransformer
32 from .utils import (
33 download_gpt2,
34 find_index_of_subset,
(...)
37 set_seed,
38 )
40 logger = logging.getLogger("aitextgen")

File /opt/homebrew/lib/python3.10/site-packages/aitextgen/train.py:14
12 import pytorch_lightning as pl
13 from pytorch_lightning.callbacks.progress import ProgressBarBase
---> 14 from pytorch_lightning.utilities import _TPU_AVAILABLE
17 class ATGTransformer(pl.LightningModule):
...
18 """
19 A training module for aitextgen.
20 """

ImportError: cannot import name '_TPU_AVAILABLE' from 'pytorch_lightning.utilities' (/opt/homebrew/lib/python3.10/site-packages/pytorch_lightning/utilities/init.py)

@pst2154
Copy link

pst2154 commented Feb 8, 2023

Try to restart your kernal after installing

@2br-2b
Copy link

2br-2b commented Feb 13, 2023

Duplicate of #200 - there's a solution also listed there

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

3 participants