tencent/Hunyuan-A13B-Instruct
Tencent Hunyuan A13B instruct-tuned MoE language model with AITER-accelerated AMD ROCm deployment
Hunyuan-A13B MoE with AITER acceleration on AMD MI300X/MI325X/MI355X
vllm serve tencent/Hunyuan-A13B-Instruct \ --trust-remote-code \ --tensor-parallel-size 8
The interactive builder loads with JavaScript. Append .md to this page's URL, query string included, for any configuration's command as Markdown — e.g. /tencent/Hunyuan-A13B-Instruct.md.
Overview
Hunyuan-A13B-Instruct is Tencent's instruct-tuned Hunyuan MoE model. This recipe
covers deployment on AMD ROCm GPUs (MI300X / MI325X / MI355X) with
AITER acceleration enabled via
VLLM_ROCM_USE_AITER=1.
Prerequisites
- vLLM version: ROCm build
- Python: 3.12
- Hardware: AMD MI300X / MI325X / MI355X
- ROCm: 7.0+, glibc >= 2.35 (or use Docker)
Install vLLM (ROCm)
uv venv
source .venv/bin/activate
uv pip install vllm --extra-index-url https://wheels.vllm.ai/rocm/
If the environment does not meet the Python/ROCm/glibc requirements, use the Docker-based setup from the vLLM install docs.
Launching the Server
export VLLM_ROCM_USE_AITER=1
vllm serve tencent/Hunyuan-A13B-Instruct \
--tensor-parallel-size 2 \
--trust-remote-code
Benchmarking
vllm bench serve \
--model "tencent/Hunyuan-A13B-Instruct" \
--dataset-name random \
--random-input-len 8000 \
--random-output-len 1000 \
--request-rate 10000 \
--num-prompts 16 \
--ignore-eos
Troubleshooting
- First launch delay: AITER JIT-compiles optimized kernels on first launch, which can take several minutes. Subsequent runs use cached kernels.
- Environment mismatch: If wheel install fails, fall back to the vLLM ROCm Docker image.
References
Ascend Atlas 800 A3 (910C)
Verified single-node TP=4 BF16 on Atlas 800 A3 (4 Ascend910 dies) with vLLM Ascend
v0.23.0-a3. Static weight load logged Loading model weights took 37.4562 GB per
NPU (tutorial KPI ~37.46 GB/NPU). Tutorial chat curl PASS. AISBench PERF gsm8k
MaxConc=16 PASS (TTFT≈247.7ms, TPOT≈44.8ms).
Use the same Hugging Face id the recipe page renders (tencent/Hunyuan-A13B-Instruct).
export HCCL_INTRA_ROCE_ENABLE=1
export ASCEND_RT_VISIBLE_DEVICES=0,1,2,3
export PYTORCH_NPU_ALLOC_CONF=expandable_segments:True
export HCCL_BUFFSIZE=512
vllm serve tencent/Hunyuan-A13B-Instruct \
--trust-remote-code \
--host 0.0.0.0 \
--port 8000 \
--served-model-name Hunyuan \
--tensor-parallel-size 4 \
--max-model-len 32768 \
--gpu-memory-utilization 0.90
Downstream Ascend recipes mirror: https://github.com/vllm-ascend/vllm-ascend-recipes/pull/169