> ## Documentation Index
> Fetch the complete documentation index at: https://docs.m-star.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Whisper and Qwen3-ASR

> Pick Whisper for word times or Qwen3-ASR for live captions.

Use Whisper for word or segment timestamps. Use Qwen3-ASR for realtime transcription in 30 languages. The two Qwen keys load different checkpoints. `qwen3_asr` is 1.7B and `qwen3_asr_realtime` is 0.6B.

## Install and start

`whisper_large_v3_turbo` and `whisper_large` have one-GPU defaults. Keep the decoder on one GPU when you need word timestamps. The TP2 Whisper layout refuses them.

### `whisper_large`

Audio → text. The default `whisper_large.yaml` uses 1 GPU. The [weights](https://huggingface.co/openai/whisper-large-v3) use Apache-2.0.

```bash theme={null}
uv pip install --torch-backend=auto "mstar-ai[asr]"
mstar serve whisper_large
```

[Send the request](#transcribe).

### `whisper_large_v3_turbo`

Audio → text. The default `whisper_large_v3_turbo.yaml` uses 1 GPU. The [weights](https://huggingface.co/openai/whisper-large-v3-turbo) use MIT.

```bash theme={null}
uv pip install --torch-backend=auto "mstar-ai[asr]"
mstar serve whisper_large_v3_turbo
```

[Send the request](#transcribe).

### `qwen3_asr`

Audio → text. The default `qwen3_asr.yaml` uses 1 GPU. The [weights](https://huggingface.co/Qwen/Qwen3-ASR-1.7B) use Apache-2.0.

```bash theme={null}
uv pip install --torch-backend=auto "mstar-ai[asr]"
mstar serve qwen3_asr
```

[Send the request](#transcribe).

### `qwen3_asr_realtime`

Audio → text. The default `qwen3_asr_realtime.yaml` uses 1 GPU. The [weights](https://huggingface.co/Qwen/Qwen3-ASR-0.6B) use Apache-2.0.

```bash theme={null}
uv pip install --torch-backend=auto "mstar-ai[asr]"
mstar serve qwen3_asr_realtime
```

[Transcribe a recording](#transcribe) or [connect a live caption client](https://docs.m-star.org/asr.md#realtime).

## Send a request

Run either client example in a second terminal after `/health` returns 200.

### Transcribe a recording

Use a short English recording in `speech.wav` (under 30 seconds). For long files, the [transcription endpoint](https://docs.m-star.org/clients.md#transcription) applies the model’s windowing policy.

**Python SDK**

```python theme={null}
from mstar import MStarClient

client = MStarClient("http://localhost:8000")
print(client.transcribe("speech.wav", language="en"))
```

**curl**

```bash theme={null}
curl -fsS http://localhost:8000/v1/audio/transcriptions \
  -F file=@speech.wav -F language=en -F response_format=text
```

## Deployment configs

| File | GPUs | Layout | Use |
| - | - | - | - |
| `whisper_large_v3_turbo.yaml` | 1 | One worker, `step_threads: serial` | Default |
| `whisper_large_v3_turbo_split.yaml` | 1 | Encoder and decoder in two workers, MPS | A decode step never waits behind an encoder batch |
| `whisper_large.yaml` | 1 | One worker | Default |
| `whisper_large_split.yaml` | 1 | Two workers, MPS | As above |
| `whisper_large_tp2.yaml` | 2 | Decoder at TP2 | No word timestamps |
| `qwen3_asr.yaml` | 1 | One worker, 3500 KV pages and 1536 offload pages, sized for an 80 GB GPU | Default |
| `qwen3_asr_split.yaml` | 1 | Two workers, MPS, 2048 pages, cap 12 | Bursts of whole long files |
| `qwen3_asr_realtime.yaml` | 1 | One worker, 1024 pages | Realtime sessions |
| `qwen3_asr_realtime_split.yaml` | 1 | Two workers, MPS | As above |

`mps: true` starts a CUDA MPS daemon for the deployment and needs `nvidia-cuda-mps-control` on `PATH`; it ships with the NVIDIA driver.

To use an alternative, pass `--config configs/<file>` after the launcher name. From a wheel installation, [copy the shipped YAML](https://docs.m-star.org/serving.md#custom-configs) and pass its local path.

## Settings and defaults

Request fields on `/v1/audio/transcriptions`. Fields that are not OpenAI's go in `extra_body` or as extra form fields.

| Field | Default | Effect |
| - | - | - |
| `language` | detected | Forces the language: an ISO code, or for Qwen3-ASR also a name. |
| `prompt` | none | Whisper: prior text as decoder context. Qwen3-ASR: system-turn context. `/generate` calls it `initial_prompt`. |
| `task` | `transcribe` | Whisper only. `translate` translates into English. |
| `response_format` | `json` | Choose `text` for plain text. On Whisper, `verbose_json`, `srt` and `vtt` request segment timestamps. |
| `timestamp_granularities[]` | unset | On Whisper, request `segment` or `word` timestamps. |
| `long_form` | `parallel` | Whisper: `sequential` decodes windows in order, each conditioned on the transcript so far and decoded again at rising temperatures when its text loops. Slower, and the only mode with that repetition guard. |
| `window_seconds` | 30 s (Qwen3-ASR) | 5 s up to the clip limit. `1200` sends a whole Qwen3-ASR file as one request. |
| `assistant_prefix` | none | Qwen3-ASR: text the transcript continues from. |
| `max_output_tokens` | 4096 (Qwen3-ASR) | Transcript token cap. |

Deployment keys: `max_concurrent_requests` (64; 12 in `qwen3_asr_split.yaml`), `resources.kv_cache.max_num_pages` and `cpu_offload_pages`, and `knobs: step_threads` ([Tuning](https://docs.m-star.org/asr.md#tuning)).

## Limits

* Whisper hears 30 s per request. `/generate` drops audio past 30 s; only the transcription route windows longer uploads.
* Word timestamps need the decoder on one GPU. `whisper_large_tp2.yaml` answers a word-timestamp request with a 400.
* Whisper's decoder caches hold 64 requests. Startup refuses a `max_concurrent_requests` they cannot hold.
* Qwen3-ASR writes no timestamps and decodes greedily. `min_p` and `repetition_penalty` are refused.
* Admission reserves only a request's prompt. Many concurrent whole 20-minute files (`window_seconds=1200`) can fill the KV pools and wait on each other until they time out; `qwen3_asr.yaml` holds about 32 at full size. For that traffic, lower `max_concurrent_requests` or raise the pools with it.
* Realtime transcription is served by the two Qwen3-ASR keys only.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.