AIAnytime / Chat-with-PDF-Chatbot

This Chatbot is an interactive app developed to assist users to interact with their PDF. It is built using Open Source Stack. No OpenAI is required.
MIT License
144 stars 110 forks source link

attribute erroe #19

Open jayasheeli opened 7 months ago

jayasheeli commented 7 months ago

i have cloned the repo and tried to use it i get attribute error Traceback (most recent call last): File "d:\SFTP\lambdademo\Chat-with-PDF-Chatbot\chatbot_app.py", line 25, in base_model = AutoModelForSeq2SeqLM.from_pretrained( File "C:\Users\JAYASHEELI\AppData\Local\Programs\Python\Python310\lib\site-packages\transformers\models\auto\auto_factory.py", line 467, in from_pretrained
return model_class.from_pretrained( File "C:\Users\JAYASHEELI\AppData\Local\Programs\Python\Python310\lib\site-packages\transformers\modeling_utils.py", line 2777, in from_pretrained ) = cls._load_pretrained_model( File "C:\Users\JAYASHEELI\AppData\Local\Programs\Python\Python310\lib\site-packages\transformers\modeling_utils.py", line 2865, in _load_pretrained_model
if device_map is not None and "disk" in device_map.values(): AttributeError: 'torch.device' object has no attribute 'values'