Florence-2-large
Microsoft (United States) · Multimodal
Which way is for me?
💻 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-largeTransformers (Python)
from transformers import pipeline
pipe = pipeline("image-text-to-text", model="microsoft/Florence-2-large")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 is a continued pretrained version of Florence-2-large model with 4k context length, only 0.1B samples are used for continue pretraining, thus it might not be trained well. In addition, OCR task has been updated with line separator ('\n'). COCO OD AP 39.8
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-large · License: mit
Hardware and running it
Local Weights are published and it runs on your own hardware.
- Minimum Q4
- 0.5 GB
- Recommended Q8
- 0.9 GB
- Full quality FP16
- 1.9 GB
On common hardware
| RTX 4060 · 8 GB | Great | FP16 · ≈ 62–100 tokens/s |
|---|---|---|
| RTX 4090 · 24 GB | Great | FP16 · ≈ 230–380 tokens/s |
| RTX 5090 · 32 GB | Great | FP16 · ≈ 410–680 tokens/s |
| Mac M4 Max · 128 GB | Great | FP16 · ≈ 120–210 tokens/s |
| H100 · 80 GB | Great | FP16 · ≈ 760–1,270 tokens/s |
| 8× H100 · 640 GB | Great | FP16 · ≈ 6,090–10,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: