Qwen3.8 Flash Next INT8 deployment

Updated at:
Copy as MD

Deployment on Lingjun Zhenwu 810E efg.p16en

SGLang v0.5.21

Environment preparation

Image

docker pull egslingjun-registry.cn-wulanchabu.cr.aliyuncs.com/egslingjun-tmp/inference-xpu-pytorch-opt:v0.5.21_1ccf267d76_20261116_175604

Download the model.

# Qwen quantized model
modelscope download --model T-HEAD/Qwen3.8-Flash-Next-MoE-Quant-W-INT8-PerChannel-A-INT8-PerToken --local_dir /path/to/your/model
ModelScope URL: https://modelscope.cn/models/T-HEAD/Qwen3.8-Flash-Next-MoE-Quant-W-INT8-PerChannel-A-INT8-PerToken

Colocate deployment

This pipeline uses a single-node colocate deployment where one process handles both prefill and decode without P/D splitting.

Colocate

export MODEL_PATH=/path/to/your/model
export SERVED_MODEL_NAME=Qwen3.8-Flash-Next
export CUDA_VISIBLE_DEVICES=0,1,2,3
export SGLANG_SKIP_SGL_KERNEL_VERSION_CHECK=1
export SGLANG_ENABLE_JIT_DEEPGEMM=1
export SGLANG_JIT_DEEPGEMM_PRECOMPILE=1
export SGLANG_JIT_DEEPGEMM_FAST_WARMUP=0
export SGLANG_WARMUP_TIMEOUT=3600
export PYTHONUNBUFFERED=1
export WORKER_ROLE=colocate
export SGLANG_ENABLE_CACHELINK=0
export PORT_OFFSET=$(printf '%s\n' "$CUDA_VISIBLE_DEVICES" | grep -oE '[0-9]+' | sort -n | head -1)
export SERVING_PORT=$((2000 + ${PORT_OFFSET:-0} * 64))
export SCHEDULER_ENDPOINT=${SCHEDULER_ENDPOINT}
export SGLANG_ENABLE_REGISTER_TO_HYDRA_SCHEDULER=1
sglang serve \
  --model-path ${MODEL_PATH} \
  --served-model-name ${SERVED_MODEL_NAME} \
  --trust-remote-code \
  --tp-size 4 \
  --dp-size 4 \
  --enable-dp-attention \
  --enable-dp-lm-head \
  --moe-dense-tp-size 1 \
  --moe-a2a-backend deepep \
  --linear-attn-prefill-backend triton \
  --linear-attn-decode-backend triton \
  --linear-attn-verify-backend triton \
  --quantization w8a8_int8 \
  --cuda-graph-backend-prefill disabled \
  --max-running-requests 128 \
  --mem-fraction-static 0.9 \
  --chunked-prefill-size 8192 \
  --mamba-ssm-dtype bfloat16 \
  --reasoning-parser qwen3 \
  --ple-offload-embedding \
  --enable-metrics \
  --enable-cache-report \
  --watchdog-timeout 1800 \
  --tool-call-parser qwen3_coder \
  --port ${SERVING_PORT} \
  --host "$(host="${ENGINE_BIND_HOST:-0.0.0.0}"; host="${host#[}"; printf "%s" "${host%]}")"