PyTorch decode output

#46
by LionKingMerlin - opened

Hi,

I cannot decode the output with

tokenizer.decode(output)
or
tokenizer.decode(output, skip_special_tokens=True)

It gives me:
ValueError: invalid literal for int() with base 10: 'last_hidden_state'

I also got the same message

This comment has been hidden
This comment has been hidden
This comment has been hidden
This comment has been hidden
This comment has been hidden
This comment has been hidden

I met the same issue. Do you solve the problem ? @LionKingMerlin

OpenAI community org

Hello, could you provide the code that you're running and that results in this error? Did you find this code sample in the docs?

Sign up or log in to comment