Skip to content

feat(misalignment_monitor): layer-0 vLLM engine activation path - #6021

Draft
cmunley1 wants to merge 1 commit into
mainfrom
cmunley1/misalignment-monitor-engine
Draft

cmunley1 wants to merge 1 commit into
mainfrom
cmunley1/misalignment-monitor-engine

Conversation

@cmunley1

Copy link
Copy Markdown
Contributor

What does this PR do?

Depends on #5371. Adds the layer-0 engine path for the misalignment monitor, split from #5371 at yaoyu-33's request:

  • resources_servers/misalignment_monitor/vllm_activation_connector.py: a vLLM KV connector plugin (vLLM 0.29 extract_hidden_states) that reads the policy's own residual stream while vLLM serves it and scores it with a Jacobian lens or a linear probe.
  • activation_source: engine and activation_results_dir in the monitor, with README and tests.
  • responses_api_models/vllm_model passes the connector's per-request result (kv_transfer_params) into the Responses metadata.
  • nemo_gym/models/chat_streaming.py and nemo_gym/models/model_call_capture.py keep that result through streaming and capture.

The branch sits on #5371's head, so its own commit is the whole change.

Code provenance: MisalignmentActivationConnector._submit_async_write adapts ExampleHiddenStatesConnector._submit_async_write from vLLM v0.29.0 (source at 98dff2a, Apache-2.0, Copyright contributors to the vLLM project). The file header records it.

Status

Draft. Needs a real vLLM 0.29 GPU run with the connector before review.

@copy-pr-bot

copy-pr-bot Bot commented Nov 11, 2026

Copy link
Copy Markdown

Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@cmunley1
cmunley1 added this pull request to stack #6022 November 11, 2026 21:30
Base automatically changed from cmunley1/misalignment-monitor to main November 12, 2026 01:11
Restore the engine path split from #5371: the vLLM activation connector,
activation_source: engine in the monitor, and the vllm_model, chat_streaming
and model_call_capture changes that carry the connector's result to the monitor.

Signed-off-by: Christian Munley <[email protected]>
@cmunley1
cmunley1 force-pushed the cmunley1/misalignment-monitor-engine branch from 840ec1d to c1c0a23 Compare November 12, 2026 01:11
@svcnvidia-nemo-ci svcnvidia-nemo-ci added feature New capabilities, enhancements, or enablement work area:evaluation Evaluation, rollout collection, reward profiling, comparison, and exporters labels Nov 16, 2026

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

area:evaluation Evaluation, rollout collection, reward profiling, comparison, and exporters feature New capabilities, enhancements, or enablement work

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants