AttributeError: 'list' object has no attribute 'to'

#22
by Praneethkeerthi - opened

Traceback (most recent call last):
File "chat_complince_mistral.py", line 49, in
model_inputs = encodeds.to(device)
AttributeError: 'list' object has no attribute 'to'

I also encounter this problem!

How did you solve it?

Also encountered this problem. The example doesn't work

same problem for me...

it works with the Hugging Face tokenizer (second example) , ensure transformers is at least version 4.39.0 or it will not work as expected

Sign up or log in to comment