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

# Qwen3.5-122B

> [!NOTE]
>
> This page focuses on optimal configuration and benchmark results for Qwen3.5-122B on the Ascend NPU.
>
> On the A3 Series, each card has 2 dies, so `--tp-size` is twice the card count; see [Ascend NPU Reference](https://docs.sglang.io/docs/hardware-platforms/ascend-npus/reference/glossary.md#hardware) for details.

### High Throughput

| Model | Hardware | Cards | Deploy Mode | Dataset | TPOT | Quantization | Configuration |
| - | - | - | - | - | - | - | - |
| Qwen3.5-122B | A3 Series Products | 4 | PD Mixed | 2k+32k | - | BF16 | [Optimal Configuration](#qwen3-5-122b-4p-in2k-out32k) |

## Optimal Configuration

Referenced by external docs. Verify before removing.

### Qwen3.5-122B 4P IN2K OUT32K

**Model**: Qwen3.5-122B

**Hardware**: A3 Series Products

**Cards**: 4

**Deploy Mode**: PD Mixed

**Quantization**: BF16

**Dataset**: 2k+32k

**Output Token Throughput**: 2170 tok/s

#### Model Deployment

```bash Command theme={null}
# ============================================================
# Before running, update the following variables:
#   MODEL_PATH: path to the model weights directory
# ============================================================

MODEL_PATH=/path/to/model-weights
echo performance | tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
sysctl -w vm.swappiness=0
sysctl -w kernel.numa_balancing=0
sysctl -w kernel.sched_migration_cost_ns=50000

unset https_proxy
unset http_proxy
unset HTTPS_PROXY
unset HTTP_PROXY
unset ASCEND_LAUNCH_BLOCKING

source /usr/local/Ascend/ascend-toolkit/set_env.sh
source /usr/local/Ascend/nnal/atb/set_env.sh
# Optional vendor op packages.
source /usr/local/Ascend/ascend-toolkit/latest/opp/vendors/customize/bin/set_env.bash 2>/dev/null || true
source /usr/local/Ascend/ascend-toolkit/latest/opp/vendors/custom_transformer/bin/set_env.bash 2>/dev/null || true

export ASCEND_USE_FIA=1
export DEEPEP_NORMAL_LONG_SEQ_PER_ROUND_TOKENS=8192
export DEEPEP_NORMAL_LONG_SEQ_ROUND=8
export GDN_ATTN_BACKEND_TRITON=1
export GLOO_SOCKET_IFNAME=lo
export HCCL_BUFFSIZE=2400
export HCCL_OP_EXPANSION_MODE=AIV
export HCCL_SOCKET_IFNAME=lo
export PYTORCH_NPU_ALLOC_CONF=expandable_segments:True
export SGLANG_DEEPEP_NUM_MAX_DISPATCH_TOKENS_PER_RANK=32
export SGLANG_NPU_USE_MULTI_STREAM=0
export SGLANG_SET_CPU_AFFINITY=1
export STREAMS_PER_DEVICE=32

python3 -m sglang.launch_server \
    --model-path $MODEL_PATH \
    --host 127.0.0.1 --port 6688 \
    --attention-backend ascend \
    --device npu \
    --tp-size 8 \
    --dtype bfloat16 \
    --mamba-ssm-dtype bfloat16 \
    --chunked-prefill-size 32768 \
    --disable-radix-cache \
    --trust-remote-code \
    --mem-fraction-static 0.878 \
    --max-running-requests 128 \
    --cuda-graph-bs-decode 16 \
    --attn-dp-size 8 \
    --enable-dp-lm-head \
    --moe-a2a-backend deepep \
    --ep-size 8 \
    --stream-interval 128 \
    --schedule-conservativeness 0.21
```

#### Benchmark

We tested it based on the `RANDOM-IDS` dataset.

```bash Command theme={null}
python -m sglang.benchmark.serving \
    --dataset-name random-ids \
    --backend sglang \
    --host 127.0.0.1 \
    --port 6688 \
    --max-concurrency 128 \
    --num-prompts 128 \
    --random-input-len 2048 \
    --random-output-len 32000 \
    --random-range-ratio 1 \
    --seed 1234 \
    --request-rate inf
```


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