How to deal with Transformers?
#1
by
tintwotin
- opened
Looks cool. Have you found a way to work around Transformers breaking loading of Florence2 files (except for downgrading the Transformers version)?
It should already be in the new format, unless they broke it again?
Script needed was convert_florence2_original_pytorch_to_hf.py, but it only seems to work on the original Florence-2 files Microsoft uploaded, not my models which were loaded with a later version of Transformers, so I had to grab the config files and such from microsoft/Florence-2-base and use my model.safetensors with the script. I also edited the parts where it was using FP16 instead of my needed BF16.