Skip to content

[Feature]: Add prompt token ids into logit processor? #4928

@xz-liu

Description

@xz-liu

🚀 The feature, motivation and pitch

I am using vllm's SamplingParams to set up the logit processor. It looks the same as huggingface, but there are some subtle differences in use. The main difference is that it does not give the logit processor all the token IDs, but starts from the generated token.

On the contrary, huggingface provides the prompt and the token ID of the generated token. I was wondering if there is a way to allow the use of vllm's logit processor to also obtain this information?

Alternatives

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions