Skip to content

[Feature]: Support for a draft model that takes inputs from base model (to support Medusa/EAGLE/Hydra) #4669

@abhigoyal1997

Description

@abhigoyal1997

🚀 The feature, motivation and pitch

In approaches like Medusa/EAGLE/Hydra, the speculative model uses the last hidden states from the base model to propose candidates. This feature will allow any such approaches to be implemented with ease. One idea is to store the required base model's outputs along with the sequence and then use that while generating candidates for the next iteration.

Alternatives

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions