Skip to content

attribute erroe #19

@jayasheeli

Description

@jayasheeli

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions