Skip to content

Decompose OlmoCoreVLMProvider into collaborators #393

Open

Description

@jason718

cc @jason718 — follow-up from the multimodal eval stack (#278), requested on #324.

OlmoCoreVLMProvider (inference/providers/olmo_core_vlm/provider.py, ~870 lines) does request encoding, image-token splicing, left-padded batch assembly with generation budgets, cached and uncached decode loops, logprob scoring, and lifecycle management. #316 split the module by responsibility (checkpoint / conversion / preprocessing / cache / provider) but deliberately kept the class whole, because decomposing it changes the _PreparedBatch padding/RoPE/mask contract and deserves its own PR with its own verification.

Tyler's review item #3b on #278. Note allenai/Olmo-core#867, which proposes upstreaming the decode loop as a multimodal generate: if that lands, this class shrinks to a thin adapter and most of the decomposition becomes moot — worth checking that first.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions