Add whisper-large-v3-turbo contrib model#105
Open
jimburtoft wants to merge 4 commits intoaws-neuron:mainfrom
Open
Add whisper-large-v3-turbo contrib model#105jimburtoft wants to merge 4 commits intoaws-neuron:mainfrom
jimburtoft wants to merge 4 commits intoaws-neuron:mainfrom
Conversation
Encoder-decoder Whisper Large V3 Turbo for speech-to-text on Neuron. Includes 6 optimizations: cross-attention KV cache, fused QKV projections, NKI flash attention, NKI Conv1D+GELU fusion, LNC-aware compilation, and batch size > 1 support. Experimental NKI megakernel gated behind WHISPER_USE_MEGAKERNEL=1 environment variable.
2638014 to
dad49ff
Compare
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds whisper-large-v3-turbo (809M params) as a contrib model for NxD Inference. This is an encoder-decoder speech-to-text model built on the OpenAI Whisper base class, with four performance optimizations and batched inference (BS>1) support.
Key optimizations:
Model Information
Model Name: whisper-large-v3-turbo
Model Architecture: Encoder-Decoder transformer (32 encoder layers + 4 decoder layers, 1280 hidden, 20 heads)
Purpose: Speech-to-text (automatic speech recognition)
Checklist
Please ensure your PR includes the following items. Refer to the contrib/CONTRIBUTING.md for detailed guidelines.
Required Components
test/integration/test_model.py)src/)Optional Components
test/unit/directoryFolder Structure
Confirm your contribution follows this structure:
Testing
How did you test this change?
End-to-end validation on a fresh trn2.3xlarge instance using DLAMI Neuron (Ubuntu 24.04) 20260227 (SDK 2.28). Installed NxDI from the
contrib/whisperbranch via pip, ran the full notebook covering BS=1 compile/load/transcribe/benchmark and BS=4 compile/load/decode/benchmark. All 37 notebook cells executed without errors.Test Results:
Measured on 7.3s audio (single 30s segment):
Compatibility
Tested with:
Additional Information
ffmpegis a system dependency required by openai-whisper for audio decoding.Related Issues
N/A
vLLM Integration
By submitting this PR, I confirm that: