Skip to content

[RL] Integrate multimodal agentic PPO on the native Trial runtime - #2372

Draft
ShilohYu wants to merge 11 commits into
review/pr2354-8c08d899-20261202from
feat/trial-multimodal-glm-ppo-20261202
Draft

ShilohYu wants to merge 11 commits into
review/pr2354-8c08d899-20261202from
feat/trial-multimodal-glm-ppo-20261202

Conversation

@ShilohYu

@ShilohYu ShilohYu commented Dec 2, 2026 •

Copy link
Copy Markdown
Collaborator

Scope

Integrate multimodal agentic PPO on the native #2354 Trial runtime. The stacked review base is 8c08d899; the current integration head is d6af32be.

  • Carry actual tool images, backend token IDs, logprobs and replay metadata into PPO training.
  • Honor tool environment settings, protect committed traces during rollback and reconcile late control replies.
  • Reuse session trajectory assembly for Decoupled GAE and share the rubric judge across Trials.

Review fixes

  • Synchronize train_prompt_ids with the settled multimodal prompt before building training metadata (6aa1d7e1).
  • Reuse cancellation-aware Judge calls and centralize image/position processing (40ac5551). Pass only the lightweight actor/name proxy across Trial processes (7edfcdb6); preprocessing is built in the receiving process. This fixes the real GDP Ray serialization failure caused by a ThreadPoolExecutor inside the original preprocessor. Cancellation does not kill the shared actor or guarantee that an already-running HTTP request stops immediately.
  • Add opt-in last-request answer finalization to the mini-swe harness (d6af32be). It rejects truncated, empty or tool-bearing final responses, preserves request budgets and raw training traces, and writes the answer before native submission. Default profiles retain their native behavior. The ZeroBench prompt that enables it lives in the companion CRG repository.

Validation

  • Multimodal/Teacher/Judge CPU regression: 43 passed, 2 deselected, 5 subtests passed, including a cloudpickle round trip with an unpicklable source preprocessor and request cancellation. Earlier prompt-boundary regressions fail before the fix and pass afterward.
  • Replayed mini-agent/harness tests on the final integration: 58 passed, 1 skipped in the host process environment. In-sandbox process tests fail because psutil cannot resolve child PIDs; the host rerun passed. Added tests cover cost/wall limits, invalid tool calls, empty/truncated answers and failed answer writes. Changed-file Ruff and diff checks passed.
  • Real ZeroBench smoke: one question, 12 requests, Submitted with a nonempty answer; the answer was wrong. This verifies finalization, not accuracy or PPO.
  • GDP runs exposed the stale prompt boundary, algorithm-side missing session metrics, and Trial Judge serialization issues. No complete PPO step, distributed checkpoint or cold restore has passed yet. Validation now runs eight GPUs first, followed by 64 GPUs using the same PR commit and shared source directory.
  • Companion CRG changes: MR !86, runner 96b9887 and ZeroBench prompt ea0f705. Algorithm-side session metric compatibility is still shared experiment configuration.
  • Inherited base lint failures remain unchanged; remote lint results are pending.

Review history

See #2366 for multimodal trace propagation, #2367 for tool environment adapters and #2368 for rollback handling. Review the combined integration here.

This branch has not been deployed

No deployments
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