Skip to content

[Bug]: Sampler uses non-existing SamplingType.BEAM enum member #13355

@stanislaushimovolos

Description

@stanislaushimovolos

Your current environment

It looks that sampler.py module uses removed SamplingType.Beam enum member.

        elif sampling_type == SamplingType.BEAM:
            beam_search_logprobs = logprobs[sample_indices]

It is repeated in at least 2 places within module.

Original Enum definition

https://github.com/vllm-project/vllm/blob/main/vllm/sampling_params.py#L22

🐛 Describe the bug

It is impossible to reproduce now, more looks like a typo during refactoring.

Before submitting a new issue...

  • Make sure you already searched for relevant issues, and asked the chatbot living at the bottom right corner of the documentation page, which can answer lots of frequently asked questions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions