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

[WIP][Model] Whisper + vLLM #545

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

kylesayrs
Copy link

@kylesayrs kylesayrs commented Feb 19, 2025

Purpose

  • Support whisper model with huggingface and vllm backends

TODO

  • Better arguments support
  • Better vllm batching
  • Evaluation replication
  • Explore expanding model definition to be shared across architectures such as qwen_audio, ultravox

Testing

lmms-eval --model=whisper --model_args="pretrained=openai/whisper-tiny" --tasks librispeech
lmms-eval --model=whisper_vllm --model_args="pretrained=openai/whisper-tiny" --tasks librispeech

https://huggingface.co/openai/whisper-tiny
7.547098647858638

whisper (pretrained=openai/whisper-tiny), gen_kwargs: (), limit: None, num_fewshot: None, batch_size: 1
|          Tasks          |Version|Filter|n-shot|Metric|   | Value |   |Stderr|
|-------------------------|-------|------|-----:|------|---|------:|---|------|
|librispeech              |    N/A|      |      |      |   |       |   |      |
| - librispeech_dev_clean |Yaml   |none  |     0|wer   |↓  | 8.2813|±  |   N/A|
| - librispeech_dev_other |Yaml   |none  |     0|wer   |↓  |16.3908|±  |   N/A|
| - librispeech_test_clean|Yaml   |none  |     0|wer   |↓  | 7.5773|±  |   N/A|
| - librispeech_test_other|Yaml   |none  |     0|wer   |↓  |17.5674|±  |   N/A|
whisper_vllm (pretrained=openai/whisper-tiny), gen_kwargs: (), limit: None, num_fewshot: None, batch_size: 1
|          Tasks          |Version|Filter|n-shot|Metric|   | Value |   |Stderr|
|-------------------------|-------|------|-----:|------|---|------:|---|------|
|librispeech              |    N/A|      |      |      |   |       |   |      |
| - librispeech_dev_clean |Yaml   |none  |     0|wer   |↓  | 7.8324|±  |   N/A|
| - librispeech_dev_other |Yaml   |none  |     0|wer   |↓  |16.4548|±  |   N/A|
| - librispeech_test_clean|Yaml   |none  |     0|wer   |↓  | 7.6640|±  |   N/A|
| - librispeech_test_other|Yaml   |none  |     0|wer   |↓  |17.1136|±  |   N/A|

@kylesayrs kylesayrs changed the title [WIP] Whisper + vLLM [WIP][Model] Whisper + vLLM Feb 19, 2025
@Luodian
Copy link
Contributor

Luodian commented Feb 25, 2025

Hi do you still want to contribute whisper? Looking forward to it!

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