Skip to content

feat(examples): add Pixel-Reasoner image and video rollouts - #1894

Open
Tournesoly wants to merge 1 commit into
mainfrom
feature/pixel-reasoner-rollout
Open

Tournesoly wants to merge 1 commit into
mainfrom
feature/pixel-reasoner-rollout

Conversation

@Tournesoly

Copy link
Copy Markdown
Collaborator

Description

Add an inference-only Pixel-Reasoner image/video example under examples/vlm, including a 27B configuration, multi-turn workflow, visual tools, basic verifier and setup instructions. Preserve reasoning across turns and export messages, token IDs, tool assets and terminal status for offline evaluation.

Add optional video request/response fields and SGLang transport support. Existing positional dataclass arguments retain their order. The vLLM adapter explicitly rejects this new transport field until it is implemented.

Related Issue

Fixes #1893

Type of Change

  • ✨ New feature

Validation

  • 17 isolated CPU regression cases passed; these use a mocked inference boundary and are kept outside this repository under the author's local test directory.
  • Real GPU smoke: 4/4 episodes completed (two image, two video), eight responses, seven containing nonempty reasoning; crop and frame-selection tools exercised; no failed or truncated episodes. Ran with AReaL's SGLang server wrapper, TP=2, two concurrent episodes.
  • Odd seven-frame preprocessing preserved all eight padded transport frames.
  • All applicable pre-commit hooks passed for the nine changed/new files.
  • pre-commit run --all-files was attempted: unrelated pyproject consistency, uv lock and CLI docs hooks could not run on the Python 3.10 development host because tomllib, uv and runtime dependencies were unavailable. Remaining all-file hooks passed.

Checklist

  • I have read the Contributing Guide
  • Pre-commit hooks pass (pre-commit run --all-files)
  • Relevant tests pass; new tests added for new functionality
  • Documentation updated
  • Branch is up to date with main
  • Self-reviewed via /review-pr command
  • This PR was prepared by a coding agent via /create-pr
  • This PR is a breaking change

Additional Context

No training update, full Pixel reward or automatic resume/deduplication is included. The verifier is intentionally limited to normalized boxed-answer matching. Video currently targets SGLang's preprocessing API. Runtime compatibility is version-sensitive; README lists the tested stack and video dependencies.

Changes outside the example total 15 added lines in five files. Large-scale deployment and broader runtime portability were not re-tested. Public CI test coverage remains to be added; local test scripts and internal cluster/data paths are excluded from this PR.

Provide an inference-only visual-tool workflow that preserves reasoning
across turns and exports complete attempts for offline evaluation.
Pass optional native video inputs through SGLang without changing the
existing positional request/response constructor arguments.

Refs #1893

Signed-off-by: wens <wlithu@gmail.com>

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you provide a training script?

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.

[Feature] Add a Pixel-Reasoner image/video rollout example

2 participants