Repository navigation
Conversation
This was referenced Dec 2, 2026
This branch has not been deployed
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.
Sandbox image turns currently cannot carry native image inputs and inference token evidence through to training. This change forwards image requests through SessionServer, retains actual backend prompt/output IDs, logprobs, routes and image snapshots in TraceStore, and materializes HF image fields and Qwen positions into RolloutState. Each turn is an independent complete snapshot supervising only that turn's output.
Stacked on #2354: base
InternLM:review/pr2354-base-20261202at4e690a7056dd268e2af6da9251d31415e70427cf, headc5c92988fa9157b304ae21130d48b6db403709f9(one commit). The base already includes the merged #2346 TrainBatch contract. This PR does not include the independent #2348/#2364 in-process tool loop changes. Retarget main after #2354 merges.The same commit adds image request body limits and the sandbox config build hook needed by the task-side H provider. It reuses the existing Trie, request ownership, segmented training, HF processor, Qwen MRoPE and Ray transfer helpers.
Validation:
Limits: embedded images and default image processing only; multimodal streaming and prefix sharing are deferred. Qwen short-run infrastructure acceptance does not establish accuracy, long-run stability or GLM acceptance. Companion Anthropic opt-in IDs: InternLM/lmdeploy#5232; current H acceptance uses native OpenAI requests.
Review dependency: the base branch is a fixed mirror of #2354 head, not a separate implementation or merge target. Review the incremental diff here; do not merge until #2354 is merged, then retarget to main and revalidate. Source and target branches are both hosted in InternLM/xtuner.
Follow-up incremental reviews: #2367 (native task factories) and #2368 (main #2327 trace selection).