Florence-2 Large illustration
Multimodal · Microsoft

Florence-2 Large

Microsoft’s tiny vision foundation model — caption, detect, segment and ground in one 0.77B MIT-licensed net, and it runs on almost anything.

Params0.77B
Contextn/a (task prompts, not chat)
LicenseMIT
ReleasedJune 2024
Price / 1M$0 (self-hosted; MIT)
ModalityVision (captioning, detection, grounding, segmentation)

What it is and who makes it

Florence-2 Large is Microsoft’s open vision foundation model, released June 2024. It is emphatically not a chat model — it’s a single small network that, prompted with a task token, captions an image, detects objects, grounds phrases to bounding boxes, segments regions and reads text. If you’ve built anything with vision pipelines, you know the usual pain: one model for captions, another for detection, a third for OCR. Florence-2 collapses that into one 0.77B MIT-licensed model you can run on a CPU without wincing. As of Nov 2026 it’s still the go-to baseline for cheap, license-clean vision features — and it keeps finding new jobs: accessibility captioners, shelf-audit scripts, receipt parsers, even meme-tagging bots. If a product needs “describe this image in one sentence, deterministically, for $0,” this is the model that quietly does the work.

Architecture and what’s under the hood

Under the hood it’s a DaViT (dual-attention vision transformer) image encoder feeding a multi-modality encoder-decoder transformer, trained with a unified task-prompt formulation: every vision task becomes a sequence of tokens in, sequence of tokens out. Detection outputs are encoded as textual location tokens, segmentation as polygon/mask tokens, captions as plain text. Microsoft trained it on a massive annotated corpus (FLD-5B, on the order of 5 billion annotations across detection, grounding, captioning and more), which is why one small net does so many jobs. Exact layer counts for the Large variant are public (≈0.77B params total); treat finer-grained internals as approximate — the practical takeaway is a prompt-conditioned seq2seq design, not a diffusion or embedding model.

Strengths

  • One model, many tasks. Captioning, object detection, phrase grounding, segmentation, OCR-ish reading and region captioning — all through the same prompt API.
  • Tiny and MIT-licensed. 0.77B runs on CPU or a modest GPU; MIT means commercial use with zero friction.
  • Task-SOTA class captioning. COCO captioning scores in the ~140+ CIDEr class (approximate), competitive with much larger captioners.
  • Deterministic-ish outputs. Fixed task prompts give consistent, parseable output — ideal for pipelines that feed downstream code.

Weaknesses and failure modes

  • Not a chat model. Ask it a freeform question about an image and it will not behave like a VLM; it answers tasks, not conversations.
  • Task-prompt rigidity. You must use the exact prompt strings (<CAPTION>, <OD>, <OCR_WITH_REGION>…). Deviate and quality falls off a cliff.
  • English-centric captions. Descriptions are English and stylistically generic; grounding precision is good but not GroundingDINO-tier on rare classes.
  • Coordinates need decoding. Bounding boxes come out as quantized tokens you must unpack with the processor — a common integration stumbling block.

Best for / avoid for

Best for: bulk captioning for search/SEO, lightweight detection + grounding in on-device apps, OCR-with-region bootstrapping, synthetic dataset annotation, and any feature where MIT licensing and CPU-class inference are mandatory.

Avoid for: open-ended visual Q&A (use Qwen 2.5 VL or Phi-4-Multimodal), high-precision autonomous detection (use GroundingDINO/YOLO-World), and segmentation-heavy medical/satellite imagery without fine-tuning.

Variants and family

  • Florence-2 Base — ≈0.23B sibling; same tasks, noticeably lower accuracy, faster still.
  • Florence-2 Large — the recommended default; the quality/footprint sweet spot.
  • Florence-2-large-ft — the commonly fine-tuned build for downstream tasks.

Pricing, access and how to run it

Free forever (MIT). Weights on Hugging Face (microsoft/Florence-2-large); no API pricing because you run it yourself:

from transformers import AutoProcessor, AutoModelForCausalLM
from PIL import Image
import torch

model = AutoModelForCausalLM.from_pretrained(
    "microsoft/Florence-2-large", trust_remote_code=True, torch_dtype=torch.float16).to("cuda")
processor = AutoProcessor.from_pretrained(
    "microsoft/Florence-2-large", trust_remote_code=True)

image = Image.open("photo.jpg")
prompt = "<OD>"  # or <CAPTION>, <DETAILED_CAPTION>, <OCR>, <REFERRING_EXPRESSION_SEGMENTATION>...
inputs = processor(text=prompt, images=image, return_tensors="pt").to("cuda", torch.float16)
out = model.generate(**inputs, max_new_tokens=1024)
text = processor.batch_decode(out, skip_special_tokens=False)[0]
result = processor.post_process_generation(
    text, task=prompt, image_size=image.size)
print(result)

It also runs fine on CPU with fp32 for low-volume jobs, though fp16 on even an integrated GPU is noticeably snappier. No OpenRouter tier exists — just host it yourself or call it via a tiny FastAPI wrapper. A practical pattern: batch-annotate your image folder overnight, cache the JSON outputs, and only escalate the hard cases to a larger VLM. Florence-2 is frequently cheaper as a filter than as a finisher.

Benchmarks snapshot

Approximate, as of Nov 2026:

BenchmarkFlorence-2 Large (approx.)
COCO captioning (CIDEr)~140+ (task SOTA class)
COCO detection (mAP)~37 (reported)
RefCOCO grounding~80+ (reported)

Context for those numbers: they’re strong for a <1B model and roughly match systems 5–10x its size at release time; per-task SOTA has since moved on, but nothing at this weight class matches its breadth.

How it stacks up

vs Moondream 2 (~1.9B): Moondream is a real mini-VLM — it answers freeform questions, which Florence-2 can’t. Florence-2 wins on structured detection/grounding/segmentation outputs and on MIT purity; Moondream wins when you need conversation. For pipelines that parse coordinates into code, Florence-2 is cleaner.

vs GroundingDINO (~0.17B) / YOLO-World: GroundingDINO and YOLO-World are stronger open-vocabulary detectors with better zero-shot class coverage, but each does one job. Florence-2 trades a bit of detection sharpness for covering captioning, grounding and segmentation in a single dependency — often the right trade for small teams.

PeaBox fit

Florence-2 is a quiet workhorse in PeaBox tooling: bulk caption generation for asset libraries, grounding phrases to boxes for Speech Studio screenshot overlays, and cheap pre-annotation passes in Data Studio before human review. It costs nothing to run, and MIT means we can ship it inside products without a legal review. It will never write you a poem about the image — and that’s exactly the point.

The honest summary: Florence-2 Large is the model you install and forget, in the best way. It’s small, permissively licensed, and covers more vision tasks than anything else at its size. If you need conversation, reach for a VLM; if you need license-clean, CPU-friendly, structured vision outputs, reach for this. Almost every PeaBox-class workflow starts with a call to Florence-2 before anything fancier gets involved.

More from the atlas