Skip to content

[Feature Request] Improve Speculative Decoding feature during model compilation #3366

@kairos-yu

Description

@kairos-yu

🚀 Feature

Improve Speculative Decoding feature during model compilation

Motivation

Recently, I have been trying to deploy a speculative decoding model on an edge device, but I encountered several issues:

Medusa Model Support:
The related issue can be found here: mlc-ai/mlc-llm#3173

Excessive Memory Usage with Target Model:
During the verification of draft tokens, the memory consumption increases dramatically — from 3.79 GB to 7.70 GB, as shown in the nsys memory report below. The growth is unexpectedly large and makes the deployment impractical on resource-constrained devices.
Image

Alternatives

  • Refactor the Medusa model.

  • Add spec_len as a compile-time argument during model compilation.

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