SGLang 1.0 Upgrade Audit: Removed Flags, Admin Routes That Return 403, and a Router Swap to Test Before You Roll Out
TL;DR: SGLang v1.0.0 (tagged 2026-12-04, 1,835 PRs from 418 contributors) is mostly a contract change, not a feature drop. Settings the server used to adjust or ignore with a warning now stop startup or return a 4xx. Fla
TL;DR: SGLang v1.0.0 (tagged 2026-12-04, 1,835 PRs from 418 contributors) is mostly a contract change, not a feature drop. Settings the server used to adjust or ignore with a warning now stop startup or return a 4xx. Flags deprecated during 0.5 are gone, admin routes return 403 unless you pass --admin-api-key, and sgl-model-gateway is replaced by sgl-router. If your launch scripts are old, the first thing you will see is a server that refuses to boot. That is the intended behavior, and this audit shows how to find every refusal on staging before production does.
What actually changed in SGLang 1.0 for operators?
The release notes open with three behavior shifts before any speed numbers:
- Unsupported settings are rejected. In the cases fixed in this release, a setting the server cannot honor now stops the server, or fails the request, with an error naming the setting. In 0.5 it was adjusted or ignored.
- A cleaner interface. Flags, choice values and environment variables deprecated during 0.5 are removed. Using one stops startup and names the replacement, or says the option had no effect and can be dropped.
- Invalid requests get a 4xx at the entry point instead of failing later or crashing.
The notes also state a policy for 1.x: a silent override is a bug, a documented flag or route is not removed without an earlier 1.x deprecation warning, and experimental features are labeled. A written compatibility policy is still to come, so treat the three bullets as intent, not a contract document yet.
For an operator this changes what "upgrade risk" means. Before, risk was a behavior regression you noticed in dashboards. Now a large part of the risk is a fast, loud failure at launch, which is far cheaper to catch if you test for it deliberately.
Which launch flags did 1.0 remove?
The release publishes a replacement table. These are the rows most likely to appear in an existing launch command or YAML --config:
| Removed | Use instead |
|---|---|
--disable-cuda-graph |
--disable-decode-cuda-graph --disable-prefill-cuda-graph |
--dp-size <N> --enable-dp-attention |
--attn-dp-size <N> |
--monokernel-backend amd / msa
|
--enable-amd-monokernel / --enable-nvidia-megakernel
|
--enable-flashinfer-allreduce-fusion |
--flashinfer-allreduce-fusion-backend auto |
--disable-fast-image-processor |
--image-processor-backend pil |
--disable-outlines-disk-cache, --show-time-cost, --triton-attention-reduce-in-fp32
|
drop the flag |
attention backends nsa / compressed / tokenspeed_mla
|
dsa / dsv4 / cutedsl_mla
|
--moe-a2a-backend flashinfer |
--moe-a2a-backend flashinfer_nvlink_one_sided |
--tool-call-parser qwen25 / glm45
|
qwen / glm
|
SGLANG_Q35MF_* env vars |
SGLANG_OPT_* |
Three more removals deserve a grep in your repo: --moe-runner-backend triton_kernel, PD multiplexing (--enable-pdmux, --pdmux-config-path, --sm-group-num), and the deprecated data_parallel_rank request field, which is replaced by routed_dp_rank.
One subtlety for Python users: Engine(...) rejects only removed fields and option values. disable_cuda_graph, for example, is still a field there, so a rename in the CLI does not automatically mean a rename in code.
Environment variables are stricter too. Invalid values now stop startup instead of falling back to the default with a warning, and an empty value on a boolean, integer, float or JSON variable reads as unset. About 40 variables that only restated the GPU architecture were deleted, because the code now checks the architecture itself. The old SGL_ prefix also stops startup.
Why does my admin call return 403 after upgrading?
Weight updates, LoRA load and unload, profiling, /set_internal_state, /configure_logging, /pause_generation, /pd_role_switch, and the HiCache storage-backend controls now return 403 unless the server starts with --admin-api-key (or SGLANG_ADMIN_API_KEY). They accept only that key. Passing --api-key alone no longer unlocks them. /flush_cache and /abort_request are unchanged.
This is the change most likely to break automation that is not a launch script: RL training loops that push weights, deployment tooling that swaps LoRA adapters, and profiler wrappers. A minimal pattern:
export SGLANG_API_KEY="$(cat /run/secrets/sglang_api)"
export SGLANG_ADMIN_API_KEY="$(cat /run/secrets/sglang_admin)"
python -m sglang.launch_server \
--model-path "$MODEL" \
--api-key "$SGLANG_API_KEY" \
--admin-api-key "$SGLANG_ADMIN_API_KEY"
Keep the two keys different and give the admin key only to the jobs that need weight or adapter control. The notes also say credentials stay out of logs and server info, which is worth confirming in your own log pipeline after the upgrade.
What happens to my router and gateway?
sgl-router 0.1.0 is the first versioned release of the Rust router that distributes requests across workers, including PD-disaggregated deployments. It is on PyPI as sgl-router and on Docker Hub as lmsysorg/sgl-router:v0.1.0, and the SGLang images ship it. It replaces sgl-model-gateway, which is removed from the repository. Earlier sglang-router releases remain on PyPI.
Two details matter in practice:
- The
sgl-routerinside the v1.0.0 images rejects gateway-only flags and prints their replacement. The 0.1.0 PyPI package does not include that check. If you pip install the router separately, a stale flag may not fail the way it does in the image, so test the exact artifact you deploy. - Some
sgl-model-gatewayfeatures are not yet available insgl-router. Inventory what your gateway config uses before you cut over.
Which defaults changed that I would not notice?
These do not stop the server, so they are the easy ones to miss:
-
Hybrid Mamba models now checkpoint state only at fork points and request ends (
--hybrid-cache-checkpoints-level 2). Pass--hybrid-cache-checkpoints-level 3for the old every-chunk behavior. -
Per-request
sampling_seednow takes effect without--enable-deterministic-inference. If you passed seeds that were previously ignored, outputs may become reproducible where they were random. -
usage.completion_tokens_detailsis always returned, withreasoning_tokens: 0when the model did not think. It used to benull. Strict client schemas and billing parsers should be checked. -
stop_regexpatterns with look-around, backreferences, conditional groups, or a backtracking cost above the new limit are rejected. -
The session
replaceparameter is rejected. Append with the turn'sridinstead. -
Decode CUDA graph ceiling defaults to 128 on 35 to 60 GiB GPUs when
tp_sizeis below 4. The changelog cites median TPOT dropping from 10.9 to 4.8 ms for Qwen3-0.6B at concurrency 48 on an L40S. -
AMD: the AITER CK blockscale GEMM is the default FP8 GEMM on gfx942 (set
SGLANG_AITER_GFX942_BLOCKSCALE_USE_CK=0for Triton), and the ROCm image no longer setsROCM_QUICK_REDUCE_QUANTIZATION=INT8. -
Kernel packaging: FA3 comes from the
sgl-fa3wheel (Linux x86_64 only),sgl-flash-mlais separate,sglang-kernelno longer bundlestriton_kernels, andflash-attn-4is not installed by default. - Python imports: re-export shims are removed, so import names from where they are defined.
On NVIDIA GPUs the PyPI package needs a CUDA 13 driver and CUDA toolkit 13.0 or newer. The Docker images need only the driver, which is a good reason to prefer them for a first test.
What speed gains does the release report?
The release attributes these numbers to specific PRs. They are the maintainers' measurements on their own setups, so use them as a map of where to benchmark, not as a forecast for your fleet.
- DeepSeek-V4.1-Flash PD serving on GB300: up to 59% more throughput per GPU on agentic multi-turn traffic. The changelog line gives total throughput of 347,197 to 551,223 tok/s/GPU, a 58.7% gain by simple division.
- DeepSeek-V4.1-Flash on 4x B300: first token 36% to 49% sooner with long shared prefixes.
- Gemma-4 on H200 with an opt-in FP8 KV cache: twice as many tokens held, up to 25% more output throughput.
- Multi-LoRA with pipeline parallelism: 5.6x output throughput on Llama-3.1-70B across 2x H200.
- Qwen3-235B FP8, TP 4, MI325X: more than double output throughput at low concurrency.
- Paged Experts from disk: DeepSeek-V4-Flash (a 167 GB checkpoint) at about 14 tok/s on one 16 GB RTX 5070 Ti with 62 GB of RAM.
That last line is a capacity story rather than a latency story. 14 tok/s is fine for a single developer and not a serving target. The useful reading is that a checkpoint far larger than VRAM can now run on a workstation for evaluation.
Experimental features: opt in on purpose
Two items are explicitly experimental. The Rust frontend server (sglang-server) covers nearly all of the Python server's HTTP API (OpenAI chat and completions, /v1/responses, Anthropic Messages, Ollama, score, embeddings and rerank, sessions, admin routes, HTTP/2) and is enabled with SGLANG_RUST_SERVER=1. The unified memory pool (--enable-unified-memory) replaces the fixed split between KV and state pools for hybrid Mamba/GDN and SWA models. Neither is on by default, and the notes say experimental features are outside the deprecation guarantee.
How do I find every startup refusal before production does?
Run the exact launch command against the new image on a staging node, capture the first error, fix it, and repeat. Automate the loop so you catch all of them in one sitting. This preflight script is illustrative: it assumes your launch command is in LAUNCH_CMD, and it only classifies output, it does not edit anything.
import os, re, subprocess, sys, time
REMOVED = [
"--disable-cuda-graph", "--enable-dp-attention", "--monokernel-backend",
"--enable-flashinfer-allreduce-fusion", "--disable-fast-image-processor",
"--disable-outlines-disk-cache", "--show-time-cost",
"--triton-attention-reduce-in-fp32", "--enable-pdmux", "--pdmux-config-path",
"--sm-group-num", "triton_kernel", "qwen25", "glm45",
]
def static_scan(text: str):
return [t for t in REMOVED if t in text]
def boot_probe(cmd: list[str], seconds: int = 90):
p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, text=True)
t0, out = time.time(), []
while time.time() - t0 < seconds and p.poll() is None:
line = p.stdout.readline()
if line:
out.append(line)
if re.search(r"ready to roll|Uvicorn running|fired up", line or "", re.I):
break
alive = p.poll() is None
p.terminate()
return alive, "".join(out[-40:])
if __name__ == "__main__":
cmd = os.environ["LAUNCH_CMD"].split()
hits = static_scan(" ".join(cmd))
if hits:
print("static hits:", hits)
alive, tail = boot_probe(cmd)
print("booted" if alive else "refused at startup")
print(tail)
sys.exit(0 if alive and not hits else 1)
Then check the 4xx side, since request validation also tightened:
# should now be rejected at the entry point rather than crash later
curl -s -o /dev/null -w "%{http_code}\n" localhost:30000/generate \
-H 'Content-Type: application/json' \
-d '{"text":"hi","sampling_params":{"max_new_tokens":8},"logprob_start_len":-5}'
# should be 403 without the admin key, 200 with it
curl -s -o /dev/null -w "%{http_code}\n" -X POST localhost:30000/pause_generation
curl -s -o /dev/null -w "%{http_code}\n" -X POST localhost:30000/pause_generation \
-H "Authorization: Bearer $SGLANG_ADMIN_API_KEY"
The first request uses a logprob_start_len below -1, one of the cases the notes list as now rejected. Adapt the port and routes to your deployment, and replay a sample of real production traffic through the new build to find the client calls that were quietly relying on a swallowed setting.
A rollout order that fits the risk
The chart above is an author judgment, not a measurement. The logic: fix what fails loudly first, then what changes silently, then what you opted into.
- Strip or replace removed flags and variables until staging boots.
- Add
--admin-api-keyand re-test every automation that touches weights, adapters or profiling. - Swap the gateway for
sgl-routerand compare routing behavior on PD-disaggregated paths. - Diff API responses for the changed fields (
completion_tokens_details, rejected stop regexes). - Rebenchmark your own workload before crediting any headline gain.
- Only then consider the experimental Rust server or unified memory pool.
FAQ
Is SGLang 1.0 a drop-in upgrade from 0.5?
No. The release states that upgrading may require changes to launch commands. Removed flags, stricter environment variable parsing and the admin key requirement can each stop a previously working deployment.
What replaces --disable-cuda-graph?
Use --disable-decode-cuda-graph --disable-prefill-cuda-graph. In the Python Engine, disable_cuda_graph is still a valid field.
Why do LoRA load and weight update calls return 403?
Administrative routes now require --admin-api-key (or SGLANG_ADMIN_API_KEY) and accept only that key. --api-key alone no longer unlocks them.
What is sgl-router and do I have to use it?
It is the versioned Rust router (0.1.0) that replaces the removed sgl-model-gateway. The SGLang Docker images ship it. Some gateway features are not yet available in the router, so inventory your usage first.
Should I turn on the Rust server?
It is experimental and off by default. Try it on a canary with SGLANG_RUST_SERVER=1 if you want to measure it, and do not rely on deprecation guarantees for it.
Do the 59% and 49% numbers apply to my cluster?
They come from specific model, hardware and traffic setups described in the release. Treat them as hypotheses to test on your own traces.
Sources
- SGLang v1.0.0 release notes: https://github.com/sgl-project/sglang/releases/tag/v1.0.0
- SGLang repository: https://github.com/sgl-project/sglang
Further reading
Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes β full credit and traffic to the original publisher.