Skip to content

[Bug] EAGLE Error - num_steps, top_k, and draft_tokens #5673

@Swipe4057

Description

@Swipe4057

Checklist

  • 1. I have searched related issues but cannot get the expected help.
  • 2. The bug has not been fixed in the latest version.
  • 3. Please note that if the bug-related issue you submitted lacks corresponding environment info and a minimal reproducible demo, it will be challenging for us to reproduce and resolve the issue, reducing the likelihood of receiving feedback.
  • 4. If the issue you raised is not a bug but a question, please raise a discussion at https://github.com/sgl-project/sglang/discussions/new/choose Otherwise, it will be closed.
  • 5. Please use English, otherwise it will be closed.

Describe the bug

If you run EAGLE without specifying the parameters speculative_num_steps, speculative_eagle_topk, and speculative_num_draft_tokens, an error occurs instead of applying the automatic parameter-fill function.

https://github.com/sgl-project/sglang/blob/main/python/sglang/srt/server_args.py#L1370

Image

Reproduction

Environment

docker sglang v0.4.5.post3-cu125

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions