cuda issue?
across multiple gcp, nividia t4 compute engines, in jupyterlab, we're getting this error (notably, we had to install with pip install --user bertopic)
system info: Machine type n1-highmem-64 (64 vCPUs, 416 GB RAM) GPU NVIDIA T4 x 4
TensorFlow Enterprise 2.8 (with LTS and Intel® MKL-DNN/MKL)
from bertopic import BERTopic
OSError Traceback (most recent call last) /opt/conda/lib/python3.7/site-packages/torch/init.py in _load_global_deps() 171 try: --> 172 ctypes.CDLL(lib_path, mode=ctypes.RTLD_GLOBAL) 173 except OSError as err:
/opt/conda/lib/python3.7/ctypes/init.py in init(self, name, mode, handle, use_errno, use_last_error) 363 if handle is None: --> 364 self._handle = _dlopen(self._name, mode) 365 else:
OSError: /opt/conda/lib/python3.7/site-packages/torch/lib/../../nvidia/cublas/lib/libcublas.so.11: symbol cublasLtGetStatusString version libcublasLt.so.11 not defined in file libcublasLt.so.11 with link time reference
During handling of the above exception, another exception occurred:
OSError Traceback (most recent call last) /opt/conda/lib/python3.7/site-packages/transformers/utils/import_utils.py in _get_module(self, module_name) 1125 try: -> 1126 return importlib.import_module("." + module_name, self.name) 1127 except Exception as e:
/opt/conda/lib/python3.7/importlib/init.py in import_module(name, package) 126 level += 1 --> 127 return _bootstrap._gcd_import(name[level:], package, level) 128
/opt/conda/lib/python3.7/importlib/_bootstrap.py in _gcd_import(name, package, level)
/opt/conda/lib/python3.7/importlib/_bootstrap.py in find_and_load(name, import)
/opt/conda/lib/python3.7/importlib/_bootstrap.py in find_and_load_unlocked(name, import)
/opt/conda/lib/python3.7/importlib/_bootstrap.py in _load_unlocked(spec)
/opt/conda/lib/python3.7/importlib/_bootstrap_external.py in exec_module(self, module)
/opt/conda/lib/python3.7/importlib/_bootstrap.py in _call_with_frames_removed(f, *args, **kwds)
/opt/conda/lib/python3.7/site-packages/transformers/pipelines/init.py in
/opt/conda/lib/python3.7/site-packages/transformers/pipelines/audio_classification.py in
/opt/conda/lib/python3.7/site-packages/transformers/pipelines/base.py in
/opt/conda/lib/python3.7/site-packages/transformers/modelcard.py in
/opt/conda/lib/python3.7/site-packages/transformers/training_args.py in
/opt/conda/lib/python3.7/site-packages/transformers/debug_utils.py in
/opt/conda/lib/python3.7/site-packages/torch/init.py in
/opt/conda/lib/python3.7/site-packages/torch/init.py in _load_global_deps() 177 raise err --> 178 _preload_cuda_deps() 179 ctypes.CDLL(lib_path, mode=ctypes.RTLD_GLOBAL)
/opt/conda/lib/python3.7/site-packages/torch/init.py in _preload_cuda_deps() 157 --> 158 ctypes.CDLL(cublas_path) 159 ctypes.CDLL(cudnn_path)
/opt/conda/lib/python3.7/ctypes/init.py in init(self, name, mode, handle, use_errno, use_last_error) 363 if handle is None: --> 364 self._handle = _dlopen(self._name, mode) 365 else:
OSError: /opt/conda/lib/python3.7/site-packages/nvidia/cublas/lib/libcublas.so.11: symbol cublasLtGetStatusString version libcublasLt.so.11 not defined in file libcublasLt.so.11 with link time reference
The above exception was the direct cause of the following exception:
RuntimeError Traceback (most recent call last)
/var/tmp/ipykernel_10311/2624164442.py in
/opt/conda/lib/python3.7/site-packages/bertopic/init.py in
/opt/conda/lib/python3.7/site-packages/bertopic/_bertopic.py in
/opt/conda/lib/python3.7/site-packages/bertopic/representation/init.py in pip install bertopic without --no-deps \n\n"
/opt/conda/lib/python3.7/site-packages/bertopic/representation/_textgeneration.py in
/opt/conda/lib/python3.7/importlib/_bootstrap.py in handle_fromlist(module, fromlist, import, recursive)
/opt/conda/lib/python3.7/site-packages/transformers/utils/import_utils.py in getattr(self, name) 1114 value = self._get_module(name) 1115 elif name in self._class_to_module.keys(): -> 1116 module = self._get_module(self._class_to_module[name]) 1117 value = getattr(module, name) 1118 else:
/opt/conda/lib/python3.7/site-packages/transformers/utils/import_utils.py in _get_module(self, module_name) 1129 f"Failed to import {self.name}.{module_name} because of the following error (look up to see its" 1130 f" traceback):\n{e}" -> 1131 ) from e 1132 1133 def reduce(self):
RuntimeError: Failed to import transformers.pipelines because of the following error (look up to see its traceback): /opt/conda/lib/python3.7/site-packages/nvidia/cublas/lib/libcublas.so.11: symbol cublasLtGetStatusString version libcublasLt.so.11 not defined in file libcublasLt.so.11 with link time reference
haven't been able to resolve
the way we "resolved" it:
pip install --user bertopic pip install --user tensorflow==2.11.* pip uninstall nvidia_cublas_cu11
not sure this is a correct solution.
I believe this should be correct. Glad to hear that the issue was resolved!