I'm trying to use the python package aitextgen
in google Colab so I can fine-tune GPT.
First, when I installed the last version of this package I had this error when importing it.
Unable to import name '_TPU_AVAILABLE' from 'pytorch_lightning.utilities'
Though with the help of the solutions given in this question I could pass this error by downgrading my packages like this:
!pip3 install -q aitextgen==0.5.2
!pip3 install -q torchtext==0.10.0
!pip3 install -q torchmetrics==0.6.0
!pip3 install -q pytorch-lightning==1.4.0rc0
But now I'm facing this error when importing the aitextgen
package and colab will crash!
/usr/local/lib/python3.8/dist-packages/torchvision/io/image.py:13: UserWarning: Failed to load image Python extension: libtorch_cuda_cu.so: cannot open shared object file: No such file or directory
warn(f"Failed to load image Python extension: {e}")
Keep in mind that the error is in importing the package and there is not a bug in my code. To be more clear I have this error when I just import aitextgen
like this:
import aitextgen
How can I deal with this error?