-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
[Frontend] Add /v1/audio/transcriptions
OpenAI API endpoint
#12909
base: main
Are you sure you want to change the base?
Conversation
👋 Hi! Thank you for contributing to the vLLM project. 💬 Join our developer Slack at https://slack.vllm.ai to discuss your PR in #pr-reviews, coordinate on features in #feat- channels, or join special interest groups in #sig- channels. Just a reminder: PRs would not trigger full CI run by default. Instead, it would only run Once the PR is approved and ready to go, your PR reviewer(s) can run CI to test the changes comprehensively before merging. To run CI, PR reviewers can either: Add 🚀 |
Signed-off-by: NickLucche <[email protected]>
Signed-off-by: [email protected] <[email protected]>
Signed-off-by: NickLucche <[email protected]>
Signed-off-by: NickLucche <[email protected]>
Signed-off-by: NickLucche <[email protected]>
Signed-off-by: NickLucche <[email protected]>
Signed-off-by: NickLucche <[email protected]>
Signed-off-by: NickLucche <[email protected]>
Signed-off-by: NickLucche <[email protected]>
Signed-off-by: NickLucche <[email protected]>
d13f9f7
to
222c094
Compare
Had to rebase and force push to make some very old commits compliant with dco and pre-commit |
Follow up on the great work by @robertgshaw2-redhat and @varun-sundar-rabindranath here #12458.
This PR adds the
/v1/audio/transcriptions
OpenAI API endpoint.Basic example (start server with
vllm serve openai/whisper-large-v3
):I am also adding a correctness test based on computing the WER for a subset of a dataset found here https://huggingface.co/datasets/open-asr-leaderboard/datasets, comparing against the transformers baseline.
Mind that this is all currently a bit "fit" to Whisper, being the only model we support. In particular in the way special tokens (<|startoftranscript|>, <|transcribe|>).. are sent as input, as this would require a more general design. Same thing in the validating supported languages and audio duration limit.
Let me know if I overlooked something in this PR.
TODOs (next PRs):
verbose_json
response format