Florence2LanguageForConditionalGeneration has no shift_tokens_right method defined in the class

#2

Call prepare_decoder_input_ids_from_labels instead of shift_tokens_right as it is not defined in Florence2LanguageForConditionalGeneration
@yifeihu my code was breaking due to this, tried to fix, let me know if it works

Owner

@sky-2002 may i ask which transformers version are you using? I didn't encounter this issue when running the model. I'll look into it soon.

@yifeihu version is transformers==4.44.2

Owner

@yifeihu version is transformers==4.44.2

@sky-2002 Hi I tried to replicate it but didn't encounter the error. I am also training a new version which I hope should be more stable.

Ready to merge
This branch is ready to get merged automatically.

Sign up or log in to comment