Skip to content

[WS3] vLLM rollout integration #129

Open

Description

@Flink-ddd

Part of #83 · Deferred to next phase — not in this month's sprint. Shared investigation with WS5 (vime).

Wire WS1 batch-invariant ops into vLLM's real rollout path (logprob / attention), behind a non-intrusive custom-op / optional-backend flag so pure inference is unaffected.

Integration principle (read before starting)

All integration lives in the RL-Kernel repo. The decision path for how to hook into vLLM:

  1. Default — extension points (no vLLM PR): if vLLM's existing extension mechanisms (custom op registration / attention backend plugin / platform plugin) are sufficient to hook the logprob and attention paths, do everything in our own repo. Users install vLLM + RL-Kernel; our library injects the ops at load time. We do NOT modify vLLM source and do NOT file PRs against the vLLM repo.
  2. If extension points are insufficient — a small upstream PR to vLLM: if the point we need to hook is hard-wired inside vLLM with no extension entry, the preferred fallback is a small, generic PR to vLLM that ADDS an extension point / callback (i.e. ask vLLM to open a hook, NOT merge our operators into vLLM). Monkey-patching is an acceptable temporary alternative if we cannot wait for the PR to land.
  3. Last resort — fork: forking vLLM is the last resort only (maintenance burden of tracking upstream). Avoid unless options 1 and 2 are both blocked.

The first PR below determines which path applies.

Planned PRs

  • Confirm whether vLLM's extension points (custom op / backend plugin / platform plugin) are sufficient for the logprob/attention hooks we need. Output: a short note stating path 1 / 2 / 3 above, so the rest of this issue implements against a decided approach. (Recent vLLM native RL APIs / pluggable interfaces make path 1 increasingly likely — check these first.)
  • Wire the batch-invariant logprob op into vLLM's rollout path behind a non-intrusive flag.
  • Wire the batch-invariant attention op into vLLM's rollout path behind a non-intrusive flag.
  • Verify pure-inference workloads are completely unaffected when the flag is off.
  • (Only if path 2) Draft the small upstream extension-point PR to vLLM; track it separately and do not block this issue on its merge — use monkey-patch in the interim.

Activity

  1. added
    component: distributed
    priority: high
    and removed on Jun 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

component: distributedfeaturenext-phasepriority: high

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions