Skip to content
ModelListedExternal
Open source

Florence 2 Base Ft

This Hub repository contains a HuggingFace's transformers implementation of Florence-2 model from Microsoft.

KindText modelBgrade

Model source

Kind
Text model
File size
442–443 MB
Updated
Oct 18, 2026
Source
Hugging Face

Source excerpt

This Hub repository contains a HuggingFace's transformers implementation of Florence-2 model from Microsoft.

Related resources

1 connection

Sources

1 source
Hugging FacePrimary
huggingface.co/microsoft/Florence-2-base-ft

Verified Oct 18

Model artifacts

2 artifacts

model.safetensors

safetensors · 442 MB · SHA-256 58757d657ff4…185a

pytorch_model.bin

bin · 443 MB · SHA-256 664e363a9082…8002

Source excerpts

3 excerpts

--- license: mit license_link: https://huggingface.co/microsoft/Florence-2-base-ft/resolve/main/LICENSE pipeline_tag: image-text-to-text tags: - vision --- # Florence-2: Advancing a Unified Representation for a Variety of Vision Tasks ## Model Summary This Hub repository contains a HuggingFace's `transformers` implementation of Florence-2 model from Microsoft. Florence-2 is an advanced vision foundation model that uses a prompt-based approach to handle a wide range of vision and vision-language tasks. Florence-2 can interpret simple text prompts to perform tasks like captioning, object detection, and segmentation. It leverages our FLD-5B dataset, containing 5.4 billion annotations across 126 million images, to master multi-task learning. The model's sequence-to-sequence architecture enables it to excel in both zero-shot and fine-tuned settings, proving to be a competitive vision foundation model. Resources and Technical Documentation: + [Florence-2 technical report](https://arxiv.org/abs/2311.06242). + [Jupyter Notebook for inference and visualization of Florence-2-large model](https://huggingface.co/microsoft/Florence-2-large/blob/main/sample_inference.ipynb) | Model | Model size | Model Description | | ------- | ------------- | ------------- | | Florence-2-base[[HF]](https://huggingface.co/microsoft/Florence-2-base) | 0.23B | Pretrained model with FLD-5B | Florence-2-large[[HF]](https://huggingface.co/microsoft/Florence-2-large) | 0.77B | Pretrained model with FLD-5B | Florence-2-base-ft[[HF]](https://huggingface.co/microsoft/Florence-2-base-ft) | 0.23B | Finetuned model on a colletion of downstream tasks | Florence-2-large-ft[[HF]](https://huggingface.co/microsoft/Florence-2-large-ft) | 0.77B | Finetuned model on a colletion of downstream tasks ## How to Get Started with the Model Use the code below to get started with the model. All models are trained with float16. ```python import requests from PIL import Image from transformers import AutoProcessor, AutoModelForCausalLM device = "cuda:0" if torch.cuda.is_available() else "cpu" torch_dtype = torch.float16 if torch.cuda.is_available() else torch.float32 model = AutoModelForCausalLM.from_pretrained("microsoft/Florence-2-base-ft", torch_dtype=torch_dtype, trust_remote_code=True).to(device) processor = AutoProcessor.from_pretrained("microsoft/Florence-2-base-ft", trust_remote_code=True) prom...

Source context: 207746 downloads · 150 likes · Pipeline image-text-to-text · Library transformers · Repo microsoft/Florence-2-base-ft

Source context: 190425 downloads · 144 likes · Pipeline image-text-to-text · Library transformers · Repo microsoft/Florence-2-base-ft