infly-ai/inf-mllm/olmocr-bench
Claude Code and agent skill by infly-ai/inf-mllm
- community
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-benchSKILL.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:
If the download times out, prefix the hf download command with HF_ENDPOINT=https://hf-mirror.com to use the mirror.
2. Parse
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:
| Category | Post-processing | |
|---|---|---|
multi_column, tables | Convert LaTeX to Unicode and normalize symbol variants | |
arxiv_math, old_scans_math | Merge 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
--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.
| Category | Score (%) | Passed / Tests | |
|---|---|---|---|
arxiv_math | 88.1 | 2579 / 2927 | |
baseline | 99.9 | 1392 / 1394 | |
headers_footers | 91.8 | 698 / 760 | |
long_tiny_text | 89.8 | 397 / 442 | |
multi_column | 83.4 | 737 / 884 | |
old_scans | 52.1 | 274 / 526 | |
old_scans_math | 89.5 | 410 / 458 | |
table_tests | 87.1 | 890 / 1022 | |
| Overall | 85.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
- SKILL.md in the repositoryCheckingskills/olmocr-bench/SKILL.md
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
[](https://verified-skill.com/skills/infly-ai/inf-mllm/olmocr-bench)