How were the models converted?

#1
by xzuyn - opened

I've got some finetuned models that used the original model format, and they don't work on the latest transformers, but these do. I tried to rename keys and such but couldn't get it working.

Florence-2 Community org

Hey, here’s the script you can use to convert the model:
https://github.com/huggingface/transformers/tree/main/src/transformers/models/florence2

Example usage:

python convert_florence2_original_pytorch_to_hf.py
--hf_model_id microsoft/Florence-2-large
--pytorch_dump_folder_path florence2-large
--output_hub_path ducviet00/Florence-2-large-hf

ducviet00 changed discussion status to closed

Sign up or log in to comment