Skip to main content
This section describes the basic functions and features supported by the Ascend NPU. If you encounter issues or have any questions, please open an issue. If you want to know the meaning and usage of each parameter, click Server Arguments.

Model and tokenizer

ArgumentDefaultsOptionsServer supported
--model-path
--model
NoneType: strA2, A3
--tokenizer-pathNoneType: strA2, A3
--tokenizer-modeautoauto, slowA2, A3
--tokenizer-backendhuggingfacehuggingface, fastokensA2, A3
--tokenizer-worker-num1Type: intA2, A3
--detokenizer-worker-num1Type: intA2, A3
--skip-tokenizer-initFalsebool flag (set to enable)A2, A3
--load-formatautoauto, safetensors, ggufA2, A3
--model-loader-extra-config{}Type: strA2, A3
--trust-remote-codeFalsebool flag (set to enable)A2, A3
--context-lengthNoneType: intA2, A3
--is-embeddingFalsebool flag (set to enable)A2, A3
--enable-multimodalNonebool flag (set to enable)A2, A3
--revisionNoneType: strA2, A3
--model-implautoauto, sglang,
transformers
A2, A3
--model-config-parserautoType: strA2, A3

HTTP server

ArgumentDefaultsOptionsServer supported
--host127.0.0.1Type: strA2, A3
--port30000Type: intA2, A3
--skip-server-warmupFalsebool flag (set to enable)A2, A3
--warmupsNoneType: strA2, A3
--nccl-portNoneType: intA2, A3
--fastapi-root-pathNoneType: strA2, A3
--grpc-modeFalsebool flag (set to enable)Planned

SSL/TLS

ArgumentDefaultsOptionsServer supported
--ssl-keyfileNoneType: strA2, A3
--ssl-certfileNoneType: strA2, A3
--ssl-keyfile-passwordNoneType: strA2, A3
--enable-ssl-refreshFalsebool flag
(set to enable)
A2, A3
--enable-http2Falsebool flag
(set to enable)
A2, A3

Quantization and data type

ArgumentDefaultsOptionsServer supported
--dtypeautoauto,
float16,
bfloat16
A2, A3
--quantizationNonemodelslimA2, A3
--quantization-param-pathNoneType: strSpecial for GPU
--kv-cache-dtypeautoautoA2, A3
--enable-fp32-lm-headFalsebool flag
(set to enable)
A2, A3
--modelopt-quantNoneType: strSpecial for GPU
--modelopt-checkpoint-restore-pathNoneType: strSpecial for GPU
--modelopt-checkpoint-save-pathNoneType: strSpecial for GPU
--modelopt-export-pathNoneType: strSpecial for GPU
--quantize-and-serveFalsebool flag
(set to enable)
Special for GPU
--rl-quant-profileNoneType: strSpecial for GPU

Memory and scheduling

ArgumentDefaultsOptionsServer supported
--mem-fraction-staticNoneType: floatA2, A3
--max-running-requestsNoneType: intA2, A3
--prefill-max-requestsNoneType: intA2, A3
--max-queued-requestsNoneType: intA2, A3
--max-total-tokensNoneType: intA2, A3
--chunked-prefill-sizeNoneType: intA2, A3
--max-prefill-tokens16384Type: intA2, A3
--schedule-policyfcfslpm, fcfsA2, A3
--enable-priority-schedulingFalsebool flag
(set to enable)
A2, A3
--disable-priority-preemptionFalsebool flag
(set to enable)
A2, A3
--default-priority-valueNoneType: intA2, A3
--schedule-low-priority-values-firstFalsebool flag
(set to enable)
A2, A3
--priority-scheduling-preemption-threshold10Type: intA2, A3
--schedule-conservativeness1.0Type: floatA2, A3
--page-size128Type: intA2, A3
--swa-full-tokens-ratio0.8Type: floatPlanned
--disable-hybrid-swa-memoryFalsebool flag
(set to enable)
Planned
--radix-eviction-policylrulru,
lfu
A2, A3
--enable-prefill-delayerFalsebool flag
(set to enable)
A2, A3
--prefill-delayer-max-delay-passes30Type: intA2, A3
--prefill-delayer-token-usage-low-watermarkNoneType: floatA2, A3
--prefill-delayer-forward-passes-bucketsNoneList[float]A2, A3
--prefill-delayer-wait-seconds-bucketsNoneList[float]A2, A3
--prefill-delayer-queue-min-ratioNoneType: floatA2, A3
--prefill-delayer-max-delay-msNoneType: floatA2, A3
--abort-on-priority-when-disabledFalsebool flag
(set to enable)
A2, A3
--enable-dynamic-chunkingFalsebool flag
(set to enable)
Experimental

Runtime options

ArgumentDefaultsOptionsServer supported
--deviceNoneType: strA2, A3
--tensor-parallel-size
--tp-size
1Type: intA2, A3
--pipeline-parallel-size
--pp-size
1Type: int; Currently 2 not supported; Cannot be used together with TPA2, A3
--attention-context-parallel-size
--attn-cp-size
1Type: int; must be equal to —tp-sizeA2, A3
--moe-data-parallel-size
--moe-dp-size
1Type: intPlanned
--pp-max-micro-batch-sizeNoneType: intExperimental
--pp-async-batch-depthNoneType: intExperimental
--stream-interval1Type: intA2, A3
--batch-notify-size16Type: intA2, A3
--incremental-streaming-outputFalsebool flag (set to enable)A2, A3
--stream-response-default-include-usageFalsebool flag (set to enable)A2, A3
--enable-streaming-sessionFalsebool flag (set to enable)A2, A3
--random-seedNoneType: intA2, A3
--constrained-json-whitespace-patternNoneType: strA2, A3
--constrained-json-disable-any-whitespaceFalsebool flag (set to enable)A2, A3
--watchdog-timeout300Type: floatA2, A3
--soft-watchdog-timeout300Type: floatA2, A3
--dist-timeoutNoneType: intA2, A3
--download-dirNoneType: strA2, A3
--model-checksumNoneType: strPlanned
--base-gpu-id0Type: intA2, A3
--gpu-id-step1Type: intA2, A3
--sleep-on-idleFalsebool flag (set to enable)A2, A3
--load-snapshot-publish-interval15Type: intA2, A3
--use-rayFalsebool flag (set to enable)Special for GPU
--custom-sigquit-handlerNoneOnly for engineA2, A3

Logging

ArgumentDefaultsOptionsServer supported
--log-levelinfoType: strA2, A3
--log-level-httpNoneType: strA2, A3
--log-requestsFalsebool flag
(set to enable)
A2, A3
--log-requests-level20, 1, 2, 3A2, A3
--log-requests-formattexttext, jsonA2, A3
--crash-dump-folderNoneType: strA2, A3
--enable-metricsFalsebool flag
(set to enable)
A2, A3
--enable-mfu-metricsFalsebool flag
(set to enable)
A2, A3
--enable-metrics-for-all-schedulersFalsebool flag
(set to enable)
A2, A3
--tokenizer-metrics-custom-labels-headerx-custom-labelsType: strA2, A3
--tokenizer-metrics-allowed-custom-labelsNoneList[str]A2, A3
--extra-metric-labelsNoneType: JSON/DictA2, A3
--bucket-time-to-first-tokenNoneList[float]A2, A3
--bucket-inter-token-latencyNoneList[float]A2, A3
--bucket-e2e-request-latencyNoneList[float]A2, A3
--collect-tokens-histogramFalsebool flag
(set to enable)
A2, A3
--prompt-tokens-bucketsNoneList[str]A2, A3
--generation-tokens-bucketsNoneList[str]A2, A3
--gc-warning-threshold-secs0.0Type: floatA2, A3
--decode-log-interval40Type: intA2, A3
--enable-request-time-stats-loggingFalsebool flag
(set to enable)
A2, A3
--kv-events-configNoneType: strSpecial for GPU
--enable-forward-pass-metricsFalsebool flag (set to enable)A2, A3
--forward-pass-metrics-worker-idType: strA2, A3
--forward-pass-metrics-ipc-nameNoneType: strA2, A3
--enable-traceFalsebool flag
(set to enable)
A2, A3
--trace-modulesrequestType: strA2, A3
--otlp-traces-endpointlocalhost:4317Type: strA2, A3
--log-requests-targetNoneType: strA2, A3
--uvicorn-access-log-exclude-prefixes[]List[str]A2, A3

RequestMetricsExporter configuration

ArgumentDefaultsOptionsServer supported
--export-metrics-to-fileFalsebool flag
(set to enable)
A2, A3
--export-metrics-to-file-dirNoneType: strA2, A3
ArgumentDefaultsOptionsServer supported
--api-keyNoneType: strA2, A3
--admin-api-keyNoneType: strA2, A3
--served-model-nameNoneType: strA2, A3
--weight-versiondefaultType: strA2, A3
--chat-templateNoneType: strA2, A3
--hf-chat-template-nameNoneType: strA2, A3
--completion-templateNoneType: strA2, A3
--file-storage-pathsglang_storageType: strUnused reserved parameter
--enable-cache-reportFalsebool flag
(set to enable)
A2, A3
--reasoning-parserNonedeepseek-r1
deepseek-v3
glm45
gpt-oss
kimi
qwen3
qwen3-thinking
step3
A2, A3
--strip-thinking-cacheFalsebool flag (set to enable)A2, A3
--enable-strict-thinkingFalsebool flag (set to enable)A2, A3
--tool-call-parserNonellama3
pythonic
qwen
qwen3_coder
A2, A3
--sampling-defaultsmodelopenai, modelA2, A3
--asr-max-buffer-seconds60Type: intA2, A3
--asr-max-concurrent-sessions32Type: intA2, A3

Data parallelism

ArgumentDefaultsOptionsServer supported
--data-parallel-size
--dp-size
1Type: intA2, A3
--load-balance-methodautoauto,
round_robin,
follow_bootstrap_room,
total_requests,
total_tokens
A2, A3

Multi-node distributed serving

ArgumentDefaultsOptionsServer supported
--dist-init-addr
--nccl-init-addr
NoneType: strA2, A3
--nnodes1Type: intA2, A3
--node-rank0Type: intA2, A3

Model override args

ArgumentDefaultsOptionsServer supported
--json-model-override-args{}Type: strA2, A3
--preferred-sampling-paramsNoneType: strA2, A3

LoRA (restricted to Qwen series models)

ArgumentDefaultsOptionsServer supported
--enable-loraFalsebool flag
(set to enable)
A2, A3
--enable-lora-overlap-loadingFalsebool flag
(set to enable)
A2, A3
--max-lora-rankNoneType: intA2, A3
--lora-target-modulesNoneallA2, A3
--lora-pathsNoneType: List[str] /
JSON objects
A2, A3
--max-loras-per-batch8Type: intA2, A3
--max-loaded-lorasNoneType: intA2, A3
--lora-eviction-policylrulru,
fifo
A2, A3
--lora-backendcsgmvtriton,
csgmv,
ascend,
torch_native
A2, A3
--experts-shared-outer-lorasNoneType: boolA2, A3
--lora-use-virtual-expertsFalsebool flag
(set to enable)
Special for GPU
--lora-strict-loadingFalseType: boolSpecial for GPU
--lora-drain-wait-threshold0.0Type: floatA2, A3
--max-lora-chunk-size1616, 32,
64, 128
Special for GPU

Kernel backends (attention, sampling, grammar, GEMM)

ArgumentDefaultsOptionsServer supported
--attention-backendNoneascendA2, A3
--prefill-attention-backendNoneascendA2, A3
--decode-attention-backendNoneascendA2, A3
--sampling-backendNonepytorch,
ascend
A2, A3
--grammar-backendNonexgrammar,
outlines,
llguidance
A2, A3
--radix-cache-backendNoneType: strA2, A3
--mm-attention-backendNoneascend_attnA2, A3
--dsa-prefill-backendflashmla_sparseflashmla_sparse,
flashmla_decode,
fa3,
tilelang,
aiter
Special for GPU
--dsa-decode-backendfa3flashmla_prefill,
flashmla_kv,
fa3,
tilelang,
aiter
Special for GPU
--fp8-gemm-backendautoauto,
deep_gemm,
flashinfer_trtllm,
flashinfer_cutlass,
flashinfer_deepgemm,
cutlass,
triton,
aiter
Special for GPU
--disable-flashinfer-autotuneFalsebool flag
(set to enable)
Special for GPU

Speculative decoding

ArgumentDefaultsOptionsServer supported
--speculative-algorithmNoneEAGLE3,
NEXTN
A2, A3
--speculative-draft-model-path
--speculative-draft-model
NoneType: strA2, A3
--speculative-draft-model-revisionNoneType: str,
branch name,
tag name,
commit id
A2, A3
--speculative-draft-load-formatautoauto,
dummy
A2, A3
--speculative-num-stepsNoneType: intA2, A3
--speculative-eagle-topkNoneType: intA2, A3
--speculative-num-draft-tokensNoneType: intA2, A3
--speculative-dflash-block-sizeNoneType: intA2, A3
--speculative-accept-threshold-single1.0Type: floatSpecial for GPU
--speculative-accept-threshold-acc1.0Type: floatSpecial for GPU
--speculative-token-mapNoneType: strA2, A3
--speculative-attention-modeprefillprefill,
decode
A2, A3
--speculative-moe-runner-backendNoneautoA2, A3
--speculative-moe-a2a-backendNoneascend_fuseep (the only supported value on Ascend NPU)A2, A3
--speculative-draft-attention-backendNoneascendA2, A3
--speculative-dflash-draft-window-size
--speculative-draft-window-size
NoneType: intA2, A3
--speculative-draft-model-quantizationNoneunquant (the only supported value for speculative decoding on Ascend NPU)A2, A3

Ngram speculative decoding

ArgumentDefaultsOptionsServer supported
--speculative-ngram-min-match-window-size1Type: intExperimental
--speculative-ngram-max-match-window-size12Type: intExperimental
--speculative-ngram-min-bfs-breadth1Type: intExperimental
--speculative-ngram-max-bfs-breadth10Type: intExperimental
--speculative-ngram-match-typeBFSBFS,
PROB
Experimental. BFS uses recency-based expansion; PROB uses frequency-based expansion.
--speculative-ngram-max-trie-depth18Type: intExperimental
--speculative-ngram-capacity10000000Type: intExperimental
--speculative-ngram-external-corpus-pathNoneType: strExperimental
--speculative-ngram-external-sam-budget0Type: intExperimental
--speculative-ngram-external-corpus-max-tokens10000000Type: intExperimental
--speculative-adaptiveFalsebool flag (set to enable)A2, A3
--speculative-adaptive-configNoneType: strA2, A3
--speculative-skip-dp-mlp-syncFalsebool flag (set to enable)A2, A3

Expert parallelism

ArgumentDefaultsOptionsServer supported
--expert-parallel-size
--ep-size
--ep
1Type: intA2, A3
--moe-a2a-backendnonenone,
deepep,
ascend_fuseep(It is incompatible with eplb)
A2, A3
--moe-runner-backendautoauto, tritonSpecial for GPU
--flashinfer-mxfp4-moe-precisiondefaultdefault,
bf16
Special for GPU
--enable-flashinfer-allreduce-fusionFalsebool flag
(set to enable)
Special for GPU
--deepep-modeautonormal,
low_latency,
auto
A2, A3
--deepep-dispatcher-output-dtypeautoauto,
bf16,
int8
(When enabling DeepEP for a quantized model, set the dispatcher output dtype according to your model’s quantization. If the value is int8, you must also set the environment variable:DEEP_NORMAL_MODE_USE_INT8_QUANT=1)
A2, A3
--deepep-configNoneType: strSpecial for GPU
--ep-num-redundant-experts0Type: intA2, A3
--ep-dispatch-algorithmNonestatic,
dynamic,
fake
A2, A3
--init-expert-locationtrivialtrivial,
<path.pt>,
<path.json>,
<json_string>
A2, A3
--enable-eplbFalsebool flag
(set to enable)
A2, A3
--eplb-algorithmdeepseekauto,
deepseek
A2, A3
--eplb-rebalance-num-iterations1000Type: intA2, A3
--eplb-rebalance-layers-per-chunkNoneType: intA2, A3
--eplb-min-rebalancing-utilization-threshold1.0Type: floatA2, A3
--expert-distribution-recorder-modeNonestat,
stat_approx,
per_pass,
per_token
A2, A3
--expert-distribution-recorder-buffer-sizeNoneType: intA2, A3
--enable-expert-distribution-metricsFalsebool flag (set to enable)A2, A3
--moe-dense-tp-sizeNone1A2, A3
--elastic-ep-backendNonenone, mooncakeSpecial for GPU
--mooncake-ib-deviceNoneType: strSpecial for GPU
--enable-waterfillFalsebool flag (set to enable)A2, A3

Mamba cache

ArgumentDefaultsOptionsServer supported
--max-mamba-cache-sizeNoneType: intA2, A3
--mamba-ssm-dtypefloat32float32,
bfloat16,
float16
A2, A3
--mamba-full-memory-ratio0.9Type: floatA2, A3
--mamba-radix-cache-strategyautoauto,
no_buffer,
extra_buffer
A2, A3
--mamba-track-interval256Type: intA2, A3

Hierarchical cache

ArgumentDefaultsOptionsServer supported
--enable-hierarchical-cacheFalsebool flag
(set to enable).
Currently, mamba cache is not supported.
A2, A3
--hicache-ratio2.0Type: floatA2, A3
--hicache-size0Type: intA2, A3
--hicache-write-policywrite_throughwrite_back,
write_through,
write_through_selective
A2, A3
--hicache-io-backendkernelkernel_ascend,
direct
A2, A3
--hicache-mem-layoutlayer_firstpage_first_direct,
page_first_kv_split
A2, A3
--hicache-storage-backendNonefileA2, A3
--hicache-storage-prefetch-policytimeoutbest_effort,
wait_complete,
timeout
Special for GPU
--hicache-storage-backend-extra-configNoneType: strSpecial for GPU

LMCache

ArgumentDefaultsOptionsServer supported
--enable-lmcacheFalsebool flag
(set to enable)
Special for GPU
--lmcache-config-fileNoneType: strSpecial for GPU

Diffusion LLM

ArgumentDefaultsOptionsServer supported
--dllm-algorithmNoneType: strA2, A3
--dllm-algorithm-configNoneType: strA2, A3

Offloading (must be used with --disable-cuda-graph)

ArgumentDefaultsOptionsServer supported
--cpu-offload-gb0Type: intA2, A3
--offload-group-size-1Type: int (DeepSeek only)A2, A3
--offload-num-in-group1Type: int (DeepSeek only)A2, A3
--offload-prefetch-step1Type: int (DeepSeek only)A2, A3
--offload-modecpucpu (DeepSeek only)
meta (DeepSeek only)
sharded_gpu (DeepSeek only, only support tp=1 dp>1)
A2, A3

Optimization/debug options

ArgumentDefaultsOptionsServer supported
--disable-radix-cacheFalsebool flag
(set to enable)
A2, A3
--cuda-graph-configNoneType: JSONA2, A3
--cuda-graph-backend-decodeNonefull,
disabled
A2, A3
--cuda-graph-backend-prefillNonedisabledA2, A3
--cuda-graph-max-bs-decodeNoneType: intA2, A3
--cuda-graph-max-bs-prefillNoneType: intA2, A3
--cuda-graph-bs-decodeNoneType: List[int]A2, A3
--cuda-graph-bs-prefillNoneType: List[int]A2, A3
--disable-prefill-cuda-graphFalsebool flag
(set to enable)
A2, A3
--disable-decode-cuda-graphFalsebool flag
(set to enable)
A2, A3
--cuda-graph-bsNoneList[int]A2, A3
--disable-cuda-graphFalsebool flag
(set to enable)
A2, A3
--disable-cuda-graph-paddingFalsebool flag
(set to enable)
A2, A3
--enable-profile-cuda-graphFalsebool flag
(set to enable)
A2, A3
--enable-cudagraph-gcFalsebool flag
(set to enable)
A2, A3
--enable-nccl-nvlsFalsebool flag
(set to enable)
Special for GPU
--enable-symm-memFalsebool flag
(set to enable)
Special for GPU
--disable-flashinfer-cutlass-moe-fp4-allgatherFalsebool flag
(set to enable)
Special for GPU
--enable-tokenizer-batch-encodeFalsebool flag
(set to enable)
A2, A3
--disable-tokenizer-batch-decodeFalsebool flag
(set to enable)
A2, A3
--disable-custom-all-reduceFalsebool flag
(set to enable)
Special for GPU
--enable-mscclppFalsebool flag
(set to enable)
Special for GPU
--pre-warm-ncclFalsebool flag (set to enable)A2, A3
--enable-torch-symm-memFalsebool flag
(set to enable)
Special for GPU
--disable-overlap-scheduleFalsebool flag
(set to enable)
A2, A3
--enable-mixed-chunkFalsebool flag
(set to enable)
A2, A3
--enable-dp-attentionFalsebool flag
(set to enable)
A2, A3
--enable-dp-attention-local-control-broadcastFalsebool flag
(set to enable)
A2, A3
--enable-dp-lm-headFalsebool flag
(set to enable)
A2, A3
--enable-two-batch-overlapFalsebool flag
(set to enable)
Planned
--enable-single-batch-overlapFalsebool flag
(set to enable)
Special for GPU
--tbo-token-distribution-threshold0.48Type: floatPlanned
--enable-torch-compileFalsebool flag
(set to enable)
A2, A3
--enable-torch-compile-debug-modeFalsebool flag
(set to enable)
A2, A3
--enforce-piecewise-cuda-graphFalsebool flag
(set to enable);
Currently, Llama-3.1-8B-Instruct and Qwen2.5-7B-Instruct models are supported.
A2, A3
--piecewise-cuda-graph-tokensNoneType: JSON
list
A2, A3
--piecewise-cuda-graph-compilereagereagerA2, A3
--torch-compile-max-bs32Type: intA2, A3
--piecewise-cuda-graph-max-tokensNoneType: intA2, A3
--torchao-configType: strSpecial for GPU
--enable-p2p-checkFalsebool flag
(set to enable)
Special for GPU
--triton-attention-reduce-in-fp32Falsebool flag
(set to enable)
Special for GPU
--triton-attention-num-kv-splits8Type: intSpecial for GPU
--triton-attention-split-tile-sizeNoneType: intSpecial for GPU
--delete-ckpt-after-loadingFalsebool flag
(set to enable)
A2, A3
--enable-memory-saverFalsebool flag
(set to enable)
A2, A3
--enable-weights-cpu-backupFalsebool flag
(set to enable)
A2, A3
--enable-draft-weights-cpu-backupFalsebool flag
(set to enable)
A2, A3
--allow-auto-truncateFalsebool flag
(set to enable)
A2, A3
--enable-custom-logit-processorFalsebool flag
(set to enable)
A2, A3
--flashinfer-mla-disable-raggedFalsebool flag
(set to enable)
Special for GPU
--disable-shared-experts-fusionTruebool flag
(set to enable)
A2, A3
--enforce-shared-experts-fusionFalsebool flag
(set to enable)
A2, A3
--disable-chunked-prefix-cacheTruebool flag
(set to enable)
A2, A3
--disable-fast-image-processorFalsebool flag
(set to enable)
A2, A3
--keep-mm-feature-on-deviceFalsebool flag
(set to enable)
A2, A3
--enable-return-hidden-statesFalsebool flag
(set to enable)
A2, A3
--enable-return-routed-expertsFalsebool flag
(set to enable)
A2, A3
--scheduler-recv-interval1Type: intA2, A3
--numa-nodeNoneList[int]A2, A3
--enable-deterministic-inferenceFalsebool flag
(set to enable)
A2, A3
--rl-on-policy-targetNonefsdpPlanned
--disable-attn-tp-gatherFalsebool flag (set to enable)A2, A3
--enable-layerwise-nvtx-markerFalsebool flag
(set to enable)
Special for GPU
--enable-attn-tp-input-scatteredFalsebool flag
(set to enable)
Experimental
--enable-prefill-cpFalsebool flag (set to enable)A2, A3
--cp-strategyNonezigzagA2, A3
--enable-fused-qk-norm-ropeFalsebool flag
(set to enable)
Special for GPU
--enable-precise-embedding-interpolationFalsebool flag
(set to enable)
A2, A3
--gc-thresholdNoneList[int]A2, A3

Dynamic batch tokenizer

ArgumentDefaultsOptionsServer supported
--enable-dynamic-batch-tokenizerFalsebool flag
(set to enable)
A2, A3
--dynamic-batch-tokenizer-batch-size32Type: intA2, A3
--dynamic-batch-tokenizer-batch-timeout0.002Type: floatA2, A3

Debug tensor dumps

ArgumentDefaultsOptionsServer supported
--debug-tensor-dump-output-folderNoneType: strA2, A3
--debug-tensor-dump-layersNoneList[int]A2, A3
--debug-tensor-dump-input-fileNoneType: strA2, A3

PD disaggregation

ArgumentDefaultsOptionsServer supported
--disaggregation-modenullnull,
prefill,
decode
A2, A3
--disaggregation-transfer-backendmooncakeascend (default mooncake not supported on NPU, must be specified manually)A2, A3
--disaggregation-bootstrap-port8998Type: intA2, A3
--disaggregation-ib-deviceNoneType: strSpecial for GPU
--disaggregation-decode-enable-offload-kvcacheFalsebool flag
(set to enable)
A2, A3
--num-reserved-decode-tokens512Type: intA2, A3
--disaggregation-decode-polling-interval1Type: intA2, A3
--optimistic-prefill-retries0Type: intA2, A3

Encode prefill disaggregation

ArgumentDefaultsOptionsServer supported
--enable-adaptive-dispatch-to-encoderFalsebool flag
(set to enable adaptive dispatch)
A2, A3
--encoder-onlyFalsebool flag
(set to launch an encoder-only server)
A2, A3
--language-onlyFalsebool flag
(set to load weights for the language model only)
A2, A3
--encoder-transfer-backendzmq_to_schedulerzmq_to_scheduler,
zmq_to_tokenizer,
mooncake
A2, A3
--encoder-urls[]List[str]
(List of encoder server urls)
A2, A3
--encoder-bootstrap-port8997Type: intA2, A3
--encoder-register-urls[]List[str]A2, A3

Custom weight loader

ArgumentDefaultsOptionsServer supported
--custom-weight-loaderNoneList[str]A2, A3
--weight-loader-disable-mmapFalsebool flag
(set to enable)
A2, A3
--weight-loader-prefetch-checkpointsFalsebool flag
(set to enable)
A2, A3
--weight-loader-prefetch-num-threads4Type: intA2, A3
--remote-instance-weight-loader-seed-instance-ipNoneType: strSpecial for GPU
--remote-instance-weight-loader-seed-instance-service-portNoneType: intSpecial for GPU
--remote-instance-weight-loader-send-weights-group-portsNoneType: JSON
list
Special for GPU
--remote-instance-weight-loader-backendnccltransfer_engine,
nccl
Special for GPU
--weight-loader-drop-cache-after-loadFalsebool flag (set to enable)A2, A3
--remote-instance-weight-loader-start-seed-via-transfer-engineFalsebool flag
(set to enable)
Special for GPU

For PD-multiplexing

ArgumentDefaultsOptionsServer supported
--enable-pdmuxFalsebool flag
(set to enable)
Special for GPU
--pdmux-config-pathNoneType: strSpecial for GPU
--sm-group-num8Type: intSpecial for GPU

For multi-modal

ArgumentDefaultsOptionsServer supported
--enable-broadcast-mm-inputs-processFalsebool flag
(set to enable)
A2, A3
--mm-process-configNoneType: JSON / DictA2, A3
--mm-enable-dp-encoderFalsebool flag
(set to enable)
A2, A3
--limit-mm-data-per-requestNoneType: JSON / DictA2, A3

For checkpoint decryption

ArgumentDefaultsOptionsServer supported
--decrypted-config-fileNoneType: strA2, A3
--decrypted-draft-config-fileNoneType: strA2, A3
--enable-prefix-mm-cacheFalsebool flag
(set to enable)
A2, A3

Forward hooks

ArgumentDefaultsOptionsServer supported
--forward-hooksNoneType: JSON listA2, A3
--enable-quant-communicationsFalsebool flag (set to enable)
(When using DeepEP with a quantized model, you must set —deepep-dispatcher-output-dtype)
A2, A3

msProbe

ArgumentDefaultsOptionsServer supported
--msprobe-dump-configNoneType: strA2, A3

Configuration file support

ArgumentDefaultsOptionsServer supported
--configNoneType: strA2, A3

Other params

The following parameters are not supported because the required third-party components (e.g., Ktransformer, checkpoint-engine) are not compatible with the NPU.
ArgumentDefaultsOptions
--checkpoint-engine-wait-weights-before-readyFalsebool flag (set to enable)
--kt-weight-pathNoneType: str
--kt-methodAMXINT4Type: str
--kt-cpuinferNoneType: int
--kt-threadpool-count2Type: int
--kt-num-gpu-expertsNoneType: int
--kt-max-deferred-experts-per-tokenNoneType: int
The following parameters have known functional deficiencies in the upstream community codebase
ArgumentDefaultsOptions
--tool-serverNoneType: str