Repository navigation
Closed
Labels
area:inferenceGeneration, sampling, decoding (incl. speculative, DRY)area:modelsModel architectures, weights, loading, metadatapriority:mediumMedium prioritystatus:doneCompletedtype:enhancementNew features, capabilities, or significant additions
Milestone
Description
Part of #363
Blocked by #364 (Phase 1 server audio plumbing). Start once the audio routes, multipart parsing, and audio-model interface from #364 are in place.
Problem / Background
The /v1/audio/transcriptions and /v1/audio/translations endpoints (epic #363) need a real speech-to-text model. mlxcel has the log-mel front-end and audio-input encoders but no ASR decoder. This sub-issue ports an ASR model and wires it to the transcription/translation endpoints built in #364.
Proposed Solution
- Port a Whisper-style encoder-decoder ASR model to mlxcel/MLX (mel encoder plus an autoregressive text decoder with the multilingual transcribe/translate task tokens). Reuse the log-mel front-end in
src/audio/feature_extractor.rs. Register themodel_typeinsrc/models/detection.rs. Suggested checkpoint family: mlx-community Whisper (implementer confirms the exact MLX checkpoint and size). - Alternative: a Conformer CTC/RNNT ASR (Parakeet-style) is also viable and partially aligns with the existing Nemotron Omni Conformer encoder infrastructure. Whisper is the recommended first target for broad language coverage and the built-in translate task.
- Wire to
/v1/audio/transcriptionsand/v1/audio/translations(translate task) on the feat(server): audio endpoint plumbing (multipart upload, binary response, WAV output) #364 plumbing: uploaded audio (WAV via the existing reader) to mel features to ASR to text to OpenAI transcription JSON ({ "text": ... }, optional segments / verbose_json).
Acceptance Criteria (integrated, not build-only)
- A real Whisper MLX checkpoint transcribes an uploaded WAV via
POST /v1/audio/transcriptionsend-to-end. -
POST /v1/audio/translationsreturns translated (to-English) text for a non-English clip. -
mlxcel listshows the ASR architecture. - Unit tests added;
cargo test,cargo clippy --all-targets -- -D warnings, andcargo fmt --checkclean. -
docs/supported-models.mdupdated.
Technical Considerations
- Reuse the existing mel front-end rather than adding a second one.
- Depends on the audio-model interface, multipart upload, and route wiring from feat(server): audio endpoint plumbing (multipart upload, binary response, WAV output) #364.
Metadata
Metadata
Assignees
Labels
area:inferenceGeneration, sampling, decoding (incl. speculative, DRY)area:modelsModel architectures, weights, loading, metadatapriority:mediumMedium prioritystatus:doneCompletedtype:enhancementNew features, capabilities, or significant additions
Activity
feat(models): Whisper ASR speech-to-text for /v1/audio/* (lablup#371)
feat(models): Whisper ASR speech-to-text for /v1/audio/* (lablup#371)