Skip to content

Multi-image benchmarks, multimodal docs and mm_olmo parity (5/5) - #324

Merged
jason718 merged 17 commits into
mainfrom
jasonr/vision-split-5-multiimage-docs
Sep 28, 2026
Merged

jason718 merged 17 commits into
mainfrom
jasonr/vision-split-5-multiimage-docs

Conversation

@jason718

@jason718 jason718 commented Aug 25, 2026 •

Copy link
Copy Markdown
Contributor

Description

Last of five PRs splitting #278 (#316, #317, #322 and #323 are merged). It adds the multi-image family and the multimodal README, and it closes the stack with a parity pass. The final code has to reproduce both the vision branch and mm_olmo on every benchmark the stack added. That pass found four faults in code already on main, and they are fixed here, along with two defaults the second review showed were hiding results.

Multi-image benchmarks

muir_bench (2,600), mmiu (11,698) and blink (1,901). Each instance carries an image list and is scored with mm_olmo's MuirBenchEval-family protocol (option-letter accuracy, plus per-category and MMIU image-count buckets). Suite: molmo2_multiimage.

  • MultiImageQATask overrides only _attach_images (lists capped at mm_olmo's eval-time max_images=20); caching, limits and request construction come from VisionTask.
  • Per-instance storage: category and bucket metrics return None outside their scope, with scorer fallback disabled.
  • The README gains the Multimodal Evaluation section: setup, MOLMO_DATA_DIR, OPENAI_API_KEY, run commands, both providers and task authoring.

Fixes to code already on main (found by the parity pass)

  • pixmo_points_eval[_mp]: the 149 absent-phrase examples (of 1,215) have no mask to read the image size from, so image_size was None and the scorer rejected them. Their size now comes from the image header.
  • Dense-caption judge cache: judges.py defined _cache_key twice. CharXiv's later definition shadowed the dense-caption one, so the caption judge never hit the shared gpt4-cache/ and re-paid for every GPT-4o call. CharXiv's helper is renamed, and a test pins the legacy key.
  • An over-long prompt failed its whole batch: the VLM provider raised on a prompt longer than max_length, and the runner fails every request in a batch that raises. On Molmo2-4B mmmu_pro, 2 over-long prompts cost 48 instances. The provider now marks only that request (REQUEST_ERROR_KEY in inference/errors.py), and the runner records a marked request as a failed instance, which is the per-instance failure the Multimodal eval (1/5): image requests, HF VLM path, OLMo-core VLM provider  #316 review asked for. Other providers never set the marker, so nothing changes for them.
  • The context window now defaults to 64,000 tokens (or the checkpoint's, if longer), the length mm_olmo's eval_molmo2.py evaluates at. At the checkpoint's 16,384, about 3.5% of MMIU prompts exceeded the window; all of them are 11–20-image examples (18.8% of that bucket, 18 of 96 in a seeded 512 sample), and failed instances leave the metric denominator, so all and that bucket were quietly reported over the rest. Only prompts longer than the training window see the change: they are answered, as mm_olmo answers them.
  • Multi-image prompts crop each image to max_multi_image_crops (the checkpoint's, else Molmo2's 8) in both multimodal providers, as mm_olmo does. The README's molmo2-4b HF preset previously applied its 24 single-image crops to every image of a multi-image prompt.
  • The HF provider's Molmo2 path failed on transformers ≥ 5.9 (HF Molmo2 path fails on transformers 5.12: create_causal_mask() rejects input_embeds #416): the Hub's modeling_molmo2.py passes input_embeds and cache_position to create_causal_mask / create_masks_for_generate, and 5.9 removed the input_embeds shim and the cache_position parameter, so every forward raised TypeError. Beaker installs unlocked and resolved 5.12.1. The multimodal load path now wraps both helpers, following the provider's existing compat shims; a pass-through on 5.8 (verified on CPU with 5.8.1 and 5.12.1: identical outputs).
  • The request writer's JSON fallback covers only callables (the lazy image loaders); the predictions writer stays strict.
  • BLINK and MMIU load pinned Hub revisions (the ones the parity checks ran on); Pin Hub dataset revisions for the remaining vision tasks #415 tracks the other five vision tasks.
  • requests.jsonl came out empty for vision tasks: lazy image loaders in instance.metadata made json.dumps raise, and the runner swallowed the error. Both JSONL writers now write non-JSON values as a type placeholder (partial fix of ImageReference: make image laziness a declared contract #395).
  • num_samples > 1 is rejected for every vision task, not just dense_caption.
  • Review nit: replace_images builds its callback once, outside the loop.

Parity

vs mm_olmo: re-scoring the released Molmo2-4B prediction dumps

tests/evals/vision/test_dump_parity.py (opt-in, RUN_DUMP_PARITY_TESTS=1) re-scores every mm_olmo dump that exists for these benchmarks with this stack's tasks, scorers and metrics. It checks prompts row by row and every reported metric. 22 passed, 1 opt-in skipped (MathVista GPT extraction, which needs ~1,000 API calls).

benchmark mm_olmo dump prompts metrics
chart_qa, vqa2, doc_qa, info_qa, text_vqa, ai2d, countbench_qa, pixmo_count, real_world_qa *-validation / -test exact within 2e-4
mmmu mmmu_test-validation exact except 3 questions MMMU edited upstream after the dump within 2e-3
math_vista math_vista_v2-validation exact offline extraction sanity band; the GPT variant is opt-in
pixmo_points_eval pixmo_point_eval_v3.1-test exact exact, 18/18
pixmo_points_eval_mp pixmo_point_eval_v3.1-test-mp0816 exact exact, 18/18
sa_co_gold_point_4k_mp sa-co-gold-v4-test-mp0816 (28,672) exact exact, 20/20
sa_co_gold_subset sa-co-gold-subset-v3-test exact ≤ 4e-4 (EXIF, below)
sa_co_gold_subset_mp sa-co-gold-subset-v4-test not compared: the only v2-subset dump uses mm_olmo's post-July plain wording ≤ 3e-4 (EXIF)
muir_bench muir_bench-test exact exact, all 13
blink blink-validation exact all +0.0005; bounded by guesses (below)
mmiu mmiu-test exact all +0.0002; bounded by guesses (below)
dense_caption dense_caption_eval-test-mp0816 exact at the dump's loader seed recall and recall@10 exact from the judge cache; consistency 68.72 vs 68.77

mmmu_pro and CharXiv have no mm_olmo dump (mm_olmo has no CharXiv). They are covered by the vision-branch comparison below.

Every residual is explained:

  • blink / mmiu: when a response names no option, mm_olmo guesses from the global random stream and the port seeds the guess per instance (360 and 10 rows). The test requires every metric to match on the other rows and to stay within the number of guesses. muir_bench has no guesses and is exact.
  • SA-Co subsets: 5 of 2,427 subset images carry an EXIF rotation. mm_olmo's loader turns them upright and scales points by the rotated size, while this stack (like the vision branch and OLMo-core) keeps the stored orientation the masks use. That is 0.2% of the full gold set's images, and none of the PixMo, caption or counting images.
  • dense_caption consistency: mm_olmo's judge script races its recall and consistency threads on the canonical-statement cache entry. For 499 of 2,730 captions, the entry left behind is not the one its consistency call used, so only the other 2,231 can be re-judged from the cache. All 5,460 recall-side and canonical judge prompts are byte-identical to mm_olmo's.

vs mm_olmo main today

  • Prompt templates are verbatim: pointing (43), point-count (60), long-caption (23).
  • Differences we keep on purpose, all for vision-branch parity and the protocol behind the released Molmo2 numbers:

vs the vision branch: Beaker, Molmo2-4B/step2000

Both sides ran on Molmo2-4B/step2000 on the same GPU type (B300) and the same OLMo-core commit (2dad929a): this stack with provider.kind=olmo_core_vlm, and vision with provider.kind=olmo_core pinned to that commit. Beaker group molmo2-parity-final.

task primary stack vision identical generations note
dense_caption avg 56.58 56.59 2,083/2,730 long captions; the vision run closed 8 chunks early
pixmo_points_eval f1 0.8241 0.8219 1,004/1,215 long point lists; diverge after the vision run's short batch 40
pixmo_points_eval_mp f1 0.8207 0.8202 1,012/1,215 same job
sa_co_gold_subset f1 0.6841 0.6837 3,398/4,994 same job
sa_co_gold_subset_mp f1 0.6814 0.6802 2,720/3,856 same job
sa_co_gold_point_4k_mp f1 0.5553 0.5556 24,951/28,672 diverge after the vision run's short batch 40
countbench_qa correct 0.9388 0.9388 490/490
pixmo_count correct 0.9019 0.9019 540/540
chart_qa relaxed_correctness 0.8370 0.8365 1,914/1,920 diverge after the vision run's short batch 73
vqa2 vqa_score 0.8584 0.8584 8,192/8,192
doc_qa ansl 0.8532 0.8529 5,339/5,349 same job as chart_qa
info_qa ansl 0.6974 0.6976 2,794/2,801 same job as chart_qa
text_vqa vqa_score 0.8385 0.8383 4,999/5,000 same job as chart_qa
ai2d mc_ai2d_opaque 0.8612 0.8612 1,980/1,980
mmmu mmmu_score 0.5089 0.5089 900/900
mmmu_pro overall 0.2636 0.2618 — 2 prompts over the checkpoint's window: answered (stack, 64k default) vs scored empty (vision); single-task rerun, 0 failures
real_world_qa real_world_qa_score 0.7490 0.7490 765/765
math_vista score 0.5580 0.5590 1,000/1,000 identical generations; GPT extraction judged separately
charxiv_descriptive descriptive_overall 0.7400 0.7405 4,000/4,000 identical generations; GPT judge called separately
charxiv_reasoning reasoning_overall 0.3470 0.3470 1,000/1,000 identical generations; GPT judge called separately
muir_bench all 0.6050 0.6050 2,600/2,600
blink all 0.5771 0.5781 1,893/1,901 diverge after the vision run's short batch 52
mmiu all — — — not compared: a full run takes ~30 h on today's weka, and limit samples differently in the two trees (below)

Why a few generations differ. Instances and requests are identical for every example (checked by hashing both trees' instances, requests and gold). The stack is deterministic: a repeat run matched it byte for byte on all 17,050 image-QA generations. Every difference traces to batch composition. The vision branch's runner sometimes closes a 64-item chunk early (its 5 s chunk timeout; 62 items at batch 73 in the image-QA job, 22 at batch 40 in the pointing job, 13 at batch 40 in the SA-Co 4k job, 8 short chunks in the caption job), which shifts every later batch boundary. A different batch mix changes the left-padding, and bf16 then tips a few near-tied tokens. The stack filled every chunk. Wherever both runs formed the same batches (counting, ai2d, vqa2, mmmu, real_world_qa, math_vista, CharXiv, muir_bench, and the first 72 image-QA batches), the generations are byte-identical.

Reproducing mm_olmo's published numbers

The provider uses the checkpoint's training max_crops (8 for Molmo2-4B), as the vision branch does, while mm_olmo's eval_molmo2.py evaluates the released models at 24 crops per single image; document QA is very crop-sensitive. The window (64,000 tokens) and the multi-image crops (8 per image) now default to mm_olmo's values, which also accounts for the MMIU gap left unexplained in the August vision-branch runs (those prompts were scored empty). At -o provider.max_crops=24, this stack lands within 0.006 of mm_olmo's metrics.json on every benchmark with a reference (dense caption within 0.08 on its 0–100 scale). At 24 crops, 94–99% of the image-QA generations are byte-identical to mm_olmo's own predictions (doc_qa 97.9%, up from 69.6% at 8 crops). The multi-image rows use the regular run, since mm_olmo also uses 8 crops for multi-image:

task primary stack @24 mm_olmo Δ
dense_caption avg 56.21 56.29 -0.0757
pixmo_points_eval f1 0.8313 0.8290 +0.0024
pixmo_points_eval_mp f1 0.8264 0.8208 +0.0056
sa_co_gold_subset f1 0.6930 0.6922 +0.0008
sa_co_gold_point_4k_mp f1 0.5587 0.5609 -0.0022
countbench_qa correct 0.9429 0.9408 +0.0020
pixmo_count correct 0.9111 0.9093 +0.0019
chart_qa relaxed_correctness 0.8365 0.8380 -0.0016
vqa2 vqa_score 0.8585 0.8582 +0.0002
doc_qa ansl 0.9171 0.9156 +0.0015
info_qa ansl 0.7690 0.7642 +0.0048
text_vqa vqa_score 0.8482 0.8495 -0.0013
ai2d mc_ai2d_opaque 0.8578 0.8537 +0.0041
mmmu mmmu_score 0.5089 0.5089 0.0000
real_world_qa real_world_qa_score 0.7569 0.7542 +0.0026
math_vista score 0.5610 0.5670 -0.0060
muir_bench all 0.6050 0.6046 +0.0004
blink all 0.5771 0.5713 +0.0058
blink, HF molmo2-4b preset on H100 (24 single-image / 8 multi-image crops, with the transformers shim) all 0.5713 0.5713 0.0000
mmiu (512-instance sample, default window) all 0.5527 0.5547 (same instances) -0.0020

limit is not comparable across the trees: the vision branch's multi-image tasks keep the first N instances, while VisionTask hands limit to the runner's seeded random sample like every text task. The MMIU row is therefore that random sample, compared with mm_olmo's dump predictions for the same 512 instances (503/512 pick the same answer letter).

The remaining gap is model-runtime drift (OLMo-core on B300 vs mm_olmo on H100). The dump-parity suite above shows that the eval code itself reproduces mm_olmo exactly. The README now documents both settings.

Issues

Follow-up links are on #278.

Verification

  • Full suite 2,811 passed, 15 skipped (also with no data root); ruff, format and ty clean.
  • No task hash changes on main (all 581 tasks); blink, mmiu and muir_bench are the only new tasks.
  • No dependency changes (pyproject.toml / uv.lock untouched).
  • mm_olmo prompt guard (test_prompts.py) passes against mm_olmo main at f2b61c1a.
  • olmo-eval run -m mock -t muir_bench -o limit=3 writes all 3 request records (0 before the writer fix).
  • Molmo2-4B on Beaker at default settings: mmmu_pro scores all 5,190 instances (48 lost before), and a seeded 512-instance MMIU sample scores all 512 (18 lost before) at the same 0.5527 as the explicit 64k run.

Type of Change

  • New feature (non-breaking change that adds functionality)
  • Bug fix (non-breaking change which fixes an issue)

Checklist

  • My code follows the project's style guidelines
  • I have performed a self-review of my code
  • My changes generate no new warnings
  • Any dependent changes have been merged and published
  • I have added/updated documentation as needed (README Multimodal Evaluation section)

Part of #278 (tracking).

@jason718 jason718 mentioned this pull request Aug 25, 2026
11 tasks done
@jason718
jason718 force-pushed the jasonr/vision-split-5-multiimage-docs branch 2 times, most recently from 3c26121 to 00c7618 Compare September 1, 2026 11:09
@jason718 jason718 self-assigned this Sep 2, 2026
@jason718
jason718 force-pushed the jasonr/vision-split-5-multiimage-docs branch 4 times, most recently from c095cbe to 80f83c8 Compare September 6, 2026 18:45
@jason718
jason718 force-pushed the jasonr/vision-split-5-multiimage-docs branch from 80f83c8 to f18535e Compare September 10, 2026 21:07

@gregorybchris gregorybchris left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Good to see the framework consolidation finish here; MultiImageQATask overriding only _attach_images is the shape Tyler sketched, and the lazy list loader plus the flattening in resolve_images keeps pixels out of the parent process. Ruff, ty, and the unit suite (2397 passed) pass locally.

Three things to fix before merge. The README is the main deliverable of this PR and it currently gives install and pin instructions that contradict #316.

Blocking

  1. src/olmo_eval/evals/vision/tasks/multi_image.py:98 and :118
    MultiImageCategoryMetric and MultiImageCountBucketMetric inherit the default compute_instance and so persist the scorer value for every instance, including those outside the category or bucket. I reproduced it: a Counting instance under the MuirBench Ordering metric stores 1.0. With 12 MuirBench categories, 14 BLINK subtasks, and 7 MMIU relationships plus 3 count buckets, every per-instance row for these tasks carries dozens of wrong values. Please add compute_instance returning None outside scope, disable scorer fallback, and extend the poison-the-scorer-channel regression test. This is the same fix as item 2 on #323.

  2. README.md:697, :769, :777, :793, :711, :673
    The new section disagrees with the code it documents:

    • :697 says uv sync --extra hf --extra olmo_core enables the VLM provider. #316 added a separate olmo_core_vlm extra and declared it conflicting with olmo_core, so this command installs the text extra and the provider fails to import.
    • :769 to :777 say remote runs must pin provider.package=https://github.com/allenai/OLMo-core.git@vision or workers die. #316 pins a commit through the olmo_core_vlm extra, and the override text also names an unpinned branch, which the repo avoids.
    • :793 places MultiImageQATask at evals/tasks/common/multi_image_base.py; it lives at evals/vision/tasks/multi_image.py.
    • :711 says two tasks call OpenAI; math_vista, dense_caption, charxiv_descriptive, and charxiv_reasoning do, and molmo2_imageqa therefore needs the key as a suite.
    • :673 lists molmo2_imageqa without the two CharXiv tasks that #323 put in it.
    • :704 documents the Weka path as the MOLMO_DATA_DIR default. If #317 keeps the default, fine; if it drops the literal as requested there, this line changes too.
      Please also document OLMO_EVAL_PROVIDER_INIT_TIMEOUT from #316 here, since this is the only user-facing page for the multimodal path.
  3. Merge conflict
    This branch conflicts with main in src/olmo_eval/cli/utils.py (the TASK_CONFIG_FIELDS allowlist gained strip_thinking in #361). The stack needs a rebase onto current main before any of it merges.

Non-blocking

  1. src/olmo_eval/evals/vision/data/images.py:85
    load_instance_images has no caller in the stack; capped_image_list and resolve_images cover the multi-image path. Please drop it or wire it in.

  2. src/olmo_eval/evals/vision/benchmarks/mmiu.py:89
    Dataset validation via assert (len(relationships) == 1, relationship in MMIU_RELATIONSHIPS, and letter == string.ascii_uppercase[ix] in _extract_options). Please raise ValueError with the row so a bad record is diagnosable and the check survives -O.

  3. src/olmo_eval/evals/vision/scoring/multi_image.py:64
    Third copy of _response_text (see #322 item 4).

  4. Follow-up issues
    The description promises issues for ResponseBatchScorer, provider decomposition, RuntimeRequirements, and ImageReference once this merges. Tyler's habit was to have those filed before the merge so they are linked from the PR; please open them now and link them here.

Nits

  • Nit: multi_image.py:56 replace_images defines repl inside the loop; hoisting it with the counter in a small closure or class would read more clearly.
  • Nit: mmiu.py relationships = list({...}) builds a set and then asserts it has one element; {path.split("/")[1] for ...} with a length check is enough.

Before merge

Items 1 through 3. Then merge once CI is green, and please post the follow-up issue links from item 7 on #278 as planned.

@jason718
jason718 force-pushed the jasonr/vision-split-5-multiimage-docs branch 14 times, most recently from 49705ba to 4202578 Compare September 18, 2026 06:21
@jason718
jason718 force-pushed the jasonr/vision-split-5-multiimage-docs branch from 4202578 to 91bbb84 Compare September 19, 2026 21:07
jason718 and others added 16 commits September 25, 2026 23:23
Last of five PRs splitting #278. MuirBench, MMIU and BLINK, scored by the
mm_olmo MuirBenchEval-family protocol (option-letter accuracy over an image
list), and the README's Multimodal Evaluation section updated for the
`evals/vision` layout.

`MultiImageQATask` completes the VisionTask consolidation: it overrides only
`_attach_images` (an image list capped at mm_olmo's eval-time 20) rather than
carrying its own request construction. The list-image lazy loaders join the
single-image ones in `vision/data/images`.

Co-authored-by: Ziqi Gao (Roy) <[email protected]>
- MultiImageCategoryMetric and MultiImageCountBucketMetric implement
  compute_instance and disable scorer fallback, so a Counting instance no
  longer persists 1.0 under MuirBench's Ordering metric. With 12 MuirBench
  categories, 14 BLINK subtasks and 7 MMIU relationships plus 3 count buckets,
  that was dozens of wrong values on every per-instance row.
- MMIU's dataset validation raises ValueError naming the offending row instead
  of asserting (asserts are stripped under -O), and the relationship check
  drops the list-of-a-set round trip.
- The third copy of the response-text helper is gone, as are the last
  mid-module imports and their E402 suppressions.
- load_instance_images had no caller; capped_image_list plus resolve_images
  cover the multi-image path.
- resolve_images flattens list entries and drops empty slots at both levels,
  which the variable-image-count benchmarks need.
- README: the missing-data-root behavior, and the follow-ups are filed as
  #392 (ResponseBatchScorer), #393 (provider decomposition),
  #394 (RuntimeRequirements) and #395 (ImageReference).
One closure over the shared counter numbers the question and every option in
order, exactly as before.
The metric families read one output per example and mm_olmo scores a single
greedy sample, so the check dense_caption carried now lives in VisionTask.
Request records spread instance.metadata into the document, and the vision
tasks keep picklable image loaders there. json.dumps raised on the first one,
leaving requests.jsonl empty; such values now serialize as a type placeholder.
- pixmo_points_eval[_mp]: the 149 absent-phrase examples have no mask to take
  the image size from, so image_size was None and the scorer rejected them.
  Their size now comes from the image header.
- judges.py defined _cache_key twice; CharXiv's later definition shadowed the
  dense-caption one, so the caption judge never hit the shared gpt4-cache/.
  CharXiv's helper is renamed, and a test pins the legacy key.
The suite now re-scores every mm_olmo Molmo2-4B dump that exists for the
benchmarks in this stack: PixMo-Points (plain and _mp), SA-Co gold 4k and both
subsets, MuirBench, BLINK, MMIU, and the mp0816 dense captions through the
judge cache.
mm_olmo's judge script races its recall and consistency threads on the
canonical-statement cache entry, so recall reproduces exactly from the shared
cache while only the rest of the consistency judgments can be rebuilt. MMMU's
maintainers edited three Art_Theory questions after the reference dump.
The VLM provider raised on a prompt longer than max_length, which fails every
request in the runner's batch: on Molmo2-4B mmmu_pro, 2 over-long prompts cost
48 instances. The provider now marks just that request's output, and the
runner records a marked request as a failed instance instead of scoring it.
eval_molmo2.py evaluates the released Molmo2 models at 24 crops while the
provider defaults to the checkpoint's training value; on Molmo2-4B document
QA is 6-7 points lower at 8. Also fix ImageQATask's module path.
eval_molmo2.py also runs at a 64,000-token sequence, and multi-image prompts
keep 8 crops per image. At the checkpoint's 16,384 about 3.5% of MMIU prompts
are too long; at 64,000 a 512-instance MMIU sample scores 0.5527 against
mm_olmo's 0.5547 on the same instances.
The VLM provider's window now defaults to 64,000 tokens (or the checkpoint's,
if longer), the length mm_olmo's eval_molmo2.py uses. At the checkpoint's
16,384 about 3.5% of MMIU prompts failed, all of them 11-20-image examples
(18.8% of that bucket), and failed instances leave the metric denominator.

Both multimodal providers crop each image of a multi-image prompt to
max_multi_image_crops (the checkpoint's, else Molmo2's 8), as mm_olmo does;
the HF preset's 24 crops now apply to single images only.
Only request records carry lazy image loaders, so only the requests writer
replaces callables with a placeholder; every other non-JSON value still
raises in both writers.
BLINK and MMIU load at the Hub revisions the parity checks ran on. BLINK and
MuirBench raise ValueError on an unknown category, and MMIU checks its
./<relationship>/ image layout instead of assuming it.
Covers response stripping and option scoring, replace_images, MMIU option
and path parsing, the image-count bucket boundaries, the pixmo absent-phrase
image size, and the chat-path request-error marker.
The test stubs the dataset, so it must not consult the multimodal data root,
which CI does not have.
@jason718
jason718 force-pushed the jasonr/vision-split-5-multiimage-docs branch from 6a5f1ce to 569bbb1 Compare September 25, 2026 23:27
@jason718

Copy link
Copy Markdown
Contributor Author

Both blocking items and all the smaller ones are addressed (the five commits ending at 569bbb1, rebased onto current main).

1 (blocking) — the per-bucket counts at 16,384, from the seeded 512-instance MMIU sample: num_images<=10 0/404, num_images<=20 18/96 (18.8%), num_images>20 0/12; by relationship, High-level-sub-semantic 7/55, Continuous-temporal 7/60, Discrete-temporal 4/47. So the dropped instances were concentrated exactly as you suspected. The fix is the default: the VLM provider's window is now max(checkpoint window, 64,000), the length mm_olmo's eval_molmo2.py evaluates at, so those prompts are answered instead of failing (OLMo-core's RoPE extends its buffers on demand, and the provider sizes KV caches per batch, so only over-long prompts see any change). Verified on Beaker at default settings: mmmu_pro scores all 5,190 instances (0.2636, 0 failures; 48 lost before), and the MMIU sample scores all 512 at the same 0.5527 as the explicit 64k run. max_model_len still overrides, and anything beyond the window still fails its instance.

2 (blocking) — handled in the providers rather than the docs: both multimodal providers crop each image of a multi-image prompt to max_multi_image_crops (the checkpoint's max_multi_image_crops, else Molmo2's 8), as mm_olmo's MultiImagePreprocessor does. The molmo2-4b preset's 24 now applies to single images only. Unit-tested on both providers (test_multimodal_multi_image_request_uses_multi_image_crops, TestVLMContextAndCrops); the README's parity paragraph and preset line are updated. A live HF -m molmo2-4b -t blink check is queued for an H100 (the B300s can't build the HF path's runtime CUDA kernels on this image); I'll add the number here when it runs.

3 — the fallback is now only on the requests writer and only for callables (_lazy_loader_placeholder); every other non-JSON value raises in both writers. tests/runners/io/test_writers.py pins all three cases.

4 — always-on tests added: tests/evals/vision/test_multi_image.py (response stripping, option scoring including gold outside the options and the deterministic guess, replace_images with and without max_images, MMIU _extract_options and image-path parsing, and the 10/11 and 20/21 bucket boundaries), the writer tests above, the pixmo absent-phrase header size (TestPixmoImageSize), and the chat-path marker (test_marked_chat_request_fails_its_instance).

5 — BLINK and MMIU are pinned to the Hub revisions the parity checks ran on (a3666eb2, 03bf7d14, both older than mm_olmo's dumps). #415 covers the five existing vision tasks and is linked on #278.

Nits: BLINK and MuirBench raise ValueError naming the row; MMIU validates its ./<relationship>/ layout (_split_image_path) instead of slicing; __all__ is back in sorted order; the README table lists molmo2_pointing_mp. I left the all display format as is: switching only the multi-image metrics to percentage would make them inconsistent with every other vision metric and changes their pairwise_unit for suite pooling, so that is better done for all vision metrics together.

Full suite 2,811 passed (also with no data root); lint/format/ty clean; no task hash on main changes; the multi-image dump-parity tests still pass; CI green.

@jason718

Copy link
Copy Markdown
Contributor Author

The live HF -m molmo2-4b -t blink check could not run: on current main the HF Molmo2 path fails at the model's first forward with transformers 5.12.1 (create_causal_mask() got an unexpected keyword argument 'input_embeds', from the Hub's Molmo2 remote code), on B300 and H100 alike, so that is independent of this PR and filed as #416. The multi-image crop selection on the HF provider stays covered by test_multimodal_multi_image_request_uses_multi_image_crops; the olmo_core_vlm checks above ran at defaults and are green.

…= 5.9

modeling_molmo2.py calls create_causal_mask and create_masks_for_generate
with input_embeds and cache_position. transformers 5.9 removed the
input_embeds deprecation shim from both and create_causal_mask's
cache_position parameter, so every HF-provider Molmo2 forward raised
TypeError (Beaker resolves 5.12.1 unlocked). The multimodal load path now
wraps both helpers, renaming or dropping the kwargs the installed
signature lacks; a pass-through on 5.8. Verified on CPU with 5.8.1 and
5.12.1, same outputs.
@jason718

Copy link
Copy Markdown
Contributor Author

The live HF check ran after all, on an H100 from c7c5a8c (https://beaker.org/ex/01M3DW5F1839NG9PRKC32B2H85): -m molmo2-4b -t blink scores all 1,901 instances with the transformers shim and the multi-image crop budget, all = 0.5713, which is mm_olmo's published 0.5713 exactly (per-subtask differences stay within the random-guess noise described in the description). Row added to the mm_olmo table.

@jason718
jason718 merged commit 01c8060 into main Sep 28, 2026
8 checks passed
@jason718
jason718 deleted the jasonr/vision-split-5-multiimage-docs branch September 28, 2026 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants