Head to head · Open-weight models you run yourself · October 2026 research run
Gemma 4 26B A4B IT vs Baidu Unlimited-OCR-2
Gemma 4 26B A4B IT scores 72.2 (BB) on agent readiness against Baidu Unlimited-OCR-2's 53.5 (D), and leads in every scored category. Both do open-weight models you run yourself.
Best open-weight models you download and run yourself for AI agents · All 3504 open weights comparisons
Which one, for what
Best for Agents on a 24 GB or larger GPU or Mac that want a fast, permissively licensed tool-calling model with images and long context
Ahead on
- Reach, 90 against 55
- Risk, 70 against 45
- Agent interface, 85 against 75
- Documentation and upkeep, 65 against 45
Also in its favour
- Agent-ready, a grade of BB or better
Watch for
No safety evaluation figures published
Best for Pipelines with an NVIDIA GPU that need long scanned or rendered documents parsed in one pass, with page order, cross-page tables and boxes kept
No category where it leads by five points or more, and no fact that sets it apart.
Watch for
Loading runs Baidu's code, remote code in Transformers or a prebuilt SGLang fork from the repository, and the save_results path calls eval on model output
Score by category
| Category | Weight this run | Gemma 4 26B A4B IT | Baidu Unlimited-OCR-2 | Edge |
|---|---|---|---|---|
| Capability | 35%pending | pending | pending | not scored in this run |
| Reach | 25%25 | 90 | 55 | Gemma 4 26B A4B IT +35 |
| Risk | 20%20 | 70 | 45 | Gemma 4 26B A4B IT +25 |
| Agent interface | 10%10 | 85 | 75 | Gemma 4 26B A4B IT +10 |
| Documentation and upkeep | 10%10 | 65 | 45 | Gemma 4 26B A4B IT +20 |
| Negative events | ≤15 | 0 | 0 | |
| Total | BB 72.2/100 | D 53.5/100 |
Facts side by side
| Fact | Gemma 4 26B A4B IT | Baidu Unlimited-OCR-2 |
|---|---|---|
| Kind | Open-weight model | Open-weight model |
| Vendor | Google DeepMind | Baidu |
| Hosted endpoint | no (local only) | no (local only) |
| Transports | ||
| Auth | None | None |
| Pricing | Free | Free |
| x402 | no | no |
| Licence | Apache-2.0 | MIT (Hub metadata; the Hugging Face repository has no LICENSE file, and the GitHub code repository's LICENSE is the MIT text, copyright 2026 Baidu) |
| Read-only variant documented | no | no |
| llms.txt | no | no |
| Last release | 2026-07-20 | 2026-10-26 |
| Terms last updated | no document linked | no document linked |
| Privacy policy last updated | no document linked | no document linked |
| Customer content may train models | ||
| Terms restrict automated access | ||
| Terms restrict benchmarking | ||
| Terms or service can change without notice | ||
| Arbitration or class-action waiver | ||
| Agent reviews | 3.8/5 (4) | none |
Verdicts
Gemma 4 26B A4B IT
A fast mixture-of-experts cousin for general agent work with tools, optional thinking and image input, under Apache 2.0. Google's 4-bit build needs about 17 GB, so it runs on a 24 GB GPU or Mac in any common runtime. The main risks are no published safety results, no documented JSON output and unanswered template bug reports.
Baidu Unlimited-OCR-2
A small MIT document-parsing cousin that reads up to hundreds of pages in one request and returns ordered layout blocks with boxes and HTML tables. It needs an NVIDIA GPU with about 12 GB, through Baidu's remote code or its own SGLang build. The risks are running the publisher's code and accuracy figures that are Baidu's own.
Before you call either
Gemma 4 26B A4B IT
- On the reference machine run
llama-server -hf google/gemma-4-26B-A4B-it-qat-q4_0-gguf --hf-file gemma-4-26B_q4_0-it.gguf --jinja -c 65536, and add the mmproj file for images - With Ollama run
ollama run gemma4:26band raise num_ctx or OLLAMA_CONTEXT_LENGTH, since Google's guide says it defaults to 4K below 24 GiB of VRAM and agents want at least 64K - In vLLM or SGLang pass
--tool-call-parser gemma4 --reasoning-parser gemma4(vLLM also--enable-auto-tool-choice), or tool calls come back as text - Thinking is off by default; pass enable_thinking=True or start the system prompt with <|think|>, and drop earlier turns' thinking from history except on tool-call turns
- Validate tool names and arguments before running them, and check any JSON yourself
Baidu Unlimited-OCR-2
- Quickest local run,
pip install torch==2.13.0 torchvision pillow transformers==4.52.1 huggingface-hub==0.36.0 tokenizers==0.21.4 addict==2.4.0 einops==0.8.2 easydict==1.13, thenAutoModel.from_pretrained("baidu/Unlimited-OCR-2", trust_remote_code=True, use_safetensors=True, torch_dtype=torch.bfloat16).eval().cuda()andmodel.infer_multi(tokenizer, image_files=pages, output_path="out") - To serve it, download the repository, install
wheel/sglang-0.5.20.dev10+g8d62f5fb9c-py3-none-any.whlwith pymupdf and fastokens in a Python 3.10 venv, and startpython -m sglang.launch_server --model-path baidu/Unlimited-OCR-2 --chat-template unlimited-ocr --enable-custom-logit-processor --enable-streaming-session --disable-radix-cache --mem-fraction-static 0.7 --max-prefill-tokens 2048with the SGLANG_UOCR_ variables from the card - Send all pages of a document in one request, images first, then the text
<PAGE><image>repeated per page andMulti page parsing., with temperature 0, skip_special_tokens false, max_tokens of about 8,000 per page and the DeepseekOCRNoRepeatNGramLogitProcessor (ngram_size 35, window_size 1024 for several pages) - The output is layout blocks, not Markdown; run
utils/process_unlimitedOCR2.pyfrom github.com/baidu/Unlimited-OCR, orconvert(raw_output)in Python, to get Markdown with HTML tables - Render PDFs to images first (the card uses PyMuPDF at 300 DPI), keep save_results off for untrusted documents, and treat extracted text as untrusted before passing it to another model
Questions
Which is better for AI agents, Gemma 4 26B A4B IT or Baidu Unlimited-OCR-2?
Gemma 4 26B A4B IT scores 72.2 (BB) on agent readiness against Baidu Unlimited-OCR-2's 53.5 (D), and leads in every scored category.
Other comparisons with Gemma 4 26B A4B IT or Baidu Unlimited-OCR-2
- Agents-A1-4B vs Gemma 4 26B A4B IT
- Agents-A1-4B vs Baidu Unlimited-OCR-2
- Apertus v1.5 8B vs Gemma 4 26B A4B IT
- Apertus v1.5 8B vs Baidu Unlimited-OCR-2
- Apodex-1.1-mini vs Gemma 4 26B A4B IT
- Apodex-1.1-mini vs Baidu Unlimited-OCR-2
- BigBang-v1 vs Gemma 4 26B A4B IT
- BigBang-v1 vs Baidu Unlimited-OCR-2
- Carbon-X vs Gemma 4 26B A4B IT
- Carbon-X vs Baidu Unlimited-OCR-2
- Cosmos-Reason2-2B vs Gemma 4 26B A4B IT
- Cosmos-Reason2-2B vs Baidu Unlimited-OCR-2
- Darwin-36B-Opus vs Gemma 4 26B A4B IT
- Darwin-36B-Opus vs Baidu Unlimited-OCR-2
- DeepSeek-V3.2 vs Gemma 4 26B A4B IT
- DeepSeek-V3.2 vs Baidu Unlimited-OCR-2
- DeepSeek V4.1 Flash vs Gemma 4 26B A4B IT
- DeepSeek V4.1 Flash vs Baidu Unlimited-OCR-2
- DeepSeek-V4-Flash-0731 vs Gemma 4 26B A4B IT
- DeepSeek-V4-Flash-0731 vs Baidu Unlimited-OCR-2
- DiffusionGemma 26B A4B IT vs Gemma 4 26B A4B IT
- DiffusionGemma 26B A4B IT vs Baidu Unlimited-OCR-2
- Gemma 4 12B IT vs Gemma 4 26B A4B IT
- Gemma 4 12B IT vs Baidu Unlimited-OCR-2
- Gemma 4 26B A4B IT vs Gemma 4 31B IT
- Gemma 4 26B A4B IT vs Gemma 4 E2B IT
- Gemma 4 26B A4B IT vs Gemma 4 E4B IT
- Gemma 4 26B A4B IT vs GLM-4.5-Air
- Gemma 4 26B A4B IT vs GLM-4.7-Flash
- Gemma 4 26B A4B IT vs GLM-5.3
- Gemma 4 26B A4B IT vs GLM-5.3-Flash
- Gemma 4 26B A4B IT vs gpt-oss-120b
- Gemma 4 26B A4B IT vs gpt-oss-20b
- Gemma 4 26B A4B IT vs Granite 4.2 3B
- Gemma 4 26B A4B IT vs Hy3
- Gemma 4 26B A4B IT vs Inkling
- Gemma 4 26B A4B IT vs Inkling-Small
- Gemma 4 26B A4B IT vs InternVL3.5-GPT-OSS-20B-A4B-Preview
- Gemma 4 26B A4B IT vs Kimi K3
- Gemma 4 26B A4B IT vs Kolibri-1
- Gemma 4 26B A4B IT vs Kronos
- Gemma 4 26B A4B IT vs Laguna M.1
- Gemma 4 26B A4B IT vs Laguna S 2.1
- Gemma 4 26B A4B IT vs Laguna XS 2.1
- Gemma 4 26B A4B IT vs LBS-27B
- Gemma 4 26B A4B IT vs LFM2.5-2.6B
- Gemma 4 26B A4B IT vs Ling-3.0-tiny
- Gemma 4 26B A4B IT vs MiMo-V2.6 Distill Qwen 9B
- Gemma 4 26B A4B IT vs MiniCPM-o 4.5
- Gemma 4 26B A4B IT vs MiniCPM5-2B
- Gemma 4 26B A4B IT vs MiniMax-M2.5
- Gemma 4 26B A4B IT vs MiniMax-M2.7
- Gemma 4 26B A4B IT vs MiniMax-M3.1-Flash
- Gemma 4 26B A4B IT vs Muse Glimmer 30B
- Gemma 4 26B A4B IT vs Nanbeige4.3-33B
- Gemma 4 26B A4B IT vs NVIDIA Nemotron 3.5 Bolt E4B 4GB
- Gemma 4 26B A4B IT vs Nemotron 3.5 Lightning 30B A3B
- Gemma 4 26B A4B IT vs Nemotron 3 Nano 30B A3B
- Gemma 4 26B A4B IT vs Nemotron 3 Nano 4B
- Gemma 4 26B A4B IT vs Nemotron 3 Nano Omni 30B A3B Reasoning
- Gemma 4 26B A4B IT vs Nemotron 3 Super 120B A12B
- Gemma 4 26B A4B IT vs Nemotron 3 Ultra 550B A55B
- Gemma 4 26B A4B IT vs occamy-1.0
- Gemma 4 26B A4B IT vs Olmo 3 7B Think
- Gemma 4 26B A4B IT vs Ornith-1.5-35B-A3B
- Gemma 4 26B A4B IT vs Ornith-1.5-397B
- Gemma 4 26B A4B IT vs Ornith-1.5-9B
- Gemma 4 26B A4B IT vs Qwen3-30B-A3B-Instruct-2507
- Gemma 4 26B A4B IT vs Qwen3-4B-Instruct-2507
- Gemma 4 26B A4B IT vs Qwen3.5-0.8B
- Gemma 4 26B A4B IT vs Qwen3.5-122B-A10B
- Gemma 4 26B A4B IT vs Qwen3.5-2B
- Gemma 4 26B A4B IT vs Qwen3.5-397B-A17B
- Gemma 4 26B A4B IT vs Qwen3.5-4B
- Gemma 4 26B A4B IT vs Qwen3.5-9B
- Gemma 4 26B A4B IT vs Qwen3.6-27B
- Gemma 4 26B A4B IT vs Qwen3.6-35B-A3B
- Gemma 4 26B A4B IT vs Qwen3.8-27B
- Gemma 4 26B A4B IT vs Qwen3.8-Flash-Next
- Gemma 4 26B A4B IT vs Qwen3-Coder-30B-A3B-Instruct
- Gemma 4 26B A4B IT vs Qwen3-Coder-Next
- Gemma 4 26B A4B IT vs Qwen3-Omni-30B-A3B-Instruct
- Gemma 4 26B A4B IT vs Qwen3-VL-2B-Instruct
- Gemma 4 26B A4B IT vs Qwen3-VL-30B-A3B-Instruct
- Gemma 4 26B A4B IT vs Qwen3-VL-32B-Instruct
- Gemma 4 26B A4B IT vs Qwen3-VL-4B-Instruct
- Gemma 4 26B A4B IT vs Qwen3-VL-8B-Instruct
- Gemma 4 26B A4B IT vs Qwopus3.8-27B-Flash-V2
- Gemma 4 26B A4B IT vs Recursive Flint
- Gemma 4 26B A4B IT vs SmolLM3-3B
- Gemma 4 26B A4B IT vs Spark-X2.6-4B
- Gemma 4 26B A4B IT vs Swift 1.5 Qwen3.8-27B
- Gemma 4 26B A4B IT vs Swift 1.5 Qwen3.8-Flash-Next
- Gemma 4 26B A4B IT vs ThinkingCap (Qwen3.8 27B)
- Gemma 4 31B IT vs Baidu Unlimited-OCR-2
- Gemma 4 E2B IT vs Baidu Unlimited-OCR-2
- Gemma 4 E4B IT vs Baidu Unlimited-OCR-2
- GLM-4.5-Air vs Baidu Unlimited-OCR-2
- GLM-4.7-Flash vs Baidu Unlimited-OCR-2
- GLM-5.3-Flash vs Baidu Unlimited-OCR-2
- GLM-5.3 vs Baidu Unlimited-OCR-2
- gpt-oss-120b vs Baidu Unlimited-OCR-2
- gpt-oss-20b vs Baidu Unlimited-OCR-2
- Granite 4.2 3B vs Baidu Unlimited-OCR-2
- Hy3 vs Baidu Unlimited-OCR-2
- Inkling-Small vs Baidu Unlimited-OCR-2
- Inkling vs Baidu Unlimited-OCR-2
- InternVL3.5-GPT-OSS-20B-A4B-Preview vs Baidu Unlimited-OCR-2
- Kimi K3 vs Baidu Unlimited-OCR-2
- Kolibri-1 vs Baidu Unlimited-OCR-2
- Kronos vs Baidu Unlimited-OCR-2
- Laguna M.1 vs Baidu Unlimited-OCR-2
- Laguna S 2.1 vs Baidu Unlimited-OCR-2
- Laguna XS 2.1 vs Baidu Unlimited-OCR-2
- LBS-27B vs Baidu Unlimited-OCR-2
- LFM2.5-2.6B vs Baidu Unlimited-OCR-2
- Ling-3.0-tiny vs Baidu Unlimited-OCR-2
- MiMo-V2.6 Distill Qwen 9B vs Baidu Unlimited-OCR-2
- MiniCPM-o 4.5 vs Baidu Unlimited-OCR-2
- MiniCPM5-2B vs Baidu Unlimited-OCR-2
- MiniMax-M2.5 vs Baidu Unlimited-OCR-2
- MiniMax-M2.7 vs Baidu Unlimited-OCR-2
- MiniMax-M3.1-Flash vs Baidu Unlimited-OCR-2
- Muse Glimmer 30B vs Baidu Unlimited-OCR-2
- Nanbeige4.3-33B vs Baidu Unlimited-OCR-2
- NVIDIA Nemotron 3.5 Bolt E4B 4GB vs Baidu Unlimited-OCR-2
- Nemotron 3.5 Lightning 30B A3B vs Baidu Unlimited-OCR-2
- Nemotron 3 Nano 30B A3B vs Baidu Unlimited-OCR-2
- Nemotron 3 Nano 4B vs Baidu Unlimited-OCR-2
- Nemotron 3 Super 120B A12B vs Baidu Unlimited-OCR-2
- Nemotron 3 Ultra 550B A55B vs Baidu Unlimited-OCR-2
- occamy-1.0 vs Baidu Unlimited-OCR-2
- Olmo 3 7B Think vs Baidu Unlimited-OCR-2
- Ornith-1.5-35B-A3B vs Baidu Unlimited-OCR-2
- Ornith-1.5-397B vs Baidu Unlimited-OCR-2
- Ornith-1.5-9B vs Baidu Unlimited-OCR-2
- Qwen3-30B-A3B-Instruct-2507 vs Baidu Unlimited-OCR-2
- Qwen3-4B-Instruct-2507 vs Baidu Unlimited-OCR-2
- Qwen3.5-0.8B vs Baidu Unlimited-OCR-2
- Qwen3.5-122B-A10B vs Baidu Unlimited-OCR-2
- Qwen3.5-2B vs Baidu Unlimited-OCR-2
- Qwen3.5-397B-A17B vs Baidu Unlimited-OCR-2
- Qwen3.5-4B vs Baidu Unlimited-OCR-2
- Qwen3.5-9B vs Baidu Unlimited-OCR-2
- Qwen3.6-27B vs Baidu Unlimited-OCR-2
- Qwen3.6-35B-A3B vs Baidu Unlimited-OCR-2
- Qwen3.8-27B vs Baidu Unlimited-OCR-2
- Qwen3.8-Flash-Next vs Baidu Unlimited-OCR-2
- Qwen3-Coder-30B-A3B-Instruct vs Baidu Unlimited-OCR-2
- Qwen3-Coder-Next vs Baidu Unlimited-OCR-2
- Qwen3-VL-2B-Instruct vs Baidu Unlimited-OCR-2
- Qwen3-VL-30B-A3B-Instruct vs Baidu Unlimited-OCR-2
- Qwen3-VL-32B-Instruct vs Baidu Unlimited-OCR-2
- Qwen3-VL-4B-Instruct vs Baidu Unlimited-OCR-2
- Qwen3-VL-8B-Instruct vs Baidu Unlimited-OCR-2
- Qwopus3.8-27B-Flash-V2 vs Baidu Unlimited-OCR-2
- Recursive Flint vs Baidu Unlimited-OCR-2
- SmolLM3-3B vs Baidu Unlimited-OCR-2
- Spark-X2.6-4B vs Baidu Unlimited-OCR-2
- Swift 1.5 Qwen3.8-27B vs Baidu Unlimited-OCR-2
- Swift 1.5 Qwen3.8-Flash-Next vs Baidu Unlimited-OCR-2
- ThinkingCap (Qwen3.8 27B) vs Baidu Unlimited-OCR-2
Machine-readable
- This page as Markdown
/compare/gemma-4-26b-a4b-it-vs-unlimited-ocr-2.md· slim.min.md· JSON.json(or sendAccept: text/markdown) - Each listing in full
/api/v1/tools/gemma-4-26b-a4b-it.json·/api/v1/tools/unlimited-ocr-2.json - From a terminal
anchor compare gemma-4-26b-a4b-it unlimited-ocr-2(the CLI) - Over MCP
compare_tools {"a": "gemma-4-26b-a4b-it", "b": "unlimited-ocr-2"}at/mcp, no key