Kimi-K2.6¶
1 Introduction¶
Note
The "PD Separation Deployment" mentioned in this document is provided only as an example/reference design to demonstrate the basic process of deploying Prefill and Decode in separated mode. It is not recommended for use in the production environment.
For the production environment on the customer side, MindIE Motor + vLLM-Ascend is recommended.
Kimi K2.6 is an open-source, native multimodal agentic model built through continual pretraining on approximately 15 trillion mixed visual and text tokens atop Kimi-K2-Base. It seamlessly integrates vision and language understanding with advanced agentic capabilities, instant and thinking modes, as well as conversational and agentic paradigms.
This document will show the main verification steps of the model, including supported features, feature configuration, environment preparation, single-node and multi-node deployment, accuracy and performance evaluation.
This document is validated and written based on vLLM-Ascend v0.32.0rc1. Kimi-K2.6 was first supported in vLLM-Ascend v0.22.1rc1.
2 Supported Features¶
Refer to Supported Features List to get the model's supported feature matrix.
Refer to Feature Guide to get the feature's configuration.
3 Prerequisites¶
3.1 Model Weight¶
| Weight Version | Hardware Requirements | Download Links |
|---|---|---|
Kimi-K2.6-w4a8 (Quantized version for w4a8) |
1 Atlas 800 A3 (64GB × 16) node or 2 Atlas 800 A2 (64GB × 8) nodes | ModelScope |
kimi-k2.6-eagle3 (Eagle3 MTP draft model for accelerating inference of Kimi-K2.6) |
1 Atlas 800 A3 (64GB × 16) node | Hugging Face |
Kimi-K2.5-DFlash (a speculative decoding framework that leverages a lightweight block diffusion model for parallel drafting) |
1 Atlas 800 A3 (64GB × 16) node | Hugging Face |
It is recommended to download the model weight to the shared directory of multiple nodes, such as /root/.cache/.
Path description: Download the model weights to a directory of your choice and record it. Ensure the model path in the subsequent deployment command matches this directory.
3.2 Verify Multi-node Communication (Optional)¶
If you want to deploy multi-node environment, you need to verify multi-node communication according to verify multi-node communication environment.
4 Installation¶
4.1 Docker Image Installation¶
The container commands below need Ascend Docker Runtime on the host: it is the container engine's runtime, it reads ASCEND_VISIBLE_DEVICES and binds the selected devices into the container. Without it the container starts with no NPU inside, so npu-smi reports no device. Install and verify it once per host, as described in that section. If you cannot install it on the host, use the device and driver flags in Manual device mapping without Ascend Docker Runtime.
Select an image based on your machine type and start the Docker image on your node, refer to using Docker.
Start the Docker image on each node.
Start the docker image on each node.
After a successful Docker run, you can verify the running container service by executing the docker ps command.
4.2 Source Code Installation¶
If you don't want to use the Docker image as above, you can also build all from source:
- Install
vllm-ascendfrom source, refer to installation.
If you want to deploy multi-node environment, you need to set up environment on each node.
5 Online Service Deployment¶
5.1 Single-Node Online Deployment¶
Single-node deployment completes both Prefill and Decode within the same node. The quantized model Kimi-K2.6-w4a8 can be deployed on 1 Atlas 800 A3 (64GB × 16).
While a single-node setup supports all input/output scenarios, consider deploying multi-node for optimal performance.
Startup Command:
#!/bin/sh
export HCCL_OP_EXPANSION_MODE="AIV"
export PYTORCH_NPU_ALLOC_CONF=expandable_segments:True
export OMP_PROC_BIND=false
export OMP_NUM_THREADS=1
export TASK_QUEUE_ENABLE=1
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
export HCCL_BUFFSIZE=600
# Ensure the model path matches the directory recorded during download
vllm serve Eco-Tech/Kimi-K2.6-w4a8 \
--quantization ascend \
--enable-auto-tool-choice \
--tool-call-parser kimi_k2 \
--reasoning-parser kimi_k2 \
--allowed-local-media-path /data/media \
--served-model-name Eco-Tech/Kimi-K2.6-w4a8 \
--trust-remote-code \
--tensor-parallel-size 4 \
--data-parallel-size 4 \
--no-enable-prefix-caching \
--enable-expert-parallel \
--port 8000 \
--max-num-seqs 4 \
--max-model-len 15000 \
--max-num-batched-tokens 16384 \
--gpu-memory-utilization 0.87 \
--seed 42 \
--compilation-config '{"cudagraph_mode":"FULL_DECODE_ONLY"}' \
--profiler-config '{"profiler": "torch", "torch_profiler_dir": "./vllm_profile", "torch_profiler_with_stack": true}' \
--mm-processor-cache-gb 0 \
--mm-encoder-tp-mode data \
--additional-config '{"scheduler_config":{"enable_balance_scheduling":false},"enable_mlapo":true}' \
--speculative-config '{"method": "dflash","model": "z-lab/Kimi-K2.5-DFlash", "num_speculative_tokens": 15}'
Key Parameter Descriptions:
additional_config.scheduler_config.enable_balance_schedulingis deprecated as of v0.33.0 and planned for removal in a future release. Enabled configurations remain active with a startup warning. The example above already usesfalse, so its scheduling behavior is unchanged. For existing enabled deployments, switching tofalsedisables the global admission gate across DP ranks and can change throughput, TTFT, and TPOT; remeasure them for your workload. See RFC #23229.--max-model-lenspecifies the maximum context length — that is, the sum of input and output tokens for a single request. For performance testing with an input length of 3.5k and output length of 1.5k, a value of15000is sufficient, however, for precision testing, please set it at least35000.--no-enable-prefix-cachingindicates that prefix caching is disabled. To enable it, remove this option.--allowed-local-media-pathallows multimodal requests to load local media files, such as images and videos, from/data/mediaand its subdirectories on the server. Place the media files in this directory, or change the path to the directory containing your media files.--mm-encoder-tp-modeindicates how to optimize multimodal encoder inference using tensor parallelism (TP). If you want to test the multimodal inputs, we recommend usingdata.- If you use the w4a8 weight, more memory will be allocated to KV Cache, and you can try increasing
--max-num-seqsto improve system throughput.
Common Issues Tip: If you encounter issues, please refer to the Public FAQs for troubleshooting.
5.2 Multi-Node PD Separation Deployment¶
We recommend using Mooncake as a prerequisite for deployment: Mooncake.
In the standard single-node deployment mode, Prefill (prompt processing) and Decode (token generation) tasks run on the same set of NPUs. This can lead to two issues:
- Prefill preemption interrupts Decode: Prefill is a compute-intensive task that processes the entire input context at once, while Decode generates tokens one by one. When a new user request arrives, its Prefill phase can preempt and interrupt ongoing Decode tasks, causing jitter and higher time-per-output-token (TPOT) latency.
- Inflexible resource allocation: Prefill and Decode have fundamentally different computational characteristics — Prefill is compute-bound and memory-bandwidth-intensive, while Decode is memory-bandwidth-bound. Running them on the same hardware forces a compromise that satisfies neither optimally.
PD (Prefill-Decode) separation addresses these issues by running Prefill and Decode on dedicated node groups, each configured independently:
-
Prefill nodes focus on high-throughput prompt processing, optimized for compute and communication (e.g., enabling sequence parallelism for Allreduce acceleration).
-
Decode nodes focus on low-latency token generation, optimized for memory bandwidth (e.g., enabling MLAPO fusion operators).
This architecture is provided as a reference for concurrent multi-user workloads; for production environments, refer to the deployment recommendation in Section 1.
Take Atlas 800 A3 (64GB × 16) for example, we recommend to deploy 2P1D (4 nodes, with 1 Decode instance spanning 2 nodes) rather than 1P1D (2 nodes), because there is not enough NPU memory to serve high concurrency in 1P1D case.
Kimi-K2.6-w4a8 2P1D: requires 4 Atlas 800 A3 (64GB × 16) nodes.
To run the vllm-ascend Prefill-Decode Disaggregation service, you need to deploy a launch_online_dp.py script and a run_dp_template.sh script on each node and deploy a proxy.sh script on prefill master node to forward requests.
It is recommended to store launch_online_dp.py and run_dp_template.sh in a shared directory accessible from all nodes, such as /xxx/shared/scripts/pd. launch_online_dp.py invokes run_dp_template.sh.
Parameter descriptions:
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
--dp-size |
int | Yes | - | Data parallel size (total number of DP ranks across all nodes). |
--tp-size |
int | No | 1 | Tensor parallel size within each DP rank. |
--dp-size-local |
int | No | (same as --dp-size) |
Number of DP ranks on the current node. If not set, defaults to --dp-size. |
--dp-rank-start |
int | No | 0 | Starting rank offset for data parallel ranks on this node. |
--dp-address |
str | Yes | - | IP address of the data parallel master node (node 0). |
--dp-rpc-port |
str | No | 12345 | RPC port for data parallel master communication. |
--vllm-start-port |
int | No | 9000 | Starting port for each vLLM engine instance on this node. Each DP rank's engine port = vllm_start_port + local rank index. |
-
run_dp_template.shscript:# this obtained through ifconfig # nic_name is the network interface name corresponding to local_ip of the current node nic_name="xxx" local_ip="192.xx.xx.1" # The value of node0_ip must be consistent with the value of local_ip set in node0 (master node) node0_ip="xxxx" export HCCL_IF_IP=$local_ip export GLOO_SOCKET_IFNAME=$nic_name export TP_SOCKET_IFNAME=$nic_name export HCCL_SOCKET_IFNAME=$nic_name echo performance | tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor sysctl -w vm.swappiness=0 sysctl -w kernel.numa_balancing=0 sysctl kernel.sched_migration_cost_ns=50000 export VLLM_RPC_TIMEOUT=3600000 export VLLM_EXECUTE_MODEL_TIMEOUT_SECONDS=30000 export HCCL_EXEC_TIMEOUT=3600 export HCCL_CONNECT_TIMEOUT=120 export HCCL_OP_EXPANSION_MODE="AIV" export PYTORCH_NPU_ALLOC_CONF=expandable_segments:True export OMP_PROC_BIND=false export OMP_NUM_THREADS=1 export TASK_QUEUE_ENABLE=1 export LD_LIBRARY_PATH=/usr/local/Ascend/ascend-toolkit/latest/python/site-packages/mooncake:$LD_LIBRARY_PATH export HCCL_BUFFSIZE=1536 export ASCEND_RT_VISIBLE_DEVICES=$1 # Ensure the model path matches the directory recorded during download vllm serve Eco-Tech/Kimi-K2.6-w4a8 \ --host 0.0.0.0 \ --port $2 \ --data-parallel-size $3 \ --data-parallel-rank $4 \ --data-parallel-address $5 \ --data-parallel-rpc-port $6 \ --tensor-parallel-size $7 \ --enable-expert-parallel \ --seed 1024 \ --quantization ascend \ --served-model-name Eco-Tech/Kimi-K2.6-w4a8 \ --trust-remote-code \ --max-num-seqs 1 \ --max-model-len 133120 \ --max-num-batched-tokens 16384 \ --no-enable-prefix-caching \ --gpu-memory-utilization 0.92 \ --enforce-eager \ --enable-auto-tool-choice \ --tool-call-parser kimi_k2 \ --reasoning-parser kimi_k2 \ --additional-config '{"recompute_scheduler_enable":true,"enable_shared_expert_dp": true}' \ --mm-encoder-tp-mode data \ --kv-transfer-config \ '{"kv_connector": "MooncakeConnectorV1", "kv_role": "kv_producer", "kv_port": "30000", "kv_connector_extra_config": { "use_ascend_direct": true, "prefill": { "dp_size": 4, "tp_size": 4 }, "decode": { "dp_size": 8, "tp_size": 4 } } }'# this obtained through ifconfig # nic_name is the network interface name corresponding to local_ip of the current node nic_name="xxx" local_ip="192.xx.xx.2" # The value of node0_ip must be consistent with the value of local_ip set in node0 (master node) node0_ip="xxxx" export HCCL_IF_IP=$local_ip export GLOO_SOCKET_IFNAME=$nic_name export TP_SOCKET_IFNAME=$nic_name export HCCL_SOCKET_IFNAME=$nic_name echo performance | tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor sysctl -w vm.swappiness=0 sysctl -w kernel.numa_balancing=0 sysctl kernel.sched_migration_cost_ns=50000 export VLLM_RPC_TIMEOUT=3600000 export VLLM_EXECUTE_MODEL_TIMEOUT_SECONDS=30000 export HCCL_EXEC_TIMEOUT=3600 export HCCL_CONNECT_TIMEOUT=120 export HCCL_OP_EXPANSION_MODE="AIV" export PYTORCH_NPU_ALLOC_CONF=expandable_segments:True export OMP_PROC_BIND=false export OMP_NUM_THREADS=1 export TASK_QUEUE_ENABLE=1 export LD_LIBRARY_PATH=/usr/local/Ascend/ascend-toolkit/latest/python/site-packages/mooncake:$LD_LIBRARY_PATH export HCCL_BUFFSIZE=1536 export ASCEND_RT_VISIBLE_DEVICES=$1 # Ensure the model path matches the directory recorded during download vllm serve Eco-Tech/Kimi-K2.6-w4a8 \ --host 0.0.0.0 \ --port $2 \ --data-parallel-size $3 \ --data-parallel-rank $4 \ --data-parallel-address $5 \ --data-parallel-rpc-port $6 \ --tensor-parallel-size $7 \ --enable-expert-parallel \ --seed 1024 \ --quantization ascend \ --served-model-name Eco-Tech/Kimi-K2.6-w4a8 \ --trust-remote-code \ --max-num-seqs 1 \ --max-model-len 133120 \ --max-num-batched-tokens 16384 \ --no-enable-prefix-caching \ --gpu-memory-utilization 0.92 \ --enforce-eager \ --enable-auto-tool-choice \ --tool-call-parser kimi_k2 \ --reasoning-parser kimi_k2 \ --additional-config '{"recompute_scheduler_enable":true,"enable_shared_expert_dp": true}' \ --mm-encoder-tp-mode data \ --kv-transfer-config \ '{"kv_connector": "MooncakeConnectorV1", "kv_role": "kv_producer", "kv_port": "30100", "kv_connector_extra_config": { "use_ascend_direct": true, "prefill": { "dp_size": 4, "tp_size": 4 }, "decode": { "dp_size": 8, "tp_size": 4 } } }'# this obtained through ifconfig # nic_name is the network interface name corresponding to local_ip of the current node nic_name="xxx" local_ip="192.xx.xx.3" # The value of node0_ip must be consistent with the value of local_ip set in node0 (master node) node0_ip="xxxx" export HCCL_IF_IP=$local_ip export GLOO_SOCKET_IFNAME=$nic_name export TP_SOCKET_IFNAME=$nic_name export HCCL_SOCKET_IFNAME=$nic_name echo performance | tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor sysctl -w vm.swappiness=0 sysctl -w kernel.numa_balancing=0 sysctl kernel.sched_migration_cost_ns=50000 export VLLM_RPC_TIMEOUT=3600000 export HCCL_EXEC_TIMEOUT=3600 export HCCL_CONNECT_TIMEOUT=120 export VLLM_EXECUTE_MODEL_TIMEOUT_SECONDS=30000 export HCCL_OP_EXPANSION_MODE="AIV" export PYTORCH_NPU_ALLOC_CONF=expandable_segments:True export OMP_PROC_BIND=false export OMP_NUM_THREADS=1 export TASK_QUEUE_ENABLE=1 export LD_LIBRARY_PATH=/usr/local/Ascend/ascend-toolkit/latest/python/site-packages/mooncake:$LD_LIBRARY_PATH export HCCL_BUFFSIZE=800 export ASCEND_RT_VISIBLE_DEVICES=$1 # Ensure the model path matches the directory recorded during download vllm serve Eco-Tech/Kimi-K2.6-w4a8 \ --host 0.0.0.0 \ --port $2 \ --data-parallel-size $3 \ --data-parallel-rank $4 \ --data-parallel-address $5 \ --data-parallel-rpc-port $6 \ --tensor-parallel-size $7 \ --enable-expert-parallel \ --seed 1024 \ --quantization ascend \ --served-model-name Eco-Tech/Kimi-K2.6-w4a8 \ --trust-remote-code \ --max-num-seqs 8 \ --max-model-len 133120 \ --max-num-batched-tokens 32 \ --no-enable-prefix-caching \ --gpu-memory-utilization 0.91 \ --enable-auto-tool-choice \ --tool-call-parser kimi_k2 \ --reasoning-parser kimi_k2 \ --compilation-config '{"cudagraph_mode": "FULL_DECODE_ONLY"}' \ --additional-config '{"recompute_scheduler_enable":true,"multistream_overlap_shared_expert":true,"enable_mlapo":true}' \ --speculative-config '{"method": "eagle3", "model":"lightseekorg/kimi-k2.6-eagle3", "num_speculative_tokens": 3}' \ --kv-transfer-config \ '{"kv_connector": "MooncakeConnectorV1", "kv_role": "kv_consumer", "kv_port": "30200", "kv_connector_extra_config": { "use_ascend_direct": true, "prefill": { "dp_size": 4, "tp_size": 4 }, "decode": { "dp_size": 8, "tp_size": 4 } } }'# this obtained through ifconfig # nic_name is the network interface name corresponding to local_ip of the current node nic_name="xxx" local_ip="192.xx.xx.4" # The value of node0_ip must be consistent with the value of local_ip set in node0 (master node) node0_ip="xxxx" export HCCL_IF_IP=$local_ip export GLOO_SOCKET_IFNAME=$nic_name export TP_SOCKET_IFNAME=$nic_name export HCCL_SOCKET_IFNAME=$nic_name echo performance | tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor sysctl -w vm.swappiness=0 sysctl -w kernel.numa_balancing=0 sysctl kernel.sched_migration_cost_ns=50000 export VLLM_RPC_TIMEOUT=3600000 export HCCL_EXEC_TIMEOUT=3600 export HCCL_CONNECT_TIMEOUT=120 export VLLM_EXECUTE_MODEL_TIMEOUT_SECONDS=30000 export HCCL_OP_EXPANSION_MODE="AIV" export PYTORCH_NPU_ALLOC_CONF=expandable_segments:True export OMP_PROC_BIND=false export OMP_NUM_THREADS=1 export TASK_QUEUE_ENABLE=1 export LD_LIBRARY_PATH=/usr/local/Ascend/ascend-toolkit/latest/python/site-packages/mooncake:$LD_LIBRARY_PATH export HCCL_BUFFSIZE=800 export ASCEND_RT_VISIBLE_DEVICES=$1 # Ensure the model path matches the directory recorded during download vllm serve Eco-Tech/Kimi-K2.6-w4a8 \ --host 0.0.0.0 \ --port $2 \ --data-parallel-size $3 \ --data-parallel-rank $4 \ --data-parallel-address $5 \ --data-parallel-rpc-port $6 \ --tensor-parallel-size $7 \ --enable-expert-parallel \ --seed 1024 \ --quantization ascend \ --served-model-name Eco-Tech/Kimi-K2.6-w4a8 \ --trust-remote-code \ --max-num-seqs 8 \ --max-model-len 133120 \ --max-num-batched-tokens 32 \ --no-enable-prefix-caching \ --gpu-memory-utilization 0.91 \ --enable-auto-tool-choice \ --tool-call-parser kimi_k2 \ --reasoning-parser kimi_k2 \ --compilation-config '{"cudagraph_mode": "FULL_DECODE_ONLY"}' \ --additional-config '{"recompute_scheduler_enable":true,"multistream_overlap_shared_expert":true,"enable_mlapo":true}' \ --speculative-config '{"method": "eagle3", "model":"lightseekorg/kimi-k2.6-eagle3", "num_speculative_tokens": 3}' \ --kv-transfer-config \ '{"kv_connector": "MooncakeConnectorV1", "kv_role": "kv_consumer", "kv_port": "30300", "kv_connector_extra_config": { "use_ascend_direct": true, "prefill": { "dp_size": 4, "tp_size": 4 }, "decode": { "dp_size": 8, "tp_size": 4 } } }'Key Parameter Descriptions (Decode):
additional_config.enable_mlapo=true: enables the fusion operator, which can significantly improve performance but consumes more NPU memory. In the Prefill-Decode (PD) separation scenario, enable MLAPO only on decode nodes.recompute_scheduler_enable: true: enables the recomputation scheduler. When the Key-Value Cache (KV Cache) of the decode node is insufficient, requests will be sent to the prefill node to recompute the KV Cache. In the PD separation scenario, it is recommended to enable this configuration on both prefill and decode nodes simultaneously.multistream_overlap_shared_expert: true: When the Tensor Parallelism (TP) size is 1 orenable_shared_expert_dp: true, an additional stream is enabled to overlap the computation process of shared experts for improved efficiency.
-
Run server for each node:
# p0 python launch_online_dp.py --dp-size 4 --tp-size 4 --dp-size-local 4 --dp-rank-start 0 --dp-address 192.xx.xx.1 --dp-rpc-port 12321 --vllm-start-port 7100 # p1 python launch_online_dp.py --dp-size 4 --tp-size 4 --dp-size-local 4 --dp-rank-start 0 --dp-address 192.xx.xx.2 --dp-rpc-port 12321 --vllm-start-port 7100 # d0 python launch_online_dp.py --dp-size 8 --tp-size 4 --dp-size-local 4 --dp-rank-start 0 --dp-address 192.xx.xx.3 --dp-rpc-port 12321 --vllm-start-port 7100 # d1 python launch_online_dp.py --dp-size 8 --tp-size 4 --dp-size-local 4 --dp-rank-start 4 --dp-address 192.xx.xx.3 --dp-rpc-port 12321 --vllm-start-port 7100 -
Run the
proxy.shscript on the prefill master node:Run a proxy server on the same node with the prefiller service instance. You can get the proxy program in the repository's examples: load_balance_proxy_server_example.py
Save the following script as
proxy.shinvllm-ascend/examples/disaggregated_prefill_v1/.python load_balance_proxy_server_example.py \ --port 1999 \ --host 192.xx.xx.1 \ --prefiller-hosts \ 192.xx.xx.1 \ 192.xx.xx.1 \ 192.xx.xx.1 \ 192.xx.xx.1 \ 192.xx.xx.2 \ 192.xx.xx.2 \ 192.xx.xx.2 \ 192.xx.xx.2 \ --prefiller-ports \ 7100 7101 7102 7103 7100 7101 7102 7103 \ --decoder-hosts \ 192.xx.xx.3 \ 192.xx.xx.3 \ 192.xx.xx.3 \ 192.xx.xx.3 \ 192.xx.xx.4 \ 192.xx.xx.4 \ 192.xx.xx.4 \ 192.xx.xx.4 \ --decoder-ports \ 7100 7101 7102 7103 \ 7100 7101 7102 7103
Deployment Verification:
After the PD separation service is fully started, send a request through the proxy port on the prefill master node to verify that Prefill and Decode nodes are working correctly together:
curl http://<NODE0_LOCAL_IP>:<SERVICE_PORT>/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"model": "Eco-Tech/Kimi-K2.6-w4a8",
"messages": [{
"role": "user",
"content": [
{
"type": "text",
"text": "The future of AI is"
}]
}],
"max_tokens": 1024,
"temperature": 1.0,
"top_p": 0.95
}'
Expected Result:
The proxy returns HTTP 200 OK. If not, it means that the PD separation service has not started successfully. The JSON response contains the choices field with the generated text, confirming that Prefill nodes have successfully processed the prompt and Decode nodes have generated the response:
{
"id": "chatcmpl-xxxxxxxxxxxxx",
"object": "chat.completion",
"model": "Eco-Tech/Kimi-K2.6-w4a8",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "The future of AI is not a destination we are passively approaching...",
"finish_reason": "length"
}
}
],
"usage": {
"prompt_tokens": 13,
"total_tokens": 1037,
"completion_tokens": 1024
}
}
Common Issues Tip: If you encounter issues with PD separation deployment, please refer to the Public FAQs for troubleshooting.
6 Functional Verification¶
Once your server is started, you can query the model with input prompts:
For single-node deployment, set <port> to the service port 8000. For PD disaggregation deployment, use the proxy node and set <port> to the proxy port 1999.
curl http://<node0_ip>:<port>/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"model": "Eco-Tech/Kimi-K2.6-w4a8",
"messages": [{
"role": "user",
"content": [
{
"type": "text",
"text": "The future of AI is"
}]
}],
"max_tokens": 1024,
"temperature": 1.0,
"top_p": 0.95
}'
Expected Result:
The service returns HTTP 200 OK. The JSON response contains the choices field with the generated text, along with usage statistics:
{
"id": "chatcmpl-9df13fd5e539af93",
"object": "chat.completion",
"created": 1780971952,
"model": "Eco-Tech/Kimi-K2.6-w4a8",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "The future of AI is not a destination we are passively approaching, but a design problem we are actively solving right now...",
"reasoning": "The user is asking for my thoughts on...",
"finish_reason": "length"
}
}
],
"usage": {
"prompt_tokens": 13,
"total_tokens": 1037,
"completion_tokens": 1024
}
}
7 Accuracy Evaluation¶
Here is one accuracy evaluation method.
7.1 Using AISBench¶
-
Refer to Using AISBench for details.
-
After execution, you can get the result. Here is the result of
Kimi-K2.6-w4a8invllm-ascend:v0.23.0for reference only.
| dataset | version | metric | mode | vllm-api-general-chat | note |
|---|---|---|---|---|---|
| AIME2026 | - | accuracy | gen | 96.67 | 1 Atlas 800 A3 (8 Cards, 16 NPUs × 64GB) |
| GPQA | - | accuracy | gen | 90.91 | 1 Atlas 800 A3 (8 Cards, 16 NPUs × 64GB) |
| MMMU | - | accuracy | gen | 81.89 | 1 Atlas 800 A3 (8 Cards, 16 NPUs × 64GB) |
8 Performance Evaluation¶
8.1 Using AISBench¶
Refer to Using AISBench for performance evaluation for details.
8.2 Using vLLM Benchmark¶
Run performance evaluation of Kimi-K2.6-w4a8 as an example.
Refer to vLLM benchmark for more details.
There are three vllm bench subcommands:
latency: Benchmark the latency of a single batch of requests.serve: Benchmark the online serving throughput.throughput: Benchmark offline inference throughput.
Take the serve as an example. Run the code as follows:
vllm bench serve --model Eco-Tech/Kimi-K2.6-w4a8 --trust-remote-code --dataset-name random --random-input-len 1024 --num-prompts 200 --request-rate 1 --save-result --result-dir ./
After about several minutes, you can get the performance evaluation result.
9 Performance Tuning¶
9.1 Recommended Configurations¶
Note: The following configurations are validated in specific test environments and are for reference only. The optimal configuration depends on factors such as maximum input/output length, prefix cache hit rate, precision requirements, and deployment machine ratios. It is recommended to refer to Section 9.2 for tuning based on actual conditions.
Table 1: Scenario Overview
Total NPUsindicates the total number of NPUs used across all nodes. 1 node = 1 Atlas 800 A3 server (64GB × 16 NPUs).
| Scenario | Deployment Mode | Total NPUs | Weight Version | Key Considerations |
|---|---|---|---|---|
| High Throughput (16k input) |
Single-Node Mixed | 16 (A3) | Kimi-K2.6-w4a8 | Use dp2 tp8 to balance memory capacity and compute efficiency |
| High Throughput (16k input) |
1P1D deployment | 32 (A3) | Kimi-K2.6-w4a8 | dp2 tp8 on both P and D nodes; balanced latency and throughput |
| High Throughput (16k input) |
2P1D deployment | 64 (A3) | Kimi-K2.6-w4a8 | Scale from dp4 tp4 to dp8 tp4 across nodes |
| Long Context (128k, no prefix cache) |
Single-Node Mixed | 16 (A3) | Kimi-K2.6-w4a8 | dp1 tp16 to maximize TP, accommodate extreme context lengths |
| Long Context (128k, with prefix cache) |
Single-Node Mixed | 16 (A3) | Kimi-K2.6-w4a8 | dp2 tp8 to optimize memory bandwidth and improve cache utilization |
| Multimodal (1080p) |
Single-Node Mixed | 16 (A3) | Kimi-K2.6-w4a8 | dp1 tp16 for high-resolution visual inputs |
| Multimodal (1080p) |
1P1D deployment | 32 (A3) | Kimi-K2.6-w4a8 | dp2 tp8 or dp16 tp1, depending on memory and concurrency |
| Multimodal (1080p) |
2P1D deployment | 64 (A3) | Kimi-K2.6-w4a8 | dp8 tp2 to dp32 tp1, maximize throughput for heavy multimodal workloads |
Table 2: Detailed Node Configuration
| Scenario | Configuration | NPUs | TP | DP | Max Model Len | MTP Speculation Num |
|---|---|---|---|---|---|---|
| High Throughput / Low Latency (16k) | Server / Single Machine | 16 | 8 | 2 | 17k | 15 |
| High Throughput / Low Latency (16k) | Server-P Node | 16 | 8 | 2 | 17k | 3 |
| High Throughput / Low Latency (16k) | Server-D Node | 16 | 8 | 2 | 17k | 3 |
| Long Context (128k, no cache) | Server / Single Machine | 16 | 16 | 1 | 130k | 15 |
| Long Context (128k, with cache) | Server / Single Machine | 16 | 8 | 2 | 130k | 15 |
| Multimodal (1080p) | Server / Single Machine | 16 | 16 | 1 | 17k | 15 |
| Multimodal (1080p) | Server-P Node | 16 | 8 | 2 | 17k | 3 |
| Multimodal (1080p) | Server-D Node | 16 | 1 | 16 | 17k | 3 |
For complete startup commands and parameter descriptions, please refer to the deployment examples in Section 5.
Notice:
max-model-len and max-num-seqs need to be set according to the actual usage scenario. For other settings, please refer to the Section 5 chapter.
9.2 Tuning Guidelines¶
Please refer to the Public Performance Tuning Documentation for tuning methods.
Please refer to the Feature Matrix for detailed feature descriptions.
10 FAQ¶
For common environment, installation, and general parameter issues, please refer to the Public FAQs; this chapter only covers model-specific issues.
- Q: What transformer version is required for tool_calls feature?
A: For vLLM-Ascend versions earlier than v0.21, transformers must be version 4.57.6 or lower to use the tool_calls feature.