# Florence-2 vs PaliGemma

> Florence-2 scores 48.5 (D) to PaliGemma's 44.8 (E) for vision detect. Prices, MCP, x402, uptime and agent notes side by side.

- Canonical: https://www.anchorterminal.com/compare/florence-2-vs-paligemma
- Markdown: https://www.anchorterminal.com/compare/florence-2-vs-paligemma.md (~2,350 tokens)
- Slim: https://www.anchorterminal.com/compare/florence-2-vs-paligemma.min.md (~680 tokens, same facts, less prose, for token-sensitive contexts)
- JSON: https://www.anchorterminal.com/compare/florence-2-vs-paligemma.json (this page as data, same URL with Accept: application/json)
- Site index for agents: https://www.anchorterminal.com/llms.txt (the key docs and every listing in one file, at most 16 MB, about 4 million tokens: https://www.anchorterminal.com/llms-full.txt)
- API: https://www.anchorterminal.com/api/v1/index.json
- MCP: https://www.anchorterminal.com/mcp (the whole catalogue as tools, no key)
- DNS: dig +short TXT <slug>.grade.anchorterminal.com (the grade as a DNS TXT record, for a sandbox with no HTTP where names still resolve; also top., best.<category>. and <a>.vs.<b>. under the zone, and the same under grade.letme.dev)
- Licence: CC BY 4.0, credit Anchor Terminal and link this page (https://www.anchorterminal.com/terms/#data)
- Updated: 2026-12-01

Florence-2 scores 48.5 (D) on agent readiness against PaliGemma's 44.8 (E), and leads in 2 of 4 scored categories. PaliGemma leads on documentation and upkeep. Both do vision detect.

- Florence-2: grade D, 48.5/100, rank #165 of 184 open-weight models. Markdown https://www.anchorterminal.com/tools/florence-2.md · JSON https://www.anchorterminal.com/api/v1/tools/florence-2.json
- PaliGemma: grade E, 44.8/100, rank #173 of 184 open-weight models. Markdown https://www.anchorterminal.com/tools/paligemma.md · JSON https://www.anchorterminal.com/api/v1/tools/paligemma.json
- Best computer vision models, APIs and labelling tools for AI agents: https://www.anchorterminal.com/best/computer-vision/index.md
- All 118 computer vision comparisons: https://www.anchorterminal.com/compare/computer-vision/index.md

## Which one, for what

### Florence-2 (D)

Good for: Agents that need small local captioning, OCR with regions or box output from a task token, and can accept an older model

Ahead on:
- Reach, 65 against 55
- Agent interface, 60 against 50

Watch for: The card's example runs repository code with trust_remote_code=True, and pytorch_model.bin sits beside the safetensors

### PaliGemma (E)

Good for: Agents that fine-tune a small vision-language model for one captioning, OCR or detection task, and can accept the Gemma Terms and a Kaggle gate

Ahead on:
- Documentation and upkeep, 34 against 23

Watch for: Gated behind a Kaggle account, an access request and a consent form, with an API key for the Keras route


## Why the edge

### Documentation and upkeep: PaliGemma +11

- Florence-2 (23): The card has three of seven items (8) and a short description of FLD-5B (5). Last modified 484 days ago (0). Responsiveness is scored as absent because the host limit stopped the count (0). Versions sit in separate repositories (5), and open reports of broken custom code keep file health at 5.
- PaliGemma (34): The card has five of seven items (14) and names its pre-training data without sizes or a cut-off (10). The newest release was 651 days ago (0). Responsiveness and file health are scored as absent because the Hugging Face pages weren't read (0 and 0). Dated releases for each generation earn 10.

### Reach: Florence-2 +10

- Florence-2 (65): Memory 30 from the card's 0.77B parameters at float16. Runtimes 10, Transformers (native) and vLLM (plugin), 5 each. No quantised builds from Microsoft (0), MIT (15), not gated (10), and no host found (0).
- PaliGemma (55): Memory 30 from 3B parameters. Runtimes 10, Transformers and vLLM, 5 each. No quantised build found (0), Gemma terms (10), a Kaggle access request and account (5) and no host found (0).

### Agent interface: Florence-2 +10

- Florence-2 (60): Read for a vision model. Task tokens and typed outputs through post_process_generation are documented (25 and 15). One task per call (10), prompts as task tokens in code (10), no reasoning mode (0) and a 4k context (0).
- PaliGemma (50): Read for a vision model. The command syntax and the Keras decoding code are documented (25), the prompt format is code and docs and not a template (10), one command per prompt (10), and text and location-token outputs without a JSON mode (5). No reasoning mode and no context length (0).

## Score by category

| Category | Weight | Florence-2 | PaliGemma | Edge |
| --- | --- | --- | --- | --- |
| Capability | 35%, pending | pending | pending | not scored in this run |
| Reach | 25% | 65 | 55 | Florence-2 +10 |
| Risk | 20% | 35 | 35 | even |
| Agent interface | 10% | 60 | 50 | Florence-2 +10 |
| Documentation and upkeep | 10% | 23 | 34 | PaliGemma +11 |
| Negative events | ≤15 | 0 | 0 | |
| **Total** | | **48.5 · D** | **44.8 · E** | |

## Facts side by side

| Fact | Florence-2 | PaliGemma |
| --- | --- | --- |
| Kind | Open-weight model | Open-weight model |
| Vendor | Microsoft | Google DeepMind |
| Hosted endpoint | no (local only) | no (local only) |
| Transports |  |  |
| Auth | None | None |
| Pricing | Free | Free |
| x402 | no | no |
| Licence | MIT | Gemma Terms of Use |
| Read-only variant documented | no | no |
| llms.txt | no | yes |
| Last release | 2025-08-04 | 2025-02-19 |
| Terms last updated | no document linked | 2026-04-01 |
| Privacy policy last updated | no document linked | no document linked |
| Customer content may train models | not read yet | yes |
| Terms restrict automated access | not read yet | not found in the text |
| Terms restrict benchmarking | not read yet | not found in the text |
| Terms or service can change without notice | not read yet | not found in the text |
| Arbitration or class-action waiver | not read yet | not found in the text |

## Verdicts

**Florence-2.** Florence-2 turns one task token into captions, boxes, grounded phrases, OCR with regions or segmentation from 0.23B or 0.77B parameters under MIT, and Transformers and vLLM run it. Microsoft's own repository needs trust_remote_code and ships a pickle file, and its files last changed on 4 August 2025.

**PaliGemma.** PaliGemma 2 mix answers questions about images and returns captions, OCR text, boxes and masks from a prompt syntax, at 3B, 10B or 28B, and Transformers and vLLM run it. Access needs a Kaggle request under the Gemma Terms, and the newest release dates to 19 February 2025.

## Before you call either

### Florence-2

1. Load a florence-community checkpoint with Transformers' native class when you can (its docs use florence-community/Florence-2-base). Microsoft's repository needs trust_remote_code=True, which runs its Python files.
2. Send one task token per call, such as <OD> or <CAPTION>, and pass the output to processor.post_process_generation with the task and the image size.
3. Use float16 on a GPU and float32 on a CPU. The card says all models were trained in float16.
4. Pick -ft for the tasks it was fine-tuned on and the pretrained model for prompts it wasn't. The card describes both and compares them.
5. To find named things, use the caption to phrase grounding task with a caption. <OD> returns boxes with the labels the model learned.

### PaliGemma

1. Request access on Kaggle first. Then set KAGGLE_USERNAME and KAGGLE_KEY before loading a preset with KerasHub.
2. Use a mix checkpoint (PaliGemma 2 mix) for out-of-the-box work. Fine-tune a PT checkpoint before you rely on it, and send an FT checkpoint only its own task's syntax.
3. Send the image first and the prompt second, for example `detect cow` or `segment cow`. Reversing the order usually gives unusable output.
4. Decode detect output with the location-token parser in Google's Keras guide. Segmentation output also needs the mask decoder in that guide.
5. Treat each call as one round. The card says PaliGemma 2 isn't a multi-turn chatbot.

## Questions

### Which is better for AI agents, Florence-2 or PaliGemma?

Florence-2 scores 48.5 (D) on agent readiness against PaliGemma's 44.8 (E), and leads in 2 of 4 scored categories. PaliGemma leads on documentation and upkeep.


## For agents

- This comparison as JSON: https://www.anchorterminal.com/compare/florence-2-vs-paligemma.json, and with the fewest tokens: https://www.anchorterminal.com/compare/florence-2-vs-paligemma.min.md
- Over MCP at https://www.anchorterminal.com/mcp (no key): `compare_tools {"a": "florence-2", "b": "paligemma"}`. From a terminal: `anchor compare florence-2 paligemma`
- Each listing in full: https://www.anchorterminal.com/api/v1/tools/florence-2.json and https://www.anchorterminal.com/api/v1/tools/paligemma.json

## Other comparisons with Florence-2 or PaliGemma

- [DINOv3 vs Florence-2](https://www.anchorterminal.com/compare/dinov3-vs-florence-2.md)
- [DINOv3 vs PaliGemma](https://www.anchorterminal.com/compare/dinov3-vs-paligemma.md)
- [Florence-2 vs Grounding DINO](https://www.anchorterminal.com/compare/florence-2-vs-grounding-dino.md)
- [Florence-2 vs Moondream](https://www.anchorterminal.com/compare/florence-2-vs-moondream.md)
- [Florence-2 vs RF-DETR](https://www.anchorterminal.com/compare/florence-2-vs-rf-detr.md)
- [Florence-2 vs Segment Anything (SAM 3.1)](https://www.anchorterminal.com/compare/florence-2-vs-segment-anything.md)
- [Florence-2 vs Ultralytics YOLO](https://www.anchorterminal.com/compare/florence-2-vs-ultralytics-yolo.md)
- [Grounding DINO vs PaliGemma](https://www.anchorterminal.com/compare/grounding-dino-vs-paligemma.md)
- [Moondream vs PaliGemma](https://www.anchorterminal.com/compare/moondream-vs-paligemma.md)
- [PaliGemma vs RF-DETR](https://www.anchorterminal.com/compare/paligemma-vs-rf-detr.md)
- [PaliGemma vs Segment Anything (SAM 3.1)](https://www.anchorterminal.com/compare/paligemma-vs-segment-anything.md)
- [PaliGemma vs Ultralytics YOLO](https://www.anchorterminal.com/compare/paligemma-vs-ultralytics-yolo.md)

---

Query this catalogue directly over MCP: https://www.anchorterminal.com/mcp (Streamable HTTP, no key). How: https://www.anchorterminal.com/agents/#mcp
