Skip to content

Stage-1 eval prompts match training: bare caption tag, bare PixMo-Count label - #401

Closed
jason718 wants to merge 2 commits into
mainfrom
jasonr/caption-tag-only
Closed

jason718 wants to merge 2 commits into
mainfrom
jasonr/caption-tag-only

Conversation

@jason718

@jason718 jason718 commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor

Companion to allenai/Olmo-core#875. Makes the stage-1 caption and PixMo-Count eval prompts match training. Instruction-tuned defaults are unchanged.

Dense caption: the bare tag

OLMo-core#875 drops the length number from the stage-1 caption tag, so a stage-1 checkpoint trains on long_caption: and nothing else.

Task Before After
dense_caption_captioner long_caption 65: long_caption:
dense_caption -o system_prompt_style=style_and_length_v2 long_caption 65: long_caption:
dense_caption (default) sampled instruction unchanged

No task sends the numbered form any more; the default_inference_len knob that produced it is gone.

PixMo-Count: the question follows the prompt family

Stage-1 checkpoints train on point_count: <label>, but pixmo_count always sent the templated question and only changed the tag with the family. It now honors prompt_templates, like the _mp pointing tasks:

Run Prompt
default (instruction-tuned) How many cows are there in the image? Point to them and output the total count. (unchanged)
-o prompt_templates=none -o system_prompt_style=style_and_length_v2 (stage 1) point_count: cows (was point_count: How many cows ...)

CountBenchQA is unchanged: it is not used for stage-1 checkpoints.

Verification

  • Instantiated every affected task and read the prompts above.
  • PixMo-Count, stage-1 family: identical to mm_olmo's own PixMoCountConfig + DataFormatter on 540/540 validation and 540/540 test rows (mm_olmo main already sends the bare label under prompt_templates="none"). Default family: matches the released Molmo2-4B prediction dump on 540/540.
  • RUN_DUMP_PARITY_TESTS=1 pytest tests/evals/vision/test_dump_parity.py -k "pixmo_count or countbench": 2 passed, so both default prompts match the released Molmo2-4B dump.
  • New tests/evals/vision/test_pixmo_count_prompt.py; full suite 2,820 passed, 15 skipped; ruff, format and ty clean.

PixMo-Count and dense-caption numbers for stage-1 checkpoints change with these prompts. Earlier stage-1 numbers were measured with prompts the checkpoints never trained on and are not comparable.

Rebased onto main

The vision branch is superseded (#316–#324 merged), so this PR now targets main, where the files live under evals/vision/. Main already carried the PixMo-Count prompt_templates=none branch from #322's review, so that commit now adds only the validated family list (an unknown family is refused rather than templated) and the tests; the dense-caption change is as described. The CountBenchQA commit and its revert are dropped as a no-op. Two commits.

@jason718 jason718 changed the title Dense caption: the captioner prompt is the bare tag, long_caption: Stage-1 eval prompts match training: bare caption tag, bare PixMo-Count label Sep 23, 2026
@jason718 jason718 self-assigned this Sep 24, 2026
@jason718 jason718 changed the title Stage-1 eval prompts match training: bare caption tag, bare PixMo-Count label Stage-1 eval prompts match training: bare caption tag, bare counting labels Sep 24, 2026
@jason718 jason718 changed the title Stage-1 eval prompts match training: bare caption tag, bare counting labels Stage-1 eval prompts match training: bare caption tag, bare PixMo-Count label Sep 24, 2026
jason718 added a commit that referenced this pull request Sep 26, 2026
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.
@jason718 jason718 mentioned this pull request Sep 28, 2026
11 tasks done
OLMo-core#875 drops the length number from the stage-1 caption tag, so a
stage-1 checkpoint trains on `long_caption:` and nothing else. The
`style_and_length*` families and `dense_caption_captioner` now send that
bare tag; the `default_inference_len` knob that produced `long_caption 65:`
is gone. The default (instruction-tuned) prompt is unchanged.
… bare label

Stage-1 checkpoints train on `point_count: <label>`, so `-o
prompt_templates=none` sends the bare lower-cased label, the templated
families send the released question, and any other family is refused
instead of silently templated. Tests pin both prompts.
jason718 added a commit that referenced this pull request Sep 28, 2026
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.
@jason718
jason718 force-pushed the jasonr/caption-tag-only branch from f4c4260 to 63bdfce Compare September 28, 2026 18:01
@jason718
jason718 changed the base branch from vision to main September 28, 2026 18:01
@jason718 jason718 closed this Sep 28, 2026
@jason718 jason718 reopened this Sep 28, 2026
jason718 added a commit that referenced this pull request Sep 29, 2026
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.
@jason718

Copy link
Copy Markdown
Contributor Author

Closing in favour of #412, which now carries everything from this PR: the bare long_caption: caption prompt for stage-1 checkpoints (913b30b) and PixMo-Count's prompt-family handling with its tests (a51d48c). The bare-label counting prompt itself is already on main since #324.

@jason718 jason718 closed this Sep 29, 2026
jason718 added a commit that referenced this pull request Oct 1, 2026
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.
jason718 added a commit that referenced this pull request Oct 1, 2026
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.
jason718 added a commit that referenced this pull request Oct 2, 2026
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.
jason718 added a commit that referenced this pull request Oct 2, 2026
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.
jason718 added a commit that referenced this pull request Oct 2, 2026
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.
jason718 added a commit that referenced this pull request Oct 2, 2026
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.
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.

1 participant