Repository navigation
Conversation
`PixMoCapDataset` built the conditioned user turn as the length tag followed by a sampled instruction: "long_caption 63: Describe this image.". Neither side of the comparison uses that form: * mm_olmo's stage-1 scripts (`train_captioner.py`, `train_molmo3_stage1.py`) leave `DataFormatter.prompt_templates` at "none", under which a caption's question is the empty string, so they train on "long_caption 63:". * The stage-1 caption eval (olmo-eval `dense_caption_captioner`, mirroring mm_olmo's `default_inference_len=65`) sends "long_caption 65:". So training saw a sentence that the reference never trains on and that the model never sees at test time. The conditioned turn is now the tag alone, for both the caption and the transcript branch; train and test share one form. `style_length_conditioning=False` still gives the un-tagged natural-language prompt, and `fixed_prompt` is unchanged. The per-example RNG stream shifts by the one draw that picked the sentence, so length buckets for a given index differ from earlier runs; the distribution does not. Tests: src/test/data/multimodal/ 158 passed (torch 2.11, CPU).
Contributor
Author
|
Folded into #875 at the owner's request, so the prompt change and the new data land together. The commit is cherry-picked there unchanged ( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stage-1 caption training used a prompt form that neither the reference implementation trains on nor the eval sends. This makes training use the same form as test time: the style tag alone.
The mismatch
long_caption 63: Describe this image.long_caption 63:dense_caption_captioner)long_caption 65:long_caption 63:train_captioner.py,train_molmo3_stage1.py) leaveDataFormatter.prompt_templatesat its"none"default. Under"none"a caption's question is the empty string, so the user turn is just thestyle_and_lengthtag.PixMoCapDatasetappended an instruction sampled fromCAPTION_PROMPTS/TRANSCRIPT_PROMPTSafter the tag. The model therefore always saw a sentence in training and never sees one at test time.The change
In the conditioned form (
style_length_conditioning=True, whatMolmo2-Stage1.pyruns), the user turn of both the caption and the transcript branch is now the tag and nothing else:long_caption 63:/transcript 41:, or the barelong_caption:the 10% of the time the length is dropped.Unchanged:
fixed_prompt, andstyle_length_conditioning=False, which still gives the un-tagged natural-language prompt. Pointing, counting and text-only sources are not touched.One consequence to be aware of: the per-example RNG stream shifts by the single draw that used to pick the sentence, so the length bucket for a given index differs from earlier runs. The distribution is the same.
Verification
src/test/data/multimodal/: 158 passed on CPU (torch 2.11). Local run, since CI does not cover PRs intovision.['long_caption 10:', 'transcript 12:'],['long_caption:', 'transcript 2:'].ruffclean. No training run yet, so the effect on caption metrics is unmeasured. Any comparison against earlier stage-1 checkpoints should account for the prompt change.🤖 Generated with Claude Code