Ir para o conteúdo
ModelListadosExterno
Baixar

Florence 2 Base Ft FP16 Onnx

ONNX export of microsoft/Florence-2-base-ft at fp16 precision. Florence-2 is Microsoft's unified vision-language model — a single checkpoint that handles captioning, OCR, object detection, region description, and...

TipoOtherModelo basemicrosoft/Florence-2-base-ftVersãoBnota

Fonte do modelo

Tipo
Other
Tamanho do arquivo
185 MB
Modelo base
microsoft/Florence-2-base-ft
Versão
vFP16
Atualizado
14 de set. de 2026
Downloads
7
Fonte
Hugging Face

Trecho da fonte

ONNX export of microsoft/Florence-2-base-ft at fp16 precision. Florence-2 is Microsoft's unified vision-language model — a single checkpoint that handles captioning, OCR, object detection, region description, and...

Fontes

1 fonte
Hugging FacePrimárioVersão 2e11444f5ad958b10719bdefba8bbaf53bb20ac9
huggingface.co/Heliosoph/florence-2-base-ft-fp16-onnx/tree/2e11444f5ad958b10719bdefba8bbaf53bb20ac9

Verificado 20 de ago.

Artefatos de modelo

1 artefato

decoder_model_fp16.onnx

onnx · FP16 (unverified) · 185 MB · SHA-256 ce583853b630…fa0c · Hugging Face

Download file

Trechos de fonte

2 trechos

--- license: mit library_name: transformers tags: - florence-2 - vision-language - image-captioning - ocr - object-detection - onnx - fp16 base_model: microsoft/Florence-2-base-ft pipeline_tag: image-to-text language: - en --- # Florence-2 base-ft — ONNX (fp16) ONNX export of [microsoft/Florence-2-base-ft](https://huggingface.co/microsoft/Florence-2-base-ft) at fp16 precision. Florence-2 is Microsoft's unified vision-language model — a single checkpoint that handles captioning, OCR, object detection, region description, and grounded VQA via task-prompted decoding. Converted artifact. Training credit: Microsoft Research. ## What this repo contains Florence-2 ships as **four** ONNX files (one per sub-model). All four are required at inference: ``` 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 lookup ``` Total: ~520 MB. Use with `optimum.onnxruntime.ORTModelForVision2Seq` or load the four sessions manually. ## How it was produced ``` optimum-cli export onnx \ --model microsoft/Florence-2-base-ft \ --task image-to-text \ --dtype fp16 \ --trust-remote-code \ <output> ``` Toolchain: `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 prompts (selected) | 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>` | Full task-prompt list: see the [upstream model card](https://huggingface.co/microsoft/Florence-2-base-ft). ## When to pick fp16 vs quantized This repo (**fp16**): GPU inference, maximum quality. ~520 MB. [`Heliosoph/florence-2-base-ft-quantized-onnx`](https://huggingface.co/Heliosoph/florence-2-base-ft-quantized-...

Source context: 7 downloads · 0 likes · Pipeline image-to-text · Library transformers · Repo Heliosoph/florence-2-base-ft-fp16-onnx