I've tried switching torch CUDA for Torch ROC (I'm working on a laptop with AMD GPU) and I get this error:
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
/tmp/ipykernel_43555/3476595431.py in <module>
----> 1 from src.nlp.transform import sbert_nlp
2 transfml = sbert_nlp()
~/app/src/nlp/transform.py in <module>
1 import os
2
----> 3 from sentence_transformers import SentenceTransformer, util
4 from src.utils import logger
5
~/environments/app/lib/python3.9/site-packages/sentence_transformers/__init__.py in <module>
1 __version__ = "2.0.0"
2 __MODEL_HUB_ORGANIZATION__ = 'sentence-transformers'
----> 3 from .datasets import SentencesDataset, ParallelSentencesDataset
4 from .LoggingHandler import LoggingHandler
5 from .SentenceTransformer import SentenceTransformer
~/environments/app/lib/python3.9/site-packages/sentence_transformers/datasets/__init__.py in <module>
----> 1 from .DenoisingAutoEncoderDataset import DenoisingAutoEncoderDataset
2 from .NoDuplicatesDataLoader import NoDuplicatesDataLoader
3 from .ParallelSentencesDataset import ParallelSentencesDataset
4 from .SentencesDataset import SentencesDataset
5 from .SentenceLabelDataset import SentenceLabelDataset
~/environments/app/lib/python3.9/site-packages/sentence_transformers/datasets/DenoisingAutoEncoderDataset.py in <module>
----> 1 from torch.utils.data import Dataset
2 from typing import List
3 from ..readers.InputExample import InputExample
4 import numpy as np
5 import nltk
~/environments/app/lib/python3.9/site-packages/torch/__init__.py in <module>
196 if USE_GLOBAL_DEPS:
197 _load_global_deps()
--> 198 from torch._C import * # noqa: F403
199
200 # Appease the type checker; ordinarily this binding is inserted by the
ImportError: libtinfo.so.5: cannot open shared object file: No such file or directory
I've tried switching torch CUDA for Torch ROC (I'm working on a laptop with AMD GPU) and I get this error:
I installed pyTorch Roc as described on the website: https://pytorch.org/get-started/locally/