Skip to content

Investigate: Megatron backend with vLLM streaming #3349

Description

@h-guo18

Background: vLLM streaming, where the trainer pulls the target's hidden states from vLLM serving, works only with the HF trainer. The Megatron backend offers model and context parallelism for large drafters and long sequences, but supports only EAGLE and computes the target's hidden states inside the trainer.

Goal: Assess what it takes to feed streamed hidden states into Megatron-based draft training, estimate the gain over the HF path, and decide whether to build it.

Activity

  1. WEIXILIN0307 commented on Nov 18, 2026

    @WEIXILIN0307

    Hi @h-guo18, I’m interested in investigating the Megatron backend with vLLM streaming. Is anyone already working on this internally or in an unlinked PR?
    If this is available, I’d like to assess the integration requirements and compare the expected benefits with the existing HF streaming path. I can start by mapping the streamed hidden-state interface to Megatron EAGLE training and outlining a small-scale validation plan, then share the findings before proposing an implementation.
    Would this be a useful contribution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions