dolly icon indicating copy to clipboard operation
dolly copied to clipboard

AttributeError: 'str' object has no attribute 'size'

Open ibrahim737701 opened this issue 1 year ago • 1 comments

I'm trying to load databricks/dolly-v2-3b using the following code import torch from transformers import AutoTokenizer, AutoModelForCausalLM

tokenizer = AutoTokenizer.from_pretrained("databricks/dolly-v2-3b", padding_side="left") model = AutoModelForCausalLM.from_pretrained("databricks/dolly-v2-3b", device_map="auto", trust_remote_code=True, torch_dtype=torch.bfloat16)

And it's giving the error, AttributeError: 'str' object has no attribute 'size'

ibrahim737701 avatar Apr 17 '23 07:04 ibrahim737701

Hm, that's working for me. Where does that error occur, this code or elsewhere?

srowen avatar Apr 17 '23 12:04 srowen