Support v1 raw multimodal image offload#2836
Draft
eligotts wants to merge 3 commits into
Draft
Conversation
This was referenced Jun 20, 2026
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.
Summary
Wires Prime-RL v1 training onto the generic raw multimodal image offload contract used by the companion Verifiers and Renderers PRs.
Companion PRs:
What changed:
prime_rl.multimodaladapter layer and strict raw multimodal descriptor schema for adapter-owned payloads./inference/v1/generateto consume renderermmrawrefs as genericRawMMRefobjects, buildRawMMItemfromfamily/fingerprint/payload, and delegate materialization to the registered adapter.mm_refscarrying strictprime_raw_mm_itemenvelopes plus localfile://image URIs; legacy eagermm_kwargs/processed payloads are rejected.TrainingSampleand packedMicroBatch.trainer.missing_mm_image_policy, defaulting toplaceholder_zero_loss, with placeholder synthesis delegated to the owning multimodal adapter.SizeDict.get(...)handling.Validation
ruff checkandruff formatpassed.OUT=/tmp/prime-rl-v1-raw-mm-offload-clean-api-smoke-20260620-072559 PYTHONPATH=/home/ubuntu/prime-rl-v1-raw-mm-offload/src:/home/ubuntu/renderers:/home/ubuntu/verifiers scripts/smoke/mini_browse_platform_v1_raw_offload.shTrainingBatchexamples and 4 packedMicroBatches withmm_refs, 0 eagermm_kwargs, 12 strictprime_raw_mm_itemdescriptors, 12 localfile://image URIs, 0 data URIs, 0 missing files, and image token type ids present.