Views
No views yet
config.json
generation_config.json
preprocessor_config.json
tokenizer.json
tokenizer_config.json
vocab.json
merges.txt
special_tokens_map.json
vision_encoder_fp16.onnx # DaViT image encoder
encoder_model_fp16.onnx # text encoder (T5-style)
decoder_model_fp16.onnx # autoregressive decoder
embed_tokens_fp16.onnx # token embedding lookupoptimum.onnxruntime.ORTModelForVision2Seq or load the four sessions manually.optimum-cli export onnx \
--model microsoft/Florence-2-base-ft \
--task image-to-text \
--dtype fp16 \
--trust-remote-code \
<output>optimum 1.24.0, transformers 4.45.2, torch 2.4.x. --trust-remote-code is required — Florence-2 ships custom modeling code (modeling_florence2.py) in the source repo.| Task | Prompt |
|---|---|
| Caption | <CAPTION> |
| Detailed caption | <DETAILED_CAPTION> |
| More detailed caption | <MORE_DETAILED_CAPTION> |
| OCR | <OCR> |
| OCR with regions | <OCR_WITH_REGION> |
| Object detection | <OD> |
| Dense region caption | <DENSE_REGION_CAPTION> |
| Region proposal | <REGION_PROPOSAL> |
| Caption to phrase grounding | <CAPTION_TO_PHRASE_GROUNDING> |
| Referring expression segmentation | <REFERRING_EXPRESSION_SEGMENTATION> |
Heliosoph/florence-2-base-ft-quantized-onnx: CPU / NPU / mobile, INT8 dynamic. ~270 MB, modestly degraded on text-heavy OCR.LICENSE file included.