Florence-2-base
Microsoft (United States) · Multimodal
🧠 230M📄 1K context🔓 Open weights (downloadable)⚖️ mit
Which way is for me?
Online, right nowNothing to install; free or very cheapOn my own computerOffline and private, with LM StudioFor developersvLLM, Transformers, llama.cpp
🌐 Online, right now
- Or try the free demo: microsoft/OmniParser-v2 · microsoft/OmniParser
💻 On my own computer
No ready LM Studio version (GGUF) of this model has been published yet. Use the online way for now; this page is checked again every night and the steps will appear here when one comes out.
Similar models you can run on your computer right now:
- bitnet-b1.58-2B-4TQ4 0.6 GB
- Phi-3.5-mini-instructQ4 2.6 GB
- Phi-3-mini-4k-instructQ4 2.6 GB
🧑💻 For developers
vLLM
vllm serve microsoft/Florence-2-baseTransformers (Python)
from transformers import pipeline
pipe = pipeline("image-text-to-text", model="microsoft/Florence-2-base")Words used here
- GGUF
- The file format LM Studio, Ollama and llama.cpp use to run a model.
- Quantization (Q4, Q8)
- Shrinking a model by storing numbers less precisely: Q4 smallest and slightly weaker, Q8 almost full, FP16 full.
- VRAM
- The graphics card's memory (or shared memory on a Mac); the model has to fit in it.
- Context
- The most text the model can see at once in a conversation (questions, answers and files).
- Tokens per second
- How fast the answer is written; 20 is about reading speed, 5 is slow.
From the Hugging Face model card
This Hub repository contains a HuggingFace's transformers implementation of Florence-2 model from Microsoft.
Benchmarks (from the model card)
| Method | params | COCO Cap. test CIDEr | NoCaps val CIDEr | TextCaps val CIDEr | COCO Det. val2017 mAP | |
|---|---|---|---|---|---|---|
| Flamingo | 80B | 84.3 | - | - | - | |
| Florence-2-base | 0.23B | 133.0 | 118.7 | 70.1 | 34.7 | |
| Florence-2-large | 0.77B | 135.6 | 120.8 | 72.8 | 37.5 | |
| Method | Flickr30k test R@1 | Refcoco val Accuracy | Refcoco test-A Accuracy | Refcoco test-B Accuracy | Refcoco+ val Accuracy | Refcoco+ test-A Accuracy |
| Kosmos-2 | 78.7 | 52.3 | 57.4 | 47.3 | 45.5 | 50.7 |
| Florence-2-base | 83.6 | 53.9 | 58.4 | 49.7 | 51.5 | 56.4 |
| Florence-2-large | 84.4 | 56.3 | 61.6 | 51.4 | 53.6 | 57.9 |
Source: Hugging Face · microsoft/Florence-2-base · License: mit
Hardware and running it
Local Weights are published and it runs on your own hardware.
- Minimum Q4
- 0.2 GB
- Recommended Q8
- 0.3 GB
- Full quality FP16
- 0.6 GB
On common hardware
| RTX 4060 · 8 GB | Great | FP16 · ≈ 200–330 tokens/s |
|---|---|---|
| RTX 4090 · 24 GB | Great | FP16 · ≈ 730–1,210 tokens/s |
| RTX 5090 · 32 GB | Great | FP16 · ≈ 1,290–2,150 tokens/s |
| Mac M4 Max · 128 GB | Great | FP16 · ≈ 390–660 tokens/s |
| H100 · 80 GB | Great | FP16 · ≈ 2,410–4,020 tokens/s |
| 8× H100 · 640 GB | Great | FP16 · ≈ 19,300–32,160 tokens/s |
Speeds are estimates. estimated speed for one user, from memory bandwidth
Links come from the vendor's official site and the model card the vendor published · Updated: