Reference · SGLang
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.
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
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.
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
531 flags
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.
| Flag | Type | Default | What it is | Official |
|---|---|---|---|---|
--model-pathalso --model | string | required: no default | Which model to load: a Hugging Face model name or a local folder. | Docs |
--load-format | choice | auto | Format 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-config | string | {} | Docs | |
--trust-remote-code | boolean | False | Lets 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-length | integer | None | Longest context. Left unset, it comes from the model's config.json. | Docs |
--is-embedding | boolean | False | Docs | |
--revision | string | None | Pins the model to a branch, tag or commit. | Docs |
--model-impl | string | auto | Docs | |
--model-config-parser | string | auto | Docs | |
--prefill-only-disable-kv-cache | boolean | False | Docs | |
--enable-multimodal | boolean | None | Docs | |
--tokenizer-path | string | None | Docs | |
--tokenizer-mode | choice | auto | Choices: auto slow | Docs |
--tokenizer-backend | choice | huggingface | Choices: huggingface fastokens | Docs |
--tokenizer-worker-num | integer | 1 | Docs | |
--detokenizer-worker-num | integer | 1 | Docs | |
--skip-tokenizer-init | boolean | False | Docs |
| Flag | Type | Default | What it is | Official |
|---|---|---|---|---|
--checkpoint-engine-wait-weights-before-ready | boolean | False | Docs | |
--nccl-port | integer | None | Docs | |
--host | string | loopback address (this computer only) | Network address the HTTP server listens on. | Docs |
--port | integer | 30000 | Network port of the HTTP server. | Docs |
--fastapi-root-path | string | "" | Docs | |
--enable-http-worker-reuseport | boolean | False | Docs | |
--grpc-mode | deprecated | False | Docs | |
--skip-server-warmup | boolean | False | Skips the warm-up run before serving. | Docs |
--warmups | string | None | Docs | |
--enable-http2 | boolean | False | Docs | |
--http2-max-concurrent-streams | integer | 200 | Docs | |
--ssl-keyfile | string | None | Key file for serving over TLS. | Docs |
--ssl-certfile | string | None | Docs | |
--ssl-ca-certs | string | None | Docs | |
--ssl-keyfile-password | string | None | Docs | |
--enable-ssl-refresh | boolean | False | Docs |
| Flag | Type | Default | What it is | Official |
|---|---|---|---|---|
--dtype | choice | auto | Number format for the weights and the working values. Choices: auto half float16 bfloat16 float float32 | Docs |
--quantization | choice | None | Which 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-path | string | None | Docs | |
--kv-cache-dtype | choice | auto | Number format of the KV cache. Choices: auto fp8_e5m2 fp8_e4m3 mxfp8 bf16 bfloat16 nvfp4 fp4_mx_block16 | Docs |
--modelopt-quant | string | None | Docs | |
--modelopt-checkpoint-restore-path | string | None | Docs | |
--modelopt-checkpoint-save-path | string | None | Docs | |
--modelopt-export-path | string | None | Docs | |
--quantize-and-serve | boolean | False | Docs | |
--rl-quant-profile | string | None | Docs | |
--enable-quant-communications | boolean | False | Docs | |
--enable-fp32-lm-head | boolean | False | Docs | |
--enable-tf32-matmul | boolean (on/off pair) | NoneDocs table shows: False | Docs |
| Flag | Type | Default | What it is | Official |
|---|---|---|---|---|
--radix-eviction-policy | choice | lru | Choices: lru lfu slru priority tlru | Docs |
--enable-page-major-kv-layout | boolean | False | Docs | |
--enable-unified-memory | boolean | False | Docs | |
--mem-fraction-static | number | None | Share 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-requests | integer | None | Most requests running at once. | Docs |
--max-queued-requests | integer | None | Most requests waiting. SGLang says it is ignored in disaggregation mode. | Docs |
--max-total-tokens | integer | None | Size 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-size | integer | None | Most tokens in one piece when a long prompt is read in pieces; -1 turns that off. | Docs |
--prefill-decode-interval | integer | None | Docs | |
--prefill-decode-interval-min-bs | integer | 0 | Docs | |
--enable-dynamic-chunking | boolean | False | Docs | |
--max-prefill-tokens | integer | 16384 | Docs | |
--prefill-max-requests | integer | None | Docs | |
--schedule-policy | choice | fcfs | Order in which requests are scheduled. Choices: lpm random fcfs dfs-weight lof priority routing-key hrrn shortest-prefill-first | Docs |
--enable-priority-scheduling | boolean | False | Docs | |
--disable-priority-preemption | boolean | False | Docs | |
--default-priority-value | integer | None | Docs | |
--abort-on-priority-when-disabled | boolean | False | Docs | |
--schedule-low-priority-values-first | boolean | False | Docs | |
--priority-scheduling-preemption-threshold | integer | 10 | Docs | |
--retraction-policy | choice | length | Choices: length priority | Docs |
--schedule-conservativeness | number | 1.0 | How cautious scheduling is. SGLang suggests a higher value if requests are often withdrawn and restarted. | Docs |
--page-size | integer | NoneDocs table shows: 1 | Number of tokens in one cache page. | Docs |
--swa-full-tokens-ratio | number | NoneDocs table shows: 0.8 | Docs | |
--disable-hybrid-swa-memory | boolean | False | Docs | |
--enable-prefill-delayer | boolean | False | Docs | |
--prefill-delayer-max-delay-passes | integer | 30 | Docs | |
--prefill-delayer-token-usage-low-watermark | number | None | Docs | |
--prefill-delayer-forward-passes-buckets | list | None | Docs | |
--prefill-delayer-wait-seconds-buckets | list | None | Docs | |
--prefill-delayer-queue-min-ratio | number | None | Docs | |
--prefill-delayer-max-delay-ms | number | None | Docs |
| Flag | Type | Default | What it is | Official |
|---|---|---|---|---|
--download-dir | string | None | Folder for models downloaded from Hugging Face. | Docs |
--model-checksum | string | None | Docs | |
--load-snapshot-publish-interval | integer | 15 | Docs | |
--device | string | None | Docs | |
--base-gpu-id | integer | 0 | Docs | |
--gpu-id-step | integer | 1 | Docs | |
--random-seed | integer | None | Random seed. | Docs |
--mlx-enable-sampling | boolean | False | Docs | |
--watchdog-timeout | number | 300 | Docs | |
--soft-watchdog-timeout | number | None | Docs | |
--sleep-on-idle | boolean | False | Docs | |
--use-ray | boolean | False | Docs | |
--dist-timeout | integer | None | Docs | |
--tp-sizealso --tensor-parallel-size | integer | 1 | Tensor parallelism size. | Docs |
--dcp-sizealso --decode-context-parallel-size | integer | 1 | Docs | |
--pp-sizealso --pipeline-parallel-size | integer | 1 | Pipeline parallelism size. | Docs |
--pp-max-micro-batch-size | integer | None | Docs | |
--pp-async-batch-depth | integer | 0 | Docs | |
--attn-cp-sizealso --attention-context-parallel-size | integer | 1 | Docs | |
--moe-dp-sizealso --moe-data-parallel-size | integer | 1 | Docs | |
--dcp-comm-backend | choice | None | Choices: ag_rs a2a fi_a2a | Docs |
--dcp-replicate-q-proj | boolean (on/off pair) | None | Docs | |
--stream-interval | integer | 1 | Docs | |
--batch-notify-size | integer | 16 | Docs | |
--stream-response-default-include-usage | boolean | False | Docs | |
--incremental-streaming-output | boolean | False | Docs | |
--enable-streaming-session | boolean | False | Docs | |
--constrained-json-whitespace-pattern | string | None | Docs | |
--constrained-json-disable-any-whitespace | boolean | False | Docs |
| Flag | Type | Default | What it is | Official |
|---|---|---|---|---|
--log-level | string | info | How much the server logs. | Docs |
--log-level-http | string | None | Docs | |
--log-requests | boolean | False | Docs | |
--log-requests-level | choice | 2 | Choices: 0 1 2 3 | Docs |
--log-requests-format | choice | text | Choices: text json | Docs |
--log-requests-target | list | None | Docs | |
--uvicorn-access-log-exclude-prefixes | list | [] | Docs | |
--crash-dump-folder | string | None | Docs | |
--show-time-cost | boolean | False | Docs | |
--enable-metrics | boolean | False | Turns on Prometheus metrics. | Docs |
--smg-http-sidecar-portalso --grpc-http-sidecar-port | integer | None | Docs | |
--enable-mfu-metrics | boolean | False | Docs | |
--enable-metrics-for-all-schedulers | boolean | False | Docs | |
--tokenizer-metrics-custom-labels-header | string | x-custom-labels | Docs | |
--tokenizer-metrics-allowed-custom-labels | list | None | Docs | |
--extra-metric-labels | JSON | None | Docs | |
--bucket-time-to-first-token | list | None | Docs | |
--bucket-inter-token-latency | list | None | Docs | |
--bucket-e2e-request-latency | list | None | Docs | |
--prompt-tokens-buckets | list | None | Docs | |
--generation-tokens-buckets | list | None | Docs | |
--gc-warning-threshold-secs | number | 0.0 | Docs | |
--decode-log-interval | integer | 40 | Docs | |
--enable-request-time-stats-logging | boolean | False | Docs | |
--kv-events-config | string | None | Docs | |
--load-publish-endpoint | string | None | Docs | |
--enable-forward-pass-metrics | boolean | False | Docs | |
--forward-pass-metrics-worker-id | string | "" | Docs | |
--forward-pass-metrics-ipc-name | string | None | Docs | |
--enable-trace | boolean | False | Docs | |
--trace-modules | string | request | Docs | |
--otlp-traces-endpoint | string | localhost:4317 | Docs |
| Flag | Type | Default | What it is | Official |
|---|---|---|---|---|
--enable-lora | boolean | NoneDocs table shows: False | Allows LoRA adapters. SGLang also turns it on when --lora-paths is given. | Docs |
--enable-lora-overlap-loading | boolean | NoneDocs table shows: False | Docs | |
--max-lora-rank | integer | None | Docs | |
--lora-target-modules | string | None | Docs | |
--lora-paths | custom (LoRAPathAction) | None | Docs | |
--max-loaded-loras | integer | None | Docs | |
--max-loras-per-batch | integer | 8 | Most adapters in one running batch; a request with no adapter counts as one. | Docs |
--lora-eviction-policy | choice | lru | Choices: lru fifo | Docs |
--lora-backend | choice | csgmv | Choices: triton csgmv ascend torch_native triton_v2 | Docs |
--max-lora-chunk-size | choice | 16 | Choices: 16 32 64 128 | Docs |
--experts-shared-outer-loras | boolean (on/off pair) | None | Docs | |
--lora-use-virtual-experts | boolean | False | Docs | |
--lora-strict-loading | boolean (on/off pair) | False | Docs | |
--lora-drain-wait-threshold | number | 0.0 | Docs |
| Flag | Type | Default | What it is | Official |
|---|---|---|---|---|
--attention-backend | choice | None | Which 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-backend | choice | None | 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 |
--enable-nvidia-megakernel | boolean | False | Docs | |
--enable-amd-monokernel | boolean | False | Docs | |
--prefill-attention-backend | choice | None | 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 |
--grammar-backend | choice | None | Choices: xgrammar outlines llguidance none | Docs |
--fp8-gemm-backend | choice | auto | Choices: auto deep_gemm flashinfer_trtllm flashinfer_cutlass flashinfer_deepgemm flashinfer_cutedsl cutlass triton aiter | Docs |
--fp4-gemm-backend | choice | auto | Choices: auto flashinfer_cudnn flashinfer_cutedsl flashinfer_cutlass flashinfer_trtllm marlin | Docs |
--bf16-gemm-backend | choice | auto | Choices: auto cutedsl gemv torch | Docs |
--dsa-prefill-backend | choice | NoneDocs 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_xpu | Docs |
--dsa-triton-union | choice | 0 | Choices: 0 2 4 | Docs |
--dsa-decode-backend | choice | NoneDocs table shows: Auto (hardware-dependent) | Choices: flashmla_sparse flashmla_sparse_q8 flashmla_kv flashmla_auto flashinfer_sparse_mla fa3 tilelang triton aiter trtllm intel_xpu | Docs |
--dsa-topk-backend | choice | sgl-kernel | Choices: sgl-kernel torch flashinfer | Docs |
--disable-flashinfer-autotune | boolean | False | Docs | |
--flashinfer-autotune-skip-ops | list | None | Docs | |
--enable-deepseek-v4-fp4-indexer | boolean | False | Docs | |
--radix-cache-backend | string | None | Docs | |
--mm-attention-backend | choice | None | Choices: sdpa fa3 fa4 triton_attn ascend_attn aiter_attn flashinfer_cudnn amx_attn xpu_attn | Docs |
--sampling-backend | choice | None | Docs | |
--monokernel-backend | deprecated | FalseDocs table shows: None | Choices: amd | Docs |
| Flag | Type | Default | What it is | Official |
|---|---|---|---|---|
--speculative-algorithm | string | None | Which speculative decoding method to use. | Docs |
--speculative-draft-model-pathalso --speculative-draft-model | string | None | The draft model for speculative decoding: a Hugging Face name or a local folder. | Docs |
--speculative-draft-model-revision | string | None | Docs | |
--speculative-draft-load-format | choice | None | 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 |
--speculative-num-steps | integer | None | Docs | |
--speculative-eagle-topk | integer | None | Docs | |
--speculative-num-draft-tokens | integer | None | Docs | |
--speculative-dflash-block-size | integer | None | Docs | |
--speculative-accept-threshold-single | number | 1.0 | Docs | |
--speculative-accept-threshold-acc | number | 1.0 | Docs | |
--speculative-use-block-verification | boolean | False | Docs | |
--speculative-token-map | string | None | Docs | |
--speculative-attention-mode | choice | prefill | Choices: prefill decode | Docs |
--speculative-draft-attention-backend | string | None | Docs | |
--speculative-dsa-topk-backend | choice | sgl-kernel | Choices: sgl-kernel torch flashinfer | Docs |
--speculative-draft-window-size | integer | None | Docs | |
--speculative-moe-runner-backend | choice | None | Choices: 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_xpu | Docs |
--speculative-moe-a2a-backend | choice | None | Choices: none deepep mooncake nixl mori ascend_fuseep flashinfer megamoe deepep_v2 pplx ascend_tp | Docs |
--speculative-enable-w4a4-mxfp4-megamoe | boolean (on/off pair) | None | Docs | |
--speculative-draft-model-quantization | choice | None | 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 |
| Flag | Type | Default | What it is | Official |
|---|---|---|---|---|
--speculative-adaptive | boolean | False | Docs | |
--speculative-adaptive-config | string | None | Docs | |
--speculative-ngram-min-bfs-breadth | integer | 1 | Docs | |
--speculative-ngram-max-bfs-breadth | integer | 10 | Docs | |
--speculative-ngram-match-type | choice | BFS | Choices: BFS PROB | Docs |
--speculative-ngram-max-trie-depth | integer | 18 | Docs | |
--speculative-ngram-capacity | integer | 10000000 | Docs | |
--speculative-ngram-external-corpus-path | string | None | Docs | |
--speculative-ngram-external-sam-budget | integer | 0 | Docs | |
--speculative-ngram-external-corpus-max-tokens | integer | 10000000 | Docs |
| Flag | Type | Default | What it is | Official |
|---|---|---|---|---|
--enable-multi-layer-eagle | boolean | False | Docs |
| Flag | Type | Default | What it is | Official |
|---|---|---|---|---|
--moe-a2a-backend | choice | none | Choices: none deepep mooncake nixl mori ascend_fuseep flashinfer megamoe deepep_v2 pplx ascend_tp flashinfer_megamoe | Docs |
--moe-runner-backend | choice | auto | Choices: 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_xpu | Docs |
--flashinfer-mxfp4-moe-precision | choice | default | Choices: default bf16 fp8 | Docs |
--deepep-mode | choice | auto | Choices: auto normal low_latency | Docs |
--deepep-dispatcher-output-dtype | choice | auto | Choices: auto bf16 fp8 int8 nvfp4 | Docs |
--ep-num-redundant-experts | integer | 0 | Docs | |
--ep-dispatch-algorithm | choice | None | Choices: static dynamic fake lp | Docs |
--init-expert-location | string | trivial | Docs | |
--enable-eplb | boolean | False | Docs | |
--eplb-algorithm | string | auto | Docs | |
--eplb-rebalance-num-iterations | integer | 1000 | Docs | |
--eplb-rebalance-layers-per-chunk | integer | None | Docs | |
--eplb-min-rebalancing-utilization-threshold | number | 1.0 | Docs | |
--expert-distribution-recorder-mode | choice | None | Choices: stat stat_approx per_pass per_token | Docs |
--expert-distribution-recorder-buffer-size | integer | None | Docs | |
--expert-balancedness-report-mode | choice | off | Choices: off server_log prometheus both | Docs |
--deepep-config | string | None | Docs | |
--elastic-ep-backend | choice | None | Choices: none mooncake nixl | Docs |
--enable-elastic-expert-backup | boolean | False | Docs | |
--mooncake-ib-device | string | None | Docs | |
--enable-waterfill | boolean | False | Docs | |
--enforce-disable-flashinfer-allreduce-fusion | boolean | False | Docs | |
--flashinfer-allreduce-fusion-backend | choice | None | Choices: auto trtllm mnnvl cutedsl | Docs |
--enable-aiter-allreduce-fusion | boolean | False | Docs | |
--ep-sizealso --expert-parallel-sizealso --ep | integer | 1 | Docs | |
--moe-dense-tp-size | integer | None | Docs | |
--enable-flashinfer-allreduce-fusion | deprecated | False | Docs |
| Flag | Type | Default | What it is | Official |
|---|---|---|---|---|
--mamba-backend | choice | triton | Choices: triton flashinfer | Docs |
--mamba-ssm-dtype | choice | NoneDocs table shows: Auto (from model config) | Choices: float32 bfloat16 float16 | Docs |
--enable-mamba-cache-stochastic-rounding | boolean | False | Docs | |
--mamba-cache-philox-rounds | integer | 0 | Docs | |
--mamba-radix-cache-strategy | choice | auto | Choices: auto no_buffer extra_buffer extra_buffer_lazy | Docs |
--mamba-track-interval | integer | 256 | Docs | |
--enable-int8-mamba-checkpoint | boolean | False | Docs | |
--int8-mamba-ckpt-size | integer | None | Docs | |
--linear-attn-backend | choice | triton | Choices: triton cutedsl flashinfer flashkda nvidia_kda ptx_kda helion intel_xpu | Docs |
--linear-attn-decode-backend | choice | None | Choices: triton cutedsl flashinfer flashkda nvidia_kda ptx_kda helion intel_xpu | Docs |
--linear-attn-prefill-backend | choice | None | Choices: triton cutedsl flashinfer flashkda nvidia_kda ptx_kda helion intel_xpu | Docs |
--max-mamba-cache-size | integer | None | Docs | |
--mamba-full-memory-ratio | number | NoneDocs table shows: 0.9 | Docs |
| Flag | Type | Default | What it is | Official |
|---|---|---|---|---|
--enable-hierarchical-cachealso --enable-hicache | boolean | False | Turns on the hierarchical cache. | Docs |
--hicache-ratio | number | NoneDocs table shows: 2.0 | Docs | |
--hicache-size | integer | 0 | Docs | |
--hicache-write-policy | choice | write_through | Choices: write_back write_through write_through_selective | Docs |
--hicache-io-backend | choice | kernel | Choices: direct kernel kernel_ascend | Docs |
--hicache-mem-layout | choice | page_first | Choices: layer_first page_first page_first_direct page_first_kv_split page_head | Docs |
--hicache-storage-backend | choice | None | Choices: file sim mooncake npu_memcache hf3fs nixl aibrix dynamic eic simm mori shm tensorcast seaweedfs | Docs |
--hicache-storage-prefetch-policy | choice | timeout | Choices: best_effort wait_complete timeout | Docs |
--hicache-storage-backend-extra-config | string | None | Docs | |
--enable-unified-cache-external-linker | boolean | False | Docs | |
--unified-cache-external-linker-backend | choice | mooncake | Choices: mooncake mori dynamic | Docs |
--unified-cache-external-linker-config | JSON | None | Docs |
| Flag | Type | Default | What it is | Official |
|---|---|---|---|---|
--cpu-offload-gb | integer | 0 | Docs | |
--offload-group-size | integer | -1 | Docs | |
--offload-num-in-group | integer | 1 | Docs | |
--offload-prefetch-step | integer | 1 | Docs | |
--offload-mode | string | cpu | Docs | |
--ple-offload-embedding | boolean (on/off pair) | None | Docs | |
--ple-offload-backend | choice | pinned | Choices: pinned file | Docs |
--ple-offload-dir | string | NoneDocs table shows: $SGLANG_CACHE_DIR/ple/ | Docs |
| Flag | Type | Default | What it is | Official |
|---|---|---|---|---|
--enable-mis | boolean | False | Docs |
| Flag | Type | Default | What it is | Official |
|---|---|---|---|---|
--delete-ckpt-after-loading | boolean | False | Docs | |
--enable-deterministic-inference | boolean | False | Turns on deterministic operations that do not vary with batching. | Docs |
--rl-on-policy-target | choice | None | Choices: fsdp | Docs |
--enable-two-batch-overlap | boolean | False | Docs | |
--enable-single-batch-overlap | boolean | False | Docs | |
--tbo-token-distribution-threshold | number | 0.48 | Docs | |
--enable-fused-moe-sum-all-reduce | boolean | False | Docs | |
--disable-flashinfer-cutlass-moe-fp4-allgather | boolean | False | Docs | |
--disable-shared-experts-fusion | boolean | False | Docs | |
--enforce-shared-experts-fusion | boolean | False | Docs | |
--enable-layerwise-nvtx-marker | boolean | False | Docs | |
--enable-nccl-nvls | boolean | False | Docs | |
--enable-symm-mem | boolean | False | Docs | |
--disable-custom-all-reduce | boolean | False | Docs | |
--enable-mscclpp | boolean | False | Docs | |
--enable-torch-symm-mem | boolean | False | Docs | |
--pre-warm-nccl | boolean | False | Docs | |
--cuda-graph-config | string | None | CUDA graph settings for each phase, as JSON. It takes priority over the per-phase options. | Docs |
--cuda-graph-backend-decode | choice | None | CUDA graph method for the decode phase. Choices: full breakable disabled | Docs |
--cuda-graph-backend-prefill | choice | None | CUDA graph method for the prefill phase. Choices: full breakable disabled | Docs |
--cuda-graph-max-bs-decode | integer | None | Docs | |
--cuda-graph-max-bs-prefill | integer | None | Docs | |
--cuda-graph-max-seq-len-prefill | integer | None | Docs | |
--cuda-graph-bs-decode | list | None | Docs | |
--cuda-graph-bs-prefill | list | None | Docs | |
--disable-prefill-cuda-graph | boolean | False | Docs | |
--disable-decode-cuda-graph | boolean | False | Docs | |
--disable-cuda-graph-padding | boolean | False | Docs | |
--enable-profile-cuda-graph | boolean | False | Docs | |
--enable-cudagraph-gc | boolean | False | Docs | |
--debug-cuda-graph | boolean | False | Docs | |
--enable-torch-compile | boolean | False | Uses torch.compile. SGLang calls it experimental. | Docs |
--enable-torch-compile-debug-mode | boolean | False | Docs | |
--torch-compile-max-bs | integer | 32 | Docs | |
--triton-attention-reduce-in-fp32 | boolean | False | Docs | |
--triton-attention-num-kv-splits | integer | 8 | Docs | |
--triton-attention-split-tile-size | integer | None | Docs | |
--flashinfer-mla-disable-ragged | boolean | False | Docs | |
--enable-fused-qk-norm-rope | boolean (on/off pair) | None | Docs | |
--enable-precise-embedding-interpolation | boolean | False | Docs | |
--kv-canary | choice | none | Choices: none log raise | Docs |
--kv-canary-sweep-interval | integer | 0 | Docs | |
--numa-node | list | None | Docs | |
--gc-threshold | list | NoneDocs table shows: — | Docs | |
--enable-prefill-cp | boolean | False | Docs | |
--cp-strategy | choice | None | Choices: zigzag interleave | Docs |
--enable-kv-cache-sharding | boolean | False | Docs | |
--enable-dp-attention-local-control-broadcast | boolean | False | Docs | |
--enable-dp-lm-head | boolean | False | Docs | |
--enable-attn-tp-input-scattered | boolean | False | Docs | |
--enable-layernorm-sp | boolean | False | Docs | |
--enable-megamoe-for-layernorm-sp | boolean | False | Docs | |
--disable-attn-tp-gather | boolean | False | Docs | |
--enable-p2p-check | boolean | False | Docs | |
--disable-radix-cache | boolean | False | Turns off RadixAttention, SGLang's reuse of shared prompt beginnings. | Docs |
--disable-chunked-prefix-cache | boolean | False | Docs | |
--disable-overlap-schedule | boolean | False | Docs | |
--num-continuous-decode-steps | integer | 1 | Docs | |
--scheduler-recv-interval | integer | 1 | Docs | |
--enable-mixed-chunk | boolean | False | Docs | |
--enable-memory-saver | boolean | False | Docs | |
--enable-weights-cpu-backup | boolean | False | Docs | |
--enable-draft-weights-cpu-backup | boolean | False | Docs | |
--enable-custom-logit-processor | boolean | False | Docs | |
--enable-watermark | boolean | False | Docs | |
--watermark-config | string | None | Docs | |
--enable-return-routed-experts | boolean | False | Docs | |
--enable-return-indexer-topk | boolean | False | Docs | |
--disable-outlines-disk-cache | boolean | False | Docs | |
--image-processor-backend | choice | auto | Choices: auto torchvision pil | Docs |
--disable-fast-image-processor | deprecated | False | Docs | |
--allow-auto-truncate | boolean | False | Docs | |
--enable-tokenizer-batch-encode | boolean | False | Docs | |
--disable-tokenizer-batch-decode | boolean | False | Docs | |
--kv-canary-real-data | choice | none | Docs | |
--disable-cuda-graph | deprecated | False | Deprecated. SGLang says to set both --cuda-graph-backend options to disabled instead. | Docs |
--enable-dp-attention | deprecated | False | Docs |
| Flag | Type | Default | What it is | Official |
|---|---|---|---|---|
--disaggregation-mode | choice | null | Choices: null prefill decode | Docs |
--disaggregation-decode-allocation-policy | choice | early | Choices: early prefill_complete | Docs |
--disaggregation-transfer-backend | choice | mooncake | Choices: mooncake nixl ascend fake mori mooncake_tcp | Docs |
--disaggregation-bootstrap-port | integer | 8998 | Docs | |
--disaggregation-ib-device | string | None | Docs | |
--disaggregation-decode-enable-radix-cache | boolean | False | Docs | |
--disaggregation-decode-enable-offload-kvcache | boolean | False | Docs | |
--num-reserved-decode-tokens | integer | 512 | Docs | |
--disaggregation-decode-polling-interval | integer | 1 | Docs | |
--optimistic-prefill-attempts | integer | 0 | Docs |
| Flag | Type | Default | What it is | Official |
|---|---|---|---|---|
--encoder-only | boolean | False | Docs | |
--language-only | boolean | False | Docs | |
--language-model-only | boolean | False | Docs | |
--encoder-transfer-backend | choice | autoDocs table shows: zmq_to_scheduler | Choices: auto zmq_to_scheduler zmq_to_tokenizer mooncake | Docs |
--encoder-urls | list | [] | Docs | |
--encoder-bootstrap-port | integer | 8997 | Docs | |
--encoder-register-urls | list | [] | Docs | |
--enable-adaptive-dispatch-to-encoder | boolean | False | Docs |
| Flag | Type | Default | What it is | Official |
|---|---|---|---|---|
--custom-weight-loader | list | None | Docs | |
--weight-loader-disable-mmap | boolean | False | Docs | |
--weight-loader-prefetch-checkpoints | boolean | False | Docs | |
--weight-loader-prefetch-num-threads | integer | 4 | Docs | |
--weight-loader-drop-cache-after-load | boolean | False | Docs | |
--remote-instance-weight-loader-seed-instance-ip | string | None | Docs | |
--remote-instance-weight-loader-seed-instance-service-port | integer | None | Docs | |
--remote-instance-weight-loader-send-weights-group-ports | list | None | Docs | |
--remote-instance-weight-loader-backend | choice | nccl | Choices: transfer_engine nccl modelexpress | Docs |
--remote-instance-weight-loader-start-seed-via-transfer-engine | boolean | False | Docs | |
--engine-info-bootstrap-port | integer | 6789 | Docs | |
--modelexpress-config | string | None | Docs |
| Flag | Type | Default | What it is | Official |
|---|---|---|---|---|
--config | string | None | Reads options from a YAML file. SGLang's documentation says options on the command line override the file. | Docs |
| Flag | Type | Default | What it is | Official |
|---|---|---|---|---|
--enable-broadcast-mm-inputs-process | boolean | False | Docs | |
--mm-enable-dp-encoder | boolean (on/off pair) | NoneDocs table shows: False | Docs | |
--mm-process-config | JSON | NoneDocs table shows: {} | Docs | |
--allowed-media-domains | list | []Docs table shows: Unrestricted | Docs | |
--media-url-max-file-size-mb | integer | 64 | Docs | |
--limit-mm-data-per-request | JSON | None | Docs | |
--enable-mm-global-cache | boolean | False | Docs |
| Flag | Type | Default | What it is | Official |
|---|---|---|---|---|
--forward-hooks | list | None | Docs |
| Flag | Type | Default | What it is | Official |
|---|---|---|---|---|
--msprobe-dump-config | string | None | Docs |
| Flag | Type | Default | What it is | Official |
|---|---|---|---|---|
--qsa-indexer-dtype | choice | auto | Choices: auto bfloat16 fp8_e4m3 | Source |
--startup-weight-load-mode | choice | serial | Choices: serial overlap | Source |
--weight-cache-mode | choice | off | Choices: off daemon client | Source |
--weight-cache-socket | string | None | Source | |
--weight-cache-timeout | integer | 1800 | Source |
| Flag | Type | Default | What it is | Official |
|---|---|---|---|---|
--enable-response-store | boolean | False | Source | |
--smg-grpc-mode | boolean | False | Source | |
--grpc-port | integer | None | Source | |
--grpc-response-timeout-secs | integer | 300 | Source | |
--sidecar | string | None | Source | |
--sidecar-args | list | None | Source | |
--http2-initial-connection-window-size | integer | 1048576 | Source | |
--trust-request-chat-template | boolean | False | Source | |
--return-input-ids | boolean | False | Source | |
--return-output-ids | boolean | False | Source | |
--constrained-json-max-whitespace-cnt | integer | None | Source |
| Flag | Type | Default | What it is | Official |
|---|---|---|---|---|
--radix-eviction-policy-config | JSON | None | Source | |
--enable-session-radix-cache | boolean | False | Source | |
--hicache-host-memory-mode | choice | cache | Choices: cache buffer_only | Source |
--hicache-host-memory-fraction | number | 0.8 | Source | |
--hicache-storage-prefetch-retry-poll-interval | integer | 8 | Source | |
--hicache-storage-prefetch-retry-max-attempts | integer | 8 | Source | |
--enable-linker-mla-dedup | boolean | False | Source | |
--enable-flexkv | boolean | False | Source | |
--flexkv-config-file | string | None | Source |
| Flag | Type | Default | What it is | Official |
|---|---|---|---|---|
--gated-launch-port | integer | None | Source | |
--dwdp-size | integer | 1 | Source | |
--enable-dsa-cache-layer-split | boolean | False | Source | |
--enable-cp-decode-attn-tp | boolean | False | Source | |
--enable-tp-lm-head-all-to-all | boolean (on/off pair) | None | Source | |
--enable-shared-experts-attn-tp | boolean | False | Source | |
--shared-experts-tp-size | integer | None | Source | |
--enable-dense-mlp-attn-tp | boolean | False | Source | |
--elastic-ep-join-rank-offset | integer | 0 | Source | |
--elastic-ep-initial-size | integer | None | Source | |
--max-ep-size | integer | None | Source |
| Flag | Type | Default | What it is | Official |
|---|---|---|---|---|
--uno-lora-path | string | None | Source | |
--speculative-domino-candidate-pool-size | integer | 2048 | Source | |
--speculative-dspark-block-size | integer | None | Source | |
--speculative-dspark-sps-table-path | string | None | Source | |
--speculative-dspark-confidence-sts-path | string | None | Source | |
--speculative-dspark-align-verify-tokens-to-graph-tier | boolean | False | Source | |
--speculative-use-rejection-sampling | boolean | False | Source | |
--speculative-draft-kv-cache-dtype | choice | None | Choices: auto fp8_e5m2 fp8_e4m3 bf16 bfloat16 | Source |
--speculative-draft-sink-size | integer | None | Source | |
--spec-trace-dir | string | None | Source |
| Flag | Type | Default | What it is | Official |
|---|---|---|---|---|
--otlp-service-name | string | None | Source |
| Flag | Type | Default | What it is | Official |
|---|---|---|---|---|
--decoupled-spec-bind-endpoint | string | None | Source | |
--decoupled-spec-connect-endpoints | list | None | Source | |
--decoupled-spec-rank | integer | None | Source | |
--decoupled-spec-role | choice | null | Choices: null verifier drafter | Source |
--disaggregation-enable-kv-checksum | boolean | False | Source | |
--disaggregation-decode-retraction-backup | choice | None | Choices: cpu_tensor host_pool none | Source |
--disaggregation-decode-extra-slots | integer | None | Source | |
--enable-pd-role-switch | boolean | False | Source | |
--disaggregation-decode-host-receive-threshold | number | 1.0 | Source |
| Flag | Type | Default | What it is | Official |
|---|---|---|---|---|
--mm-processor-worker-num | integer | 0 | Source | |
--mm-io-worker-num | integer | 0 | Source | |
--mm-preprocess-cache-size-mb | integer | None | Source | |
--trust-mm-content-hashes | boolean | False | Source | |
--mm-global-cache-backend | choice | mooncake | Choices: mooncake | Source |
--mm-feature-transport | choice | None | Choices: cpu cuda_ipc cuda_vmm | Source |
| Flag | Type | Default | What it is | Official |
|---|---|---|---|---|
--cuda-graph-prefill-max-contextalso --context-bucket | integer | None | Source |
| Flag | Type | Default | What it is | Official |
|---|---|---|---|---|
--enable-lean-attention | boolean | None | Source | |
--prefill-kv-cache-dequant-dtype | choice | auto | Choices: auto nvfp4 fp8_e4m3 | Source |
--dsv4-prefill-backend | choice | auto | Choices: auto flashmla_sparse flashmla_sparse_q8 | Source |
--dsv4-attn-backend | choice | auto | Choices: auto flashmla flashmla_mega trtllm | Source |
--dsa-paged-mqa-logits-backend | choice | auto | Choices: auto deepgemm cutedsl aiter | Source |
--enable-dsa-fused-indexer | boolean (on/off pair) | None | Source |
| Flag | Type | Default | What it is | Official |
|---|---|---|---|---|
--enable-w4a4-mxfp4-megamoe | boolean | False | Source | |
--deepep-v2-mode | choice | direct | Choices: direct hybrid | Source |
--fuseep-mode | choice | 2 | Choices: 1 2 | Source |
--flashinfer-a2a-dispatch-type | choice | None | Choices: auto bf16 nvfp4 mxfp8 | Source |
--elastic-ep-join-mode | choice | None | Choices: scale recover | Source |
--elastic-ep-scale-timeout | number | 600 | Source |
No flag matches. Try fewer letters.
What this list leaves out
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.
Next
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.
Sources
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.