infly-ai/inf-mllm/olmocr-bench

Claude Code and agent skill by infly-ai/inf-mllm

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Reproduce Infinity Parser scores on olmOCR-Bench. Parses the benchmark PDFs through the Infinity Parser API, applies the category-specific post-processing, and scores the output with the official olmOCR-Bench harness at a pinned commit.

Install

npx vskill@latest install infly-ai/inf-mllm/olmocr-bench

SKILL.md

olmOCR-Bench Reproduction Skill

Reproduce olmOCR-Bench scores for Infinity Parser in three steps: set up, parse, score. Requires Python 3.11+, git, and an Infinity Parser API key. Run every command from this skill directory.

1. Set up

Copy .env.example to .env, then set INF_API_URL to the full chat completions endpoint (ending in /v1/chat/completions) and INF_API_KEY to your key. Environment variables with the same names override the file.

Install the official harness and download the dataset, both pinned to the evaluated revisions:

bash
git clone https://github.com/allenai/olmocr.git
git -C olmocr checkout f7cfe4c22098b154c76b6ec950d1c0a464eecf8d
pip install -e './olmocr[bench]'
pip install -U huggingface_hub # provides the hf CLI
pip install requests # used by scripts/infer.py
playwright install chromium
hf download allenai/olmOCR-bench --repo-type dataset \
--revision 54a96a6fb6a2bd3b297e59869491db4d3625b711 \
--local-dir olmocr/olmOCR-bench

If the download times out, prefix the hf download command with HF_ENDPOINT=https://hf-mirror.com to use the mirror.

2. Parse

bash
python3 scripts/infer.py \
--pdf-dir olmocr/olmOCR-bench/bench_data/pdfs \
--output-dir olmocr/olmOCR-bench/bench_data/infinity_parser \
--tier flash \
--workers 8

The script sends each PDF to INF_API_URL as a Base64 file content part with model infinity-parser-<tier> and parser_options set to page 1, keep_header_footer: false, and parse_chart: false. It saves each raw response under raw/, and writes <category>/<name>_pg1_repeat1.md in the layout the harness expects. Category-specific post-processing in scripts/postprocess.py is applied to the Markdown:

CategoryPost-processing
multi_column, tablesConvert LaTeX to Unicode and normalize symbol variants
arxiv_math, old_scans_mathMerge adjacent formulas; split aligned blocks in old_scans_math

Re-running the command skips PDFs that already have a raw response and rebuilds all Markdown. If some PDFs fail, the script exits non-zero; run it again before scoring, because the harness gives a candidate a score of 0 if any file is missing.

--tier defaults to flash. To compare tiers, write each tier to a different --output-dir folder inside bench_data.

3. Score

bash
cd olmocr
python -m olmocr.bench.benchmark \
--dir ./olmOCR-bench/bench_data \
--candidate infinity_parser

--candidate is the name of the output folder inside bench_data. The harness prints per-category scores and the overall score with a 95% confidence interval.

Notes

  • Do not rename the category folders under pdfs/; the post-processing and the harness both use the folder names.
  • The pinned harness commit and dataset revision keep scores reproducible. Newer revisions may change tests or metrics.

Reference scores

Scores from running the commands above with --tier flash. A successful reproduction lands within 1 point of each value.

CategoryScore (%)Passed / Tests
arxiv_math88.12579 / 2927
baseline99.91392 / 1394
headers_footers91.8698 / 760
long_tiny_text89.8397 / 442
multi_column83.4737 / 884
old_scans52.1274 / 526
old_scans_math89.5410 / 458
table_tests87.1890 / 1022
Overall85.2 (95% CI: 84.3–86.1)8413 tests

The overall score is the average of the eight category scores, not the pooled pass rate.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
257
Repository forks
28
7-day trend score
0

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/infly-ai/inf-mllm/olmocr-bench/badge)](https://verified-skill.com/skills/infly-ai/inf-mllm/olmocr-bench)

Something wrong with this skill or its page? Tell us.