vardhanam / RAG_Voice_Chatbot

A voice to voice chabot for RAG on your documents using Qdrant
1 stars 2 forks source link

error in google colab app.ipynb #1

Open ainteligencia opened 4 months ago

ainteligencia commented 4 months ago

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

xjohnxjohn commented 2 months ago

You can solve this problem by run in docker. I recommend you use docker Pytorch 23.10.