[Qwen3-TTS] Remove hardcoded distributed_executor_backend to improve single-GPU performance (#2604)

Signed-off-by: Ian Carrasco <ian.carrasco@baseten.co>
This commit is contained in:
iancarrasco-b10 authored and GitHub committed 2026-04-14 14:49:13 +08:00
1 parent 644edac0b6
commit 48c30bc399
2 files changed
+145

No files matched your search

@@ -378,6 +378,54 @@ Server -> Client:
{"type": "session.done", "total_sentences": 1}
```
## Choosing an Execution Backend: Uniproc vs Multiprocessing
Qwen3-TTS stage configs support two execution backends controlled by the
`distributed_executor_backend` engine arg. The performance tradeoff between
them is **both hardware- and task-dependent**, so there is no single best
default (see [#2603](https://github.com/vllm-project/vllm-omni/issues/2603),
[#2604](https://github.com/vllm-project/vllm-omni/pull/2604) for the full
investigation).
| Backend | Stage config setting | Behaviour |
| ------- | -------------------- | --------- |
| **Uniproc** (default, world_size=1) | `distributed_executor_backend` omitted | Both stages run inside the orchestrator process. Avoids IPC serialisation, D2H copies, and msgpack overhead between stages. |
| **Multiprocessing** | `distributed_executor_backend: "mp"` | Each stage runs in its own subprocess. The Talker can continue decoding while Code2Wav runs the vocoder in parallel, improving pipeline utilisation under concurrency. |
> **Note:** When `distributed_executor_backend` is omitted and `world_size=1`,
> vLLM [automatically uses the uniproc executor](https://github.com/vllm-project/vllm/blob/main/vllm/config/parallel.py#L825).
> When `world_size > 1`, it defaults to `mp`.
### When uniproc wins
The uniproc path eliminates inter-process data transfer (D2H copies,
msgpack serialisation/deserialisation, tensor detaching). This matters most
when per-request processing is heavy relative to autoregressive decode.
The Base cloning task involves reference-audio encoding on every request, making IPC
overhead a larger fraction of total cost. Qwen3-Omni shows a similar pattern.
### When multiprocessing (`mp`) wins
For lighter per-request workloads, process-level parallelism between the
Talker and Code2Wav stages dominates.
CustomVoice is lighter per-request (no reference audio encoding), so the
process-level parallelism of `mp` outweighs its serialisation cost at
concurrency ≥ 4.
### How to switch
To use the uniproc executor on a single-GPU setup, pass the
`qwen3_tts_uniproc.yaml` stage config:
```bash
vllm serve Qwen/Qwen3-TTS-12Hz-1.7B-Base \
--omni \
--stage-configs-path vllm_omni/model_executor/stage_configs/qwen3_tts_uniproc.yaml \
--port 8091
```
## Limitations
- **Single request**: Batch processing is not yet optimized for online serving.