Reference · SGLang

SGLang server flags, for DGX Spark users.

The server arguments of SGLang 0.5.23, searchable, each linked to the official docs table or, for the 90 it leaves out, to the line of code that declares it. These are for all hardware; being listed does not mean a flag works on a DGX Spark.

How to find an SGLang server flag

  1. Check your version with sglang version. This list is for 0.5.23.
  2. Type part of a name into the search box, such as memory, cache or parallel.
  3. Open the official entry before you change a value, and change one thing at a time.

Checked on 26 November 2026 against: the SGLang 0.5.23 source and server arguments page. Not checked on a DGX Spark. We have not yet run this playbook start to finish on our own hardware.

Before you change anything

Check your version.

A container or package on your Spark may hold a different release from this one. Ask it:

sglang version
python3 -m sglang.launch_server --help

Run these where SGLang is installed (inside its container, if you use one).

Changing a flag means restarting the model server. Requests in progress are cut off. Check that nothing you care about is running first.

Our advice: keep your working command saved, change one flag at a time, and go back to the saved command if the server will not start or answers differently.

Model and tokenizer17 HTTP server16 Quantization and data type13 Memory and scheduling32 Runtime options29 Logging32 RequestMetricsExporter configuration2 API related18 Data parallelism3 Multi-node distributed serving3 Model override args2 LoRA14 Kernel Backends (Attention, Sampling, Grammar, GEMM)20 Speculative decoding20 Ngram speculative decoding10 Multi-layer Eagle speculative decoding1 MoE27 Mamba Cache13 Hierarchical cache12 Hierarchical sparse attention2 LMCache2 Paged experts2 Ktransformers6 Diffusion LLM3 Offloading8 Args for multi-item scoring1 Optimization/debug options81 Dynamic batch tokenizer3 Debug tensor dumps3 PD disaggregation10 Encode prefill disaggregation8 Custom weight loader12 For PD-Multiplexing3 Configuration file support1 For Multi-Modal7 For checkpoint decryption3 Forward hooks1 For MindStudio-probe(msProbe) dump1 Not in the docs table (all)90
SGLang 0.5.23 server flags in each section of its server arguments page. Longer bars mean more flags to look through in that group.

Version listed: SGLang 0.5.23, released 2 November 2026. Checked on 26 November 2026. We have not run this version, or any flag here, on a DGX Spark.

SGLang 0.5.23

All 531 SGLang flags, by group.

The default is what the code declares. “None” means unset: SGLang may work the value out at start-up, often from the model or the machine. Where the docs table shows something else, we show that too. The “What it is” column holds our own short words for common flags and any list of choices; where it is empty, open the official entry. Some flags apply only to certain hardware, models or optional packages.

Model and tokenizer (17)

FlagTypeDefaultWhat it isOfficial
--model-path
also --model
stringrequired: no defaultWhich model to load: a Hugging Face model name or a local folder.Docs
--load-formatchoiceautoFormat the weights are read in.
Choices: auto pt safetensors instanttensor npcache dummy sharded_state presharded gguf expert_pack bitsandbytes mistral layered flash_rl remote remote_instance fastsafetensors private runai_streamer
Docs
--model-loader-extra-configstring{}Docs
--trust-remote-codebooleanFalseLets code that comes with a model repository run on your machine. Turn it on only for a source you trust and have read.Docs
--context-lengthintegerNoneLongest context. Left unset, it comes from the model's config.json.Docs
--is-embeddingbooleanFalseDocs
--revisionstringNonePins the model to a branch, tag or commit.Docs
--model-implstringautoDocs
--model-config-parserstringautoDocs
--prefill-only-disable-kv-cachebooleanFalseDocs
--enable-multimodalbooleanNoneDocs
--tokenizer-pathstringNoneDocs
--tokenizer-modechoiceautoChoices: auto slowDocs
--tokenizer-backendchoicehuggingfaceChoices: huggingface fastokensDocs
--tokenizer-worker-numinteger1Docs
--detokenizer-worker-numinteger1Docs
--skip-tokenizer-initbooleanFalseDocs

HTTP server (16)

FlagTypeDefaultWhat it isOfficial
--checkpoint-engine-wait-weights-before-readybooleanFalseDocs
--nccl-portintegerNoneDocs
--hoststringloopback address (this computer only)Network address the HTTP server listens on.Docs
--portinteger30000Network port of the HTTP server.Docs
--fastapi-root-pathstring""Docs
--enable-http-worker-reuseportbooleanFalseDocs
--grpc-modedeprecatedFalseDocs
--skip-server-warmupbooleanFalseSkips the warm-up run before serving.Docs
--warmupsstringNoneDocs
--enable-http2booleanFalseDocs
--http2-max-concurrent-streamsinteger200Docs
--ssl-keyfilestringNoneKey file for serving over TLS.Docs
--ssl-certfilestringNoneDocs
--ssl-ca-certsstringNoneDocs
--ssl-keyfile-passwordstringNoneDocs
--enable-ssl-refreshbooleanFalseDocs

Quantization and data type (13)

FlagTypeDefaultWhat it isOfficial
--dtypechoiceautoNumber format for the weights and the working values.
Choices: auto half float16 bfloat16 float float32
Docs
--quantizationchoiceNoneWhich quantization method to use.
Choices: awq fp8 mxfp8 gptq gptq_marlin awq_marlin bitsandbytes gguf modelopt modelopt_fp8 modelopt_fp4 nvfp4_online modelopt_mixed petit_nvfp4 w8a8_int8 w8a8_fp8 moe_wna16 w4afp8 mxfp4 auto-round auto-round-int8 compressed-tensors modelslim mxfp_w4a8 quark quark_int4fp8_moe quark_mxfp4 mlx_q4 mlx_q8 unquant humming
Docs
--quantization-param-pathstringNoneDocs
--kv-cache-dtypechoiceautoNumber format of the KV cache.
Choices: auto fp8_e5m2 fp8_e4m3 mxfp8 bf16 bfloat16 nvfp4 fp4_mx_block16
Docs
--modelopt-quantstringNoneDocs
--modelopt-checkpoint-restore-pathstringNoneDocs
--modelopt-checkpoint-save-pathstringNoneDocs
--modelopt-export-pathstringNoneDocs
--quantize-and-servebooleanFalseDocs
--rl-quant-profilestringNoneDocs
--enable-quant-communicationsbooleanFalseDocs
--enable-fp32-lm-headbooleanFalseDocs
--enable-tf32-matmulboolean (on/off pair)None
Docs table shows: False
Docs

Memory and scheduling (32)

FlagTypeDefaultWhat it isOfficial
--radix-eviction-policychoicelruChoices: lru lfu slru priority tlruDocs
--enable-page-major-kv-layoutbooleanFalseDocs
--enable-unified-memorybooleanFalseDocs
--mem-fraction-staticnumberNoneShare of memory set aside up front for the weights and the KV cache pool. SGLang says to lower it if you run out of memory.Docs
--max-running-requestsintegerNoneMost requests running at once.Docs
--max-queued-requestsintegerNoneMost requests waiting. SGLang says it is ignored in disaggregation mode.Docs
--max-total-tokensintegerNoneSize of the token memory pool. Unset, it is worked out from the memory share; SGLang describes setting it as mainly for development and debugging.Docs
--chunked-prefill-sizeintegerNoneMost tokens in one piece when a long prompt is read in pieces; -1 turns that off.Docs
--prefill-decode-intervalintegerNoneDocs
--prefill-decode-interval-min-bsinteger0Docs
--enable-dynamic-chunkingbooleanFalseDocs
--max-prefill-tokensinteger16384Docs
--prefill-max-requestsintegerNoneDocs
--schedule-policychoicefcfsOrder in which requests are scheduled.
Choices: lpm random fcfs dfs-weight lof priority routing-key hrrn shortest-prefill-first
Docs
--enable-priority-schedulingbooleanFalseDocs
--disable-priority-preemptionbooleanFalseDocs
--default-priority-valueintegerNoneDocs
--abort-on-priority-when-disabledbooleanFalseDocs
--schedule-low-priority-values-firstbooleanFalseDocs
--priority-scheduling-preemption-thresholdinteger10Docs
--retraction-policychoicelengthChoices: length priorityDocs
--schedule-conservativenessnumber1.0How cautious scheduling is. SGLang suggests a higher value if requests are often withdrawn and restarted.Docs
--page-sizeintegerNone
Docs table shows: 1
Number of tokens in one cache page.Docs
--swa-full-tokens-rationumberNone
Docs table shows: 0.8
Docs
--disable-hybrid-swa-memorybooleanFalseDocs
--enable-prefill-delayerbooleanFalseDocs
--prefill-delayer-max-delay-passesinteger30Docs
--prefill-delayer-token-usage-low-watermarknumberNoneDocs
--prefill-delayer-forward-passes-bucketslistNoneDocs
--prefill-delayer-wait-seconds-bucketslistNoneDocs
--prefill-delayer-queue-min-rationumberNoneDocs
--prefill-delayer-max-delay-msnumberNoneDocs

Runtime options (29)

FlagTypeDefaultWhat it isOfficial
--download-dirstringNoneFolder for models downloaded from Hugging Face.Docs
--model-checksumstringNoneDocs
--load-snapshot-publish-intervalinteger15Docs
--devicestringNoneDocs
--base-gpu-idinteger0Docs
--gpu-id-stepinteger1Docs
--random-seedintegerNoneRandom seed.Docs
--mlx-enable-samplingbooleanFalseDocs
--watchdog-timeoutnumber300Docs
--soft-watchdog-timeoutnumberNoneDocs
--sleep-on-idlebooleanFalseDocs
--use-raybooleanFalseDocs
--dist-timeoutintegerNoneDocs
--tp-size
also --tensor-parallel-size
integer1Tensor parallelism size.Docs
--dcp-size
also --decode-context-parallel-size
integer1Docs
--pp-size
also --pipeline-parallel-size
integer1Pipeline parallelism size.Docs
--pp-max-micro-batch-sizeintegerNoneDocs
--pp-async-batch-depthinteger0Docs
--attn-cp-size
also --attention-context-parallel-size
integer1Docs
--moe-dp-size
also --moe-data-parallel-size
integer1Docs
--dcp-comm-backendchoiceNoneChoices: ag_rs a2a fi_a2aDocs
--dcp-replicate-q-projboolean (on/off pair)NoneDocs
--stream-intervalinteger1Docs
--batch-notify-sizeinteger16Docs
--stream-response-default-include-usagebooleanFalseDocs
--incremental-streaming-outputbooleanFalseDocs
--enable-streaming-sessionbooleanFalseDocs
--constrained-json-whitespace-patternstringNoneDocs
--constrained-json-disable-any-whitespacebooleanFalseDocs

Logging (32)

FlagTypeDefaultWhat it isOfficial
--log-levelstringinfoHow much the server logs.Docs
--log-level-httpstringNoneDocs
--log-requestsbooleanFalseDocs
--log-requests-levelchoice2Choices: 0 1 2 3Docs
--log-requests-formatchoicetextChoices: text jsonDocs
--log-requests-targetlistNoneDocs
--uvicorn-access-log-exclude-prefixeslist[]Docs
--crash-dump-folderstringNoneDocs
--show-time-costbooleanFalseDocs
--enable-metricsbooleanFalseTurns on Prometheus metrics.Docs
--smg-http-sidecar-port
also --grpc-http-sidecar-port
integerNoneDocs
--enable-mfu-metricsbooleanFalseDocs
--enable-metrics-for-all-schedulersbooleanFalseDocs
--tokenizer-metrics-custom-labels-headerstringx-custom-labelsDocs
--tokenizer-metrics-allowed-custom-labelslistNoneDocs
--extra-metric-labelsJSONNoneDocs
--bucket-time-to-first-tokenlistNoneDocs
--bucket-inter-token-latencylistNoneDocs
--bucket-e2e-request-latencylistNoneDocs
--prompt-tokens-bucketslistNoneDocs
--generation-tokens-bucketslistNoneDocs
--gc-warning-threshold-secsnumber0.0Docs
--decode-log-intervalinteger40Docs
--enable-request-time-stats-loggingbooleanFalseDocs
--kv-events-configstringNoneDocs
--load-publish-endpointstringNoneDocs
--enable-forward-pass-metricsbooleanFalseDocs
--forward-pass-metrics-worker-idstring""Docs
--forward-pass-metrics-ipc-namestringNoneDocs
--enable-tracebooleanFalseDocs
--trace-modulesstringrequestDocs
--otlp-traces-endpointstringlocalhost:4317Docs

RequestMetricsExporter configuration (2)

FlagTypeDefaultWhat it isOfficial
--export-metrics-to-filebooleanFalseDocs
--export-metrics-to-file-dirstringNoneDocs

Data parallelism (3)

FlagTypeDefaultWhat it isOfficial
--dp-size
also --data-parallel-size
integer1Number of data-parallel copies of the model.Docs
--attn-dp-size
also --attention-data-parallel-size
integer1Docs
--load-balance-methodchoiceautoChoices: auto round_robin follow_bootstrap_room total_requests total_tokensDocs

Multi-node distributed serving (3)

FlagTypeDefaultWhat it isOfficial
--dist-init-addr
also --nccl-init-addr
stringNoneAddress and port the distributed processes use to find each other.Docs
--nnodesinteger1Number of machines.Docs
--node-rankinteger0This machine's number among them.Docs

Model override args (2)

FlagTypeDefaultWhat it isOfficial
--json-model-override-argsstring{}Docs
--preferred-sampling-paramsstringNoneDocs

LoRA (14)

FlagTypeDefaultWhat it isOfficial
--enable-lorabooleanNone
Docs table shows: False
Allows LoRA adapters. SGLang also turns it on when --lora-paths is given.Docs
--enable-lora-overlap-loadingbooleanNone
Docs table shows: False
Docs
--max-lora-rankintegerNoneDocs
--lora-target-modulesstringNoneDocs
--lora-pathscustom (LoRAPathAction)NoneDocs
--max-loaded-lorasintegerNoneDocs
--max-loras-per-batchinteger8Most adapters in one running batch; a request with no adapter counts as one.Docs
--lora-eviction-policychoicelruChoices: lru fifoDocs
--lora-backendchoicecsgmvChoices: triton csgmv ascend torch_native triton_v2Docs
--max-lora-chunk-sizechoice16Choices: 16 32 64 128Docs
--experts-shared-outer-lorasboolean (on/off pair)NoneDocs
--lora-use-virtual-expertsbooleanFalseDocs
--lora-strict-loadingboolean (on/off pair)FalseDocs
--lora-drain-wait-thresholdnumber0.0Docs

Kernel Backends (Attention, Sampling, Grammar, GEMM) (20)

FlagTypeDefaultWhat it isOfficial
--attention-backendchoiceNoneWhich attention implementation to use.
Choices: triton torch_native flex_attention dsa nsa qsa dsv4 compressed fa3 fa4 flashinfer llada2_cfg_flashinfer flashmla trtllm_mla cutedsl_mla tokenspeed_mla trtllm_mha hpc_ops minicpm_flashattn minicpm_flashinfer aiter wave intel_amx ascend intel_xpu
Docs
--decode-attention-backendchoiceNoneChoices: triton torch_native flex_attention dsa nsa qsa dsv4 compressed fa3 fa4 flashinfer llada2_cfg_flashinfer flashmla trtllm_mla cutedsl_mla tokenspeed_mla trtllm_mha hpc_ops minicpm_flashattn minicpm_flashinfer aiter wave intel_amx ascend intel_xpuDocs
--enable-nvidia-megakernelbooleanFalseDocs
--enable-amd-monokernelbooleanFalseDocs
--prefill-attention-backendchoiceNoneChoices: triton torch_native flex_attention dsa nsa qsa dsv4 compressed fa3 fa4 flashinfer llada2_cfg_flashinfer flashmla trtllm_mla cutedsl_mla tokenspeed_mla trtllm_mha hpc_ops minicpm_flashattn minicpm_flashinfer aiter wave intel_amx ascend intel_xpuDocs
--grammar-backendchoiceNoneChoices: xgrammar outlines llguidance noneDocs
--fp8-gemm-backendchoiceautoChoices: auto deep_gemm flashinfer_trtllm flashinfer_cutlass flashinfer_deepgemm flashinfer_cutedsl cutlass triton aiterDocs
--fp4-gemm-backendchoiceautoChoices: auto flashinfer_cudnn flashinfer_cutedsl flashinfer_cutlass flashinfer_trtllm marlinDocs
--bf16-gemm-backendchoiceautoChoices: auto cutedsl gemv torchDocs
--dsa-prefill-backendchoiceNone
Docs table shows: Auto (hardware-dependent)
Choices: flashmla_sparse flashmla_sparse_q8 flashmla_kv flashmla_auto flashinfer_sparse_mla triton_sparse_mla fa3 tilelang triton aiter trtllm intel_xpuDocs
--dsa-triton-unionchoice0Choices: 0 2 4Docs
--dsa-decode-backendchoiceNone
Docs table shows: Auto (hardware-dependent)
Choices: flashmla_sparse flashmla_sparse_q8 flashmla_kv flashmla_auto flashinfer_sparse_mla fa3 tilelang triton aiter trtllm intel_xpuDocs
--dsa-topk-backendchoicesgl-kernelChoices: sgl-kernel torch flashinferDocs
--disable-flashinfer-autotunebooleanFalseDocs
--flashinfer-autotune-skip-opslistNoneDocs
--enable-deepseek-v4-fp4-indexerbooleanFalseDocs
--radix-cache-backendstringNoneDocs
--mm-attention-backendchoiceNoneChoices: sdpa fa3 fa4 triton_attn ascend_attn aiter_attn flashinfer_cudnn amx_attn xpu_attnDocs
--sampling-backendchoiceNoneDocs
--monokernel-backenddeprecatedFalse
Docs table shows: None
Choices: amdDocs

Speculative decoding (20)

FlagTypeDefaultWhat it isOfficial
--speculative-algorithmstringNoneWhich speculative decoding method to use.Docs
--speculative-draft-model-path
also --speculative-draft-model
stringNoneThe draft model for speculative decoding: a Hugging Face name or a local folder.Docs
--speculative-draft-model-revisionstringNoneDocs
--speculative-draft-load-formatchoiceNoneChoices: auto pt safetensors instanttensor npcache dummy sharded_state presharded gguf expert_pack bitsandbytes mistral layered flash_rl remote remote_instance fastsafetensors private runai_streamerDocs
--speculative-num-stepsintegerNoneDocs
--speculative-eagle-topkintegerNoneDocs
--speculative-num-draft-tokensintegerNoneDocs
--speculative-dflash-block-sizeintegerNoneDocs
--speculative-accept-threshold-singlenumber1.0Docs
--speculative-accept-threshold-accnumber1.0Docs
--speculative-use-block-verificationbooleanFalseDocs
--speculative-token-mapstringNoneDocs
--speculative-attention-modechoiceprefillChoices: prefill decodeDocs
--speculative-draft-attention-backendstringNoneDocs
--speculative-dsa-topk-backendchoicesgl-kernelChoices: sgl-kernel torch flashinferDocs
--speculative-draft-window-sizeintegerNoneDocs
--speculative-moe-runner-backendchoiceNoneChoices: auto deep_gemm triton triton_kernel flashinfer_trtllm experimental_sgl_trtllm flashinfer_trtllm_routed flashinfer_cutlass flashinfer_mxfp4 flashinfer_cutedsl flashinfer_megamoe cutlass aiter marlin humming experimental_sgl_marlin lora_cutedsl lora_triton lora_marlin hpc_ops megamoe intel_xpuDocs
--speculative-moe-a2a-backendchoiceNoneChoices: none deepep mooncake nixl mori ascend_fuseep flashinfer megamoe deepep_v2 pplx ascend_tpDocs
--speculative-enable-w4a4-mxfp4-megamoeboolean (on/off pair)NoneDocs
--speculative-draft-model-quantizationchoiceNoneChoices: awq fp8 mxfp8 gptq gptq_marlin awq_marlin bitsandbytes gguf modelopt modelopt_fp8 modelopt_fp4 nvfp4_online modelopt_mixed petit_nvfp4 w8a8_int8 w8a8_fp8 moe_wna16 w4afp8 mxfp4 auto-round auto-round-int8 compressed-tensors modelslim mxfp_w4a8 quark quark_int4fp8_moe quark_mxfp4 mlx_q4 mlx_q8 unquant hummingDocs

Ngram speculative decoding (10)

FlagTypeDefaultWhat it isOfficial
--speculative-adaptivebooleanFalseDocs
--speculative-adaptive-configstringNoneDocs
--speculative-ngram-min-bfs-breadthinteger1Docs
--speculative-ngram-max-bfs-breadthinteger10Docs
--speculative-ngram-match-typechoiceBFSChoices: BFS PROBDocs
--speculative-ngram-max-trie-depthinteger18Docs
--speculative-ngram-capacityinteger10000000Docs
--speculative-ngram-external-corpus-pathstringNoneDocs
--speculative-ngram-external-sam-budgetinteger0Docs
--speculative-ngram-external-corpus-max-tokensinteger10000000Docs

Multi-layer Eagle speculative decoding (1)

FlagTypeDefaultWhat it isOfficial
--enable-multi-layer-eaglebooleanFalseDocs

MoE (27)

FlagTypeDefaultWhat it isOfficial
--moe-a2a-backendchoicenoneChoices: none deepep mooncake nixl mori ascend_fuseep flashinfer megamoe deepep_v2 pplx ascend_tp flashinfer_megamoeDocs
--moe-runner-backendchoiceautoChoices: auto deep_gemm triton triton_kernel flashinfer_trtllm experimental_sgl_trtllm flashinfer_trtllm_routed flashinfer_cutlass flashinfer_mxfp4 flashinfer_cutedsl flashinfer_megamoe cutlass aiter marlin humming experimental_sgl_marlin lora_cutedsl lora_triton lora_marlin hpc_ops megamoe intel_xpuDocs
--flashinfer-mxfp4-moe-precisionchoicedefaultChoices: default bf16 fp8Docs
--deepep-modechoiceautoChoices: auto normal low_latencyDocs
--deepep-dispatcher-output-dtypechoiceautoChoices: auto bf16 fp8 int8 nvfp4Docs
--ep-num-redundant-expertsinteger0Docs
--ep-dispatch-algorithmchoiceNoneChoices: static dynamic fake lpDocs
--init-expert-locationstringtrivialDocs
--enable-eplbbooleanFalseDocs
--eplb-algorithmstringautoDocs
--eplb-rebalance-num-iterationsinteger1000Docs
--eplb-rebalance-layers-per-chunkintegerNoneDocs
--eplb-min-rebalancing-utilization-thresholdnumber1.0Docs
--expert-distribution-recorder-modechoiceNoneChoices: stat stat_approx per_pass per_tokenDocs
--expert-distribution-recorder-buffer-sizeintegerNoneDocs
--expert-balancedness-report-modechoiceoffChoices: off server_log prometheus bothDocs
--deepep-configstringNoneDocs
--elastic-ep-backendchoiceNoneChoices: none mooncake nixlDocs
--enable-elastic-expert-backupbooleanFalseDocs
--mooncake-ib-devicestringNoneDocs
--enable-waterfillbooleanFalseDocs
--enforce-disable-flashinfer-allreduce-fusionbooleanFalseDocs
--flashinfer-allreduce-fusion-backendchoiceNoneChoices: auto trtllm mnnvl cutedslDocs
--enable-aiter-allreduce-fusionbooleanFalseDocs
--ep-size
also --expert-parallel-size
also --ep
integer1Docs
--moe-dense-tp-sizeintegerNoneDocs
--enable-flashinfer-allreduce-fusiondeprecatedFalseDocs

Mamba Cache (13)

FlagTypeDefaultWhat it isOfficial
--mamba-backendchoicetritonChoices: triton flashinferDocs
--mamba-ssm-dtypechoiceNone
Docs table shows: Auto (from model config)
Choices: float32 bfloat16 float16Docs
--enable-mamba-cache-stochastic-roundingbooleanFalseDocs
--mamba-cache-philox-roundsinteger0Docs
--mamba-radix-cache-strategychoiceautoChoices: auto no_buffer extra_buffer extra_buffer_lazyDocs
--mamba-track-intervalinteger256Docs
--enable-int8-mamba-checkpointbooleanFalseDocs
--int8-mamba-ckpt-sizeintegerNoneDocs
--linear-attn-backendchoicetritonChoices: triton cutedsl flashinfer flashkda nvidia_kda ptx_kda helion intel_xpuDocs
--linear-attn-decode-backendchoiceNoneChoices: triton cutedsl flashinfer flashkda nvidia_kda ptx_kda helion intel_xpuDocs
--linear-attn-prefill-backendchoiceNoneChoices: triton cutedsl flashinfer flashkda nvidia_kda ptx_kda helion intel_xpuDocs
--max-mamba-cache-sizeintegerNoneDocs
--mamba-full-memory-rationumberNone
Docs table shows: 0.9
Docs

Hierarchical cache (12)

FlagTypeDefaultWhat it isOfficial
--enable-hierarchical-cache
also --enable-hicache
booleanFalseTurns on the hierarchical cache.Docs
--hicache-rationumberNone
Docs table shows: 2.0
Docs
--hicache-sizeinteger0Docs
--hicache-write-policychoicewrite_throughChoices: write_back write_through write_through_selectiveDocs
--hicache-io-backendchoicekernelChoices: direct kernel kernel_ascendDocs
--hicache-mem-layoutchoicepage_firstChoices: layer_first page_first page_first_direct page_first_kv_split page_headDocs
--hicache-storage-backendchoiceNoneChoices: file sim mooncake npu_memcache hf3fs nixl aibrix dynamic eic simm mori shm tensorcast seaweedfsDocs
--hicache-storage-prefetch-policychoicetimeoutChoices: best_effort wait_complete timeoutDocs
--hicache-storage-backend-extra-configstringNoneDocs
--enable-unified-cache-external-linkerbooleanFalseDocs
--unified-cache-external-linker-backendchoicemooncakeChoices: mooncake mori dynamicDocs
--unified-cache-external-linker-configJSONNoneDocs

Hierarchical sparse attention (2)

FlagTypeDefaultWhat it isOfficial
--enable-hisparsebooleanFalseDocs
--hisparse-config
also --hierarchical-sparse-attention-extra-config
stringNoneDocs

LMCache (2)

FlagTypeDefaultWhat it isOfficial
--enable-lmcachebooleanFalseDocs
--lmcache-config-filestringNoneDocs

Paged experts (2)

FlagTypeDefaultWhat it isOfficial
--enable-paged-expertsbooleanFalseDocs
--paged-experts-num-residentintegerNoneDocs

Ktransformers (6)

FlagTypeDefaultWhat it isOfficial
--kt-weight-pathstringNoneDocs
--kt-methodstringAMXINT4Docs
--kt-cpuinferintegerNoneDocs
--kt-threadpool-countinteger2Docs
--kt-num-gpu-expertsintegerNoneDocs
--kt-max-deferred-experts-per-tokenintegerNoneDocs

Diffusion LLM (3)

FlagTypeDefaultWhat it isOfficial
--dllm-algorithmstringNoneDocs
--dllm-algorithm-configstringNoneDocs
--dllm-fdfoboolean (on/off pair)TrueDocs

Offloading (8)

FlagTypeDefaultWhat it isOfficial
--cpu-offload-gbinteger0Docs
--offload-group-sizeinteger-1Docs
--offload-num-in-groupinteger1Docs
--offload-prefetch-stepinteger1Docs
--offload-modestringcpuDocs
--ple-offload-embeddingboolean (on/off pair)NoneDocs
--ple-offload-backendchoicepinnedChoices: pinned fileDocs
--ple-offload-dirstringNone
Docs table shows: $SGLANG_CACHE_DIR/ple/
Docs

Args for multi-item scoring (1)

FlagTypeDefaultWhat it isOfficial
--enable-misbooleanFalseDocs

Optimization/debug options (81)

FlagTypeDefaultWhat it isOfficial
--delete-ckpt-after-loadingbooleanFalseDocs
--enable-deterministic-inferencebooleanFalseTurns on deterministic operations that do not vary with batching.Docs
--rl-on-policy-targetchoiceNoneChoices: fsdpDocs
--enable-two-batch-overlapbooleanFalseDocs
--enable-single-batch-overlapbooleanFalseDocs
--tbo-token-distribution-thresholdnumber0.48Docs
--enable-fused-moe-sum-all-reducebooleanFalseDocs
--disable-flashinfer-cutlass-moe-fp4-allgatherbooleanFalseDocs
--disable-shared-experts-fusionbooleanFalseDocs
--enforce-shared-experts-fusionbooleanFalseDocs
--enable-layerwise-nvtx-markerbooleanFalseDocs
--enable-nccl-nvlsbooleanFalseDocs
--enable-symm-membooleanFalseDocs
--disable-custom-all-reducebooleanFalseDocs
--enable-mscclppbooleanFalseDocs
--enable-torch-symm-membooleanFalseDocs
--pre-warm-ncclbooleanFalseDocs
--cuda-graph-configstringNoneCUDA graph settings for each phase, as JSON. It takes priority over the per-phase options.Docs
--cuda-graph-backend-decodechoiceNoneCUDA graph method for the decode phase.
Choices: full breakable disabled
Docs
--cuda-graph-backend-prefillchoiceNoneCUDA graph method for the prefill phase.
Choices: full breakable disabled
Docs
--cuda-graph-max-bs-decodeintegerNoneDocs
--cuda-graph-max-bs-prefillintegerNoneDocs
--cuda-graph-max-seq-len-prefillintegerNoneDocs
--cuda-graph-bs-decodelistNoneDocs
--cuda-graph-bs-prefilllistNoneDocs
--disable-prefill-cuda-graphbooleanFalseDocs
--disable-decode-cuda-graphbooleanFalseDocs
--disable-cuda-graph-paddingbooleanFalseDocs
--enable-profile-cuda-graphbooleanFalseDocs
--enable-cudagraph-gcbooleanFalseDocs
--debug-cuda-graphbooleanFalseDocs
--enable-torch-compilebooleanFalseUses torch.compile. SGLang calls it experimental.Docs
--enable-torch-compile-debug-modebooleanFalseDocs
--torch-compile-max-bsinteger32Docs
--triton-attention-reduce-in-fp32booleanFalseDocs
--triton-attention-num-kv-splitsinteger8Docs
--triton-attention-split-tile-sizeintegerNoneDocs
--flashinfer-mla-disable-raggedbooleanFalseDocs
--enable-fused-qk-norm-ropeboolean (on/off pair)NoneDocs
--enable-precise-embedding-interpolationbooleanFalseDocs
--kv-canarychoicenoneChoices: none log raiseDocs
--kv-canary-sweep-intervalinteger0Docs
--numa-nodelistNoneDocs
--gc-thresholdlistNone
Docs table shows: —
Docs
--enable-prefill-cpbooleanFalseDocs
--cp-strategychoiceNoneChoices: zigzag interleaveDocs
--enable-kv-cache-shardingbooleanFalseDocs
--enable-dp-attention-local-control-broadcastbooleanFalseDocs
--enable-dp-lm-headbooleanFalseDocs
--enable-attn-tp-input-scatteredbooleanFalseDocs
--enable-layernorm-spbooleanFalseDocs
--enable-megamoe-for-layernorm-spbooleanFalseDocs
--disable-attn-tp-gatherbooleanFalseDocs
--enable-p2p-checkbooleanFalseDocs
--disable-radix-cachebooleanFalseTurns off RadixAttention, SGLang's reuse of shared prompt beginnings.Docs
--disable-chunked-prefix-cachebooleanFalseDocs
--disable-overlap-schedulebooleanFalseDocs
--num-continuous-decode-stepsinteger1Docs
--scheduler-recv-intervalinteger1Docs
--enable-mixed-chunkbooleanFalseDocs
--enable-memory-saverbooleanFalseDocs
--enable-weights-cpu-backupbooleanFalseDocs
--enable-draft-weights-cpu-backupbooleanFalseDocs
--enable-custom-logit-processorbooleanFalseDocs
--enable-watermarkbooleanFalseDocs
--watermark-configstringNoneDocs
--enable-return-hidden-statesbooleanFalseDocs
--return-hidden-states-modechoiceNoneChoices: last fullDocs
--enable-return-aux-hidden-statesbooleanFalseDocs
--return-aux-hidden-state-layer-idslistNoneDocs
--enable-return-routed-expertsbooleanFalseDocs
--enable-return-indexer-topkbooleanFalseDocs
--disable-outlines-disk-cachebooleanFalseDocs
--image-processor-backendchoiceautoChoices: auto torchvision pilDocs
--disable-fast-image-processordeprecatedFalseDocs
--allow-auto-truncatebooleanFalseDocs
--enable-tokenizer-batch-encodebooleanFalseDocs
--disable-tokenizer-batch-decodebooleanFalseDocs
--kv-canary-real-datachoicenoneDocs
--disable-cuda-graphdeprecatedFalseDeprecated. SGLang says to set both --cuda-graph-backend options to disabled instead.Docs
--enable-dp-attentiondeprecatedFalseDocs

Dynamic batch tokenizer (3)

FlagTypeDefaultWhat it isOfficial
--enable-dynamic-batch-tokenizerbooleanFalseDocs
--dynamic-batch-tokenizer-batch-sizeinteger32Docs
--dynamic-batch-tokenizer-batch-timeoutnumber0.002Docs

Debug tensor dumps (3)

FlagTypeDefaultWhat it isOfficial
--debug-tensor-dump-output-folderstringNoneDocs
--debug-tensor-dump-layerslistNoneDocs
--debug-tensor-dump-input-filestringNoneDocs

PD disaggregation (10)

FlagTypeDefaultWhat it isOfficial
--disaggregation-modechoicenullChoices: null prefill decodeDocs
--disaggregation-decode-allocation-policychoiceearlyChoices: early prefill_completeDocs
--disaggregation-transfer-backendchoicemooncakeChoices: mooncake nixl ascend fake mori mooncake_tcpDocs
--disaggregation-bootstrap-portinteger8998Docs
--disaggregation-ib-devicestringNoneDocs
--disaggregation-decode-enable-radix-cachebooleanFalseDocs
--disaggregation-decode-enable-offload-kvcachebooleanFalseDocs
--num-reserved-decode-tokensinteger512Docs
--disaggregation-decode-polling-intervalinteger1Docs
--optimistic-prefill-attemptsinteger0Docs

Encode prefill disaggregation (8)

FlagTypeDefaultWhat it isOfficial
--encoder-onlybooleanFalseDocs
--language-onlybooleanFalseDocs
--language-model-onlybooleanFalseDocs
--encoder-transfer-backendchoiceauto
Docs table shows: zmq_to_scheduler
Choices: auto zmq_to_scheduler zmq_to_tokenizer mooncakeDocs
--encoder-urlslist[]Docs
--encoder-bootstrap-portinteger8997Docs
--encoder-register-urlslist[]Docs
--enable-adaptive-dispatch-to-encoderbooleanFalseDocs

Custom weight loader (12)

FlagTypeDefaultWhat it isOfficial
--custom-weight-loaderlistNoneDocs
--weight-loader-disable-mmapbooleanFalseDocs
--weight-loader-prefetch-checkpointsbooleanFalseDocs
--weight-loader-prefetch-num-threadsinteger4Docs
--weight-loader-drop-cache-after-loadbooleanFalseDocs
--remote-instance-weight-loader-seed-instance-ipstringNoneDocs
--remote-instance-weight-loader-seed-instance-service-portintegerNoneDocs
--remote-instance-weight-loader-send-weights-group-portslistNoneDocs
--remote-instance-weight-loader-backendchoicencclChoices: transfer_engine nccl modelexpressDocs
--remote-instance-weight-loader-start-seed-via-transfer-enginebooleanFalseDocs
--engine-info-bootstrap-portinteger6789Docs
--modelexpress-configstringNoneDocs

For PD-Multiplexing (3)

FlagTypeDefaultWhat it isOfficial
--enable-pdmuxbooleanFalseDocs
--pdmux-config-pathstringNoneDocs
--sm-group-numinteger8Docs

Configuration file support (1)

FlagTypeDefaultWhat it isOfficial
--configstringNoneReads options from a YAML file. SGLang's documentation says options on the command line override the file.Docs

For Multi-Modal (7)

FlagTypeDefaultWhat it isOfficial
--enable-broadcast-mm-inputs-processbooleanFalseDocs
--mm-enable-dp-encoderboolean (on/off pair)None
Docs table shows: False
Docs
--mm-process-configJSONNone
Docs table shows: {}
Docs
--allowed-media-domainslist[]
Docs table shows: Unrestricted
Docs
--media-url-max-file-size-mbinteger64Docs
--limit-mm-data-per-requestJSONNoneDocs
--enable-mm-global-cachebooleanFalseDocs

For checkpoint decryption (3)

FlagTypeDefaultWhat it isOfficial
--decrypted-config-filestringNoneDocs
--decrypted-draft-config-filestringNoneDocs
--enable-prefix-mm-cachebooleanFalseDocs

Forward hooks (1)

FlagTypeDefaultWhat it isOfficial
--forward-hookslistNoneDocs

For MindStudio-probe(msProbe) dump (1)

FlagTypeDefaultWhat it isOfficial
--msprobe-dump-configstringNoneDocs

Not in the docs table: model (5)

FlagTypeDefaultWhat it isOfficial
--qsa-indexer-dtypechoiceautoChoices: auto bfloat16 fp8_e4m3Source
--startup-weight-load-modechoiceserialChoices: serial overlapSource
--weight-cache-modechoiceoffChoices: off daemon clientSource
--weight-cache-socketstringNoneSource
--weight-cache-timeoutinteger1800Source

Not in the docs table: serving (11)

FlagTypeDefaultWhat it isOfficial
--enable-response-storebooleanFalseSource
--smg-grpc-modebooleanFalseSource
--grpc-portintegerNoneSource
--grpc-response-timeout-secsinteger300Source
--sidecarstringNoneSource
--sidecar-argslistNoneSource
--http2-initial-connection-window-sizeinteger1048576Source
--trust-request-chat-templatebooleanFalseSource
--return-input-idsbooleanFalseSource
--return-output-idsbooleanFalseSource
--constrained-json-max-whitespace-cntintegerNoneSource

Not in the docs table: memory (9)

FlagTypeDefaultWhat it isOfficial
--radix-eviction-policy-configJSONNoneSource
--enable-session-radix-cachebooleanFalseSource
--hicache-host-memory-modechoicecacheChoices: cache buffer_onlySource
--hicache-host-memory-fractionnumber0.8Source
--hicache-storage-prefetch-retry-poll-intervalinteger8Source
--hicache-storage-prefetch-retry-max-attemptsinteger8Source
--enable-linker-mla-dedupbooleanFalseSource
--enable-flexkvbooleanFalseSource
--flexkv-config-filestringNoneSource

Not in the docs table: scheduling (3)

FlagTypeDefaultWhat it isOfficial
--c128-page-sizeinteger16Source
--swa-prefix-tailsintegerNoneSource
--min-free-slots-delayintegerNoneSource

Not in the docs table: parallelism (11)

FlagTypeDefaultWhat it isOfficial
--gated-launch-portintegerNoneSource
--dwdp-sizeinteger1Source
--enable-dsa-cache-layer-splitbooleanFalseSource
--enable-cp-decode-attn-tpbooleanFalseSource
--enable-tp-lm-head-all-to-allboolean (on/off pair)NoneSource
--enable-shared-experts-attn-tpbooleanFalseSource
--shared-experts-tp-sizeintegerNoneSource
--enable-dense-mlp-attn-tpbooleanFalseSource
--elastic-ep-join-rank-offsetinteger0Source
--elastic-ep-initial-sizeintegerNoneSource
--max-ep-sizeintegerNoneSource

Not in the docs table: speculative decoding (10)

FlagTypeDefaultWhat it isOfficial
--uno-lora-pathstringNoneSource
--speculative-domino-candidate-pool-sizeinteger2048Source
--speculative-dspark-block-sizeintegerNoneSource
--speculative-dspark-sps-table-pathstringNoneSource
--speculative-dspark-confidence-sts-pathstringNoneSource
--speculative-dspark-align-verify-tokens-to-graph-tierbooleanFalseSource
--speculative-use-rejection-samplingbooleanFalseSource
--speculative-draft-kv-cache-dtypechoiceNoneChoices: auto fp8_e5m2 fp8_e4m3 bf16 bfloat16Source
--speculative-draft-sink-sizeintegerNoneSource
--spec-trace-dirstringNoneSource

Not in the docs table: observability (1)

FlagTypeDefaultWhat it isOfficial
--otlp-service-namestringNoneSource

Not in the docs table: disaggregation (9)

FlagTypeDefaultWhat it isOfficial
--decoupled-spec-bind-endpointstringNoneSource
--decoupled-spec-connect-endpointslistNoneSource
--decoupled-spec-rankintegerNoneSource
--decoupled-spec-rolechoicenullChoices: null verifier drafterSource
--disaggregation-enable-kv-checksumbooleanFalseSource
--disaggregation-decode-retraction-backupchoiceNoneChoices: cpu_tensor host_pool noneSource
--disaggregation-decode-extra-slotsintegerNoneSource
--enable-pd-role-switchbooleanFalseSource
--disaggregation-decode-host-receive-thresholdnumber1.0Source

Not in the docs table: multimodal (6)

FlagTypeDefaultWhat it isOfficial
--mm-processor-worker-numinteger0Source
--mm-io-worker-numinteger0Source
--mm-preprocess-cache-size-mbintegerNoneSource
--trust-mm-content-hashesbooleanFalseSource
--mm-global-cache-backendchoicemooncakeChoices: mooncakeSource
--mm-feature-transportchoiceNoneChoices: cpu cuda_ipc cuda_vmmSource

Not in the docs table: graphs (1)

FlagTypeDefaultWhat it isOfficial
--cuda-graph-prefill-max-context
also --context-bucket
integerNoneSource

Not in the docs table: kernels (6)

FlagTypeDefaultWhat it isOfficial
--enable-lean-attentionbooleanNoneSource
--prefill-kv-cache-dequant-dtypechoiceautoChoices: auto nvfp4 fp8_e4m3Source
--dsv4-prefill-backendchoiceautoChoices: auto flashmla_sparse flashmla_sparse_q8Source
--dsv4-attn-backendchoiceautoChoices: auto flashmla flashmla_mega trtllmSource
--dsa-paged-mqa-logits-backendchoiceautoChoices: auto deepgemm cutedsl aiterSource
--enable-dsa-fused-indexerboolean (on/off pair)NoneSource

Not in the docs table: MoE (6)

FlagTypeDefaultWhat it isOfficial
--enable-w4a4-mxfp4-megamoebooleanFalseSource
--deepep-v2-modechoicedirectChoices: direct hybridSource
--fuseep-modechoice2Choices: 1 2Source
--flashinfer-a2a-dispatch-typechoiceNoneChoices: auto bf16 nvfp4 mxfp8Source
--elastic-ep-join-modechoiceNoneChoices: scale recoverSource
--elastic-ep-scale-timeoutnumber600Source

Not in the docs table: runtime features (3)

FlagTypeDefaultWhat it isOfficial
--enable-encoder-swa-bounded-replaybooleanFalseSource
--enable-decoder-swa-bounded-replayboolean (on/off pair)NoneSource
--sampling-mask-max-tokensinteger4096Source

Not in the docs table: communication (4)

FlagTypeDefaultWhat it isOfficial
--enable-scattered-sconvbooleanFalseSource
--boundary-reductionchoiceautoChoices: auto ar rs rsv rs+rsvSource
--disable-aiter-allreduce-fusion-in-prefillbooleanFalseSource
--disable-aiter-allreduce-fusion-in-decodebooleanFalseSource

Not in the docs table: Mamba (5)

FlagTypeDefaultWhat it isOfficial
--mamba-max-states-per-pathinteger-1Source
--linear-attn-verify-backendstringNoneSource
--enable-linear-replayssmbooleanFalseSource
--linear-replayssm-cache-leninteger16Source
--enable-linear-replayssm-specbooleanFalseSource

What this list leaves out

How we built it, and its limits.

We read the argument declarations in the 0.5.23 source as text, without running them, and checked them against the docs table and the project’s own list of flags the table does not yet cover. 441 flags are in the table and 90 are not. Fields the code keeps off the command line are not listed, nor are settings inside JSON values, environment variables or flags added by plugins. A few lists of choices are built when the program starts, so we show none for those. Deprecated spellings are marked in their type or in our words.

Both tools, side by side: the overview

Next

Keep going.

About Server AI Hub

Server AI Hub is our app for looking after a DGX Spark. You do not need it to follow this playbook. It is coming soon to the App Store and the Microsoft Store.

See what Server AI Hub does

Sources

Where these lists come from.

General guidance only, in our own words; flag names, choices and defaults are facts taken from the projects named above. vLLM and SGLang are open-source projects under the Apache 2.0 licence, and their names belong to their owners. NVIDIA and DGX Spark are trademarks of NVIDIA Corporation. 6ixLabs is not affiliated with or endorsed by any of them.