# Qwen3.5-9B

## Overview

BF16 small-model recipe for two S5000 GPUs with MTP1 speculative decoding.

> [!TIP]
> Use TP2 and enable MTP1 speculative decoding for this checkpoint.

## At a glance

| Setting | Value |
|---|---|
| Hardware | 2x S5000 |
| Precision | BF16 |
| Tensor parallelism | TP2 |
| Speculative decoding | MTP1 |
| Maximum context | 8,192 tokens |
| Maximum sequences | 128 |
| Prefix caching | Off |

## Validation

| Item | Value |
|---|---|
| Checkpoint | [`Qwen/Qwen3.5-9B`](https://modelscope.cn/models/Qwen/Qwen3.5-9B) (ModelScope) @ 460979c3d11864dd16408d860ac930a360a2fac2 |
| vLLM-MUSA | vLLM 0.28.0 @ 2cf0a69, vllm-musa 0.1.28 |
| MUSA driver | 5.2.0 |
| Hardware | 2x S5000 |
| Served request | 2K/1K, 3K/1K, 3.5K/1K, 4K/1K, 4K/1.5K, 500 prompts each |

## Launching the server

```bash
export VLLM_DISABLE_COMPILE_CACHE=1

vllm serve /models/Qwen3.5-9B \
  --trust-remote-code \
  --tensor-parallel-size 2 \
  --served-model-name Qwen3.5-9B \
  --max-model-len 8192 \
  --max-num-seqs 128 \
  --max-num-batched-tokens 16384 \
  --gpu-memory-utilization 0.85 \
  --enable-chunked-prefill \
  --no-enable-prefix-caching \
  --attention-config '{"backend":"FLASH_ATTN"}' \
  --speculative-config '{"method":"qwen3_5_mtp","num_speculative_tokens":1}'
```

## Configuration notes

- TP2 provides KV-cache and activation headroom for the 16,384-token batched
  budget at 128 concurrent sequences.
- Chunked prefill stays enabled for long prompts.
- `VLLM_DISABLE_COMPILE_CACHE=1` matches the validated QA launch script.
- Replace `/models/Qwen3.5-9B` if needed.

Return to the [Qwen recipe index](README.md).
