Run this model with HF Jobs

Run florence-community/Florence-2-base on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs and TRL to fine-tune https://huggingface.co/florence-community/Florence-2-base. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/florence-community/Florence-2-base on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Evaluate on a benchmark

Use HF Jobs to evaluate https://huggingface.co/florence-community/Florence-2-base. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.

Quantize for lower memory use

Use HF Jobs to create a 4-bit version of https://huggingface.co/florence-community/Florence-2-base. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.

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