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

[shortfin][python] Skip tokenization in sd.server if request holds input_ids #842

Merged
merged 1 commit into from
Jan 17, 2025

Conversation

vinayakdsci
Copy link
Contributor

sd.server currently performs tokenization irrespective of whether the request has input_ids attached to it.

This patch adds a check to skip tokenization if the request has tokenized inputs attached to it, and adds input_ids to gen_inputs so that such requests can be created from InferenceExecRequests.from_batch().

@vinayakdsci vinayakdsci requested a review from monorimet January 17, 2025 17:56
Copy link
Contributor

@monorimet monorimet left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks!

@vinayakdsci
Copy link
Contributor Author

Thanks for the approval! Will merge when the CI finishes.

@vinayakdsci vinayakdsci merged commit 1f50538 into nod-ai:main Jan 17, 2025
37 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