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

[CHORE] Rename output_emitted_token_num -> output_emitted_draft_token_num #977

Merged
merged 2 commits into from
Mar 29, 2025

Conversation

jon-chuang
Copy link
Contributor

With the old naming, it is easy to get confused with off by one error, with the new naming it is clear.

See example special handling required here due to unclear API: https://github.com/vllm-project/vllm/blob/280d074103160d042059dc60c28898fd9fb56568/vllm/model_executor/layers/rejection_sampler.py#L139

Copy link
Collaborator

@yzh119 yzh119 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM overall, can you use pre-commit to format your code?
Some of the format checks failed: https://github.com/flashinfer-ai/flashinfer/actions/runs/14140711551/job/39622375707?pr=977

Thank you for your contribution!

Copy link
Collaborator

@yzh119 yzh119 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you!

@yzh119 yzh119 merged commit 86da6b8 into flashinfer-ai:main Mar 29, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants