This repository contains the vLLM adapter for CohereLabs/cohere-transcribe-03-2026, enabling high-performance speech-to-text inference on both GPU and Ascend NPU via the vLLM engine.
Cohere ASR is an encoder-decoder speech recognition model based on a Conformer encoder and a Transformer decoder.
en, fr, de, es, it, pt, nl, pl, el, ar, ja, zh, vi, ko.| File (relative to vLLM root) | Description |
|---|---|
vllm/model_executor/models/cohere_asr.py | Core vLLM adapter (new file) |
vllm/model_executor/models/registry.py | Register architecture in model registry (4-line insertion) |
tests/models/registry.py | Register test model in test registry (4-line insertion) |
tests/e2e/models/configs/CohereAsr.yaml | E2E test configuration template |
docs/source/tutorials/models/CohereAsr.md | Usage documentation |
The model requires trust_remote_code=True because it uses custom modeling files (modeling_cohere_asr.py, tokenization_cohere_asr.py, processing_cohere_asr.py).
vllm serve CohereLabs/cohere-transcribe-03-2026 \
--trust-remote-code \
--dtype bfloat16 \
--tensor-parallel-size 1 \
--max-model-len 1024 \
--port 8000curl -s http://127.0.0.1:8000/v1/audio/transcriptions \
-H 'Content-Type: multipart/form-data' \
-F file=@sample.wav \
-F model="CohereAsrForConditionalGeneration" \
-F language=encurl -s http://127.0.0.1:8000/v1/chat/completions \
-H 'Content-Type: application/json' \
-d '{
"model": "CohereAsrForConditionalGeneration",
"messages": [
{"role": "user", "content": [{"type": "audio", "audio_url": "file://sample.wav"}]}
],
"temperature": 0,
"max_tokens": 128
}'QKVParallelLinear + Attention for self-attention (PagedAttention compatible).ColumnParallelLinear + MergedColumnParallelLinear + CrossAttention for encoder-decoder cross-attention.ColumnParallelLinear + RowParallelLinear for the feed-forward network.WeightsMapper to bridge the original checkpoint key names to the vLLM model structure, plus a custom load_weights to merge separate Q/K/V weights into stacked parallel linear layers.proj_out) is tied to decoder token embeddings. Its bias is loaded from log_softmax.mlp.layer0.bias in the original checkpoint.| Feature | Status |
|---|---|
| ACLGraph | ✅ |
| Tensor Parallel | ✅ (decoder only) |
| Beam Search | ✅ |
| Transcription API | ✅ |
| Language Selection | ✅ |
| Timestamps | ❌ |
| Diarization | ❌ |
| EP / flashcomm1 | N/A |
| Multimodal (image) | N/A |
Apache-2.0