Repository navigation
Add olmOCR-bench, CC-OCR multi-scene and OmniDocBench v1.5/v1.6 - #412
Conversation
28fcb0c to
420e8a1
Compare
6a5f1ce to
569bbb1
Compare
6ba8958 to
bfb9c5e
Compare
fcc9534 to
d9f6f7e
Compare
bb023fd to
bb2505b
Compare
gregorybchris
left a comment
There was a problem hiding this comment.
This review was generated by an agent following
REVIEW_GUIDE.md. It is not from a human reviewer. Reply in the PR thread and a maintainer will follow up.
Thanks for this! Running each benchmark's official scorer is the right call, and the Qwen3-VL-4B parity table plus the up-front toolchain probes are strong work. I found five things to fix before merge and a few smaller ones.
The first three affect persisted results and failure visibility. All three come from how the new metrics and the OmniDocBench failure path interact with existing framework defaults. Items 4 and 5 affect task identity and prompt parity for tasks that already exist.
I ran ruff check, ruff format --check, ty check and pytest tests/ --ignore=tests/integration on the PR head (bb2505b). All pass: 2,884 passed, 35 skipped. CI is green. I reproduced every finding below on that head with a small script using fake responses. None of them needed a GPU.
Blocking
-
src/olmo_eval/runners/io/builders.py:96-104(viasrc/olmo_eval/evals/vision/scoring/cc_ocr.py:100,src/olmo_eval/evals/vision/scoring/olmocr_bench.py:147,src/olmo_eval/evals/vision/benchmarks/omnidocbench.py:302)
The per-benchmark results the scorers write tooutput.metadatanever reach the saved predictions.build_predictionscopies only an allowlist of output-metadata keys (execution_result,scoring_errors,judge_result,answer_format_correct).cc_ocr_result,olmocr_bench_resultandomnidocbench_resultare not on that list. I built predictions for scoredcc_ocr_multi_sceneandomnidocbenchresponses, and eachmodel_outputentry had onlytext,extracted_answer,num_charsandsample_metrics. So the per-test pass/fail and explanations for olmOCR-bench, the per-image right/gt/pred counts for CC-OCR, and the per-page text/table/formula values for OmniDocBench are lost after the run. The description says "Per-page results are stored on each response" and that predictions are kept "for rescoring". That is true only in memory. None of the category breakdowns can be recomputed from the saved files, and a failing test cannot be told apart from a genuine miss.
The allowlist is a deficiency in the framework, not in this PR. Each new scorer has to remember to add its key there. Could we fix it once? For example, persist a namespacedoutput.metadata["scorer_results"]dict (keyed by scorer name) inbuild_predictions, and have these three scorers write there. The smaller fix is to add the three keys to the allowlist. Please add a test that builds predictions from a scored response for each benchmark and asserts the result dict is present. -
src/olmo_eval/evals/vision/scoring/cc_ocr.py:128,141,src/olmo_eval/evals/vision/scoring/olmocr_bench.py:171,183,195,src/olmo_eval/evals/vision/scoring/omnidocbench.py:887,923,951
None of the new metrics overridecompute_instance, so each persisted per-instance value falls back to the scorer channel. This is the recurringcompute_instancepitfall, and the values it stores are wrong. What I observed:- CC-OCR: an instance from
TotalTextwith F1 1.0 is stored withIC15: 1.0,micro_f1: 1.0andmacro_f1: 1.0. AnIC15instance with F1 0.0 is stored withTotalText: 0.0. Each instance gets a value for every sub-dataset metric, including the 12 it does not belong to. - OmniDocBench: a page with text edit distance 0.2 is stored with
text_edit: 0.8,overall: 0.8(the aggregate is on a 0-100 scale),table_teds: 0.8,text_edit_chinese: 0.8(the page is English), andn_scorer_failures: 0.8. A lower-is-better metric is persisted as its complement. - olmOCR-bench: every category and
type_*metric stores the page's overall pass fraction, including for categories the page has no tests in.
Pairwise analysis reads these values, so instance-level comparisons on these tasks would be wrong while the aggregates look right. Please override
compute_instanceon each metric so it returns the per-instance value in the metric's own units, andNonewhen the instance is outside the metric's scope (another sub-dataset, another category, another language). Also setsupports_pairwise_scorer_fallback()toFalsewhere the scorer value is not the metric's per-instance value. Separately,pairwise_higher_is_better()defaults toTrue, which is wrong fortext_edit,formula_edit,read_order_editand their slices. Please returnFalsefor those. Please add a regression test that builds predictions and checks the persistedinstance_metricsfor one in-scope and one out-of-scope instance per metric family. - CC-OCR: an instance from
-
src/olmo_eval/evals/vision/benchmarks/omnidocbench.py:283-293
When the evaluator fails or times out, the task returns NaN for every metric and the run is reported as a success. I stubbedrun_official_evaluationto raise.compute_metricsreturnedoverall: nanandevaluator_failed: 1.0.finalize_task(runners/asynq/preparation.py:160-190) then builds aTaskResultwhoseerroris set only fromscoring_errorsmarked as infrastructure. Nothing marks this failure, soerrorstaysNone. Keeping the predictions is the right goal:build_predictionsruns aftercompute_metrics, so raising would lose them. But an infrastructure failure must not look like a finished run. There is a second problem I could not check without a database:metricsis a JSONB column, Postgres JSONB rejectsNaNtokens, and I found no NaN sanitizing instorage/.
The existing mechanism already handles the "keep predictions, mark incomplete" case. Could we record the failure on each output instead, for exampleoutput.metadata["scoring_errors"] = {"omnidocbench": {"error": "...", "infrastructure": "true"}}? Then_infrastructure_errorsetsTaskResult.error, the predictions are still written, and the error reaches storage. It would also be good to omit the metrics, or report them as absent rather than NaN. Please add a test for the failure path that asserts the task result carries an error. -
src/olmo_eval/common/types/base.py:248,src/olmo_eval/evals/tasks/common/base.py:300
Addingpresence_penaltytoSamplingParamschanges the task hash of every task in the registry.TaskConfig.to_dictserializesasdict(self.sampling_params), so each config gains"presence_penalty": null. I computed hashes with and without the new key:gsm8kmoves from4f68bf90a407205ato496d06cf88d1ed62, andhumaneval,pixmo_countanddense_caption_captionermove the same way. After merge, new runs of unchanged tasks no longer group with existing stored results. EarlierSamplingParamsadditions (truncate_prompt_tokens,truncation_side) had the same effect, so this is a gap in how the hash treats new defaulted fields.
Also, no task in this PR sets the field. It is passed through for vLLM, vLLM server and HF, butlitellm(inference/providers/litellm.py:136),olmo_coreandolmo_core_vlmdrop it silently, so a config could record a penalty that was never applied. Could we movepresence_penaltyinto its own PR that lands with a task that uses it? That PR should either handle every provider or reject the field where it is unsupported, and it should say clearly that it moves every task hash. If it stays here, please make those two changes and state the hash change in the description. A longer-term framework fix would be to leave fields at their defaultNoneout of the hash input, so new optional knobs stop moving every hash. -
src/olmo_eval/evals/vision/benchmarks/dense_caption.py:201,286
dense_caption_captioner, anddense_captionunderstyle_and_length_v2, change their prompt in place fromlong_caption 65:tolong_caption:. The prompt is not part ofTaskConfig.to_dict. These tasks get new hashes only because of the unrelated change in item 4. The old prompt was verified verbatim against an mm_olmoDenseCaptionEval-testdump, and mm_olmo's captioner-family checkpoints (for example the siglip2-cap-stage1 runs) were trained with it. After this change those checkpoints can no longer be evaluated with their training prompt. Our convention is to keep a bug-compatible reference under the existing name and ship the new behavior under a new name. Could the OLMo-core stage-1 prompt be a new variant or task (for exampledense_caption_captioner:stage1), with the mm_olmo form left under the current name? If mm_olmo captioner checkpoints are no longer evaluated at all, please say so in the description and docstring, and we can accept the in-place change.
Non-blocking
-
Scorer unit tests (
src/olmo_eval/evals/vision/scoring/)
The description offers these. Please add them. New scoring logic needs direct tests, and items 1-3 would have been caught by them. Cases I'd like to see:score_ocr_sample: word-level and character-level,###and***stripping, the empty prediction.CcOcrTrackMetricandCcOcrDatasetMetric: macro and micro F1 over two sub-datasets.- olmOCR-bench category and overall aggregation from stubbed per-test results, including the synthesized baseline.
- OmniDocBench:
_page_means,_summary,_count_failures, andOmniDocBenchPageMetriczero-fill on and off. These can use smallmetric_resultfixtures without the evaluator. _presence_penalty_processor: prompt tokens are not penalized, and a repeated token is penalized once.
-
CC-OCR parity (
src/olmo_eval/evals/vision/benchmarks/cc_ocr.py)
The validation table covers olmOCR-bench and OmniDocBench v1.5 but not CC-OCR. The CC-OCR evidence matches our scorer against itself (recomputed versus full run), not against a reference. Could we add one published multi-scene number next to ours, for example a Qwen2-VL or Qwen2.5-VL row from the CC-OCR paper? -
src/olmo_eval/evals/vision/scoring/omnidocbench.py:777
v1.6 zeroes pages whose matching passes its per-page timeout. Footnote 2 reports 549 of 1,651 pages for 4B-Pretrain. The worker count comes fromOMNIDOCBENCH_EVAL_WORKERSoros.cpu_count() // 4, so the same predictions may score differently on a host with different CPU or contention. Neither value is recorded. Could we record the worker count and the number of timed-out pages in the task result, so two runs whose scores differ can be traced to this? -
src/olmo_eval/evals/vision/scoring/omnidocbench.py:339,436,472
The CDM toolchain downloads executables (the ImageMagick AppImage, Ghostscript, Node.js, the TeX Live installer and fonts) and runs them without verifying a checksum. It also callsapt-getfrom task code. For reproducibility and supply-chain safety, could we pin a SHA-256 for each download and check it? It would also help to fail early with a clear message on non-Linux or non-x86_64 hosts. Today a macOS user gets a failed Linux TeX Live install. -
src/olmo_eval/evals/vision/scoring/olmocr_bench.py:114
A test that raises counts as a failure. That matches the official runner, but a Chromium crash in the middle of a run would then look like the model failing math tests. Once the result dict is persisted (item 1), could we also report a count of tests that raised, next to the pass rates? -
Follow-up issues
The two heads-ups (Qwen3-VL degeneration withtransformers==5.17.0, andolmo_core_vlmignoring YaRN RoPE for Molmo2-O-7B) are worth tracking. The second one gives a CUDA assert instead of a clear error. Could you file an issue for each and link them here? The first issue should name the last known-good and first known-badtransformersversions. The second should say the provider should refuse checkpoints withrope_scalinguntil it supports them.
Nits
- Nit:
src/olmo_eval/evals/vision/benchmarks/omnidocbench.py:228version: strcould beLiteral["v1.6", "v1.5"]. The same applies tokind: stratsrc/olmo_eval/evals/vision/scoring/cc_ocr.py:146. - Nit:
src/olmo_eval/evals/vision/benchmarks/cc_ocr.py:83decodes all 13 TSVs (523 MB at the pinned revision) and keeps them in anlru_cachefor the life of the process, including for_enruns andlimitruns. - Nit:
n_scorer_failuresis a run-level count, but it is copied onto every page's result. It could live on the task result instead. - Nit:
_response_textis duplicated inscoring/cc_ocr.pyandscoring/olmocr_bench.py. - Nit: Docstrings and suite descriptions use exact counts ("1,403 PDFs", "8 English sub-datasets", "755 of 1,651"). The data is pinned, so these are less likely to go stale than usual, but the guide asks us to keep docstrings general.
- Nit: The OLMo-core pin bump, the dense-caption and PixMo-Count prompt changes, and the
sinksfix are independent of the OCR benchmarks. Splitting them out would make this easier to review and to revert.
Before merge
Please fix items 1-5 and add the regression tests named in each. Then add the scorer unit tests from non-blocking item 1. After that you may merge once CI is green. Please also file the two follow-up issues from non-blocking item 6 and link them here.
bb2505b to
5fc8fa2
Compare
Three document-OCR benchmarks that hand the model a page image and grade what it writes back, each scored the way its leaderboard is. olmocr_bench runs the 7,019 unit tests of olmOCR-bench through the official `olmocr` scorer, pinned to the release behind the published numbers, and reports the mean of the eight category pass rates. Pages ship as PDFs and are rasterized to a 2048px longest side. Math tests render with KaTeX in headless Chromium, which is verified, and installed if missing, before inference. cc_ocr_multi_scene is CC-OCR's multi-scene OCR track with the official evaluator vendored: per-image F1 of the word (Chinese: character) multiset, averaged within and then across its 13 sub-datasets. omnidocbench (v1.6) and omnidocbench_v15 run each version's pinned official evaluator out of process, once per task: it is not importable as a library, and its matching changes between versions. Per-page results are stored on each response and the page averages are checked against the evaluator's own summary. Provisioning imports the evaluator before inference, and pins around dependencies it would otherwise turn into silent zeros (filelock, the GUI OpenCV build, scikit-image). The v1.6 matcher runs with a deeper recursion limit, and an evaluation failure reports NaN metrics instead of discarding the run's predictions. CDM needs a LaTeX toolchain, so each version also has a `_no_cdm` variant. The instruction follows the checkpoint's prompt family, as for the pointing and captioning tasks. Validated on Qwen3-VL-4B: olmOCR-bench 79.3 (published 79.2) and OmniDocBench v1.5 text edit 0.054 (published 0.055).
A stage-1 checkpoint (-o prompt_templates=none -o system_prompt_style=style_and_length_v2) now sees exactly its OLMo-core stage-1 training prompt, the style tag alone (OLMo-core #875): * dense_caption_captioner, and dense_caption under the stage-1 family, send the bare `long_caption:` instead of `long_caption 65:` (the change in #401); default_inference_len is gone. * The OCR tasks send the task's OCR tag instead of `text_sft: <instruction>`: olmocr_bench and OmniDocBench `olmocr:`, CC-OCR `textocr:`. Under prompt_templates=none the question is empty, as for a caption. The default (instruction-tuned) prompt is unchanged: the benchmark's instruction. English-only variants, same official scoring on a subset: cc_ocr_multi_scene_en (the 8 sub-datasets without `zh`, 2,000 images; macro_f1 averages over them) and an `_en` variant of each OmniDocBench task (pages annotated `english`: 755 of v1.6, 628 of v1.5). New suite `ocr_en`: olmocr_bench, cc_ocr_multi_scene_en, omnidocbench_en. 11 new tests; tests/evals/vision and tests/evals/suites: 304 passed.
The v1.6 evaluator matches pages and scores tables in worker threads that fork a helper process per LaTeX conversion and table, and abandons threads that pass the page timeout. A fork from those threads can leave loguru's at-fork lock held forever, which hung Molmo2-4B's evaluation with no output for over 16 hours. Starting the helpers from a fork server avoids forking the threaded process; re-scoring saved Qwen3-VL-4B predictions gives identical per-page values except two pages the fork path had zeroed.
A hung evaluator held the run until the job's own limit and lost every generated page with it. Past a 12h cap (OMNIDOCBENCH_EVAL_TIMEOUT_S) the evaluation now fails like any other evaluator error: NaN metrics, with the predictions written for rescoring.
The CDM tasks used to stop before inference when pdflatex, ImageMagick 7, Ghostscript or Node.js was missing, which left Beaker runs on the _no_cdm variants and formula scores to a separate local step. They now install whatever is missing (TeX Live scheme-small with CDM's packages, the ImageMagick 7 AppImage with a pngalpha PDF delegate, Node.js, Ghostscript from apt) and render a test formula through the same template CDM uses, so a broken toolchain fails the job up front instead of scoring formulas zero.
Stage-1 checkpoints (-o prompt_templates=none) get the bare lower-cased label, point_count: <label>, which is what they train on; the default stays the released templated question (uber_model_v2), and an unknown family is refused. Moved here from #401, which is closed in favour of this PR.
Beaker's image lacks the system libraries the ImageMagick AppImage links against (harfbuzz, fontconfig, freetype, fribidi, X11), so the render check stopped the job; they are now installed from apt with Ghostscript. TeX Live comes from a fixed mirror first, since mirror.ctan.org redirects to random mirrors and some serve certificate chains that do not verify, and downloads retry.
Moves the olmo_core_vlm extra from 2dad929a to the current vision head, which adds OLMo-core#875 (Molmo2 stage-1 data and prompts). That OLMo-core's attention backends take a sinks argument (#872), which the provider's KV-cache backend rejected, failing every multimodal request; it now accepts it and refuses it only together with a KV cache. A test pins the cached backend's forward to the parent's parameters.
CDM follows the renderer: Ghostscript 10.02 (Ubuntu 24.04's apt package) moved a v1.6 formula score by 0.2 points against Ghostscript 9.55. The job now installs the runtime the v1.6 README lists as verified (TeX Live 2025 from the frozen tlnet-final repository, ImageMagick 7.1.1-47, Ghostscript 9.55.0) unless those exact versions are already on PATH, adds the pieces v1.5's CDM README requires (xelatex with xeCJK, the Source Han Sans SC font, Node.js 16.13.1), and checks each version's own formula template renders before inference.
How the CDM tasks set up their toolchain at job start, the versions each release pins, what the setup needs (network, apt), the environment variables, and a Beaker launch example.
Molmo2 models read English only, so the default task names now run the English subsets: cc_ocr_multi_scene the 8 English sub-datasets, and the four omnidocbench tasks the pages annotated english. The whole benchmarks move to _full variants (cc_ocr_multi_scene_full, omnidocbench_full, omnidocbench_no_cdm_full, omnidocbench_v15_full, omnidocbench_v15_no_cdm_full), which keep the per-language text-edit slices; the English tasks drop them, since they would read 0.0. The ocr suite follows the defaults, and ocr_full replaces ocr_en for every language. The _en names are gone, and the prompt tests use the new names.
Restores the naming before b865b2c: each benchmark is either the full benchmark (cc_ocr_multi_scene, omnidocbench, ...) or its English part (cc_ocr_multi_scene_en, omnidocbench_en, ...), with suites ocr and ocr_en. The _en variants are the documented default for Molmo2, which reads English only; the full ones stay for multilingual models. The English OmniDocBench tasks keep b865b2c's one fix: no per-language text-edit slices, which read 0.0 on English-only runs.
With the CDM toolchain installed at job start, omnidocbench and omnidocbench_v15 (and their _en variants) run anywhere the evaluation does and report every metric the _no_cdm variants did, plus CDM and overall. Removes omnidocbench_no_cdm, omnidocbench_v15_no_cdm and their _en variants, the text_score metric only they used, and the task's with_cdm switch; the prompt tests use the CDM tasks with the toolchain stubbed.
build_predictions copied only a fixed list of output-metadata keys, so a scorer's per-instance details (per-test outcomes, per-image counts, per-page values) were dropped from the saved predictions. Scorers can now record a result under output.metadata["scorer_results"][scorer_name] with set_scorer_result / get_scorer_result, and build_predictions keeps the whole dict, so new scorers no longer need to be added to the list.
The scorer records each image's statistics as its scorer result, so they reach the predictions. Each metric now stores its own per-instance value: a sub-dataset metric stores the image's F1 for images of that sub-dataset only, and the track metrics store the image's F1, instead of every metric reusing the scorer channel. kind is a Literal, and the scorers share response_text from vision/scoring/common. Only the TSVs of the sub-datasets a task runs are decoded; all of them must still be present. Docstrings no longer give exact counts.
The scorer records each page's test outcomes as its scorer result, so the pass/fail and explanation of every test reach the predictions. Category, test-type and overall metrics store the page's own value, None when the page has no tests in scope, instead of the page's overall pass fraction. A test that raises still fails, as in the official runner, but is now flagged, and n_test_errors counts them (lower is better), so a renderer crash cannot pass for model failures.
When the official evaluator fails or times out, every output now carries an infrastructure scoring error and no metrics are reported, so the task result has an error instead of NaN metrics on a run that looks finished. The predictions are still written for rescoring. Each page's values are saved as the scorer result. Page metrics store the page's own value (raw edit distance, x100 TEDS/CDM, zero-filled where the evaluator does, None outside a slice), and the edit-distance metrics are lower-is-better. The run-level scorer-failure count moves from every page to the task metrics as n_scorer_failures, next to eval_workers, the evaluator's worker count, which v1.6's time limits make scores depend on. Every CDM toolchain download is checked against a pinned SHA-256, and a host other than Linux x86_64 gets a clear error when tools are missing. version is a Literal.
dense_caption_captioner follows OLMo-core's stage-1 prompt; say in its docstring that mm_olmo's captioner checkpoints were trained on "long_caption 65:" and are no longer evaluated. The OCR suite descriptions drop exact counts.
Covers the CC-OCR, olmOCR-bench and OmniDocBench scorers and metrics, the scorer results and per-instance metric values saved with the predictions, and an OmniDocBench evaluator failure reaching the task result as an error. The olmOCR test runner and the OmniDocBench evaluator are stubbed.
5fc8fa2 to
6a12b69
Compare
|
Thanks for the thorough review. Everything below is in 39895a0..6a12b69, on top of the latest Blocking
Non-blocking
Nits
|
gregorybchris
left a comment
There was a problem hiding this comment.
This review was generated by an agent following
REVIEW_GUIDE.md. It is not from a human reviewer. Reply in the PR thread and a maintainer will follow up.
Approving. All five blocking items from the earlier review are addressed on 6a12b69:
- Scorer results are saved with the predictions through the new
scorer_resultskey. - Every metric stores its own per-instance value, with
Noneoutside its scope. Edit distances are marked lower-is-better. - An OmniDocBench evaluator failure or timeout is recorded as an infrastructure
scoring_error. The task result carries the error, no NaN metrics are stored, and the predictions are kept. presence_penaltyis dropped, so task hashes are unchanged.- The in-place
dense_caption_captionerprompt change is now documented as dropping mm_olmo captioner checkpoints.
The scorer unit tests, CC-OCR parity row, run-level failure and worker counts, pinned SHA-256 checksums, n_test_errors metric and follow-up issues #441 and #442 cover the non-blocking items. Locally, ruff passes and pytest tests/ --ignore=tests/integration gives 2,911 passed and 35 skipped. CI is green. Thanks for the thorough follow-up!
Conflicts were additions on both sides: the benchmark imports and the README task table now carry both the OCR tasks and the MolmoPoint pointing tasks. The MolmoPoint tasks are a Pointing row (suite molmopoint), not a separate family.
Adds three OCR benchmarks for vision-language models, each scored the way its leaderboard scores it. They follow the vision layout: tasks in
evals/vision/benchmarks/, scoring inevals/vision/scoring/, and a sharedOcrTaskbase inevals/vision/tasks/ocr.py.olmocr_bencholmocrscorer, pinned to 0.4.27 (the release behind the published numbers)overall: mean of the 8 category pass rates (0-1)cc_ocr_multi_scenecc_ocr_multi_scene_en: the 8 English ones (2,000)macro_f1: the official track score over the sub-datasets run (0-1)omnidocbench/omnidocbench_v15_envariants: their English pages (755 and 628)overall: the leaderboard's 0-100 numberEnglish by default. Each benchmark comes as its full version (the plain name, every language, as the leaderboards score it) and its English part (
_en):cc_ocr_multi_scene_enruns CC-OCR's 8 English sub-datasets, andomnidocbench_en,omnidocbench_v15_enrun OmniDocBench's pages annotatedenglish(755 of v1.6's 1,651; 628 of v1.5's 1,355). Molmo2 models read English only, so the_envariants are the default setting for evaluating them; the full ones stay for multilingual models and additionally report OmniDocBench text edit by page language. Suiteocr_enruns the English defaults andocrthe full benchmarks (both display-only, since the scales differ).olmocr_benchis English throughout and has no variant.Scoring notes
build_basic_prompt. Math tests render with KaTeX in headless Chromium, which is verified and installed before inference so a missing browser fails early instead of zeroing every math test.srcand pins old numpy/scipy/pandas), and its matching logic changes between versions. So each version's pinned evaluator runs in a virtualenv of its own, provisioned on first use, once per task after every page is generated. Each page's values are saved with the predictions, and the page averages are cross-checked against the evaluator's own summary.PATH, then render a test formula through that version's own CDM template before inference; a toolchain that cannot render fails the job there instead of scoring every formula zero.tlnet-finalrepository, ImageMagick 7.1.1-47, Ghostscript 9.55.0). Versions matter: Ghostscript 10.02 (Ubuntu 24.04's apt package) moved a formula score by 0.2 points.xelatexwithxeCJK, the Source Han Sans SC font and Node.js 16.13.1.omnidocbenchandomnidocbench_v15(and their_envariants) report every metric in one run.filelockpin, the headless OpenCV build (the GUI build needslibGLat import), andscikit-imagefor v1.5's CDM. Provisioning also imports the evaluator before inference.n_scorer_failures(pages the evaluator zeroed because its own scoring timed out or crashed) andeval_workers(its worker count) are reported with the metrics. v1.6's per-page time limits make the scores depend on both.scorer_results, a new generic keybuild_predictionskeeps for every scorer. Every metric stores its own per-instance value (Noneoutside its sub-dataset, category or language), and the edit-distance metrics are lower-is-better for pairwise analysis.n_test_errors, so a renderer crash can't pass for model failures.Stage-1 prompts
A stage-1 checkpoint (
-o prompt_templates=none -o system_prompt_style=style_and_length_v2) now sees exactly the prompt OLMo-core's stage 1 trains on (allenai/Olmo-core#875, merged intovision): the style tag alone. Defaults (instruction-tuned checkpoints) are unchanged. This PR also absorbs #401, now closed.dense_caption_captioner, anddense_captionunder the stage-1 familylong_caption:long_caption 65:olmocr_bench,omnidocbench*olmocr:text_sft: <benchmark instruction>cc_ocr_multi_scene*textocr:text_sft: <row prompt>olmocr:is olmOCR page transcription, whose training answers write math as\( \)/\[ \]and tables as HTML (what OmniDocBench's evaluator reads).textocr:is scene text joined by spaces, which is exactly CC-OCR's order-free word-overlap scoring; the same content as an HTML table would score 0.10-0.20 there.PixMo-Count (from #401): under
prompt_templates=nonethe question is the bare lower-cased label,point_count: cows, as stage 1 trains on and mm_olmo sends;mainalready did this since #324. New here: the family defaults touber_model_v2when unset, like the pointing and OCR tasks, and an unknown family is refused instead of silently getting the templated question.Scored with these prompts, OLMo-core's 32k-step
--recipe=v2stage-1 run (English defaults,olmo_core_vlmprovider):olmocr_bench51.1,cc_ocr_multi_scene_en78.4, OmniDocBench v1.6 English text edit 0.247 (scored without CDM, before these tasks computed it in the job),pixmo_count0.904,dense_caption_captioneravg 56.9.New
tests/evals/vision/test_ocr_prompts.py(11 tests) andtest_pixmo_count_prompt.py(8, from #401);tests/evals/vision+tests/evals/suites: 312 passed, 2 skipped.Other changes
OMNIDOCBENCH_EVAL_TIMEOUT_S) is stopped and reported like any other evaluator failure: a task error, no metrics, predictions kept for rescoring. Before, a hung evaluator held the job until its own limit and every generated page was lost.build_predictionskeepsoutput.metadata["scorer_results"], keyed by scorer name, written withset_scorer_result(common/scorers/base.py). Other vision scorers that keep their own*_resultkey could move to it.olmo_core_vlmextra pins OLMo-core's currentvisionhead, 42e65ea6 (was 2dad929a), which adds Molmo2 stage 1: tag-only caption prompt, mm_olmo v2 pointing data, and a general OCR group Olmo-core#875's stage-1 data and prompts. That OLMo-core's attention backends take asinksargument (OLMo-core #872), which the provider's KV-cache backend rejected, so everyolmo_core_vlmrequest failed. The backend now accepts it (and refuses it only together with a KV cache), and a test pins itsforwardto the parent's parameters. Greedy outputs are identical under both pins on all three checkpoint formats: an OLMo-core export (16/16 onpixmo_count+pixmo_points_eval_mp), a raw OLMo-core checkpoint (8/8) and the released Molmo2-4B mm_olmo checkpoint (16/16 onpixmo_count+pixmo_points_eval), so Molmo2 numbers from the old pin still hold.uv.lockchanges onlyai2-olmo-core;tests/providers,tests/evals/visionandtests/evals/suites: 445 passed, 5 skipped.Results: Molmo2 checkpoints, English only
Molmo2 models support English only, so every column is restricted to English for a fair comparison. All numbers come from existing runs (one-step on Beaker B300).
--recipe=v2, step 32k)³Columns:
overall(x100).cc_ocr_multi_scene_en'smacro_f1(x100). For full-benchmark runs it is the mean of their saved per-sub-dataset scores; the mean of all 13 reproduces each run's full-track score exactly.english(628 in v1.5, 755 in v1.6), lower is better. For full-benchmark runs this is theirtext_edit_english, the same page average as the_entasks'text_edit. English-only Overall is not shown: it also needs table TEDS and formula CDM on the English pages, which the saved runs do not break out by language.Setup:
step2000) run atmax_crops=24with the benchmarks' default instructions. Pretrain checkpoints (step32000) run at their trained 8 crops.olmo_core_vlmfrom the released mm_olmo checkpoints. Molmo2-O-7B runs on the HF provider (allenai/Molmo2-O-7Bat784410650d; O-7B-Pretrain converted to HF format by key renaming), becauseolmo_core_vlmcannot run it (see the heads-up below).text_sft: <instruction>prompt they were first evaluated with. That form is no longer selectable on this branch; those runs used an eval-only branch that restores it (jasonr/ocr-eval-released-pretrain).¹ From the earlier
vision-branch runs of the same scorers.² OmniDocBench v1.6's evaluator scores a page zero when matching it runs past its time limit, which pages that loop to the token cap often do: 549 of 1,651 pages for 4B-Pretrain and 238 for 8B-Pretrain (12-46 for the other Molmo2 checkpoints, 0 for Qwen3-VL-4B). v1.5 has no such limit.
³ A 4B stage-1 checkpoint trained with OLMo-core's
--recipe=v2data (allenai/Olmo-core#875), evaluated from its OLMo-core export onolmo_core_vlmat its trained 8 crops, with the stage-1 prompts described below (olmocr:/textocr:alone), on the_entasks directly.Validation against published numbers
Runs use the HF provider with greedy decoding, on the full benchmarks the published numbers use (
olmocr_bench,cc_ocr_multi_scene,omnidocbench_v15).macro_f1(x100)† As reported in the Qianfan-OCR comparison tables.
‡ The CC-OCR paper, Table 2 (multi-scene OCR). Our run decodes greedily with the dataset's row prompts (8 GPUs,
transformers==5.7.0, commit 5fc8fa2; this head computes CC-OCR scores the same way).Heads-up, not changed here (#441): with
transformers==5.17.0, Qwen3-VL degenerates into repetition loops on 10-37% of outputs. The same pages are clean with 5.7.0, and the image preprocessing is identical in both, so the regression is in 5.17's model or generation code. These results pin-o 'provider.dependencies=["transformers==5.7.0"]'.mainnow caps thehfextra at<5.13, a range not yet tested for this.Heads-up, not changed here (#442):
olmo_core_vlmcannot run Molmo2-O-7B. Its checkpoints use YaRN RoPE (factor 8), but the provider passes onlyrope_thetato OLMo-core's Molmo2 loader, whoseolmo3_7Bpreset has no RoPE scaling. In practice every request hit a CUDA gather out-of-bounds assert. The HF provider runs the Hub's remote code, whose RoPE buffers match mm_olmo's exactly; the O-7B rows above use it. The 4B and 8B checkpoints (Qwen3, default RoPE) are unaffected.Type of Change
olmo_core_vlmKV-cache backend now accepts OLMo-core'ssinksargument (see Other changes).scorer_resultsin saved predictions.dense_caption_captioner, anddense_captionunder the stage-1 prompt family, now sendlong_caption:(waslong_caption 65:), andpixmo_countrefuses an unknown prompt family instead of templating the question. Stage-1 numbers on those tasks are not comparable with earlier runs; instruction-tuned defaults are unchanged. mm_olmo's captioner-family checkpoints, trained onlong_caption 65:, are no longer evaluated, sodense_caption_captionerfollows OLMo-core's stage 1 instead of keeping their prompt (stated in its docstring).Testing
pytest tests/ --ignore=tests/integration/): 2,944 passed, 18 skipped on this branch rebased ontomain(ff7eb6d). One failure is environmental:tests/inference/test_tokenizer_loading.py::test_qwen2_checkpoint_with_llama_tokenizer_class_round_tripsneeds transformers >= 5.8, and my local environment has 5.7.0 (the version these runs pin). CI uses the lock (5.8.1).tests/evals/vision/test_ocr_prompts.py(11),test_pixmo_count_prompt.py(8) andtest_ocr_scoring.py(26). The last covers the three scorers and their metrics, the scorer results and per-instance metric values saved with the predictions (in and out of each metric's scope), and an OmniDocBench evaluator failure reaching theTaskResultas an error. It stubs the olmOCR test runner and the OmniDocBench evaluator.vision-based branch: re-scoring the same saved Qwen3-VL-4B generations through this branch reproduced that branch's numbers exactly. Every scorer was also checked on real data with a correct-answer oracle (every reference output) and with empty outputs.Checklist
ruff check,ruff format --check, andtyin CI)visionbranch, whose head (42e65ea6) theolmo_core_vlmextra pins.