AIAnytime / AIAnytime/Chat-with-PDF-Chatbot

attribute erroe

Open
#19 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
176
Forks
121
PR merge metrics
No merged PRs in 30d

Description

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'

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.