Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Usage]: how to get every output token score? #10670

Open
TonyUSTC opened this issue Nov 26, 2024 · 0 comments
Open

[Usage]: how to get every output token score? #10670

TonyUSTC opened this issue Nov 26, 2024 · 0 comments
Labels
usage How to use vllm

Comments

@TonyUSTC
Copy link

TonyUSTC commented Nov 26, 2024

I can use transformers to return output token score, how to do in vllm?
###transformers
generated_ids = model.generate(
**model_inputs,
max_new_tokens=256,
return_dict_in_generate=True,
output_scores=True
)

@TonyUSTC TonyUSTC added the usage How to use vllm label Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
usage How to use vllm
Projects
None yet
Development

No branches or pull requests

1 participant