-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[shortfin][python] Skip tokenization in sd.server if request holds `i…
…nput_ids` (#842) `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()`.
- Loading branch information
1 parent
0c6d061
commit 1f50538
Showing
2 changed files
with
10 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters