Add Qwen3-ASR-1.7B contrib model#162
Open
jimburtoft wants to merge 2 commits into
Open
Conversation
Implements Qwen3-ASR-1.7B (speech-to-text) on NeuronX Distributed Inference using a decomposed pipeline: traced audio encoder + NxDI text decoder. Key features: - Audio encoder traced with StaticQwen3ASREncoder (3 bucket NEFFs: 5s/10s/30s) - Text decoder reuses NeuronQwen3VLForCausalLM scatter mechanism - Full E2E pipeline with EXACT MATCH to CPU reference - WER: 3.06% on LibriSpeech test-clean (50 samples) - Performance: 4.9ms TPOT, 27.5ms TTFT, 50x real-time (30s audio) - Validated on trn2.3xlarge TP=4, SDK 2.29 Includes integration tests and comprehensive README.
Adds vllm/ directory with: - README.md: Patch instructions for vllm-neuron (constants, model loader, model runner, platform, utils) - neuron_qwen3_asr_vllm.py: Full NeuronQwen3ASRForCausalLM class - start-vllm-server.sh: Server launch script - test_transcription.py: API test script Validated: 140ms E2E latency for 2.9s audio via OpenAI chat completions API on trn2.3xlarge (TP=4, SDK 2.29, vLLM 0.16.0 + vllm-neuron 0.5.0).
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.
Summary
Architecture
Performance (trn2.3xlarge, TP=4, LNC=2, SDK 2.29)
Validation
Files
Key Implementation Notes
NeuronQwen3VLForCausalLMwithscatter_by_index_putfor audio embedding injectionStaticQwen3ASREncoder) that replaces dynamic cu_seqlens with pre-computed block-diagonal attention mask for trace compatibilityrope_scalingmust use"rope_type": "default"(mRoPE applied externally viarotary_position_ids)inline_weights_to_neff=Truecauses accuracy regression for the encoder (cosine 0.724 vs CPU)Maintainer
Jim Burtoft (@jimburtoft)