Repository navigation
Open
Labels
component: distributedTasks involving Ray actor management, cross-node scheduling, and communication synchronization.featurenext-phasepriority: highSevere congestion issues require the highest priority for resolution.
Description
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:
- 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.
- 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.
- 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.
Metadata
Metadata
Labels
component: distributedTasks involving Ray actor management, cross-node scheduling, and communication synchronization.featurenext-phasepriority: highSevere congestion issues require the highest priority for resolution.
Activity