31 frames
SystemError: initialization of _pywrap_checkpoint_reader raised unreported exception
The above exception was the direct cause of the following exception:
RuntimeError Traceback (most recent call last)
/usr/local/lib/python3.10/dist-packages/transformers/utils/import_utils.py in _get_module(self, module_name)
1390 return importlib.import_module("." + module_name, self.name)
1391 except Exception as e:
-> 1392 raise RuntimeError(
1393 f"Failed to import {self.name}.{module_name} because of the following error (look up to see its"
1394 f" traceback):\n{e}"
RuntimeError: Failed to import transformers.pipelines because of the following error (look up to see its traceback):
initialization of _pywrap_checkpoint_reader raised unreported exception
in the following code
from transformers import ( AutoTokenizer, AutoModelForCausalLM, BitsAndBytesConfig, pipeline )
it gets the following error
RuntimeError Traceback (most recent call last) RuntimeError: module compiled against API version 0x10 but this version of numpy is 0xf
RuntimeError Traceback (most recent call last) RuntimeError: module compiled against API version 0x10 but this version of numpy is 0xf
RuntimeError Traceback (most recent call last) RuntimeError: module compiled against API version 0x10 but this version of numpy is 0xf
SystemError Traceback (most recent call last) /usr/local/lib/python3.10/dist-packages/transformers/utils/import_utils.py in _get_module(self, module_name) 1389 try: -> 1390 return importlib.import_module("." + module_name, self.name) 1391 except Exception as e:
31 frames SystemError: initialization of _pywrap_checkpoint_reader raised unreported exception
The above exception was the direct cause of the following exception:
RuntimeError Traceback (most recent call last) /usr/local/lib/python3.10/dist-packages/transformers/utils/import_utils.py in _get_module(self, module_name) 1390 return importlib.import_module("." + module_name, self.name) 1391 except Exception as e: -> 1392 raise RuntimeError( 1393 f"Failed to import {self.name}.{module_name} because of the following error (look up to see its" 1394 f" traceback):\n{e}"
RuntimeError: Failed to import transformers.pipelines because of the following error (look up to see its traceback): initialization of _pywrap_checkpoint_reader raised unreported exception