diff --git a/.claude/skills/env-var-conventions/SKILL.md b/.claude/skills/env-var-conventions/SKILL.md
index 048c6e26b0..65fc008153 100644
--- a/.claude/skills/env-var-conventions/SKILL.md
+++ b/.claude/skills/env-var-conventions/SKILL.md
@@ -162,7 +162,7 @@ Picking between `ENABLE_FOO` and `DISABLE_FOO`: both verbs are valid. The only f
For a rename where the old key must keep working with a warning:
```python
-SGLANG_DSA_FUSE_TOPK = EnvBoolWithAlias(True, deprecated_name="SGLANG_NSA_FUSE_TOPK")
+SGLANG_NEW_NAME = EnvBoolWithAlias(True, deprecated_name="SGLANG_OLD_NAME")
```
Use `EnvBoolWithAlias` / `EnvIntWithAlias`. The fallback emits a `DeprecationWarning` and copies the old value over.
diff --git a/.claude/skills/llm-torch-profiler-analysis/references/fuse-overlap-catalog.md b/.claude/skills/llm-torch-profiler-analysis/references/fuse-overlap-catalog.md
index ef953174d8..3b12b16ccf 100644
--- a/.claude/skills/llm-torch-profiler-analysis/references/fuse-overlap-catalog.md
+++ b/.claude/skills/llm-torch-profiler-analysis/references/fuse-overlap-catalog.md
@@ -71,7 +71,7 @@ in-flight row as shipped.
| Fused MoE sum + all-reduce | routed MoE followed by explicit sum-reduce kernels | `python/sglang/srt/layers/moe/fused_moe_triton/fused_moe.py`
`python/sglang/srt/layers/moe/fused_moe_triton/fused_moe_triton_kernels.py` | `fuse_sum_all_reduce=True` path in the second MoE GEMM | Before inventing a new MoE reduction fuse, check whether `enable_fused_moe_sum_all_reduce` is simply off or the quant path is incompatible. |
| Fused MoE activation + quant / re-quant | `silu_and_mul_*quant*`
`npu_dequant_swiglu_quant`
`swiglu_quant` | `python/sglang/srt/layers/moe/ep_moe/kernels.py`
`python/sglang/kernels/ops/quantization/nvfp4_gemm_swiglu_nvfp4_quant.py`
`python/sglang/srt/layers/moe/cutlass_w4a8_moe.py`
`python/sglang/srt/hardware_backend/npu/quantization/moe_methods.py` | Quantized MoE backends fuse SwiGLU / SiLU-and-mul with FP8 / FP4 / NPU re-quant before the second expert GEMM | If MoE traces show standalone activation then quant kernels, first check whether the quantized fused path is missing. |
| DeepSeek comm-prep fused RMSNorm + quant / flatten-quant | `fused_rms_fp8_group_quant`
`fused_rms_mxfp4_quant`
`fused_flatten_fp8_group_quant`
`fused_flatten_mxfp4_quant` | `python/sglang/srt/layers/communicator.py`
`python/sglang/srt/models/deepseek_common/attention_forward_methods/forward_mla.py`
`python/sglang/srt/models/deepseek_common/attention_forward_methods/forward_mha.py` | DeepSeek MLA / MHA ROCm paths fuse RMSNorm or flatten with FP8 / MXFP4 quantization for comm / attention prep | On DeepSeek quant traces, split norm + quant or flatten + quant is an existing family, not a new idea. |
-| NSA fused top-k transform / page-table build | `fast_topk_transform_fused`
`fast_topk_transform_ragged_fused` | `python/sglang/srt/layers/attention/nsa_backend.py` | NSA can fuse top-k selection with paged / ragged index transform instead of separate top-k plus metadata scatter | If NSA top-k metadata work is split, check `SGLANG_NSA_FUSE_TOPK` and backend support first. |
+| NSA fused top-k transform / page-table build | `fast_topk_transform_fused`
`fast_topk_transform_ragged_fused` | `python/sglang/srt/layers/attention/dsa_backend.py` | NSA can fuse top-k selection with paged / ragged index transform instead of separate top-k plus metadata scatter | If NSA top-k metadata work is split, check `SGLANG_DSA_FUSE_TOPK` and backend support first. |
| NSA fused quantize + indexed K-cache store | `fused_store_index_k_cache`
`act_quant`
`index_k_with_scale_buffer` | `python/sglang/kernels/ops/attention/fused_store_index_cache.py`
`python/sglang/srt/layers/attention/nsa/nsa_indexer.py` | Single JIT kernel quantizes bf16 K to fp8 + scale and writes directly into NSA index cache | Treat split `act_quant` + buffer-store on CUDA as missing an existing fused store path. |
| Fused sampling temperature + softmax | `fused_temperature_softmax*` | `python/sglang/srt/layers/fused_sampling.py`
`python/sglang/srt/layers/sampler.py` | Triton single-pass / multi-pass kernels fuse temperature scaling and softmax during decode | Separate temp-divide + softmax at decode batch sizes is often a missed existing fusion. |
| Fused logit softcap | `fused_softcap`
`final_logit_softcapping` | `python/sglang/srt/layers/elementwise.py`
`python/sglang/srt/layers/logits_processor.py` | Triton kernels fuse cast-to-float and softcap / tanh math for logits or generic elementwise softcapping | Treat exposed cast + softcap ladders as an existing Triton fuse family. |
@@ -148,8 +148,8 @@ Stable entries should be folded into the mainline family rows above.
| PR `#22392` CUTLASS FP8 GEMM replacing nvjet | `cutlass_scaled_mm`
`fp8_scaled_mm`
`nvjet`
`cudaMemsetAsync` | `PR #22392`
`python/sglang/kernels/aot/python/sgl_kernel/gemm.py`
`python/sglang/srt/layers/quantization/fp8_utils.py` | Runtime replacement swaps nvjet FP8 GEMMs for CUTLASS kernels, removing per-launch memset bubbles and extra output-copy kernels | Treat nvjet GEMM + memset bubble ladders as an in-flight SGLang linear-kernel family before calling them novel. |
| PR `#18612` NVFP4 CUTLASS MoE fused SiLU+Mul+quant | `silu_and_mul_scaled_nvfp4`
`nvfp4 expert quant`
`cutlass moe` | `PR #18612`
`python/sglang/srt/layers/moe/cutlass_w4a8_moe.py`
`python/sglang/kernels/ops/quantization/nvfp4_gemm_swiglu_nvfp4_quant.py` | Fuses MoE activation epilogue and NVFP4 expert quantization before the CUTLASS MoE second GEMM | Treat split SiLU+Mul then NVFP4 expert quant in CUTLASS MoE traces as an in-flight upstream SGLang family. |
| PR `#22918` FlashInfer per-token NVFP4 MoE | `per_token_nvfp4`
`trtllm_fp4_block_scale_moe`
`FlashInfer MoE` | `PR #22918`
`python/sglang/srt/layers/moe/fused_moe_triton/fused_moe.py` | Adds FlashInfer-backed per-token NVFP4 MoE execution so expert quant/dequant work can move into the fused MoE backend | Treat standalone per-token NVFP4 MoE support kernels as a candidate missing backend-selection path, not an automatically novel kernel idea. |
-| PR `#22851` NSA top-k backend and FlashInfer / PyTorch top-k split | `nsa topk`
`flashinfer_topk`
`pytorch_topk`
`fast_topk_transform` | `PR #22851`
`python/sglang/srt/layers/attention/nsa_backend.py` | Makes NSA top-k backend selection explicit and aligns fused top-k transform with FlashInfer / PyTorch fallbacks | When NSA top-k dominates decode, first classify it as backend selection or fused-transform eligibility work. |
-| PR `#24125` GLM5 NSA decode CatArrayBatchedCopy removal | `CatArrayBatchedCopy`
`GLM-5`
`NSA`
`TileLang decode` | `PR #24125`
`python/sglang/srt/layers/attention/nsa_backend.py` | Skips redundant cat/copy work in the GLM5 NSA TileLang decode path | Treat cat/copy bursts in GLM5 NSA decode as a concrete in-flight cleanup opportunity. |
+| PR `#22851` NSA top-k backend and FlashInfer / PyTorch top-k split | `nsa topk`
`flashinfer_topk`
`pytorch_topk`
`fast_topk_transform` | `PR #22851`
`python/sglang/srt/layers/attention/dsa_backend.py` | Makes NSA top-k backend selection explicit and aligns fused top-k transform with FlashInfer / PyTorch fallbacks | When NSA top-k dominates decode, first classify it as backend selection or fused-transform eligibility work. |
+| PR `#24125` GLM5 NSA decode CatArrayBatchedCopy removal | `CatArrayBatchedCopy`
`GLM-5`
`NSA`
`TileLang decode` | `PR #24125`
`python/sglang/srt/layers/attention/dsa_backend.py` | Skips redundant cat/copy work in the GLM5 NSA TileLang decode path | Treat cat/copy bursts in GLM5 NSA decode as a concrete in-flight cleanup opportunity. |
| PR `#24007` MoE LoRA virtual experts for csgmv backend | `csgmv`
`virtual experts`
`MoE LoRA`
`fused_moe_lora` | `PR #24007`
`python/sglang/srt/layers/lora_backend.py`
`python/sglang/srt/layers/moe` | Routes MoE LoRA adapter work through virtual experts so csgmv-style kernels can batch it instead of launching fragmented adapter work | Treat MoE-LoRA tiny-kernel ladders as an in-flight batching/fusion family. |
| PR `#24150` torch.compile local decode support | `enable_torch_compile`
`local compile`
`decode compile`
`torchinductor` | `PR #24150`
`python/sglang/srt` | Extends SGLang torch.compile coverage to local decode regions, so Inductor-generated fusion may replace hand-authored tiny kernels | When decode traces show compiler-generated kernels or missing named fused kernels, check this in-flight compile path before calling the shape unsupported. |
@@ -319,7 +319,7 @@ only vLLM references to the TokenSpeed package.
| `enable_single_batch_overlap` | `python/sglang/srt/server_args.py` | Enables the SBO family. |
| `enable_fused_moe_sum_all_reduce` | `python/sglang/srt/server_args.py` | Enables fused MoE sum-reduce in the down path. |
| `SGLANG_BLACKWELL_OVERLAP_SHARED_EXPERTS_OUTSIDE_SBO` | `python/sglang/srt/environ.py` | Alters how DeepSeek-style shared-expert overlap behaves on Blackwell. |
-| `SGLANG_NSA_FUSE_TOPK` | `python/sglang/srt/environ.py` | Gates NSA fused top-k transform / page-table build. |
+| `SGLANG_DSA_FUSE_TOPK` | `python/sglang/srt/environ.py` | Gates NSA fused top-k transform / page-table build. |
| `SGLANG_DISAGG_STAGING_BUFFER` | `python/sglang/srt/environ.py` | Enables the heterogeneous-TP staging-buffer family and its overlap windows. |
| `SGLANG_STAGING_USE_TORCH` | `python/sglang/srt/disaggregation/common/staging_buffer.py` | Forces torch fallback for staging gather / scatter, so Triton staging kernels may disappear by design. |
| `SGLANG_VIT_ENABLE_CUDA_GRAPH` | `python/sglang/srt/environ.py` | Can intentionally disable vision `aux_stream` overlap. |
diff --git a/docs/cookbook/autoregressive/GLM/GLM-4.5V.mdx b/docs/cookbook/autoregressive/GLM/GLM-4.5V.mdx
index 25560c1f07..83a4b6c380 100644
--- a/docs/cookbook/autoregressive/GLM/GLM-4.5V.mdx
+++ b/docs/cookbook/autoregressive/GLM/GLM-4.5V.mdx
@@ -48,8 +48,7 @@ import { GLM45VDeployment } from "/src/snippets/autoregressive/glm-45v-deploymen
- **H200 / B200:** Runs out of the box, supporting full context length plus concurrent image + video processing.
- **Additional Multimodal Parameters:**
- `--mm-attention-backend fa3`: Specify multimodal attention backend (Flash Attention 3).
- - `--keep-mm-feature-on-device`: Retain multimodal feature tensors on GPU after processing to avoid D2H memory copies.
- - `SGLANG_USE_CUDA_IPC_TRANSPORT=1`: Use CUDA IPC shared memory for multimodal data transport to significantly improve E2E latency.
+ - `--mm-feature-transport=cuda_ipc`: Use CUDA IPC shared memory for multimodal data transport to avoid D2H memory copies and significantly improve E2E latency.
**Example with full multimodal optimizations:**
```bash Command
diff --git a/docs/cookbook/autoregressive/GLM/GLM-4.6V.mdx b/docs/cookbook/autoregressive/GLM/GLM-4.6V.mdx
index a8e89d631f..5836859764 100644
--- a/docs/cookbook/autoregressive/GLM/GLM-4.6V.mdx
+++ b/docs/cookbook/autoregressive/GLM/GLM-4.6V.mdx
@@ -76,8 +76,7 @@ import { GLM46VDeployment } from "/src/snippets/autoregressive/glm-46v-deploymen
- **H200 / B200:** Runs out of the box, supporting full context length plus concurrent image + video processing.
- **Additional Multimodal Parameters:**
- `--mm-attention-backend fa3`: Specify multimodal attention backend (Flash Attention 3).
- - `--keep-mm-feature-on-device`: Retain multimodal feature tensors on GPU after processing to avoid D2H memory copies.
- - `SGLANG_USE_CUDA_IPC_TRANSPORT=1`: Use CUDA IPC shared memory for multimodal data transport to significantly improve E2E latency.
+ - `--mm-feature-transport=cuda_ipc`: Use CUDA IPC shared memory for multimodal data transport to avoid D2H memory copies and significantly improve E2E latency.
**Example with full multimodal optimizations:**
```bash Command
diff --git a/docs/cookbook/autoregressive/Google/Gemma4.mdx b/docs/cookbook/autoregressive/Google/Gemma4.mdx
index 81f5499697..01ddccfc20 100644
--- a/docs/cookbook/autoregressive/Google/Gemma4.mdx
+++ b/docs/cookbook/autoregressive/Google/Gemma4.mdx
@@ -1643,7 +1643,7 @@ sgl-eval run mmlu --base-url http://localhost:30000/v1 --num-examples 2000
**gemma-4-E2B-it**
```shell Command
-$ python -m sglang.bench_one_batch --correct --model google/gemma-4-E2B-it ....
+$ python -m sglang.benchmark.one_batch --correct --model google/gemma-4-E2B-it ....
prefill logits (final): tensor([[-25.3063, -2.5718, -10.3674, ..., -25.3779, -25.5181, -25.2337]],
device='cuda:0')
....
@@ -1658,7 +1658,7 @@ prefill logits (final) tensor([-25.3281, -2.1367, -10.2266, ..., -25.4375, -25
**gemma-4-E4B-it**
```shell Command
-$ python -m sglang.bench_one_batch --correct --model google/gemma-4-E4B-it ....
+$ python -m sglang.benchmark.one_batch --correct --model google/gemma-4-E4B-it ....
prefill logits (final): tensor([[-17.6478, 7.9901, -5.6505, ..., -17.5658, -17.6478, -17.7293]],
device='cuda:0')
....
@@ -1672,7 +1672,7 @@ prefill logits (final) tensor([-17.5625, 8.0469, -5.5742, ..., -17.4688, -17
**gemma-4-31B-it**
```shell Command
-$ python -m sglang.bench_one_batch --correct --model google/gemma-4-31B-it ....
+$ python -m sglang.benchmark.one_batch --correct --model google/gemma-4-31B-it ....
prefill logits (final): tensor([[-2.0748, 1.1245, -7.4356, ..., -2.1059, -2.1525, -2.2303]],
device='cuda:0')
....
diff --git a/docs/cookbook/autoregressive/Qwen/Qwen3-VL.mdx b/docs/cookbook/autoregressive/Qwen/Qwen3-VL.mdx
index 376a484159..67cd6b11f5 100644
--- a/docs/cookbook/autoregressive/Qwen/Qwen3-VL.mdx
+++ b/docs/cookbook/autoregressive/Qwen/Qwen3-VL.mdx
@@ -56,7 +56,7 @@ import { Qwen3VLDeployment } from "/src/snippets/autoregressive/qwen3-vl-deploym
- **H200 / B200:** Runs out of the box, supporting full context length plus concurrent image + video processing.
**Additional multimodal server parameters:**
-- `--keep-mm-feature-on-device`: Retain multimodal feature tensors on GPU after processing to avoid device-to-host memory copies, improving performance for high-frequency inference.
+- `--mm-feature-transport=cuda_ipc`: Keep multimodal feature tensors in a bounded GPU pool shared over CUDA IPC to avoid device-to-host memory copies, improving performance for high-frequency inference.
**Example with full multimodal optimizations:**
```bash Command
diff --git a/docs/cookbook/autoregressive/Qwen/Qwen3.5.mdx b/docs/cookbook/autoregressive/Qwen/Qwen3.5.mdx
index 8750c7d1eb..0ccb28dbd1 100644
--- a/docs/cookbook/autoregressive/Qwen/Qwen3.5.mdx
+++ b/docs/cookbook/autoregressive/Qwen/Qwen3.5.mdx
@@ -999,7 +999,6 @@ Container image (pinned for reproducibility):
Server Launch Command:
```bash Command
-SGLANG_ENABLE_SPEC_V2=1 \
python3 -m sglang.launch_server \
--model-path Qwen/Qwen3.5-397B-A17B-FP8 \
--served-model-name Qwen/Qwen3.5-397B-A17B-FP8 \
diff --git a/docs/docs/advanced_features/server_arguments.mdx b/docs/docs/advanced_features/server_arguments.mdx
index 608fe3166b..2a09a0c8c0 100644
--- a/docs/docs/advanced_features/server_arguments.mdx
+++ b/docs/docs/advanced_features/server_arguments.mdx
@@ -1937,12 +1937,6 @@ Combining `--enable-response-store` with `--disaggregation-mode=prefill` or `dec
bool flag (set to enable) |
- | `--elastic-ep-rejoin` |
- Indicates that this process is a relaunched elastic EP rank that should rejoin an existing process group during rank recovery. |
- `False` |
- bool flag (set to enable) |
-
-
| `--flashinfer-allreduce-fusion-backend` |
Enable FlashInfer allreduce fusion and choose backend. Defaults to auto. 'auto': choose mnnvl on SM90 single-node systems and SM100/SM103 single-node or multi-node systems; choose trtllm otherwise. 'trtllm': available on single-node systems only. 'mnnvl': available on SM90 single-node systems and SM100/SM103 single-node or multi-node systems via MNNVL fabric. Fuses allreduce with Residual + RMSNorm for supported MoE models. |
`None` |
@@ -2719,12 +2713,6 @@ Combining `--enable-response-store` with `--disaggregation-mode=prefill` or `dec
`False` |
bool flag (set to enable) |
-
- | `--keep-mm-feature-on-device` |
- Keep multimodal feature tensors on device after processing to save D2H copy. |
- `False` |
- bool flag (set to enable) |
-
| `--enable-return-hidden-states` |
Enable returning hidden states with responses. |
diff --git a/docs/docs/developer_guide/benchmark_and_profiling.mdx b/docs/docs/developer_guide/benchmark_and_profiling.mdx
index 94d94d0371..ac4890a4e4 100644
--- a/docs/docs/developer_guide/benchmark_and_profiling.mdx
+++ b/docs/docs/developer_guide/benchmark_and_profiling.mdx
@@ -65,13 +65,13 @@ Use `bench_serving` by default unless there are specific needs.
**`bench_offline_throughput`** directly instantiates the `Engine` object in-process (no HTTP server) and submits all requests at once via `engine.generate()`. The engine's scheduler handles batching and execution. This measures maximum achievable throughput without any network overhead.
```bash Command
- python3 -m sglang.bench_offline_throughput --model-path meta-llama/Meta-Llama-3.1-8B-Instruct --num-prompts 10
+ python3 -m sglang.benchmark.offline_throughput --model-path meta-llama/Meta-Llama-3.1-8B-Instruct --num-prompts 10
```
**`bench_one_batch`** is the lowest-level tool. It directly instantiates a `ModelRunner` and calls `extend()` / `decode()` on a fixed static batch, bypassing the scheduler entirely. The prefill and decode phases are run separately, making profiling easier but rendering the metrics unrealistic. Because there is no dynamic batching, it may run out of memory for batch sizes that a real server can handle (a real server chunks prefill into smaller batches). This is best suited for profiling individual kernel performance.
```bash Command
- python3 -m sglang.bench_one_batch --model-path meta-llama/Meta-Llama-3.1-8B-Instruct --batch-size 32 --input-len 256 --output-len 32
+ python3 -m sglang.benchmark.one_batch --model-path meta-llama/Meta-Llama-3.1-8B-Instruct --batch-size 32 --input-len 256 --output-len 32
```
## Profile with PyTorch Profiler
@@ -140,16 +140,16 @@ python -m sglang.bench_serving --backend sglang --model meta-llama/Llama-3.1-8B-
- Make sure `SGLANG_TORCH_PROFILER_DIR` is set on all worker nodes before starting the servers
- For more details on setting up PD disaggregation, see [PD Disaggregation Guide](../advanced_features/pd_disaggregation)
-### Profile a server with `sglang.bench_offline_throughput`
+### Profile a server with `sglang.benchmark.offline_throughput`
```bash Command
export SGLANG_TORCH_PROFILER_DIR=/root/sglang/profile_log
# profile one batch with bench_one_batch.py
# batch size can be controlled with --batch argument
-python3 -m sglang.bench_one_batch --model-path meta-llama/Llama-3.1-8B-Instruct --batch 32 --input-len 1024 --output-len 10 --profile
+python3 -m sglang.benchmark.one_batch --model-path meta-llama/Llama-3.1-8B-Instruct --batch 32 --input-len 1024 --output-len 10 --profile
# profile multiple batches with bench_offline_throughput.py
-python -m sglang.bench_offline_throughput --model-path meta-llama/Llama-3.1-8B-Instruct --dataset-name random --num-prompts 10 --profile --mem-frac=0.8
+python -m sglang.benchmark.offline_throughput --model-path meta-llama/Llama-3.1-8B-Instruct --dataset-name random --num-prompts 10 --profile --mem-frac=0.8
```
### Profile a server with `sglang.profiler`
@@ -376,7 +376,7 @@ RuntimeError: !stack.empty() INTERNAL ASSERT FAILED at "/pytorch/torch/csrc/auto
This is likely a PyTorch Bug reported in [Bug: vLLM Profiler](https://github.com/vllm-project/vllm/issues/18240) and [Bug: torch.profiler.profile](https://github.com/pytorch/pytorch/issues/101632). As a workaround, you may disable `with_stack` with an environment variable such as follows:
```bash Command
export SGLANG_PROFILE_WITH_STACK=False
-python -m sglang.bench_offline_throughput --model-path meta-llama/Llama-3.1-8B-Instruct --dataset-name random --num-prompts 10 --profile --mem-frac=0.8
+python -m sglang.benchmark.offline_throughput --model-path meta-llama/Llama-3.1-8B-Instruct --dataset-name random --num-prompts 10 --profile --mem-frac=0.8
```
### View traces
@@ -420,7 +420,7 @@ Additionally, if you want to locate the SGLang Python source code through the cu
2. To profile a single batch, use
```bash Command
- nsys profile --trace-fork-before-exec=true --cuda-graph-trace=node python3 -m sglang.bench_one_batch --model meta-llama/Meta-Llama-3-8B --batch-size 64 --input-len 512
+ nsys profile --trace-fork-before-exec=true --cuda-graph-trace=node python3 -m sglang.benchmark.one_batch --model meta-llama/Meta-Llama-3-8B --batch-size 64 --input-len 512
```
3. To profile a server, e.g.
@@ -571,7 +571,7 @@ In the Nsight Systems GUI, you'll see:
2. You can benchmark a model with modified configs (e.g., less layers) by using `--json-model-override-args`. For example, you can benchmark a model with only 2 layers and 2 kv heads using:
```bash Command
- python -m sglang.bench_one_batch --model-path meta-llama/Meta-Llama-3.1-8B-Instruct --batch 32 --input-len 256 --output-len 32 --load-format dummy --json-model-override-args '{"num_hidden_layers": 1, "num_key_value_heads": 1}'
+ python -m sglang.benchmark.one_batch --model-path meta-llama/Meta-Llama-3.1-8B-Instruct --batch 32 --input-len 256 --output-len 32 --load-format dummy --json-model-override-args '{"num_hidden_layers": 1, "num_key_value_heads": 1}'
```
3. You can use `--python-backtrace=cuda` to see python call stack for all CUDA kernels, as in PyTorch Profiler. (Caveat: this can cause inaccurately long kernel runtimes for CUDA event based timing)
diff --git a/docs/docs/developer_guide/development_guide_using_docker.mdx b/docs/docs/developer_guide/development_guide_using_docker.mdx
index 70e69aa28b..0e94bccd08 100644
--- a/docs/docs/developer_guide/development_guide_using_docker.mdx
+++ b/docs/docs/developer_guide/development_guide_using_docker.mdx
@@ -108,7 +108,7 @@ docker exec -it sglang_zhyncs /bin/zsh
```bash Command
# Change batch size, input, output and add `disable-cuda-graph` (for easier analysis)
# e.g. DeepSeek V3
-nsys profile -o deepseek_v3 python3 -m sglang.bench_one_batch --batch-size 1 --input 128 --output 256 --model deepseek-ai/DeepSeek-V3 --trust-remote-code --tp 8 --disable-cuda-graph
+nsys profile -o deepseek_v3 python3 -m sglang.benchmark.one_batch --batch-size 1 --input 128 --output 256 --model deepseek-ai/DeepSeek-V3 --trust-remote-code --tp 8 --disable-cuda-graph
```
## Evaluation
diff --git a/docs/docs/developer_guide/evaluating_new_models.mdx b/docs/docs/developer_guide/evaluating_new_models.mdx
index 34ad0a8698..d06ba18e54 100644
--- a/docs/docs/developer_guide/evaluating_new_models.mdx
+++ b/docs/docs/developer_guide/evaluating_new_models.mdx
@@ -40,7 +40,7 @@ python -m sglang.test.run_eval \
```bash Command
python benchmark/hellaswag/bench_sglang.py \
- --host http://127.0.0.1 \
+ --host 127.0.0.1 \
--port 30000 \
--num-questions 200 \
--num-shots 20
diff --git a/docs/docs/hardware-platforms/ascend-npus/evaluation/performance_testing.mdx b/docs/docs/hardware-platforms/ascend-npus/evaluation/performance_testing.mdx
index d4d16bb11b..a5e3e108e7 100644
--- a/docs/docs/hardware-platforms/ascend-npus/evaluation/performance_testing.mdx
+++ b/docs/docs/hardware-platforms/ascend-npus/evaluation/performance_testing.mdx
@@ -750,7 +750,7 @@ SGLang's `Engine` API runs inference in-process, without an HTTP server, letting
`bench_offline_throughput` uses the `Engine` API internally and measures pure inference throughput without HTTP overhead:
```shell Command
-python -m sglang.bench_offline_throughput \
+python -m sglang.benchmark.offline_throughput \
--model-path Qwen/Qwen2.5-7B-Instruct \
--dataset-name random \
--random-input-len 1024 \
diff --git a/docs/docs/hardware-platforms/ascend-npus/model-deployment/best-practices/deepseek_r1.mdx b/docs/docs/hardware-platforms/ascend-npus/model-deployment/best-practices/deepseek_r1.mdx
index 87960b283b..6c2a8bb081 100644
--- a/docs/docs/hardware-platforms/ascend-npus/model-deployment/best-practices/deepseek_r1.mdx
+++ b/docs/docs/hardware-platforms/ascend-npus/model-deployment/best-practices/deepseek_r1.mdx
@@ -151,7 +151,6 @@ do
export HCCL_SOCKET_IFNAME=
export SGLANG_DEEPEP_NUM_MAX_DISPATCH_TOKENS_PER_RANK=78
export SGLANG_ENABLE_OVERLAP_PLAN_STREAM=1
- export SGLANG_ENABLE_SPEC_V2=1
export TASK_QUEUE_ENABLE=1
python3 -m sglang.launch_server \
@@ -279,7 +278,6 @@ export HCCL_SOCKET_IFNAME=
export PYTORCH_NPU_ALLOC_CONF=expandable_segments:True
export SGLANG_DEEPEP_NUM_MAX_DISPATCH_TOKENS_PER_RANK=72
export SGLANG_ENABLE_OVERLAP_PLAN_STREAM=1
-export SGLANG_ENABLE_SPEC_V2=1
export SGLANG_NPU_USE_MLAPO=1
export SGLANG_PREFILL_DELAYER_MAX_DELAY_PASSES=200
export SGLANG_SCHEDULER_DECREASE_PREFILL_IDLE=1
@@ -458,7 +456,6 @@ do
export HCCL_SOCKET_IFNAME=
export SGLANG_DEEPEP_NUM_MAX_DISPATCH_TOKENS_PER_RANK=12
export SGLANG_ENABLE_OVERLAP_PLAN_STREAM=1
- export SGLANG_ENABLE_SPEC_V2=1
export SGLANG_SCHEDULER_SKIP_ALL_GATHER=1
export TASK_QUEUE_ENABLE=1
@@ -665,7 +662,6 @@ do
export HCCL_SOCKET_IFNAME=
export SGLANG_DEEPEP_NUM_MAX_DISPATCH_TOKENS_PER_RANK=64
export SGLANG_ENABLE_OVERLAP_PLAN_STREAM=1
- export SGLANG_ENABLE_SPEC_V2=1
export SGLANG_LM_HEAD_TP=8
export SGLANG_NPU_FUSED_MOE_MODE=1
export TASK_QUEUE_ENABLE=1
@@ -868,7 +864,6 @@ do
export HCCL_SOCKET_IFNAME=
export SGLANG_DEEPEP_NUM_MAX_DISPATCH_TOKENS_PER_RANK=12
export SGLANG_ENABLE_OVERLAP_PLAN_STREAM=1
- export SGLANG_ENABLE_SPEC_V2=1
export SGLANG_SCHEDULER_SKIP_ALL_GATHER=1
export TASK_QUEUE_ENABLE=1
@@ -1071,7 +1066,6 @@ do
export HCCL_SOCKET_IFNAME=
export SGLANG_DEEPEP_NUM_MAX_DISPATCH_TOKENS_PER_RANK=12
export SGLANG_ENABLE_OVERLAP_PLAN_STREAM=1
- export SGLANG_ENABLE_SPEC_V2=1
export SGLANG_SCHEDULER_SKIP_ALL_GATHER=1
export TASK_QUEUE_ENABLE=1
@@ -1273,7 +1267,6 @@ do
export HCCL_SOCKET_IFNAME=
export SGLANG_DEEPEP_NUM_MAX_DISPATCH_TOKENS_PER_RANK=16
export SGLANG_ENABLE_OVERLAP_PLAN_STREAM=1
- export SGLANG_ENABLE_SPEC_V2=1
export SGLANG_SCHEDULER_SKIP_ALL_GATHER=1
export TASK_QUEUE_ENABLE=1
diff --git a/docs/docs/hardware-platforms/ascend-npus/model-deployment/best-practices/deepseek_v3_2.mdx b/docs/docs/hardware-platforms/ascend-npus/model-deployment/best-practices/deepseek_v3_2.mdx
index 6f3d6120af..eedc6777bd 100644
--- a/docs/docs/hardware-platforms/ascend-npus/model-deployment/best-practices/deepseek_v3_2.mdx
+++ b/docs/docs/hardware-platforms/ascend-npus/model-deployment/best-practices/deepseek_v3_2.mdx
@@ -147,7 +147,6 @@ do
export HCCL_SOCKET_IFNAME=
export SGLANG_DEEPEP_NUM_MAX_DISPATCH_TOKENS_PER_RANK=8
export SGLANG_ENABLE_OVERLAP_PLAN_STREAM=1
- export SGLANG_ENABLE_SPEC_V2=1
export SGLANG_SCHEDULER_SKIP_ALL_GATHER=1
export TASK_QUEUE_ENABLE=0
@@ -345,7 +344,6 @@ do
export HCCL_SOCKET_IFNAME=
export SGLANG_DEEPEP_NUM_MAX_DISPATCH_TOKENS_PER_RANK=8
export SGLANG_ENABLE_OVERLAP_PLAN_STREAM=1
- export SGLANG_ENABLE_SPEC_V2=1
export SGLANG_SCHEDULER_SKIP_ALL_GATHER=1
export TASK_QUEUE_ENABLE=0
@@ -542,7 +540,6 @@ do
export HCCL_SOCKET_IFNAME=
export SGLANG_DEEPEP_NUM_MAX_DISPATCH_TOKENS_PER_RANK=8
export SGLANG_ENABLE_OVERLAP_PLAN_STREAM=1
- export SGLANG_ENABLE_SPEC_V2=1
export SGLANG_SCHEDULER_SKIP_ALL_GATHER=1
export TASK_QUEUE_ENABLE=0
diff --git a/docs/docs/hardware-platforms/ascend-npus/model-deployment/best-practices/deepseek_v4_flash.mdx b/docs/docs/hardware-platforms/ascend-npus/model-deployment/best-practices/deepseek_v4_flash.mdx
index cdf073e439..6e8ff2e502 100644
--- a/docs/docs/hardware-platforms/ascend-npus/model-deployment/best-practices/deepseek_v4_flash.mdx
+++ b/docs/docs/hardware-platforms/ascend-npus/model-deployment/best-practices/deepseek_v4_flash.mdx
@@ -75,7 +75,6 @@ export INF_NAN_MODE_FORCE_DISABLE=1
export PYTORCH_NPU_ALLOC_CONF=expandable_segments:True
export SGLANG_DSV4_FP4_EXPERTS=False
export SGLANG_ENABLE_OVERLAP_PLAN_STREAM=1
-export SGLANG_ENABLE_SPEC_V2=1
export SGLANG_OPT_BF16_FP32_GEMM_ALGO=torch
export SGLANG_OPT_DEEPGEMM_HC_PRENORM=False
export SGLANG_OPT_FP8_WO_A_GEMM=0
@@ -289,7 +288,6 @@ export SGLANG_DSV4_FP4_EXPERTS=False
export SGLANG_DSV4_NPU_FUSED_COMPRESSOR=1
export SGLANG_DSV4_NPU_FUSED_COMPRESSOR_PREFILL=0
export SGLANG_ENABLE_OVERLAP_PLAN_STREAM=1
-export SGLANG_ENABLE_SPEC_V2=1
export SGLANG_ENABLE_TP_MEMORY_INBALANCE_CHECK=0
export SGLANG_NPU_USE_MULTI_STREAM=1
export SGLANG_OPT_BF16_FP32_GEMM_ALGO=torch
@@ -415,7 +413,6 @@ export SGLANG_DSV4_FP4_EXPERTS=False
export SGLANG_DSV4_NPU_FUSED_COMPRESSOR=1
export SGLANG_DSV4_NPU_FUSED_COMPRESSOR_PREFILL=1
export SGLANG_ENABLE_OVERLAP_PLAN_STREAM=1
-export SGLANG_ENABLE_SPEC_V2=1
export SGLANG_ENABLE_TP_MEMORY_INBALANCE_CHECK=0
export SGLANG_NPU_USE_MULTI_STREAM=1
export SGLANG_OPT_BF16_FP32_GEMM_ALGO=torch
diff --git a/docs/docs/hardware-platforms/ascend-npus/model-deployment/best-practices/glm_5_1.mdx b/docs/docs/hardware-platforms/ascend-npus/model-deployment/best-practices/glm_5_1.mdx
index 2835b6cf3a..276fa9080a 100644
--- a/docs/docs/hardware-platforms/ascend-npus/model-deployment/best-practices/glm_5_1.mdx
+++ b/docs/docs/hardware-platforms/ascend-npus/model-deployment/best-practices/glm_5_1.mdx
@@ -83,7 +83,6 @@ export HCCL_SOCKET_IFNAME=
export SGLANG_DEEPEP_NUM_MAX_DISPATCH_TOKENS_PER_RANK=32
export SGLANG_DISAGGREGATION_BOOTSTRAP_TIMEOUT=600
export SGLANG_ENABLE_OVERLAP_PLAN_STREAM=1
-export SGLANG_ENABLE_SPEC_V2=1
export SGLANG_SET_CPU_AFFINITY=1
export STREAMS_PER_DEVICE=32
@@ -281,7 +280,6 @@ do
export HCCL_SOCKET_IFNAME=
export SGLANG_DEEPEP_NUM_MAX_DISPATCH_TOKENS_PER_RANK=16
export SGLANG_ENABLE_OVERLAP_PLAN_STREAM=1
- export SGLANG_ENABLE_SPEC_V2=1
export SGLANG_NPU_USE_MULTI_STREAM=1
export SGLANG_SPEC_ENABLE_OVERLAP_REFLOW=1
export TASK_QUEUE_ENABLE=0
@@ -482,7 +480,6 @@ do
export HCCL_SOCKET_IFNAME=
export SGLANG_DEEPEP_NUM_MAX_DISPATCH_TOKENS_PER_RANK=64
export SGLANG_ENABLE_OVERLAP_PLAN_STREAM=1
- export SGLANG_ENABLE_SPEC_V2=1
export SGLANG_SPEC_ENABLE_OVERLAP_REFLOW=1
export TASK_QUEUE_ENABLE=0
@@ -692,7 +689,6 @@ do
export HCCL_SOCKET_IFNAME=
export SGLANG_DEEPEP_NUM_MAX_DISPATCH_TOKENS_PER_RANK=16
export SGLANG_ENABLE_OVERLAP_PLAN_STREAM=1
- export SGLANG_ENABLE_SPEC_V2=1
export SGLANG_NPU_USE_MULTI_STREAM=1
export SGLANG_SPEC_ENABLE_OVERLAP_REFLOW=1
export TASK_QUEUE_ENABLE=0
@@ -1092,7 +1088,6 @@ do
export HCCL_SOCKET_IFNAME=
export SGLANG_DEEPEP_NUM_MAX_DISPATCH_TOKENS_PER_RANK=64
export SGLANG_ENABLE_OVERLAP_PLAN_STREAM=1
- export SGLANG_ENABLE_SPEC_V2=1
export SGLANG_SPEC_ENABLE_OVERLAP_REFLOW=1
export TASK_QUEUE_ENABLE=0
@@ -1301,7 +1296,6 @@ do
export HCCL_SOCKET_IFNAME=
export SGLANG_DEEPEP_NUM_MAX_DISPATCH_TOKENS_PER_RANK=24
export SGLANG_ENABLE_OVERLAP_PLAN_STREAM=1
- export SGLANG_ENABLE_SPEC_V2=1
export SGLANG_SPEC_ENABLE_OVERLAP_REFLOW=1
export TASK_QUEUE_ENABLE=0
@@ -1510,7 +1504,6 @@ do
export HCCL_SOCKET_IFNAME=
export SGLANG_DEEPEP_NUM_MAX_DISPATCH_TOKENS_PER_RANK=40
export SGLANG_ENABLE_OVERLAP_PLAN_STREAM=1
- export SGLANG_ENABLE_SPEC_V2=1
export SGLANG_SPEC_ENABLE_OVERLAP_REFLOW=1
export TASK_QUEUE_ENABLE=0
diff --git a/docs/docs/hardware-platforms/ascend-npus/model-deployment/best-practices/glm_5_2.mdx b/docs/docs/hardware-platforms/ascend-npus/model-deployment/best-practices/glm_5_2.mdx
index 2e631442ae..f74bfc7454 100644
--- a/docs/docs/hardware-platforms/ascend-npus/model-deployment/best-practices/glm_5_2.mdx
+++ b/docs/docs/hardware-platforms/ascend-npus/model-deployment/best-practices/glm_5_2.mdx
@@ -148,7 +148,6 @@ do
export HCCL_SOCKET_IFNAME=
export SGLANG_DEEPEP_NUM_MAX_DISPATCH_TOKENS_PER_RANK=40
export SGLANG_ENABLE_OVERLAP_PLAN_STREAM=1
- export SGLANG_ENABLE_SPEC_V2=1
export SGLANG_NPU_USE_MULTI_STREAM=1
export SGLANG_SPEC_ENABLE_OVERLAP_REFLOW=1
export TASK_QUEUE_ENABLE=0
diff --git a/docs/docs/hardware-platforms/ascend-npus/model-deployment/best-practices/kimi_k2_6.mdx b/docs/docs/hardware-platforms/ascend-npus/model-deployment/best-practices/kimi_k2_6.mdx
index 4fc9f3bf69..5419b1792a 100644
--- a/docs/docs/hardware-platforms/ascend-npus/model-deployment/best-practices/kimi_k2_6.mdx
+++ b/docs/docs/hardware-platforms/ascend-npus/model-deployment/best-practices/kimi_k2_6.mdx
@@ -277,7 +277,6 @@ do
export HCCL_SOCKET_IFNAME=
export SGLANG_DEEPEP_NUM_MAX_DISPATCH_TOKENS_PER_RANK=64
export SGLANG_ENABLE_OVERLAP_PLAN_STREAM=1
- export SGLANG_ENABLE_SPEC_V2=1
export SGLANG_NPU_USE_MLAPO=1
export SGLANG_NPU_USE_MULTI_STREAM=1
@@ -476,7 +475,6 @@ do
export HCCL_SOCKET_IFNAME=
export SGLANG_DEEPEP_NUM_MAX_DISPATCH_TOKENS_PER_RANK=64
export SGLANG_ENABLE_OVERLAP_PLAN_STREAM=1
- export SGLANG_ENABLE_SPEC_V2=1
export SGLANG_NPU_USE_MLAPO=1
export SGLANG_NPU_USE_MULTI_STREAM=1
@@ -674,7 +672,6 @@ do
export HCCL_SOCKET_IFNAME=
export SGLANG_DEEPEP_NUM_MAX_DISPATCH_TOKENS_PER_RANK=64
export SGLANG_ENABLE_OVERLAP_PLAN_STREAM=1
- export SGLANG_ENABLE_SPEC_V2=1
export SGLANG_NPU_USE_MLAPO=1
export SGLANG_NPU_USE_MULTI_STREAM=1
@@ -868,7 +865,6 @@ do
export HCCL_SOCKET_IFNAME=
export SGLANG_DEEPEP_NUM_MAX_DISPATCH_TOKENS_PER_RANK=64
export SGLANG_ENABLE_OVERLAP_PLAN_STREAM=1
- export SGLANG_ENABLE_SPEC_V2=1
export SGLANG_NPU_USE_MLAPO=1
export SGLANG_NPU_USE_MULTI_STREAM=1
@@ -1001,7 +997,6 @@ export HCCL_OP_EXPANSION_MODE=AIV
export PYTORCH_NPU_ALLOC_CONF=expandable_segments:True
export SGLANG_DEEPEP_NUM_MAX_DISPATCH_TOKENS_PER_RANK=112
export SGLANG_ENABLE_OVERLAP_PLAN_STREAM=1
-export SGLANG_ENABLE_SPEC_V2=1
export SGLANG_NPU_USE_MULTI_STREAM=1
export SGLANG_SET_CPU_AFFINITY=1
export STREAMS_PER_DEVICE=32
@@ -1112,7 +1107,6 @@ export HCCL_OP_EXPANSION_MODE=AIV
export PYTORCH_NPU_ALLOC_CONF=expandable_segments:True
export SGLANG_DEEPEP_NUM_MAX_DISPATCH_TOKENS_PER_RANK=32
export SGLANG_ENABLE_OVERLAP_PLAN_STREAM=1
-export SGLANG_ENABLE_SPEC_V2=1
export SGLANG_NPU_USE_MULTI_STREAM=1
export SGLANG_SET_CPU_AFFINITY=1
export STREAMS_PER_DEVICE=32
@@ -1228,7 +1222,6 @@ export PYTORCH_NPU_ALLOC_CONF=expandable_segments:True
export SGLANG_DEEPEP_NUM_MAX_DISPATCH_TOKENS_PER_RANK=96
export SGLANG_DISAGGREGATION_BOOTSTRAP_TIMEOUT=600
export SGLANG_ENABLE_OVERLAP_PLAN_STREAM=1
-export SGLANG_ENABLE_SPEC_V2=1
export SGLANG_NPU_USE_MLAPO=1
export SGLANG_NPU_USE_MULTI_STREAM=1
export SGLANG_SET_CPU_AFFINITY=1
@@ -1344,7 +1337,6 @@ export PYTORCH_NPU_ALLOC_CONF=expandable_segments:True
export SGLANG_DEEPEP_NUM_MAX_DISPATCH_TOKENS_PER_RANK=96
export SGLANG_DISAGGREGATION_BOOTSTRAP_TIMEOUT=600
export SGLANG_ENABLE_OVERLAP_PLAN_STREAM=1
-export SGLANG_ENABLE_SPEC_V2=1
export SGLANG_SET_CPU_AFFINITY=1
export STREAMS_PER_DEVICE=32
diff --git a/docs/docs/hardware-platforms/ascend-npus/model-deployment/best-practices/mimo_v2_5_pro.mdx b/docs/docs/hardware-platforms/ascend-npus/model-deployment/best-practices/mimo_v2_5_pro.mdx
index 148749b5bf..c18f549457 100644
--- a/docs/docs/hardware-platforms/ascend-npus/model-deployment/best-practices/mimo_v2_5_pro.mdx
+++ b/docs/docs/hardware-platforms/ascend-npus/model-deployment/best-practices/mimo_v2_5_pro.mdx
@@ -90,7 +90,6 @@ python3 -m sglang.launch_server \
```bash Command
# Use eagle_worker_v2 and overlap plan stream to hide the draft/target preparation
-export SGLANG_ENABLE_SPEC_V2=1
export SGLANG_ENABLE_OVERLAP_PLAN_STREAM=1
# DFlash draft model has a longer context length than the derived value
export SGLANG_ALLOW_OVERWRITE_LONGER_CONTEXT_LEN=1
diff --git a/docs/docs/hardware-platforms/ascend-npus/model-deployment/best-practices/mimo_v2_flash.mdx b/docs/docs/hardware-platforms/ascend-npus/model-deployment/best-practices/mimo_v2_flash.mdx
index 326b3aec86..8599e2c4f6 100644
--- a/docs/docs/hardware-platforms/ascend-npus/model-deployment/best-practices/mimo_v2_flash.mdx
+++ b/docs/docs/hardware-platforms/ascend-npus/model-deployment/best-practices/mimo_v2_flash.mdx
@@ -83,7 +83,6 @@ export SGLANG_DEEPEP_BF16_DISPATCH=0
export SGLANG_DISAGGREGATION_BOOTSTRAP_TIMEOUT=3600
export SGLANG_DISAGGREGATION_WAITING_TIMEOUT=3600
export SGLANG_ENABLE_OVERLAP_PLAN_STREAM=0
-export SGLANG_ENABLE_SPEC_V2=1
export SGLANG_SET_CPU_AFFINITY=1
export STREAMS_PER_DEVICE=32
@@ -268,7 +267,6 @@ export SGLANG_DEEPEP_BF16_DISPATCH=0
export SGLANG_DISAGGREGATION_BOOTSTRAP_TIMEOUT=3600
export SGLANG_DISAGGREGATION_WAITING_TIMEOUT=3600
export SGLANG_ENABLE_OVERLAP_PLAN_STREAM=0
-export SGLANG_ENABLE_SPEC_V2=1
export SGLANG_SET_CPU_AFFINITY=1
export STREAMS_PER_DEVICE=32
@@ -453,7 +451,6 @@ export SGLANG_DEEPEP_BF16_DISPATCH=0
export SGLANG_DISAGGREGATION_BOOTSTRAP_TIMEOUT=3600
export SGLANG_DISAGGREGATION_WAITING_TIMEOUT=3600
export SGLANG_ENABLE_OVERLAP_PLAN_STREAM=0
-export SGLANG_ENABLE_SPEC_V2=1
export SGLANG_SET_CPU_AFFINITY=1
export STREAMS_PER_DEVICE=32
@@ -638,7 +635,6 @@ export SGLANG_DEEPEP_BF16_DISPATCH=0
export SGLANG_DISAGGREGATION_BOOTSTRAP_TIMEOUT=3600
export SGLANG_DISAGGREGATION_WAITING_TIMEOUT=3600
export SGLANG_ENABLE_OVERLAP_PLAN_STREAM=0
-export SGLANG_ENABLE_SPEC_V2=1
export SGLANG_SET_CPU_AFFINITY=1
export STREAMS_PER_DEVICE=32
diff --git a/docs/docs/hardware-platforms/ascend-npus/model-deployment/best-practices/minimax_m2_5.mdx b/docs/docs/hardware-platforms/ascend-npus/model-deployment/best-practices/minimax_m2_5.mdx
index 8c5b96446c..4fdf7a210e 100644
--- a/docs/docs/hardware-platforms/ascend-npus/model-deployment/best-practices/minimax_m2_5.mdx
+++ b/docs/docs/hardware-platforms/ascend-npus/model-deployment/best-practices/minimax_m2_5.mdx
@@ -85,7 +85,6 @@ export HCCL_SOCKET_IFNAME=
export PYTORCH_NPU_ALLOC_CONF=expandable_segments:True
export SGLANG_DEEPEP_NUM_MAX_DISPATCH_TOKENS_PER_RANK=640
export SGLANG_ENABLE_OVERLAP_PLAN_STREAM=1
-export SGLANG_ENABLE_SPEC_V2=1
export SGLANG_ENABLE_TP_MEMORY_INBALANCE_CHECK=0
export SGLANG_EXTERNAL_MODEL_PACKAGE=custom_eagle3
export SGLANG_SET_CPU_AFFINITY=1
@@ -303,7 +302,6 @@ export HCCL_SOCKET_IFNAME=
export PYTORCH_NPU_ALLOC_CONF=expandable_segments:True
export SGLANG_DEEPEP_NUM_MAX_DISPATCH_TOKENS_PER_RANK=160000
export SGLANG_ENABLE_OVERLAP_PLAN_STREAM=1
-export SGLANG_ENABLE_SPEC_V2=1
export SGLANG_EXTERNAL_MODEL_PACKAGE=custom_eagle3
export SGLANG_NPU_FUSED_MOE_MODE=2
export SGLANG_SET_CPU_AFFINITY=1
@@ -414,7 +412,6 @@ export HCCL_SOCKET_IFNAME=
export PYTORCH_NPU_ALLOC_CONF=expandable_segments:True
export SGLANG_DEEPEP_NUM_MAX_DISPATCH_TOKENS_PER_RANK=204800
export SGLANG_ENABLE_OVERLAP_PLAN_STREAM=1
-export SGLANG_ENABLE_SPEC_V2=1
export SGLANG_EXTERNAL_MODEL_PACKAGE=custom_eagle3
export SGLANG_NPU_FUSED_MOE_MODE=2
export SGLANG_SET_CPU_AFFINITY=1
diff --git a/docs/docs/hardware-platforms/ascend-npus/model-deployment/best-practices/qwen3_235b_a22b.mdx b/docs/docs/hardware-platforms/ascend-npus/model-deployment/best-practices/qwen3_235b_a22b.mdx
index 0448dfd031..6c3a3f49a1 100644
--- a/docs/docs/hardware-platforms/ascend-npus/model-deployment/best-practices/qwen3_235b_a22b.mdx
+++ b/docs/docs/hardware-platforms/ascend-npus/model-deployment/best-practices/qwen3_235b_a22b.mdx
@@ -77,7 +77,6 @@ export HCCL_SOCKET_IFNAME=
export PYTORCH_NPU_ALLOC_CONF=expandable_segments:True
export SGLANG_DISAGGREGATION_BOOTSTRAP_TIMEOUT=600
export SGLANG_ENABLE_OVERLAP_PLAN_STREAM=1
-export SGLANG_ENABLE_SPEC_V2=1
python3 -m sglang.launch_server \
--model-path $MODEL_PATH \
@@ -176,7 +175,6 @@ export PYTORCH_NPU_ALLOC_CONF=expandable_segments:True
export SGLANG_DEEPEP_NUM_MAX_DISPATCH_TOKENS_PER_RANK=188416
export SGLANG_DISAGGREGATION_BOOTSTRAP_TIMEOUT=600
export SGLANG_ENABLE_OVERLAP_PLAN_STREAM=1
-export SGLANG_ENABLE_SPEC_V2=1
export SGLANG_NPU_FUSED_MOE_MODE=2
export SGLANG_PREFILL_DELAYER_MAX_DELAY_PASSES=100
export SGLANG_SCHEDULER_DECREASE_PREFILL_IDLE=1
diff --git a/docs/docs/hardware-platforms/ascend-npus/model-deployment/best-practices/qwen3_30b_a3b.mdx b/docs/docs/hardware-platforms/ascend-npus/model-deployment/best-practices/qwen3_30b_a3b.mdx
index 7aa70cd25b..d18fb53893 100644
--- a/docs/docs/hardware-platforms/ascend-npus/model-deployment/best-practices/qwen3_30b_a3b.mdx
+++ b/docs/docs/hardware-platforms/ascend-npus/model-deployment/best-practices/qwen3_30b_a3b.mdx
@@ -81,7 +81,6 @@ export INF_NAN_MODE_FORCE_DISABLE=1
export PYTORCH_NPU_ALLOC_CONF=expandable_segments:False
export SGLANG_ALLOW_OVERWRITE_LONGER_CONTEXT_LEN=1
export SGLANG_ENABLE_OVERLAP_PLAN_STREAM=1
-export SGLANG_ENABLE_SPEC_V2=1
export SGLANG_PREFILL_DELAYER_MAX_DELAY_PASSES=200
export SGLANG_SCHEDULER_DECREASE_PREFILL_IDLE=1
export SGLANG_USE_MAX_DP_ATT=1
@@ -186,7 +185,6 @@ export HCCL_SOCKET_IFNAME=
export PYTORCH_NPU_ALLOC_CONF=expandable_segments:True
export SGLANG_DISAGGREGATION_BOOTSTRAP_TIMEOUT=600
export SGLANG_ENABLE_OVERLAP_PLAN_STREAM=1
-export SGLANG_ENABLE_SPEC_V2=1
export SGLANG_PREFILL_DELAYER_MAX_DELAY_PASSES=200
export SGLANG_SCHEDULER_DECREASE_PREFILL_IDLE=1
@@ -386,7 +384,6 @@ export HCCL_SOCKET_IFNAME=
export PYTORCH_NPU_ALLOC_CONF=expandable_segments:True
export SGLANG_DISAGGREGATION_BOOTSTRAP_TIMEOUT=600
export SGLANG_ENABLE_OVERLAP_PLAN_STREAM=1
-export SGLANG_ENABLE_SPEC_V2=1
export SGLANG_SET_CPU_AFFINITY=1
export TRANSFORMERS_VERBOSITY=error
diff --git a/docs/docs/hardware-platforms/ascend-npus/model-deployment/best-practices/qwen3_5_397b.mdx b/docs/docs/hardware-platforms/ascend-npus/model-deployment/best-practices/qwen3_5_397b.mdx
index cfd82ab235..767fd2f5a9 100644
--- a/docs/docs/hardware-platforms/ascend-npus/model-deployment/best-practices/qwen3_5_397b.mdx
+++ b/docs/docs/hardware-platforms/ascend-npus/model-deployment/best-practices/qwen3_5_397b.mdx
@@ -89,7 +89,6 @@ export HCCL_SOCKET_IFNAME=
export PYTORCH_NPU_ALLOC_CONF=expandable_segments:True
export SGLANG_DEEPEP_NUM_MAX_DISPATCH_TOKENS_PER_RANK=128
export SGLANG_ENABLE_OVERLAP_PLAN_STREAM=1
-export SGLANG_ENABLE_SPEC_V2=1
export SGLANG_ENABLE_TP_MEMORY_INBALANCE_CHECK=0
export SGLANG_SET_CPU_AFFINITY=1
export SGLANG_ZBAL_BOOTSTRAP_URL=tcp://127.0.0.1:24669
@@ -203,7 +202,6 @@ export HCCL_SOCKET_IFNAME=
export PYTORCH_NPU_ALLOC_CONF=expandable_segments:True
export SGLANG_DEEPEP_NUM_MAX_DISPATCH_TOKENS_PER_RANK=128
export SGLANG_ENABLE_OVERLAP_PLAN_STREAM=1
-export SGLANG_ENABLE_SPEC_V2=1
export SGLANG_ENABLE_TP_MEMORY_INBALANCE_CHECK=0
export SGLANG_SET_CPU_AFFINITY=1
export SGLANG_ZBAL_BOOTSTRAP_URL=tcp://127.0.0.1:24669
@@ -316,7 +314,6 @@ export HCCL_SOCKET_IFNAME=
export PYTORCH_NPU_ALLOC_CONF=expandable_segments:True
export SGLANG_DEEPEP_NUM_MAX_DISPATCH_TOKENS_PER_RANK=128
export SGLANG_ENABLE_OVERLAP_PLAN_STREAM=1
-export SGLANG_ENABLE_SPEC_V2=1
export SGLANG_SET_CPU_AFFINITY=1
export STREAMS_PER_DEVICE=32
@@ -428,7 +425,6 @@ export HCCL_SOCKET_IFNAME=
export PYTORCH_NPU_ALLOC_CONF=expandable_segments:True
export SGLANG_DEEPEP_NUM_MAX_DISPATCH_TOKENS_PER_RANK=128
export SGLANG_ENABLE_OVERLAP_PLAN_STREAM=1
-export SGLANG_ENABLE_SPEC_V2=1
export SGLANG_ENABLE_TP_MEMORY_INBALANCE_CHECK=0
export SGLANG_SET_CPU_AFFINITY=1
export SGLANG_ZBAL_BOOTSTRAP_URL=tcp://127.0.0.1:24669
@@ -546,7 +542,6 @@ export HCCL_SOCKET_IFNAME=
export PYTORCH_NPU_ALLOC_CONF=expandable_segments:True
export SGLANG_DEEPEP_NUM_MAX_DISPATCH_TOKENS_PER_RANK=128
export SGLANG_ENABLE_OVERLAP_PLAN_STREAM=1
-export SGLANG_ENABLE_SPEC_V2=1
export SGLANG_ENABLE_TP_MEMORY_INBALANCE_CHECK=0
export SGLANG_SET_CPU_AFFINITY=1
export SGLANG_ZBAL_BOOTSTRAP_URL=tcp://127.0.0.1:24669
@@ -664,7 +659,6 @@ export HCCL_SOCKET_IFNAME=
export PYTORCH_NPU_ALLOC_CONF=expandable_segments:True
export SGLANG_DEEPEP_NUM_MAX_DISPATCH_TOKENS_PER_RANK=128
export SGLANG_ENABLE_OVERLAP_PLAN_STREAM=1
-export SGLANG_ENABLE_SPEC_V2=1
export SGLANG_ENABLE_TP_MEMORY_INBALANCE_CHECK=0
export SGLANG_SET_CPU_AFFINITY=1
export SGLANG_ZBAL_BOOTSTRAP_URL=tcp://127.0.0.1:24669
@@ -781,7 +775,6 @@ export HCCL_SOCKET_IFNAME=
export PYTORCH_NPU_ALLOC_CONF=expandable_segments:True
export SGLANG_DEEPEP_NUM_MAX_DISPATCH_TOKENS_PER_RANK=128
export SGLANG_ENABLE_OVERLAP_PLAN_STREAM=1
-export SGLANG_ENABLE_SPEC_V2=1
export SGLANG_ENABLE_TP_MEMORY_INBALANCE_CHECK=0
export SGLANG_SET_CPU_AFFINITY=1
export SGLANG_ZBAL_BOOTSTRAP_URL=tcp://127.0.0.1:24669
@@ -898,7 +891,6 @@ export HCCL_SOCKET_IFNAME=
export PYTORCH_NPU_ALLOC_CONF=expandable_segments:True
export SGLANG_DEEPEP_NUM_MAX_DISPATCH_TOKENS_PER_RANK=128
export SGLANG_ENABLE_OVERLAP_PLAN_STREAM=1
-export SGLANG_ENABLE_SPEC_V2=1
export SGLANG_ENABLE_TP_MEMORY_INBALANCE_CHECK=0
export SGLANG_SET_CPU_AFFINITY=1
export SGLANG_ZBAL_BOOTSTRAP_URL=tcp://127.0.0.1:24669
@@ -1016,7 +1008,6 @@ export HCCL_SOCKET_IFNAME=
export PYTORCH_NPU_ALLOC_CONF=expandable_segments:True
export SGLANG_DEEPEP_NUM_MAX_DISPATCH_TOKENS_PER_RANK=128
export SGLANG_ENABLE_OVERLAP_PLAN_STREAM=1
-export SGLANG_ENABLE_SPEC_V2=1
export SGLANG_ENABLE_TP_MEMORY_INBALANCE_CHECK=0
export SGLANG_SET_CPU_AFFINITY=1
export SGLANG_ZBAL_BOOTSTRAP_URL=tcp://127.0.0.1:24669
@@ -1134,7 +1125,6 @@ export HCCL_SOCKET_IFNAME=
export PYTORCH_NPU_ALLOC_CONF=expandable_segments:True
export SGLANG_DEEPEP_NUM_MAX_DISPATCH_TOKENS_PER_RANK=128
export SGLANG_ENABLE_OVERLAP_PLAN_STREAM=1
-export SGLANG_ENABLE_SPEC_V2=1
export SGLANG_SET_CPU_AFFINITY=1
export STREAMS_PER_DEVICE=32
diff --git a/docs/docs/hardware-platforms/ascend-npus/model-deployment/best-practices/qwen3_6_27b.mdx b/docs/docs/hardware-platforms/ascend-npus/model-deployment/best-practices/qwen3_6_27b.mdx
index 289913e118..1505612f7e 100644
--- a/docs/docs/hardware-platforms/ascend-npus/model-deployment/best-practices/qwen3_6_27b.mdx
+++ b/docs/docs/hardware-platforms/ascend-npus/model-deployment/best-practices/qwen3_6_27b.mdx
@@ -279,7 +279,6 @@ export HCCL_OP_EXPANSION_MODE=AIV
export HCCL_SOCKET_IFNAME=
export PYTORCH_NPU_ALLOC_CONF=expandable_segments:True
export SGLANG_ENABLE_OVERLAP_PLAN_STREAM=1
-export SGLANG_ENABLE_SPEC_V2=1
export SGLANG_SET_CPU_AFFINITY=1
export STREAMS_PER_DEVICE=32
@@ -662,7 +661,6 @@ export GLOO_SOCKET_IFNAME=
export HCCL_OP_EXPANSION_MODE=AIV
export HCCL_SOCKET_IFNAME=
export SGLANG_ENABLE_OVERLAP_PLAN_STREAM=1
-export SGLANG_ENABLE_SPEC_V2=1
export SGLANG_PREFILL_DELAYER_MAX_DELAY_PASSES=50
export SGLANG_SCHEDULER_DECREASE_PREFILL_IDLE=1
export SGLANG_SET_CPU_AFFINITY=1
diff --git a/docs/docs/hardware-platforms/ascend-npus/model-deployment/best-practices/qwen3_6_35b_a3b.mdx b/docs/docs/hardware-platforms/ascend-npus/model-deployment/best-practices/qwen3_6_35b_a3b.mdx
index de32687315..91ab777df8 100644
--- a/docs/docs/hardware-platforms/ascend-npus/model-deployment/best-practices/qwen3_6_35b_a3b.mdx
+++ b/docs/docs/hardware-platforms/ascend-npus/model-deployment/best-practices/qwen3_6_35b_a3b.mdx
@@ -82,7 +82,6 @@ export HCCL_OP_EXPANSION_MODE=AIV
export HCCL_SOCKET_IFNAME=
export PYTORCH_NPU_ALLOC_CONF=expandable_segments:True
export SGLANG_ENABLE_OVERLAP_PLAN_STREAM=1
-export SGLANG_ENABLE_SPEC_V2=1
export SGLANG_SET_CPU_AFFINITY=1
export SGLANG_VIT_ENABLE_CUDA_GRAPH=1
export STREAMS_PER_DEVICE=32
@@ -185,7 +184,6 @@ export HCCL_OP_EXPANSION_MODE=AIV
export HCCL_SOCKET_IFNAME=
export PYTORCH_NPU_ALLOC_CONF=expandable_segments:True
export SGLANG_ENABLE_OVERLAP_PLAN_STREAM=1
-export SGLANG_ENABLE_SPEC_V2=1
export SGLANG_SET_CPU_AFFINITY=1
export SGLANG_VIT_ENABLE_CUDA_GRAPH=1
export STREAMS_PER_DEVICE=32
@@ -489,7 +487,6 @@ export HCCL_OP_EXPANSION_MODE=AIV
export HCCL_SOCKET_IFNAME=
export PYTORCH_NPU_ALLOC_CONF=expandable_segments:True
export SGLANG_ENABLE_OVERLAP_PLAN_STREAM=1
-export SGLANG_ENABLE_SPEC_V2=1
export SGLANG_SET_CPU_AFFINITY=1
export STREAMS_PER_DEVICE=32
@@ -888,7 +885,6 @@ export HCCL_SOCKET_IFNAME=
export PYTORCH_NPU_ALLOC_CONF=expandable_segments:True
export SGLANG_ALLOW_OVERWRITE_LONGER_CONTEXT_LEN=1
export SGLANG_ENABLE_OVERLAP_PLAN_STREAM=1
-export SGLANG_ENABLE_SPEC_V2=1
export SGLANG_SET_CPU_AFFINITY=1
export STREAMS_PER_DEVICE=32
diff --git a/docs/docs/hardware-platforms/ascend-npus/model-deployment/best-practices/qwen3_8b.mdx b/docs/docs/hardware-platforms/ascend-npus/model-deployment/best-practices/qwen3_8b.mdx
index 2b125e6218..bdc4284435 100644
--- a/docs/docs/hardware-platforms/ascend-npus/model-deployment/best-practices/qwen3_8b.mdx
+++ b/docs/docs/hardware-platforms/ascend-npus/model-deployment/best-practices/qwen3_8b.mdx
@@ -175,7 +175,6 @@ export HCCL_SOCKET_IFNAME=
export PYTORCH_NPU_ALLOC_CONF=expandable_segments:True
export SGLANG_DISAGGREGATION_BOOTSTRAP_TIMEOUT=600
export SGLANG_ENABLE_OVERLAP_PLAN_STREAM=1
-export SGLANG_ENABLE_SPEC_V2=1
python3 -m sglang.launch_server \
--model-path $MODEL_PATH \
diff --git a/docs/docs/hardware-platforms/ascend-npus/model-deployment/best-practices/qwen3_next_80b_a3b_instruct.mdx b/docs/docs/hardware-platforms/ascend-npus/model-deployment/best-practices/qwen3_next_80b_a3b_instruct.mdx
index bcf516b92f..f0f6e8e68a 100644
--- a/docs/docs/hardware-platforms/ascend-npus/model-deployment/best-practices/qwen3_next_80b_a3b_instruct.mdx
+++ b/docs/docs/hardware-platforms/ascend-npus/model-deployment/best-practices/qwen3_next_80b_a3b_instruct.mdx
@@ -82,7 +82,6 @@ export HCCL_SOCKET_IFNAME=
export PYTORCH_NPU_ALLOC_CONF=expandable_segments:True
export SGLANG_DEEPEP_NUM_MAX_DISPATCH_TOKENS_PER_RANK=400
export SGLANG_ENABLE_OVERLAP_PLAN_STREAM=1
-export SGLANG_ENABLE_SPEC_V2=1
export SGLANG_ENABLE_TP_MEMORY_INBALANCE_CHECK=0
export SGLANG_NPU_USE_MULTI_STREAM=0
export SGLANG_SET_CPU_AFFINITY=1
@@ -195,7 +194,6 @@ export HCCL_SOCKET_IFNAME=
export PYTORCH_NPU_ALLOC_CONF=expandable_segments:True
export SGLANG_DEEPEP_NUM_MAX_DISPATCH_TOKENS_PER_RANK=330
export SGLANG_ENABLE_OVERLAP_PLAN_STREAM=1
-export SGLANG_ENABLE_SPEC_V2=1
export SGLANG_ENABLE_TP_MEMORY_INBALANCE_CHECK=0
export SGLANG_NPU_USE_MULTI_STREAM=0
export SGLANG_SET_CPU_AFFINITY=1
diff --git a/docs/docs/hardware-platforms/ascend-npus/model-deployment/tutorials/deepseek_v4_flash.mdx b/docs/docs/hardware-platforms/ascend-npus/model-deployment/tutorials/deepseek_v4_flash.mdx
index 4620ccc918..bffa9c5330 100644
--- a/docs/docs/hardware-platforms/ascend-npus/model-deployment/tutorials/deepseek_v4_flash.mdx
+++ b/docs/docs/hardware-platforms/ascend-npus/model-deployment/tutorials/deepseek_v4_flash.mdx
@@ -188,7 +188,6 @@ export INF_NAN_MODE_FORCE_DISABLE=1
export PYTORCH_NPU_ALLOC_CONF=expandable_segments:True
export SGLANG_DSV4_FP4_EXPERTS=False
export SGLANG_ENABLE_OVERLAP_PLAN_STREAM=1
-export SGLANG_ENABLE_SPEC_V2=1
export SGLANG_ENABLE_TP_MEMORY_INBALANCE_CHECK=0
export SGLANG_OPT_BF16_FP32_GEMM_ALGO=torch
export SGLANG_OPT_DEEPGEMM_HC_PRENORM=False
diff --git a/docs/docs/hardware-platforms/ascend-npus/model-deployment/tutorials/hy3.mdx b/docs/docs/hardware-platforms/ascend-npus/model-deployment/tutorials/hy3.mdx
index c2ac0d5611..a695bb7237 100644
--- a/docs/docs/hardware-platforms/ascend-npus/model-deployment/tutorials/hy3.mdx
+++ b/docs/docs/hardware-platforms/ascend-npus/model-deployment/tutorials/hy3.mdx
@@ -185,7 +185,6 @@ export HCCL_SOCKET_IFNAME=lo
export GLOO_SOCKET_IFNAME=lo
# SGLang settings
-export SGLANG_ENABLE_SPEC_V2=1
export SGLANG_ENABLE_OVERLAP_PLAN_STREAM=1
export DEEP_NORMAL_MODE_USE_INT8_QUANT=1
```
@@ -249,7 +248,6 @@ export HCCL_SOCKET_IFNAME=
export GLOO_SOCKET_IFNAME=
# SGLang settings
-export SGLANG_ENABLE_SPEC_V2=1
export SGLANG_ENABLE_OVERLAP_PLAN_STREAM=1
export DEEP_NORMAL_MODE_USE_INT8_QUANT=1
```
diff --git a/docs/docs/hardware-platforms/ascend-npus/model-deployment/tutorials/qwen3_8_max.mdx b/docs/docs/hardware-platforms/ascend-npus/model-deployment/tutorials/qwen3_8_max.mdx
index e64e5e6cd9..4c398e08c5 100644
--- a/docs/docs/hardware-platforms/ascend-npus/model-deployment/tutorials/qwen3_8_max.mdx
+++ b/docs/docs/hardware-platforms/ascend-npus/model-deployment/tutorials/qwen3_8_max.mdx
@@ -198,7 +198,6 @@ do
# overlap schedule
export SGLANG_ENABLE_OVERLAP_PLAN_STREAM=1
- export SGLANG_ENABLE_SPEC_V2=1
export SGLANG_RAGGED_VERIFY_MODE=static
sglang serve \
diff --git a/docs/docs/hardware-platforms/ascend-npus/reference/support_features.mdx b/docs/docs/hardware-platforms/ascend-npus/reference/support_features.mdx
index b20ccbfd8c..5275f94b1a 100644
--- a/docs/docs/hardware-platforms/ascend-npus/reference/support_features.mdx
+++ b/docs/docs/hardware-platforms/ascend-npus/reference/support_features.mdx
@@ -2340,12 +2340,6 @@ If the value is int8, you must also set the environment variable:DEEP_NORMAL_MOD
bool flag (set to enable) |
A2/A3 Series |
-
- | `--keep-mm-feature-on-device` |
- `False` |
- bool flag (set to enable) |
- A2/A3 Series |
-
| `--enable-return-hidden-states` |
`False` |
diff --git a/docs/docs/references/environment_variables.mdx b/docs/docs/references/environment_variables.mdx
index 0f008860b8..f013ac4ce4 100644
--- a/docs/docs/references/environment_variables.mdx
+++ b/docs/docs/references/environment_variables.mdx
@@ -412,12 +412,12 @@ SGLang supports various environment variables that can be used to configure its
true |
- SGLANG_ENABLE_LOGITS_PROCESSER_CHUNK |
+ SGLANG_ENABLE_LOGPROB_CHUNK |
Process logits in chunks to reduce peak memory. |
- false |
+ true |
- SGLANG_LOGITS_PROCESSER_CHUNK_SIZE |
+ SGLANG_LOGPROB_CHUNK_SIZE |
Chunk size (in tokens) used when logits-processor chunking is enabled. |
2048 |
@@ -491,9 +491,9 @@ SGLang supports various environment variables that can be used to configure its
"auto" |
- SGLANG_MORI_FP8_COMB |
- Use FP8 for combine |
- "false" |
+ SGLANG_MORI_COMBINE_DTYPE |
+ Combine dtype: auto, bf16, fp8, fp4, or fp8_direct_cast |
+ "auto" |
MORI_DISABLE_AUTO_XGMI |
@@ -563,7 +563,7 @@ SGLang supports various environment variables that can be used to configure its
SGLANG_DSA_FUSE_TOPK |
- Fuse the operation of picking topk logits and picking topk indices from page table. SGLANG_NSA_FUSE_TOPK is a deprecated alias. |
+ Fuse the operation of picking topk logits and picking topk indices from page table. |
true |
@@ -578,7 +578,7 @@ SGLang supports various environment variables that can be used to configure its
SGLANG_DSA_PREFILL_DENSE_ATTN_KV_LEN_THRESHOLD |
- When the maximum kv len in current prefill batch exceeds this value, the sparse mla kernel will be applied, else it falls back to dense MHA implementation. Default to the index topk of model (2048 for DeepSeek V3.2). SGLANG_NSA_PREFILL_DENSE_ATTN_KV_LEN_THRESHOLD is a deprecated alias. |
+ When the maximum kv len in current prefill batch exceeds this value, the sparse mla kernel will be applied, else it falls back to dense MHA implementation. Default to the index topk of model (2048 for DeepSeek V3.2). |
2048 |
@@ -608,7 +608,7 @@ SGLang supports various environment variables that can be used to configure its
SGLANG_DSA_HIP_DISABLE_PRESHUFFLE |
- Disable weight pre-shuffle on the HIP DSA path. SGLANG_NSA_HIP_DISABLE_PRESHUFFLE is a deprecated alias. |
+ Disable weight pre-shuffle on the HIP DSA path. |
false |
@@ -1788,11 +1788,6 @@ SGLang supports various environment variables that can be used to configure its
| Output directory for the expert-distribution recorder. |
/tmp |
-
- SGLANG_ENABLE_EPLB_BALANCEDNESS_METRIC |
- Removed. Use --expert-balancedness-report-mode=prometheus to emit the EPLB balancedness metric. |
- false |
-
SGLANG_LOG_EXPERT_LOCATION_METADATA |
Log expert-location metadata. |
diff --git a/docs/docs/supported-models/multimodal_language_models.mdx b/docs/docs/supported-models/multimodal_language_models.mdx
index 44dac8a40f..f7e5010a3e 100644
--- a/docs/docs/supported-models/multimodal_language_models.mdx
+++ b/docs/docs/supported-models/multimodal_language_models.mdx
@@ -409,12 +409,12 @@ sglang serve \
### Performance Optimization
-For multimodal models, you can use the `--keep-mm-feature-on-device` flag to optimize for latency at the cost of increased GPU memory usage:
+For multimodal models, you can use `--mm-feature-transport=cuda_ipc` to optimize for latency at the cost of increased GPU memory usage:
- **Default behavior**: Multimodal feature tensors are moved to CPU after processing to save GPU memory
-- **With `--keep-mm-feature-on-device`**: Feature tensors remain on GPU, reducing device-to-host copy overhead and improving latency, but consuming more GPU memory
+- **With `--mm-feature-transport=cuda_ipc`**: Feature tensors stay in a bounded GPU pool shared over CUDA IPC, reducing device-to-host copy overhead and improving latency, but consuming more GPU memory
-Use this flag when you have sufficient GPU memory and want to minimize latency for multimodal inference.
+Use this option when you have sufficient GPU memory and want to minimize latency for multimodal inference.
### Multimodal Inputs Limitation
diff --git a/docs/docs/supported-models/support_new_models.mdx b/docs/docs/supported-models/support_new_models.mdx
index ba78367327..bc2f7ac0ba 100644
--- a/docs/docs/supported-models/support_new_models.mdx
+++ b/docs/docs/supported-models/support_new_models.mdx
@@ -61,7 +61,7 @@ should give the same text output and very similar prefill logits:
```
- Get the SGLang output:
```bash Command
- python3 -m sglang.bench_one_batch --correct --model [new model]
+ python3 -m sglang.benchmark.one_batch --correct --model [new model]
```
### Add the Model to the Test Suite
diff --git a/docs/src/snippets/configs/Qwen/qwen3.8-27b.jsx b/docs/src/snippets/configs/Qwen/qwen3.8-27b.jsx
index 64dded2883..d6fa52f95c 100644
--- a/docs/src/snippets/configs/Qwen/qwen3.8-27b.jsx
+++ b/docs/src/snippets/configs/Qwen/qwen3.8-27b.jsx
@@ -360,7 +360,7 @@ export const config = {
accuracy: {
gsm8k_pct:
`python3 -m sglang.test.run_eval \\
- --host http://{{CURL_HOST}} --port {{CURL_PORT}} \\
+ --host {{CURL_HOST}} --port {{CURL_PORT}} \\
--model {{MODEL_NAME}} \\
--eval-name gsm8k \\
--num-examples 1319`,
diff --git a/docs/src/snippets/configs/moonshotai/kimi-k3.jsx b/docs/src/snippets/configs/moonshotai/kimi-k3.jsx
index 00daa4ce3b..d962ef3f94 100644
--- a/docs/src/snippets/configs/moonshotai/kimi-k3.jsx
+++ b/docs/src/snippets/configs/moonshotai/kimi-k3.jsx
@@ -2417,7 +2417,6 @@ export const config = {
"SGLANG_K3_SHARED_EXPERTS_ATTN_TP=1",
"SGLANG_K3_DENSE_MLP_ATTN_TP=1",
"SGLANG_NPU_USE_TRITON_PREFIX_KV_CACHE_STORE=1",
- "SGLANG_ENABLE_SPEC_V2=1",
"SGLANG_RAGGED_VERIFY_MODE=static",
"SGLANG_DSPARK_FOLDED_PROPOSAL=0",
"SGLANG_DSPARK_FOLDED_SAMPLING=0",
@@ -2490,7 +2489,6 @@ export const config = {
"SGLANG_NPU_USE_FIAS_V2_BSND=True",
"SGLANG_NPU_FINE_GRAINED_MOE_DUAL_STREAM=True",
"SGLANG_ENABLE_OVERLAP_PLAN_STREAM=1",
- "SGLANG_ENABLE_SPEC_V2=1",
"SGLANG_RAGGED_VERIFY_MODE=static",
"SGLANG_DSPARK_FOLDED_PROPOSAL=0",
"SGLANG_DSPARK_FOLDED_SAMPLING=0",
diff --git a/python/sglang/README.md b/python/sglang/README.md
index e9801d2ace..3d830685e3 100644
--- a/python/sglang/README.md
+++ b/python/sglang/README.md
@@ -14,8 +14,6 @@
- `README.md`: This package structure overview.
- `__init__.py`: Package initialization and public Python APIs.
-- `bench_offline_throughput.py`: Deprecated wrapper for the offline throughput benchmark.
-- `bench_one_batch.py`: Deprecated wrapper for the one-batch benchmark.
- `bench_one_batch_server.py`: Deprecated wrapper for the server-based one-batch benchmark.
- `bench_serving.py`: Deprecated wrapper for the online serving benchmark.
- `check_env.py`: Environment and dependency diagnostics.
diff --git a/python/sglang/bench_offline_throughput.py b/python/sglang/bench_offline_throughput.py
deleted file mode 100644
index 9120157c7d..0000000000
--- a/python/sglang/bench_offline_throughput.py
+++ /dev/null
@@ -1,23 +0,0 @@
-"""Deprecated import path for ``sglang.benchmark.offline_throughput``.
-
-``python -m sglang.bench_offline_throughput`` and
-``from sglang.bench_offline_throughput import ...`` still work, but the
-implementation now lives in ``sglang.benchmark.offline_throughput``.
-Update references to the new path.
-"""
-
-import warnings
-
-from sglang.benchmark.offline_throughput import * # noqa: F401,F403
-from sglang.benchmark.offline_throughput import cli_main
-
-warnings.warn(
- "`sglang.bench_offline_throughput` is deprecated and will be removed in a "
- "future release; use `sglang.benchmark.offline_throughput` instead "
- "(e.g. `python -m sglang.benchmark.offline_throughput`).",
- FutureWarning,
- stacklevel=1,
-)
-
-if __name__ == "__main__":
- cli_main()
diff --git a/python/sglang/bench_one_batch.py b/python/sglang/bench_one_batch.py
deleted file mode 100644
index 684c2a4c96..0000000000
--- a/python/sglang/bench_one_batch.py
+++ /dev/null
@@ -1,22 +0,0 @@
-"""Deprecated import path for ``sglang.benchmark.one_batch``.
-
-``python -m sglang.bench_one_batch`` and ``from sglang.bench_one_batch import ...``
-still work, but the implementation now lives in ``sglang.benchmark.one_batch``.
-Update references to the new path.
-"""
-
-import warnings
-
-from sglang.benchmark.one_batch import * # noqa: F401,F403
-from sglang.benchmark.one_batch import cli_main
-
-warnings.warn(
- "`sglang.bench_one_batch` is deprecated and will be removed in a future "
- "release; use `sglang.benchmark.one_batch` instead "
- "(e.g. `python -m sglang.benchmark.one_batch`).",
- FutureWarning,
- stacklevel=1,
-)
-
-if __name__ == "__main__":
- cli_main()
diff --git a/python/sglang/benchmark/one_batch.py b/python/sglang/benchmark/one_batch.py
index 9240a7df21..35921dae64 100644
--- a/python/sglang/benchmark/one_batch.py
+++ b/python/sglang/benchmark/one_batch.py
@@ -278,7 +278,6 @@ class BenchArgs:
)
parser.add_argument(
"--profile-prefix",
- "--profile-filename-prefix", # deprecated alias, kept for back-compat
dest="profile_prefix",
type=str,
default=BenchArgs.profile_prefix,
diff --git a/python/sglang/kernels/aot/benchmark/bench_rotary_embedding.py b/python/sglang/kernels/aot/benchmark/bench_rotary_embedding.py
index bd3a900c79..b8b42babaf 100644
--- a/python/sglang/kernels/aot/benchmark/bench_rotary_embedding.py
+++ b/python/sglang/kernels/aot/benchmark/bench_rotary_embedding.py
@@ -91,8 +91,6 @@ def benchmark(batch_size, seq_len, save_kv_cache, provider):
value=inputs["value"],
k_buffer=pool_flashinfer.k_buffer[0].view(-1, num_kv_heads * head_size),
v_buffer=pool_flashinfer.v_buffer[0].view(-1, num_kv_heads * head_size),
- k_scale=None,
- v_scale=None,
cache_loc=inputs["out_cache_loc"],
)
if save_kv_cache
diff --git a/python/sglang/kernels/aot/python/sgl_kernel/testing/rotary_embedding.py b/python/sglang/kernels/aot/python/sgl_kernel/testing/rotary_embedding.py
index 5a9eb65260..d020d814ad 100644
--- a/python/sglang/kernels/aot/python/sgl_kernel/testing/rotary_embedding.py
+++ b/python/sglang/kernels/aot/python/sgl_kernel/testing/rotary_embedding.py
@@ -17,9 +17,6 @@ class FusedSetKVBufferArg:
k_buffer: torch.Tensor
v_buffer: torch.Tensor
cache_loc: torch.Tensor
- # Kept for backward compatibility with old sgl_kernel test/bench callsites.
- k_scale: Optional[float] = None
- v_scale: Optional[float] = None
def to_jit(self) -> _JitFusedSetKVBufferArg:
return _JitFusedSetKVBufferArg(
diff --git a/python/sglang/srt/arg_groups/field_order.py b/python/sglang/srt/arg_groups/field_order.py
index 6b104eb4af..99879192e0 100644
--- a/python/sglang/srt/arg_groups/field_order.py
+++ b/python/sglang/srt/arg_groups/field_order.py
@@ -339,7 +339,6 @@ POSITIONAL_FIELD_ORDER = (
"elastic_ep_initial_size",
"max_ep_size",
"elastic_ep_scale_timeout",
- "elastic_ep_rejoin",
"disable_flashinfer_cutlass_moe_fp4_allgather",
"disable_shared_experts_fusion",
"enforce_shared_experts_fusion",
@@ -393,7 +392,6 @@ POSITIONAL_FIELD_ORDER = (
"mm_global_cache_backend",
"disable_fast_image_processor",
"mm_feature_transport",
- "keep_mm_feature_on_device",
"enable_lora",
"enable_lora_overlap_loading",
"max_lora_rank",
diff --git a/python/sglang/srt/arg_groups/fields/exec_.py b/python/sglang/srt/arg_groups/fields/exec_.py
index 884b68f4b9..8830c3707b 100644
--- a/python/sglang/srt/arg_groups/fields/exec_.py
+++ b/python/sglang/srt/arg_groups/fields/exec_.py
@@ -821,10 +821,6 @@ class ExecMoe(msgspec.Struct):
elastic_ep_scale_timeout: A[
float, "Timeout in seconds for a pending elastic EP scale operation."
] = 600
- elastic_ep_rejoin: A[
- bool,
- "[Deprecated] Alias for --elastic-ep-join-mode recover.",
- ] = False
disable_flashinfer_cutlass_moe_fp4_allgather: A[
bool, "Disables quantize before all-gather for flashinfer cutlass moe."
] = False
diff --git a/python/sglang/srt/arg_groups/fields/mm.py b/python/sglang/srt/arg_groups/fields/mm.py
index 5313c09e0d..0ea162eeff 100644
--- a/python/sglang/srt/arg_groups/fields/mm.py
+++ b/python/sglang/srt/arg_groups/fields/mm.py
@@ -157,8 +157,3 @@ class Mm(msgspec.Struct):
resolvable=True,
),
] = None
- keep_mm_feature_on_device: A[
- bool,
- "Deprecated. Use --mm-feature-transport=cuda_ipc for bounded GPU-resident "
- "multimodal feature transport.",
- ] = False
diff --git a/python/sglang/srt/arg_groups/fields/model.py b/python/sglang/srt/arg_groups/fields/model.py
index 606279c01a..1f2c42bed1 100644
--- a/python/sglang/srt/arg_groups/fields/model.py
+++ b/python/sglang/srt/arg_groups/fields/model.py
@@ -214,7 +214,6 @@ class Model(msgspec.Struct):
"bfloat16",
"nvfp4",
"fp4_mx_block16",
- "fp4_e2m1",
],
resolvable=True,
),
diff --git a/python/sglang/srt/arg_groups/fields/serving.py b/python/sglang/srt/arg_groups/fields/serving.py
index 0be6599fc9..abc81835a1 100644
--- a/python/sglang/srt/arg_groups/fields/serving.py
+++ b/python/sglang/srt/arg_groups/fields/serving.py
@@ -163,7 +163,7 @@ class Serving(msgspec.Struct):
] = None
admin_api_key: A[
Optional[str],
- "Set admin API key for sensitive management endpoints (e.g. /clear_hicache_storage_backend). When set, admin endpoints require this key and do NOT accept --api-key.",
+ "Set admin API key for sensitive management endpoints (e.g. /hicache/storage-backend/clear). When set, admin endpoints require this key and do NOT accept --api-key.",
] = None
served_model_name: A[
Optional[str],
diff --git a/python/sglang/srt/arg_groups/overrides.py b/python/sglang/srt/arg_groups/overrides.py
index 66da6f1aa7..d2b2eca4e8 100644
--- a/python/sglang/srt/arg_groups/overrides.py
+++ b/python/sglang/srt/arg_groups/overrides.py
@@ -1263,9 +1263,9 @@ def _mla_kv_cache_dtype_checks(view: Any) -> dict:
raise ValueError(
"TRTLLM MLA backend is only supported on Blackwell GPUs (SM100/SM12x). Please use a different backend."
)
- if view.kv_cache_dtype not in ["fp8_e4m3", "fp4_e2m1", "bf16", "auto"]:
+ if view.kv_cache_dtype not in ["fp8_e4m3", "bf16", "auto"]:
raise ValueError(
- "TensorRT-LLM MLA backend only supports kv-cache-dtype of fp8_e4m3, fp4_e2m1, bf16, or auto."
+ "TensorRT-LLM MLA backend only supports kv-cache-dtype of fp8_e4m3, bf16, or auto."
)
if (
view.attention_backend == "tokenspeed_mla"
@@ -1824,8 +1824,6 @@ def post_capture_kv_sizing_planned(server_args: Any) -> bool:
return False
if mla_enabled:
return False
- if cfg.kv_cache_dtype == "fp4_e2m1":
- return False
if cfg.prefill_only_disable_kv_cache:
return False
if cfg.enable_memory_saver:
diff --git a/python/sglang/srt/arg_groups/parallel_hook.py b/python/sglang/srt/arg_groups/parallel_hook.py
index 1c92d5791f..20cb28fc8c 100644
--- a/python/sglang/srt/arg_groups/parallel_hook.py
+++ b/python/sglang/srt/arg_groups/parallel_hook.py
@@ -397,21 +397,6 @@ def handle_elastic_ep(server_args: Any):
from sglang.srt.arg_groups.validation_hook import validate_ib_devices
cfg = resolving_view(server_args)
- if cfg.elastic_ep_rejoin:
- if cfg.ep_join_mode is None:
- logger.warning(
- "--elastic-ep-rejoin is deprecated, use --elastic-ep-join-mode recover instead."
- )
- declare_resolution(
- server_args,
- "_handle_elastic_ep",
- ep_join_mode="recover",
- )
- else:
- assert cfg.ep_join_mode == "recover", (
- "--elastic-ep-rejoin (deprecated) conflicts with "
- f"--elastic-ep-join-mode {cfg.ep_join_mode}."
- )
if cfg.elastic_ep_backend is not None:
if cfg.enable_eplb:
if cfg.eplb_algorithm == "auto":
@@ -626,13 +611,6 @@ def handle_eplb_and_dispatch(server_args: Any):
def handle_expert_distribution_metrics(server_args: Any):
cfg = resolving_view(server_args)
- if "SGLANG_ENABLE_EPLB_BALANCEDNESS_METRIC" in os.environ:
- raise ValueError(
- "SGLANG_ENABLE_EPLB_BALANCEDNESS_METRIC is no longer supported. Use "
- "--expert-balancedness-report-mode with one of: off, server_log, "
- "prometheus, both."
- )
-
if should_report_expert_balancedness(server_args) and (
cfg.expert_distribution_recorder_mode is None
):
diff --git a/python/sglang/srt/arg_groups/serving_hook.py b/python/sglang/srt/arg_groups/serving_hook.py
index 530ce8554f..18f3bd29a8 100644
--- a/python/sglang/srt/arg_groups/serving_hook.py
+++ b/python/sglang/srt/arg_groups/serving_hook.py
@@ -745,8 +745,8 @@ def handle_multimodal_feature_transport(server_args: Any):
CUDA IPC is opt-in because its fixed pool on ``base_gpu_id`` reduces the
memory left for model/KV-cache allocations. Multi-node MNNVL deployments
- may still auto-select CUDA VMM. The legacy CUDA IPC flag and environment
- variable remain supported so existing deployments map to this policy.
+ may still auto-select CUDA VMM. The legacy CUDA IPC environment variable
+ remains supported so existing deployments map to this policy.
"""
cfg = resolving_view(server_args)
@@ -754,19 +754,6 @@ def handle_multimodal_feature_transport(server_args: Any):
legacy_ipc_is_set = envs.SGLANG_USE_CUDA_IPC_TRANSPORT.is_set()
legacy_ipc_enabled = envs.SGLANG_USE_CUDA_IPC_TRANSPORT.get()
- if cfg.keep_mm_feature_on_device:
- if requested_transport not in (None, "cuda_ipc"):
- raise ValueError(
- "--keep-mm-feature-on-device conflicts with "
- f"--mm-feature-transport={requested_transport}. Use only "
- "--mm-feature-transport=cuda_ipc."
- )
- requested_transport = "cuda_ipc"
- logger.warning(
- "--keep-mm-feature-on-device is deprecated; using "
- "--mm-feature-transport=cuda_ipc instead."
- )
-
if requested_transport is None:
if legacy_ipc_is_set:
requested_transport = "cuda_ipc" if legacy_ipc_enabled else "cpu"
@@ -893,13 +880,6 @@ def handle_multimodal_feature_transport(server_args: Any):
"_handle_multimodal_feature_transport",
mm_feature_transport=requested_transport,
)
- # The bounded IPC pool owns device residency. Do not retain unpooled
- # tensors after a pool miss, which would make HBM use request-dependent.
- declare_resolution(
- server_args,
- "_handle_multimodal_feature_transport",
- keep_mm_feature_on_device=False,
- )
envs.SGLANG_USE_CUDA_IPC_TRANSPORT.set(
"1" if requested_transport == "cuda_ipc" else "0"
)
diff --git a/python/sglang/srt/arg_groups/speculative_hook.py b/python/sglang/srt/arg_groups/speculative_hook.py
index f726d551b5..957c90689f 100644
--- a/python/sglang/srt/arg_groups/speculative_hook.py
+++ b/python/sglang/srt/arg_groups/speculative_hook.py
@@ -2,7 +2,6 @@ from __future__ import annotations
import json
import logging
-import os
from typing import TYPE_CHECKING, Optional
from sglang.srt.arg_groups.choices import DRAFT_ATTENTION_BACKEND_CHOICES
@@ -142,15 +141,6 @@ def handle_speculative_decoding(server_args: ServerArgs) -> None:
speculative_algorithm=cfg.speculative_algorithm.upper(),
)
- # Removal notice for the retired env var; raw os.getenv on purpose -- the
- # Envs descriptor is gone. Drop this check after one release.
- if os.getenv("SGLANG_ENABLE_SPEC_V2") is not None:
- logger.warning(
- "SGLANG_ENABLE_SPEC_V2 has been removed: speculative decoding "
- "always runs the V2 worker. Use --disable-overlap-schedule to "
- "select the non-overlap (synchronous) path."
- )
-
kwargs = {}
override_config_file = cfg.decrypted_draft_config_file
diff --git a/python/sglang/srt/elastic_ep/elastic_ep.py b/python/sglang/srt/elastic_ep/elastic_ep.py
index 08ac791375..da33db8797 100644
--- a/python/sglang/srt/elastic_ep/elastic_ep.py
+++ b/python/sglang/srt/elastic_ep/elastic_ep.py
@@ -447,7 +447,7 @@ def get_healthy_expert_location_src_rank(
*, invoked_in_elastic_ep_rejoin_path: bool
) -> int:
world_group = get_parallel().world_group
- # NOTE: do not key off `self.server_args.elastic_ep_rejoin` here.
+ # NOTE: do not key off the launch-time `ep_join_mode` here.
# A rank that was started as a rejoin rank may later act as a healthy
# rank in a subsequent recovery cycle.
local_rejoin_flag = bool(invoked_in_elastic_ep_rejoin_path)
diff --git a/python/sglang/srt/entrypoints/engine.py b/python/sglang/srt/entrypoints/engine.py
index 2258849609..8430e3abb2 100644
--- a/python/sglang/srt/entrypoints/engine.py
+++ b/python/sglang/srt/entrypoints/engine.py
@@ -1877,35 +1877,6 @@ def _set_envs_and_config(server_args: ServerArgs):
if gc_threshold := cfg.gc_threshold:
gc.set_threshold(*gc_threshold)
- _log_legacy_kernel_cache_dirs()
-
-
-def _log_legacy_kernel_cache_dirs():
- """Note the pre-SGLANG_CACHE_DIR cache dirs without touching them: other
- frameworks on the box may still be using them."""
- # TODO(shuwang21): drop once SGLANG_CACHE_DIR has been the default for a
- # few releases.
- legacy_dirs = [
- d
- for d in (
- os.path.expanduser("~/.triton"),
- os.path.expanduser("~/.cache/flashinfer"),
- os.path.expanduser("~/.cache/deep_gemm"),
- os.path.expanduser("~/.tilelang/cache"),
- )
- if os.path.isdir(d)
- ]
- if not legacy_dirs:
- return
- logger.debug(
- "Compiled-kernel caches now live under SGLANG_CACHE_DIR (%s). These "
- "older directories are no longer used by sglang, but may still be "
- "used by other frameworks on this machine, so they were left alone: "
- "%s. Remove them yourself if nothing else needs them.",
- envs.SGLANG_CACHE_DIR.get(),
- ", ".join(legacy_dirs),
- )
-
def _scheduler_died_error(rank: int, proc) -> RuntimeError:
"""Build a descriptive error for a scheduler process that died during init."""
diff --git a/python/sglang/srt/entrypoints/http_server.py b/python/sglang/srt/entrypoints/http_server.py
index ee2858497e..0cd1338241 100644
--- a/python/sglang/srt/entrypoints/http_server.py
+++ b/python/sglang/srt/entrypoints/http_server.py
@@ -799,16 +799,6 @@ async def model_info():
return msgspec_to_builtins(result)
-@app.get("/get_weight_version")
-@app.get("/weight_version")
-async def weight_version():
- """Get the current weight version."""
- raise HTTPException(
- status_code=404,
- detail="Endpoint '/get_weight_version' or '/weight_version' is deprecated. Please use '/model_info' instead.",
- )
-
-
@app.get("/get_server_info")
async def get_server_info():
"""Get the server information (deprecated - use /server_info instead)."""
@@ -855,33 +845,6 @@ async def server_info():
)
-@app.get("/get_load")
-async def get_load():
- """Get load metrics (deprecated - use /v1/loads instead).
-
- Legacy shim backed by /v1/loads. Projects the load snapshot down to the
- historical field shape (dp_rank, num_reqs, num_waiting_reqs, num_tokens,
- num_pending_tokens, ts_tic) so existing clients keep working.
- """
- logger.warning(
- "Endpoint '/get_load' is deprecated and will be removed in a future version. "
- "Please use '/v1/loads' instead."
- )
- load_results = await _global_state.tokenizer_manager.get_loads(include=["core"])
- ts = time.perf_counter()
- return [
- {
- "dp_rank": r.dp_rank,
- "num_reqs": r.num_running_reqs + r.num_waiting_reqs,
- "num_waiting_reqs": r.num_waiting_reqs,
- "num_tokens": r.num_total_tokens,
- "num_pending_tokens": r.num_total_tokens - r.num_used_tokens,
- "ts_tic": ts,
- }
- for r in load_results
- ]
-
-
# example usage:
# curl -s -X POST http://localhost:30000/set_internal_state -H "Content-Type: application/json" -d '{"server_args": {"pp_max_micro_batch_size": 8}}'
@app.api_route("/set_internal_state", methods=["POST", "PUT"])
@@ -1068,22 +1031,8 @@ async def list_external_corpora():
)
-@app.api_route("/clear_hicache_storage_backend", methods=["GET", "POST"])
-@auth_level(AuthLevel.ADMIN_OPTIONAL)
-async def clear_hicache_storage_backend_deprecated():
- """Deprecated: use POST /hicache/storage-backend/clear."""
- ret = await _global_state.tokenizer_manager.clear_hicache_storage()
- return Response(
- content=(
- "Deprecated endpoint. Use POST /hicache/storage-backend/clear.\n"
- "Hierarchical cache storage backend cleared.\n"
- ),
- status_code=200 if ret.success else HTTPStatus.BAD_REQUEST,
- )
-
-
# example usage:
-# curl -s -X POST http://127.0.0.1:30000/clear_hicache_storage_backend
+# curl -s -X POST http://127.0.0.1:30000/hicache/storage-backend/clear
@app.api_route("/hicache/storage-backend/clear", methods=["POST"])
@auth_level(AuthLevel.ADMIN_OPTIONAL)
async def clear_hicache_storage_backend():
diff --git a/python/sglang/srt/environ.py b/python/sglang/srt/environ.py
index dd7ae9602f..e874228d27 100644
--- a/python/sglang/srt/environ.py
+++ b/python/sglang/srt/environ.py
@@ -163,7 +163,7 @@ class _DeprecatedEnvFallback:
check *deprecated_name* and emit DeprecationWarning before reading it.
Usage:
- SGLANG_DSA_FUSE_TOPK = EnvBoolWithAlias(True, deprecated_name="SGLANG_NSA_FUSE_TOPK")
+ SGLANG_NEW_NAME = EnvBoolWithAlias(True, deprecated_name="SGLANG_OLD_NAME")
"""
def __init__(self, default: Any, deprecated_name: str, secret: bool = False):
@@ -455,12 +455,8 @@ class Envs:
# reaches this many requests (0 = first decode batch). Lets a batch-size bench
# capture steady-state full-admission decode steps instead of the ramp-up.
SGLANG_PROFILE_BY_STAGE_DECODE_MIN_BS = EnvInt(0)
- SGLANG_ENABLE_NVTX_SCHEDULER = EnvBoolWithAlias(
- False, deprecated_name="SGLANG_ENABLE_NVTX"
- )
- SGLANG_ENABLE_NVTX_OPERATIONS = EnvBoolWithAlias(
- False, deprecated_name="SGLANG_OPERATIONS_ENABLE_PROFILE"
- )
+ SGLANG_ENABLE_NVTX_SCHEDULER = EnvBool(False)
+ SGLANG_ENABLE_NVTX_OPERATIONS = EnvBool(False)
SGLANG_RECORD_STEP_TIME = EnvBool(False)
SGLANG_ENABLE_CUDA_GRAPH_CAPTURE_TRACE = EnvBool(False)
# Opt-in: emit one CUDA-graph capture trace per captured batch size (per-bs).
@@ -974,9 +970,7 @@ class Envs:
# Enable int4x2 weights loading
SGLANG_NPU_W4A4_NEW_PACKING = EnvBool(False)
# Use the graph-safe Triton-Ascend kernel for masked speculative KV commits.
- SGLANG_NPU_USE_TRITON_PREFIX_KV_CACHE_STORE = EnvBoolWithAlias(
- False, deprecated_name="SGLANG_NPU_USE_TRITON_KV_CACHE_STORE"
- )
+ SGLANG_NPU_USE_TRITON_PREFIX_KV_CACHE_STORE = EnvBool(False)
# Quantize x to int8 in the dispatch operator (vendor alias consumed by the
# Ascend DeepEP library; the MTP draft-build scopes override it to False).
DEEP_NORMAL_MODE_USE_INT8_QUANT = EnvBool(False)
@@ -1298,12 +1292,8 @@ class Envs:
# Sanitize NaN logits before sampling kernels and log a throttled warning
# (see sanitize_nan_logits).
SGLANG_SANITIZE_NAN_LOGITS = EnvBool(False)
- SGLANG_ENABLE_LOGPROB_CHUNK = EnvBoolWithAlias(
- True, deprecated_name="SGLANG_ENABLE_LOGITS_PROCESSER_CHUNK"
- )
- SGLANG_LOGPROB_CHUNK_SIZE = EnvIntWithAlias(
- 2048, deprecated_name="SGLANG_LOGITS_PROCESSER_CHUNK_SIZE"
- )
+ SGLANG_ENABLE_LOGPROB_CHUNK = EnvBool(True)
+ SGLANG_LOGPROB_CHUNK_SIZE = EnvInt(2048)
# Compute input logprobs from logits via per-row logsumexp instead of
# materializing the full-vocab log-softmax. Escape hatch only; the two
# paths are mathematically identical.
@@ -1636,19 +1626,13 @@ class Envs:
# ===================================================================
# DSA backend (GLM 5 and DeepSeek V3.2)
# ===================================================================
- SGLANG_DSA_FUSE_TOPK = EnvBoolWithAlias(
- True, deprecated_name="SGLANG_NSA_FUSE_TOPK"
- )
+ SGLANG_DSA_FUSE_TOPK = EnvBool(True)
# Enabled for supported CUDA KPool geometry; set to 0 to use ordinary metadata.
SGLANG_EXPERIMENTAL_DSA_KPOOL_METADATA_FUSION = EnvBool(True)
SGLANG_DSA_TOPK_FLASHINFER_DETERMINISTIC = EnvBool(False)
SGLANG_DSA_TOPK_FLASHINFER_TIE_BREAK = EnvStr(None)
- SGLANG_DSA_PREFILL_DENSE_ATTN_KV_LEN_THRESHOLD = EnvIntWithAlias(
- 2048, deprecated_name="SGLANG_NSA_PREFILL_DENSE_ATTN_KV_LEN_THRESHOLD"
- )
- SGLANG_DSA_HIP_DISABLE_PRESHUFFLE = EnvBoolWithAlias(
- False, deprecated_name="SGLANG_NSA_HIP_DISABLE_PRESHUFFLE"
- )
+ SGLANG_DSA_PREFILL_DENSE_ATTN_KV_LEN_THRESHOLD = EnvInt(2048)
+ SGLANG_DSA_HIP_DISABLE_PRESHUFFLE = EnvBool(False)
SGLANG_DSA_MQA_LOGITS_FREE_MEM_FRACTION = EnvFloat(0.2)
SGLANG_ENABLE_PCG_DSV2_DUAL_STREAM = EnvBool(False)
SGLANG_DSA_TOPK_BROADCAST = EnvBool(False)
@@ -1883,70 +1867,20 @@ class _DeprecatedEnv:
os.environ[self.replacement] = value
-def _ms_to_s(value: str) -> str:
- return str(float(value) / 1000.0)
-
-
-def _invert_bool(value: str) -> str:
- return "0" if value.lower() in ("true", "1", "yes", "y") else "1"
-
-
# The single registry for deprecated environment variables, processed once at
# import by _handle_deprecated_envs(). Add new deprecations here instead of
# ad-hoc warnings. For a rename where the old name must keep working through a
# descriptor, use EnvBoolWithAlias / EnvIntWithAlias instead.
_DEPRECATED_ENVS: Dict[str, _DeprecatedEnv] = {
- # Renamed: the value is forwarded to the replacement.
- "SGLANG_GC_LOG": _DeprecatedEnv(replacement="SGLANG_LOG_GC"),
- "SGLANG_CUTEDSL_MOE_NVFP4_DISPATCH": _DeprecatedEnv(
- replacement="SGLANG_MOE_NVFP4_DISPATCH"
- ),
- "SGLANG_ENABLE_THINKING": _DeprecatedEnv(replacement="SGLANG_DEFAULT_THINKING"),
- "SGLANG_REASONING_EFFORT": _DeprecatedEnv(
- replacement="SGLANG_DSV4_REASONING_EFFORT"
- ),
- "SGLANG_USE_JIT_ALL_REDUCE": _DeprecatedEnv(
- replacement="SGLANG_OPT_USE_CUSTOM_ALL_REDUCE_V2"
- ),
- # The legacy DISABLE flags have the opposite polarity of their replacement.
- "SGLANG_DISABLE_TP_MEMORY_INBALANCE_CHECK": _DeprecatedEnv(
- replacement="SGLANG_ENABLE_TP_MEMORY_INBALANCE_CHECK", transform=_invert_bool
- ),
- # Renamed with a unit change.
- "SGLANG_QUEUED_TIMEOUT_MS": _DeprecatedEnv(
- replacement="SGLANG_REQ_WAITING_TIMEOUT",
- transform=_ms_to_s,
- note="Note the unit change: milliseconds -> seconds.",
- ),
- "SGLANG_FORWARD_TIMEOUT_MS": _DeprecatedEnv(
- replacement="SGLANG_REQ_RUNNING_TIMEOUT",
- transform=_ms_to_s,
- note="Note the unit change: milliseconds -> seconds.",
- ),
# Removed without replacement.
"SGLANG_ENABLE_CP_V2": _DeprecatedEnv(
note="Strategy-based prefill context parallelism is now the only generic implementation."
),
- "SGLANG_PER_TOKEN_GROUP_QUANT_8BIT_V2": _DeprecatedEnv(),
- # Superseded by the unified JIT per_token_group_quant, the default CUDA path.
- "SGLANG_OPT_USE_JIT_PER_TOKEN_GROUP_QUANT": _DeprecatedEnv(),
- "SGLANG_MASKED_GEMM_FAST_ACT": _DeprecatedEnv(),
- # The unified free list is kept unsorted between flushes by design; the
- # sort-after-merge A/B knob never left its off default and is gone.
- "SGLANG_SORT_FREE_LIST_AFTER_MERGE": _DeprecatedEnv(),
- "SGLANG_OPT_SWA_EVICT_DROP_PAGE_MARGIN": _DeprecatedEnv(),
- # sconv-family kernels always use the CUDA-JIT ports when supported; no toggle.
- "SGLANG_OPT_USE_CUDA_SCONV": _DeprecatedEnv(),
- # DSV4 compressor V2 is always used.
- "SGLANG_OPT_USE_COMPRESSOR_V2": _DeprecatedEnv(),
"SGLANG_ENABLE_HICACHE_BUFFER_ANCHOR_LOCK": _DeprecatedEnv(
note="Buffer-mode anchor pinning is always on; set "
"SGLANG_HICACHE_BUFFER_ANCHOR_LOCK_CAP=0 to disable it."
),
# Replaced by CLI flags.
- "SGLANG_ENABLE_GRPC": _DeprecatedEnv(
- note="Please use '--grpc-port' to enable the native gRPC server."
- ),
"SGLANG_SCHEDULER_DECREASE_PREFILL_IDLE": _DeprecatedEnv(
note="Please use '--enable-prefill-delayer' instead."
),
@@ -1956,20 +1890,6 @@ _DEPRECATED_ENVS: Dict[str, _DeprecatedEnv] = {
"SGLANG_PREFILL_DELAYER_TOKEN_USAGE_LOW_WATERMARK": _DeprecatedEnv(
note="Please use '--prefill-delayer-token-usage-low-watermark' instead."
),
- "SGLANG_CUTLASS_MOE": _DeprecatedEnv(
- note="Please use '--moe-runner-backend=cutlass' and/or "
- "'--speculative-moe-runner-backend=cutlass' instead."
- ),
- "SGLANG_OPT_DEEPGEMM_MEGA_MOE_USE_FP4_ACTS": _DeprecatedEnv(
- note="Please use '--enable-w4a4-mxfp4-megamoe' instead."
- ),
- "SGLANG_OPT_DEEPGEMM_MEGA_MOE_USE_MXF4_KIND": _DeprecatedEnv(
- note="Please use '--enable-w4a4-mxfp4-megamoe' instead."
- ),
- "SGLANG_DFLASH_PREFILL_REFILL_TARGET": _DeprecatedEnv(
- note="DFlash now auto-enables the min-free-slots delay; unset this env. "
- "To override the threshold, use '--min-free-slots-delay'."
- ),
"SGLANG_ENABLE_UNIFIED_RADIX_TREE": _DeprecatedEnv(
note="The unified radix tree is the default tree cache now; unset this env."
),
diff --git a/python/sglang/srt/layers/attention/dsa/dsa_backend_mtp_precompute.py b/python/sglang/srt/layers/attention/dsa/dsa_backend_mtp_precompute.py
index 538d9a5449..9daea339c9 100644
--- a/python/sglang/srt/layers/attention/dsa/dsa_backend_mtp_precompute.py
+++ b/python/sglang/srt/layers/attention/dsa/dsa_backend_mtp_precompute.py
@@ -382,9 +382,3 @@ class DeepseekSparseAttnBackendMTPPrecomputeMixin:
max_seqlen_k=max_seqlen_k,
flashmla_metadata=flashmla_metadata,
)
-
-
-# Backward-compat alias
-DeepseekSparseAttnBackendMTPPrecomputeMixin = (
- DeepseekSparseAttnBackendMTPPrecomputeMixin
-)
diff --git a/python/sglang/srt/layers/attention/dsa/utils.py b/python/sglang/srt/layers/attention/dsa/utils.py
index 566485f496..8a5e9f4319 100644
--- a/python/sglang/srt/layers/attention/dsa/utils.py
+++ b/python/sglang/srt/layers/attention/dsa/utils.py
@@ -43,7 +43,6 @@ def aiter_can_use_preshuffle_paged_mqa() -> bool:
Set ``SGLANG_DSA_HIP_DISABLE_PRESHUFFLE=1`` to force the legacy path even when
the gluon kernel would otherwise be available (useful for CI bisection).
- ``SGLANG_NSA_HIP_DISABLE_PRESHUFFLE`` is a deprecated alias.
"""
if not is_hip():
return False
diff --git a/python/sglang/srt/layers/attention/dsa_backend.py b/python/sglang/srt/layers/attention/dsa_backend.py
index 49165d6edc..75d2b004eb 100644
--- a/python/sglang/srt/layers/attention/dsa_backend.py
+++ b/python/sglang/srt/layers/attention/dsa_backend.py
@@ -3866,11 +3866,3 @@ class DeepseekSparseAttnMultiStepBackend:
def init_forward_metadata_in_graph(self, forward_batch: ForwardBatch) -> None:
for i in range(self.speculative_num_steps - 1):
self.attn_backends[i].init_forward_metadata_in_graph(forward_batch)
-
-
-# Backward-compat aliases (deprecated: use DSA class names)
-DeepseekSparseAttnBackend = DeepseekSparseAttnBackend
-DeepseekSparseAttnMultiStepBackend = DeepseekSparseAttnMultiStepBackend
-DSAMetadata = DSAMetadata
-DSAFlashMLAMetadata = DSAFlashMLAMetadata
-DSAIndexerMetadata = DSAIndexerMetadata
diff --git a/python/sglang/srt/layers/attention/nsa_backend.py b/python/sglang/srt/layers/attention/nsa_backend.py
deleted file mode 100644
index b2554684a5..0000000000
--- a/python/sglang/srt/layers/attention/nsa_backend.py
+++ /dev/null
@@ -1,23 +0,0 @@
-# [Deprecated] nsa_backend.py is a thin re-export shim for backward compatibility.
-# Use dsa_backend.py instead. This file will be removed in a future release.
-import warnings
-
-warnings.warn(
- "sglang.srt.layers.attention.nsa_backend is deprecated; "
- "use sglang.srt.layers.attention.dsa_backend instead.",
- DeprecationWarning,
- stacklevel=2,
-)
-from sglang.srt.layers.attention.dsa_backend import * # noqa: F401, F403
-from sglang.srt.layers.attention.dsa_backend import ( # noqa: F401
- DeepseekSparseAttnBackend,
- DeepseekSparseAttnMultiStepBackend,
- DSAFlashMLAMetadata,
- DSAIndexerMetadata,
- DSAMetadata,
- NativeSparseAttnBackend,
- NativeSparseAttnMultiStepBackend,
- NSAFlashMLAMetadata,
- NSAIndexerMetadata,
- NSAMetadata,
-)
diff --git a/python/sglang/srt/layers/dcp/__init__.py b/python/sglang/srt/layers/dcp/__init__.py
index 54ae19195a..0cb9848295 100644
--- a/python/sglang/srt/layers/dcp/__init__.py
+++ b/python/sglang/srt/layers/dcp/__init__.py
@@ -23,11 +23,7 @@ Only the symbols imported by code OUTSIDE this subpackage are re-exported here.
Package-internal helpers (the @triton.jit kernels, ``CPTritonContext``,
``correct_attn_out``, ``create_dcp_kv_indices``, ``update_kv_lens_and_indices``,
``_all_gather_dcp_kv_cache``) stay private to their submodules — import them from
-``sglang.srt.layers.dcp.{kernels,comm}`` if ever needed internally.
-
-``dcp_enabled`` / ``get_attention_dcp_*`` remain compatibility exports for
-out-of-tree callers; in-tree code should use ``get_parallel().dcp_enabled`` and
-``get_parallel().attn_dcp_*``."""
+``sglang.srt.layers.dcp.{kernels,comm}`` if ever needed internally."""
from sglang.kernels.ops.attention.dcp_kernels import (
create_triton_kv_indices_for_dcp_triton,
@@ -41,9 +37,6 @@ from sglang.srt.layers.dcp.comm import (
cp_lse_ag_out_rs_mha,
cp_lse_ag_out_rs_mla,
dcp_a2a_lse_reduce,
- dcp_enabled,
- get_attention_dcp_rank,
- get_attention_dcp_world_size,
init_fi_a2a_workspace,
)
from sglang.srt.layers.dcp.layout import (
@@ -73,10 +66,7 @@ __all__ = [
"cp_lse_ag_out_rs_mha",
"cp_lse_ag_out_rs_mla",
"create_triton_kv_indices_for_dcp_triton",
- "dcp_enabled",
"filter_dcp_local_kv_indices",
- "get_attention_dcp_rank",
- "get_attention_dcp_world_size",
"get_dcp_lens",
"update_local_kv_lens_for_dcp",
]
diff --git a/python/sglang/srt/layers/dcp/comm.py b/python/sglang/srt/layers/dcp/comm.py
index ae2d1422d3..b06a49cbe0 100644
--- a/python/sglang/srt/layers/dcp/comm.py
+++ b/python/sglang/srt/layers/dcp/comm.py
@@ -20,7 +20,6 @@ PR #25090 vs #14194):
- cp_lse_ag_out_rs_mla: Triton (log2/exp2) correction / reduce-scatter
"""
-import warnings
from typing import Optional
import torch
@@ -43,36 +42,6 @@ from sglang.srt.utils.common import is_fi_a2a_supported
_is_hip = is_hip()
-def _warn_deprecated_dcp_accessor(name: str, replacement: str) -> None:
- warnings.warn(
- f"{name} is deprecated; use {replacement} instead.",
- DeprecationWarning,
- stacklevel=2,
- )
-
-
-def dcp_enabled() -> bool:
- """Deprecated: use ``get_parallel().dcp_enabled``."""
- _warn_deprecated_dcp_accessor("dcp_enabled()", "get_parallel().dcp_enabled")
- return get_parallel().dcp_enabled
-
-
-def get_attention_dcp_world_size() -> int:
- """Deprecated: use ``get_parallel().attn_dcp_size``."""
- _warn_deprecated_dcp_accessor(
- "get_attention_dcp_world_size()", "get_parallel().attn_dcp_size"
- )
- return get_parallel().attn_dcp_size
-
-
-def get_attention_dcp_rank() -> int:
- """Deprecated: use ``get_parallel().attn_dcp_rank``."""
- _warn_deprecated_dcp_accessor(
- "get_attention_dcp_rank()", "get_parallel().attn_dcp_rank"
- )
- return get_parallel().attn_dcp_rank
-
-
def _ag_lse(cp_attn_lse: torch.Tensor, cp_group: GroupCoordinator) -> torch.Tensor:
"""All-gather each rank's LSE into a ``[world_size, *lse.shape]`` stack.
diff --git a/python/sglang/srt/layers/moe/token_dispatcher/moriep.py b/python/sglang/srt/layers/moe/token_dispatcher/moriep.py
index 37a85ee6a4..cf7b32747e 100644
--- a/python/sglang/srt/layers/moe/token_dispatcher/moriep.py
+++ b/python/sglang/srt/layers/moe/token_dispatcher/moriep.py
@@ -502,19 +502,6 @@ class _MoriEPDispatcherImplBase:
"MoE would read them as e8m0 bytes. Falling back to "
"bf16 dispatch."
)
- elif (
- "SGLANG_MORI_FP8_DISP" in os.environ or "SGLANG_MORI_FP4_DISP" in os.environ
- ):
- # Deprecated: will be removed in a future release
- logger.warning_once(
- "SGLANG_MORI_FP8_DISP and SGLANG_MORI_FP4_DISP are deprecated "
- "and will be removed in a future release. "
- "Use SGLANG_MORI_DISPATCH_DTYPE=auto|bf16|fp8|fp4 instead."
- )
- if get_bool_env_var("SGLANG_MORI_FP8_DISP", "False"):
- self.dispatch_dtype = DispatchDtype.fp8
- if get_bool_env_var("SGLANG_MORI_FP4_DISP", "False"):
- self.dispatch_dtype = DispatchDtype.fp4
if "SGLANG_MORI_COMBINE_DTYPE" in os.environ:
combine_dtype = os.environ["SGLANG_MORI_COMBINE_DTYPE"].lower()
@@ -527,15 +514,6 @@ class _MoriEPDispatcherImplBase:
self.combine_dtype = CombineDtype.fp8_direct_cast
elif combine_dtype == "fp4":
self.combine_dtype = CombineDtype.fp4
- elif "SGLANG_MORI_FP8_COMB" in os.environ:
- # Deprecated: will be removed in a future release
- logger.warning_once(
- "SGLANG_MORI_FP8_COMB is deprecated "
- "and will be removed in a future release. "
- "Use SGLANG_MORI_COMBINE_DTYPE=auto|bf16|fp8|fp4|fp8_direct_cast instead."
- )
- if get_bool_env_var("SGLANG_MORI_FP8_COMB", "False"):
- self.combine_dtype = CombineDtype.fp8
def dispatch_a(
self,
diff --git a/python/sglang/srt/layers/quantization/fp4_kv_cache_quant_method.py b/python/sglang/srt/layers/quantization/fp4_kv_cache_quant_method.py
index 7e08982689..aaf0a538e7 100644
--- a/python/sglang/srt/layers/quantization/fp4_kv_cache_quant_method.py
+++ b/python/sglang/srt/layers/quantization/fp4_kv_cache_quant_method.py
@@ -1034,11 +1034,6 @@ def resolve_kv_cache_quant(kv_cache_dtype) -> Optional[str]:
)
return None
- if kv_cache_dtype == "fp4_e2m1":
- raise ValueError(
- "--kv-cache-dtype=fp4_e2m1 is deprecated. "
- "Use --kv-cache-dtype=fp4_mx_block16."
- )
if kv_cache_dtype == "mxfp4":
raise ValueError(
"--kv-cache-dtype=mxfp4 is reserved for true MXFP4 block-size-32 "
diff --git a/python/sglang/srt/lora/backend/lora_registry.py b/python/sglang/srt/lora/backend/lora_registry.py
index 40447d6e47..eeeefd4137 100644
--- a/python/sglang/srt/lora/backend/lora_registry.py
+++ b/python/sglang/srt/lora/backend/lora_registry.py
@@ -51,13 +51,6 @@ def create_uno_cublas_backend():
return UnoCublasLoRABackend
-@register_lora_backend("flashinfer")
-def create_flashinfer_backend():
- raise ValueError(
- "FlashInfer LoRA backend has been deprecated, please use `triton` instead."
- )
-
-
def get_backend_from_name(name: str) -> Type[BaseLoRABackend]:
"""
Get corresponding backend class from backend's name
diff --git a/python/sglang/srt/lora/marlin_lora_temp/policy.py b/python/sglang/srt/lora/marlin_lora_temp/policy.py
index eac576ee5c..609755081f 100644
--- a/python/sglang/srt/lora/marlin_lora_temp/policy.py
+++ b/python/sglang/srt/lora/marlin_lora_temp/policy.py
@@ -47,7 +47,6 @@ def validate_experimental_sgl_marlin_server_args(
or cfg.enable_eplb
or cfg.elastic_ep_backend is not None
or cfg.enable_elastic_expert_backup
- or cfg.elastic_ep_rejoin
):
raise ValueError(
"experimental_sgl_marlin EP requires trivial expert placement "
diff --git a/python/sglang/srt/managers/tokenizer_manager.py b/python/sglang/srt/managers/tokenizer_manager.py
index ef151ffbad..49535a4ca4 100644
--- a/python/sglang/srt/managers/tokenizer_manager.py
+++ b/python/sglang/srt/managers/tokenizer_manager.py
@@ -2982,10 +2982,6 @@ class TokenizerManager(TokenizerControlMixin, TokenizerManagerScoreMixin):
/ recv_obj.spec_verify_ct[i]
)
- # FIXME: backward-compat aliases, remove in next release.
- meta_info["spec_accepted_drafts"] = num_correct_drafts
- meta_info["spec_proposed_drafts"] = num_proposed_drafts
-
# Acceptance histogram: tracks how many decoding steps accepted a certain number of draft tokens.
if (
recv_obj.spec_correct_drafts_histogram
@@ -2995,10 +2991,6 @@ class TokenizerManager(TokenizerControlMixin, TokenizerManagerScoreMixin):
meta_info["spec_correct_drafts_histogram"] = (
recv_obj.spec_correct_drafts_histogram[i]
)
- # FIXME: backward-compat alias, remove in next release.
- meta_info["spec_accept_histogram"] = (
- recv_obj.spec_correct_drafts_histogram[i]
- )
if (
getattr(recv_obj, "spec_cap_lens_histogram", None)
and len(recv_obj.spec_cap_lens_histogram) > i
diff --git a/python/sglang/srt/mem_cache/kv_cache_dtype.py b/python/sglang/srt/mem_cache/kv_cache_dtype.py
index b6d9c44262..810cd2ad6e 100644
--- a/python/sglang/srt/mem_cache/kv_cache_dtype.py
+++ b/python/sglang/srt/mem_cache/kv_cache_dtype.py
@@ -62,11 +62,6 @@ def configure_kv_cache_dtype(
kv_cache_dtype = torch.float8_e4m3fn
elif server_args_kv_cache_dtype in ("bf16", "bfloat16"):
kv_cache_dtype = torch.bfloat16
- elif server_args_kv_cache_dtype == "fp4_e2m1":
- raise ValueError(
- "--kv-cache-dtype=fp4_e2m1 is deprecated. "
- "Use --kv-cache-dtype=fp4_mx_block16."
- )
elif server_args_kv_cache_dtype in ("nvfp4", "fp4_mx_block16"):
if hasattr(torch, "float4_e2m1fn_x2"):
kv_cache_dtype = torch.float4_e2m1fn_x2
diff --git a/python/sglang/srt/models/torch_native_llama.py b/python/sglang/srt/models/torch_native_llama.py
index 1ee258199e..f3e3c1fd2a 100644
--- a/python/sglang/srt/models/torch_native_llama.py
+++ b/python/sglang/srt/models/torch_native_llama.py
@@ -30,10 +30,10 @@ device_mesh = torch.distributed.init_device_mesh("cuda", (tp_size,))
tensor_parallel(model, device_mesh)
```
-An end-to-end example can be found in `python/sglang/bench_one_batch.py`.
+An end-to-end example can be found in `python/sglang/benchmark/one_batch.py`.
You can run it with the following command:
```bash
-$ python3 -m sglang.bench_one_batch --correct \
+$ python3 -m sglang.benchmark.one_batch --correct \
--model meta-llama/Meta-Llama-3-8B \
--json-model-override-args '{"architectures": ["TorchNativeLlamaForCausalLM"]}' \
--tensor-parallel-size 2 \
diff --git a/python/sglang/srt/observability/req_time_stats.py b/python/sglang/srt/observability/req_time_stats.py
index 6f88ce189f..5af9cbc404 100644
--- a/python/sglang/srt/observability/req_time_stats.py
+++ b/python/sglang/srt/observability/req_time_stats.py
@@ -690,30 +690,6 @@ class SchedulerReqTimeStats(ReqTimeStatsBase):
ts = ts or time.perf_counter()
self.spec_verify_start_time = ts
- def set_spec_verify_end_time(
- self,
- ts=None,
- num_correct_drafts: int = 0,
- # FIXME: backward-compat alias, remove in next release.
- accepted_tokens: Optional[int] = None,
- ):
- if accepted_tokens is not None:
- num_correct_drafts = accepted_tokens
- ts = ts or time.perf_counter()
-
- if self.trace_ctx.tracing_enable:
- stage = RequestStage.SPEC_VERIFY
- self.trace_slice(
- stage,
- self.spec_verify_start_time,
- ts,
- {
- "num_correct_drafts": num_correct_drafts,
- # FIXME: backward-compat alias, remove in next release.
- "accepted_tokens": num_correct_drafts,
- },
- )
-
def set_run_batch_cpu_start_time(self, ts=None, attrs=None):
ts = ts or time.perf_counter()
self.run_batch_cpu_start_time = ts
diff --git a/python/sglang/srt/speculative/spec_info.py b/python/sglang/srt/speculative/spec_info.py
index 1cb443feb8..b106525963 100644
--- a/python/sglang/srt/speculative/spec_info.py
+++ b/python/sglang/srt/speculative/spec_info.py
@@ -1,6 +1,5 @@
from __future__ import annotations
-import warnings
from abc import ABC
from enum import Enum, IntEnum, auto
from typing import TYPE_CHECKING, Callable, List, Optional, Tuple, Type, Union
@@ -300,20 +299,6 @@ class SpeculativeAlgorithm(Enum):
return num_draft_tokens - 1
return num_draft_tokens
- def get_num_tokens_per_bs_for_target_verify(
- self, num_draft_tokens: int, is_draft_worker: bool
- ) -> int:
- # Deprecated alias; remove together with the FIXME above.
- warnings.warn(
- "get_num_tokens_per_bs_for_target_verify is deprecated; use "
- "get_num_tokens_per_req_for_target_verify instead.",
- DeprecationWarning,
- stacklevel=2,
- )
- return self.get_num_tokens_per_req_for_target_verify(
- num_draft_tokens, is_draft_worker
- )
-
def create_worker(
self, server_args: ServerArgs
) -> Optional[Union[Type[BaseSpecWorker], Type[TpModelWorker], Type[NGRAMWorker]]]:
diff --git a/python/sglang/srt/speculative/spec_registry.py b/python/sglang/srt/speculative/spec_registry.py
index edef1d000f..2b4cee5bf9 100644
--- a/python/sglang/srt/speculative/spec_registry.py
+++ b/python/sglang/srt/speculative/spec_registry.py
@@ -5,7 +5,6 @@ should use that classmethod API; do not import from this module directly.
from __future__ import annotations
import logging
-import warnings
from typing import TYPE_CHECKING, Callable, Dict, Optional, Type
import torch
@@ -162,20 +161,6 @@ class CustomSpecAlgo:
# Here, we expose this interface to allow the other use cases.
return num_draft_tokens
- def get_num_tokens_per_bs_for_target_verify(
- self, num_draft_tokens: int, is_draft_worker: bool
- ) -> int:
- # Deprecated alias; remove together with the FIXME above.
- warnings.warn(
- "get_num_tokens_per_bs_for_target_verify is deprecated; use "
- "get_num_tokens_per_req_for_target_verify instead.",
- DeprecationWarning,
- stacklevel=2,
- )
- return self.get_num_tokens_per_req_for_target_verify(
- num_draft_tokens, is_draft_worker
- )
-
def build_disagg_draft_input(
self,
batch: ScheduleBatch,
diff --git a/python/sglang/srt/utils/common.py b/python/sglang/srt/utils/common.py
index 5839aade69..f951e40d83 100644
--- a/python/sglang/srt/utils/common.py
+++ b/python/sglang/srt/utils/common.py
@@ -2407,7 +2407,7 @@ def monkey_patch_p2p_access_check():
setattr(tgt, "gpu_p2p_access_check", lambda *arg, **kwargs: True)
- # Suppress the warnings from this delete function when using sglang.bench_one_batch
+ # Suppress the warnings from this delete function when using sglang.benchmark.one_batch
from sglang.srt.distributed.device_communicators.custom_all_reduce import (
CustomAllreduce,
)
diff --git a/python/sglang/test/ascend/e2e/test_npu_multi_node_utils.py b/python/sglang/test/ascend/e2e/test_npu_multi_node_utils.py
index 5387aa1332..67c0a7c1ea 100644
--- a/python/sglang/test/ascend/e2e/test_npu_multi_node_utils.py
+++ b/python/sglang/test/ascend/e2e/test_npu_multi_node_utils.py
@@ -962,7 +962,7 @@ class TestNpuMultiNodePdMixTestCaseBase(CustomTestCase):
num_questions=num_questions,
max_new_tokens=max_new_tokens,
parallel=parallel,
- host=f"http://{self.host}",
+ host=self.host,
port=self.port,
)
logger.info("Starting gsm8k test...")
@@ -1072,7 +1072,7 @@ class TestNpuMultiNodePdSepTestCaseBase(CustomTestCase):
num_questions=num_questions,
max_new_tokens=max_new_tokens,
parallel=parallel,
- host=f"http://{self.host}",
+ host=self.host,
port=self.port,
)
logger.info("Starting gsm8k test...")
diff --git a/python/sglang/test/kits/mmmu_vlm_kit.py b/python/sglang/test/kits/mmmu_vlm_kit.py
index c9c5fda654..5a686458f6 100644
--- a/python/sglang/test/kits/mmmu_vlm_kit.py
+++ b/python/sglang/test/kits/mmmu_vlm_kit.py
@@ -467,7 +467,3 @@ class MMMUMultiModelTestBase(CustomTestCase):
print(f"Error reading {tag.lower()} file: {e}")
return "\n".join(output_lines)
-
-
-# Backward compatibility alias
-MMMUVLMTestBase = MMMUMultiModelTestBase
diff --git a/python/sglang/test/kits/unified_radix_cache_kit.py b/python/sglang/test/kits/unified_radix_cache_kit.py
index c19dbaed49..5023d163de 100644
--- a/python/sglang/test/kits/unified_radix_cache_kit.py
+++ b/python/sglang/test/kits/unified_radix_cache_kit.py
@@ -45,7 +45,7 @@ class UnifiedRadixTreeTestMixin:
num_questions=self.num_gsm8k_questions,
max_new_tokens=16000,
parallel=128,
- host=f"http://{url.hostname}",
+ host=url.hostname,
port=int(url.port),
)
metrics = run_few_shot_gsm8k(args)
@@ -160,7 +160,7 @@ class AccuracyTwoPassMixin:
num_questions=self.num_gsm8k_questions,
max_new_tokens=16000,
parallel=self.gsm8k_parallel,
- host=f"http://{url.hostname}",
+ host=url.hostname,
port=int(url.port),
)
metrics = run_few_shot_gsm8k(args)
diff --git a/python/sglang/utils.py b/python/sglang/utils.py
index 568026dd52..312890335b 100644
--- a/python/sglang/utils.py
+++ b/python/sglang/utils.py
@@ -11,7 +11,6 @@ import sys
import time
import traceback
import urllib.request
-import warnings
import weakref
from collections import OrderedDict
from concurrent.futures import ThreadPoolExecutor
@@ -162,14 +161,6 @@ def dump_state_text(filename: str, states: list, mode: str = "w"):
def normalize_base_url(host: str, port: int) -> str:
from sglang.srt.utils.network import NetworkAddress
- if host.startswith("http://") or host.startswith("https://"):
- warnings.warn(
- f"Including the scheme in --host ('{host}') is deprecated. "
- f"Pass just the hostname (e.g. '127.0.0.1') instead.",
- DeprecationWarning,
- stacklevel=2,
- )
- return f"{host}:{port}"
return NetworkAddress(host, port).to_url()
diff --git a/scripts/ci/slurm/launch_mi355x.sh b/scripts/ci/slurm/launch_mi355x.sh
index a20439e49d..da59743f7e 100755
--- a/scripts/ci/slurm/launch_mi355x.sh
+++ b/scripts/ci/slurm/launch_mi355x.sh
@@ -1045,7 +1045,7 @@ $PREFILL_WAIT_ROUTER
[ -s \$CIDIR/gsm8k_test.jsonl ] && DP_ARG="--data-path \$CIDIR/gsm8k_test.jsonl"
python3 -m sglang.test.few_shot_gsm8k \
--num-shots $ACC_SHOTS --num-questions $ACC_NQ --parallel $MAXREQ \
- --max-new-tokens 512 --host http://127.0.0.1 --port $LBPORT \
+ --max-new-tokens 512 --host 127.0.0.1 --port $LBPORT \
\$DP_ARG 2>&1 | tee \$CIDIR/gsm8k.log
ACC=\$(grep -oE "Accuracy: [0-9.]+" \$CIDIR/gsm8k.log | tail -1 | cut -d" " -f2)
[ -n "\$ACC" ] || { echo "[gsm8k] could not parse accuracy from harness output"; exit 1; }
diff --git a/test/manual/4-gpu-models/test_qwen35_models_archived.py b/test/manual/4-gpu-models/test_qwen35_models_archived.py
index cb25d9f36a..a5a90bfea1 100644
--- a/test/manual/4-gpu-models/test_qwen35_models_archived.py
+++ b/test/manual/4-gpu-models/test_qwen35_models_archived.py
@@ -149,7 +149,7 @@ class TestQwen35FP4MTP(ReasoningTokenUsageMixin, CustomTestCase):
top_p=0.95,
top_k=20,
base_url=self.base_url,
- host="http://127.0.0.1",
+ host="127.0.0.1",
port=int(self.base_url.split(":")[-1]),
)
metrics = run_eval(args)
diff --git a/test/manual/ascend/test_ascend_deepseek_mtp.py b/test/manual/ascend/test_ascend_deepseek_mtp.py
index 6e45a149e8..482426b375 100644
--- a/test/manual/ascend/test_ascend_deepseek_mtp.py
+++ b/test/manual/ascend/test_ascend_deepseek_mtp.py
@@ -75,7 +75,7 @@ class TestAscendDeepSeekMTP(CustomTestCase):
num_questions=1319,
max_new_tokens=512,
parallel=128,
- host=f"http://{self.url.hostname}",
+ host=self.url.hostname,
port=int(self.url.port),
)
diff --git a/test/manual/ascend/test_ascend_w8a8_quantization.py b/test/manual/ascend/test_ascend_w8a8_quantization.py
index e013c150c3..df460ddd95 100644
--- a/test/manual/ascend/test_ascend_w8a8_quantization.py
+++ b/test/manual/ascend/test_ascend_w8a8_quantization.py
@@ -61,7 +61,7 @@ class TestAscendW8A8(CustomTestCase):
num_questions=200,
max_new_tokens=512,
parallel=128,
- host=f"http://{url.hostname}",
+ host=url.hostname,
port=int(url.port),
)
metrics = run_eval(args)
diff --git a/test/manual/ascend/test_mindspore_models.py b/test/manual/ascend/test_mindspore_models.py
index 8c515bc457..738bd39144 100644
--- a/test/manual/ascend/test_mindspore_models.py
+++ b/test/manual/ascend/test_mindspore_models.py
@@ -52,7 +52,7 @@ class TestMindSporeQwen3(CustomTestCase):
num_questions=200,
max_new_tokens=512,
parallel=128,
- host="http://127.0.0.1",
+ host="127.0.0.1",
port=int(self.base_url.split(":")[-1]),
)
metrics = run_eval(args)
diff --git a/test/manual/dsv4/test_dsv4_flash_mtp_dp4.py b/test/manual/dsv4/test_dsv4_flash_mtp_dp4.py
index 11e809bc9c..9954353281 100644
--- a/test/manual/dsv4/test_dsv4_flash_mtp_dp4.py
+++ b/test/manual/dsv4/test_dsv4_flash_mtp_dp4.py
@@ -133,7 +133,7 @@ class TestDSV4FlashMTPBasic(DSV4FlashMTPServerBase):
num_questions=200,
max_new_tokens=512,
parallel=128,
- host="http://127.0.0.1",
+ host="127.0.0.1",
port=int(self.base_url.split(":")[-1]),
)
metrics = run_gsm8k_eval(args)
@@ -149,7 +149,7 @@ class TestDSV4FlashMTPBasic(DSV4FlashMTPServerBase):
num_questions=100,
max_new_tokens=1,
parallel=128,
- host="http://127.0.0.1",
+ host="127.0.0.1",
port=int(self.base_url.split(":")[-1]),
)
metrics = run_gsm8k_eval(args)
diff --git a/test/manual/dsv4/test_dsv4_pd_disagg_nixl.py b/test/manual/dsv4/test_dsv4_pd_disagg_nixl.py
index 0e5bd684e1..fed6e21240 100644
--- a/test/manual/dsv4/test_dsv4_pd_disagg_nixl.py
+++ b/test/manual/dsv4/test_dsv4_pd_disagg_nixl.py
@@ -136,7 +136,7 @@ class TestDSV4FlashPDDisaggNIXL(PDDisaggregationServerBase):
num_questions=200,
max_new_tokens=512,
parallel=64,
- host=f"http://{self.base_host}",
+ host=self.base_host,
port=int(self.lb_port),
)
metrics = run_gsm8k_eval(args)
diff --git a/test/manual/ep/test_eplb_mori.py b/test/manual/ep/test_eplb_mori.py
index 2d6bf821d9..24b49713c2 100644
--- a/test/manual/ep/test_eplb_mori.py
+++ b/test/manual/ep/test_eplb_mori.py
@@ -136,7 +136,7 @@ class TestEPLBMoriStat(CustomTestCase):
num_questions=1209,
max_new_tokens=512,
parallel=1209,
- host="http://127.0.0.1",
+ host="127.0.0.1",
port=int(self.base_url.split(":")[-1]),
)
metrics = run_eval_few_shot_gsm8k(args)
@@ -182,7 +182,7 @@ class TestEPLBMoriStatApprox(CustomTestCase):
num_questions=1209,
max_new_tokens=512,
parallel=1209,
- host="http://127.0.0.1",
+ host="127.0.0.1",
port=int(self.base_url.split(":")[-1]),
)
metrics = run_eval_few_shot_gsm8k(args)
@@ -230,7 +230,7 @@ class TestEPLBMoriMultiChunk(CustomTestCase):
num_questions=1209,
max_new_tokens=512,
parallel=1209,
- host="http://127.0.0.1",
+ host="127.0.0.1",
port=int(self.base_url.split(":")[-1]),
)
metrics = run_eval_few_shot_gsm8k(args)
diff --git a/test/manual/test_dsa_alias_cli_registry_env.py b/test/manual/test_dsa_alias_cli_registry_env.py
index fb0c0bd04a..97ce062f2c 100644
--- a/test/manual/test_dsa_alias_cli_registry_env.py
+++ b/test/manual/test_dsa_alias_cli_registry_env.py
@@ -1,15 +1,4 @@
-"""
-Manual test for step 01: NSA → DSA user-facing alias layer.
-
-Tests:
- 1. CLI: --dsa-* non-CP canonical flags write to dsa_* attrs
- 2. Registry: "dsa" key creates the backend; "nsa" key triggers DeprecationWarning
- 3. Env: SGLANG_DSA_* canonical vars work
- 4. Env: SGLANG_NSA_* deprecated vars fall back to SGLANG_DSA_* with DeprecationWarning
-
-Run:
- python test/manual/test_dsa_alias_cli_registry_env.py
-"""
+"""DSA canonical CLI flags, env vars, and the deprecated "nsa" registry key."""
import argparse
import os
@@ -132,15 +121,13 @@ class TestAttentionRegistry(unittest.TestCase):
class TestEnvVarAliases(unittest.TestCase):
- """SGLANG_DSA_* canonical; SGLANG_NSA_* fall back with DeprecationWarning."""
+ """SGLANG_DSA_* canonical env vars."""
def setUp(self):
# Clean state for every test
for key in [
"SGLANG_DSA_FUSE_TOPK",
- "SGLANG_NSA_FUSE_TOPK",
"SGLANG_DSA_PREFILL_DENSE_ATTN_KV_LEN_THRESHOLD",
- "SGLANG_NSA_PREFILL_DENSE_ATTN_KV_LEN_THRESHOLD",
]:
os.environ.pop(key, None)
# Re-import to reset descriptor state
@@ -156,9 +143,7 @@ class TestEnvVarAliases(unittest.TestCase):
def tearDown(self):
for key in [
"SGLANG_DSA_FUSE_TOPK",
- "SGLANG_NSA_FUSE_TOPK",
"SGLANG_DSA_PREFILL_DENSE_ATTN_KV_LEN_THRESHOLD",
- "SGLANG_NSA_PREFILL_DENSE_ATTN_KV_LEN_THRESHOLD",
]:
os.environ.pop(key, None)
@@ -169,32 +154,11 @@ class TestEnvVarAliases(unittest.TestCase):
os.environ["SGLANG_DSA_FUSE_TOPK"] = "0"
self.assertFalse(self.envs.SGLANG_DSA_FUSE_TOPK.get())
- def test_nsa_fuse_topk_deprecated_fallback(self):
- """SGLANG_NSA_FUSE_TOPK=0 should be read by SGLANG_DSA_FUSE_TOPK with DeprecationWarning."""
- os.environ["SGLANG_NSA_FUSE_TOPK"] = "0"
- with warnings.catch_warnings(record=True) as w:
- warnings.simplefilter("always")
- val = self.envs.SGLANG_DSA_FUSE_TOPK.get()
- self.assertFalse(val)
- dep = [x for x in w if issubclass(x.category, DeprecationWarning)]
- self.assertTrue(
- len(dep) > 0, "Expected DeprecationWarning for SGLANG_NSA_FUSE_TOPK"
- )
-
def test_dsa_threshold_default(self):
self.assertEqual(
self.envs.SGLANG_DSA_PREFILL_DENSE_ATTN_KV_LEN_THRESHOLD.get(), 2048
)
- def test_nsa_threshold_deprecated_fallback(self):
- os.environ["SGLANG_NSA_PREFILL_DENSE_ATTN_KV_LEN_THRESHOLD"] = "1024"
- with warnings.catch_warnings(record=True) as w:
- warnings.simplefilter("always")
- val = self.envs.SGLANG_DSA_PREFILL_DENSE_ATTN_KV_LEN_THRESHOLD.get()
- self.assertEqual(val, 1024)
- dep = [x for x in w if issubclass(x.category, DeprecationWarning)]
- self.assertTrue(len(dep) > 0)
-
if __name__ == "__main__":
unittest.main(verbosity=2)
diff --git a/test/manual/test_weight_version.py b/test/manual/test_weight_version.py
index 5011ee7017..4e44fb02be 100644
--- a/test/manual/test_weight_version.py
+++ b/test/manual/test_weight_version.py
@@ -1,13 +1,4 @@
-"""
-Test weight version functionality.
-
-This test suite verifies the weight_version feature implementation including:
-1. Default weight_version setting
-2. /get_weight_version endpoint
-3. /update_weight_version endpoint
-4. /generate request meta_info contains weight_version
-5. OpenAI API response metadata contains weight_version
-"""
+"""weight_version: /model_info, /update_weight_version, and generate/OpenAI metadata."""
import unittest
@@ -54,12 +45,6 @@ class TestWeightVersion(CustomTestCase):
self.assertIn("weight_version", data)
self.assertEqual(data["weight_version"], "test_version_1.0")
- response = requests.get(f"{self.base_url}/get_weight_version")
- self.assertEqual(response.status_code, 200)
- data = response.json()
- self.assertIn("weight_version", data)
- self.assertEqual(data["weight_version"], "test_version_1.0")
-
request_data = {
"text": "Hello, how are you?",
"sampling_params": {
@@ -114,7 +99,7 @@ class TestWeightVersion(CustomTestCase):
self.assertTrue(data["success"])
self.assertEqual(data["new_version"], "updated_version_2.0")
- response = requests.get(f"{self.base_url}/get_weight_version")
+ response = requests.get(f"{self.base_url}/model_info")
self.assertEqual(response.status_code, 200)
data = response.json()
self.assertEqual(data["weight_version"], "updated_version_2.0")
@@ -148,11 +133,6 @@ class TestWeightVersion(CustomTestCase):
self.assertTrue(data["success"])
self.assertEqual(data["new_version"], "final_version_3.0")
- # Check /get_weight_version
- response = requests.get(f"{self.base_url}/get_weight_version")
- self.assertEqual(response.status_code, 200)
- self.assertEqual(response.json()["weight_version"], "final_version_3.0")
-
# Check /get_model_info
response = requests.get(f"{self.base_url}/get_model_info")
self.assertEqual(response.status_code, 200)
@@ -214,7 +194,7 @@ class TestWeightVersion(CustomTestCase):
)
# Verify version was updated
- version_response = requests.get(f"{self.base_url}/get_weight_version")
+ version_response = requests.get(f"{self.base_url}/model_info")
self.assertEqual(version_response.status_code, 200)
self.assertEqual(
version_response.json()["weight_version"], "disk_update_v2.0.0"
diff --git a/test/registered/amd/accuracy/mi30x/test_deepseek_v32_dp_eval_amd.py b/test/registered/amd/accuracy/mi30x/test_deepseek_v32_dp_eval_amd.py
index 556d95e180..ab1f9b7a14 100644
--- a/test/registered/amd/accuracy/mi30x/test_deepseek_v32_dp_eval_amd.py
+++ b/test/registered/amd/accuracy/mi30x/test_deepseek_v32_dp_eval_amd.py
@@ -90,7 +90,7 @@ class TestDeepseekV32DP(CustomTestCase):
num_questions=1400,
parallel=1400,
max_new_tokens=512,
- host="http://127.0.0.1",
+ host="127.0.0.1",
port=int(self.base_url.split(":")[-1]),
)
metrics = run_eval_few_shot_gsm8k(args)
diff --git a/test/registered/amd/accuracy/mi30x/test_deepseek_v32_mtp_eval_amd.py b/test/registered/amd/accuracy/mi30x/test_deepseek_v32_mtp_eval_amd.py
index 1ffa71a1f2..494c9a68e6 100644
--- a/test/registered/amd/accuracy/mi30x/test_deepseek_v32_mtp_eval_amd.py
+++ b/test/registered/amd/accuracy/mi30x/test_deepseek_v32_mtp_eval_amd.py
@@ -100,7 +100,7 @@ class TestDeepseekV32TPMTP(CustomTestCase):
num_questions=1400,
parallel=1400,
max_new_tokens=512,
- host="http://127.0.0.1",
+ host="127.0.0.1",
port=int(self.base_url.split(":")[-1]),
)
metrics = run_eval_few_shot_gsm8k(args)
diff --git a/test/registered/amd/accuracy/mi30x/test_deepseek_v32_tc_eval_amd.py b/test/registered/amd/accuracy/mi30x/test_deepseek_v32_tc_eval_amd.py
index ecab84b8a1..397462d46a 100644
--- a/test/registered/amd/accuracy/mi30x/test_deepseek_v32_tc_eval_amd.py
+++ b/test/registered/amd/accuracy/mi30x/test_deepseek_v32_tc_eval_amd.py
@@ -91,7 +91,7 @@ class TestDeepseekV32TC(CustomTestCase):
num_questions=1400,
parallel=1400,
max_new_tokens=512,
- host="http://127.0.0.1",
+ host="127.0.0.1",
port=int(self.base_url.split(":")[-1]),
)
metrics = run_eval_few_shot_gsm8k(args)
diff --git a/test/registered/amd/accuracy/mi30x/test_kimi_k25_eval_amd.py b/test/registered/amd/accuracy/mi30x/test_kimi_k25_eval_amd.py
index a0cfd0682a..e58d057231 100644
--- a/test/registered/amd/accuracy/mi30x/test_kimi_k25_eval_amd.py
+++ b/test/registered/amd/accuracy/mi30x/test_kimi_k25_eval_amd.py
@@ -76,7 +76,7 @@ class TestKimiK25EvalAMD(CustomTestCase):
num_questions=1319,
parallel=1319,
max_new_tokens=512,
- host="http://127.0.0.1",
+ host="127.0.0.1",
port=int(self.base_url.split(":")[-1]),
)
metrics = run_eval_few_shot_gsm8k(args)
diff --git a/test/registered/amd/accuracy/mi30x/test_kimi_k26_eval_amd.py b/test/registered/amd/accuracy/mi30x/test_kimi_k26_eval_amd.py
index fcbbffe1a6..0dfc8d649b 100644
--- a/test/registered/amd/accuracy/mi30x/test_kimi_k26_eval_amd.py
+++ b/test/registered/amd/accuracy/mi30x/test_kimi_k26_eval_amd.py
@@ -80,7 +80,7 @@ class TestKimiK26EvalAMD(CustomTestCase):
num_questions=1319,
parallel=1319,
max_new_tokens=512,
- host="http://127.0.0.1",
+ host="127.0.0.1",
port=int(self.base_url.split(":")[-1]),
)
metrics = run_eval_few_shot_gsm8k(args)
diff --git a/test/registered/amd/accuracy/mi30x/test_kimi_k2_eval_amd.py b/test/registered/amd/accuracy/mi30x/test_kimi_k2_eval_amd.py
index cd23d7647d..6c0b87c8d1 100644
--- a/test/registered/amd/accuracy/mi30x/test_kimi_k2_eval_amd.py
+++ b/test/registered/amd/accuracy/mi30x/test_kimi_k2_eval_amd.py
@@ -73,7 +73,7 @@ class TestKimiK2EvalAMD(CustomTestCase):
num_questions=1319,
parallel=1319,
max_new_tokens=512,
- host="http://127.0.0.1",
+ host="127.0.0.1",
port=int(self.base_url.split(":")[-1]),
)
metrics = run_eval_few_shot_gsm8k(args)
diff --git a/test/registered/amd/accuracy/mi35x/test_deepseek_v32_dp_eval_mi35x.py b/test/registered/amd/accuracy/mi35x/test_deepseek_v32_dp_eval_mi35x.py
index 19bcdb1459..2ca6033f9a 100644
--- a/test/registered/amd/accuracy/mi35x/test_deepseek_v32_dp_eval_mi35x.py
+++ b/test/registered/amd/accuracy/mi35x/test_deepseek_v32_dp_eval_mi35x.py
@@ -81,7 +81,7 @@ class TestDeepseekV32DP(CustomTestCase):
num_questions=1400,
parallel=1400,
max_new_tokens=512,
- host="http://127.0.0.1",
+ host="127.0.0.1",
port=int(self.base_url.split(":")[-1]),
)
metrics = run_eval_few_shot_gsm8k(args)
diff --git a/test/registered/amd/accuracy/mi35x/test_deepseek_v32_mtp_eval_mi35x.py b/test/registered/amd/accuracy/mi35x/test_deepseek_v32_mtp_eval_mi35x.py
index 2929b561c1..7398c70d6d 100644
--- a/test/registered/amd/accuracy/mi35x/test_deepseek_v32_mtp_eval_mi35x.py
+++ b/test/registered/amd/accuracy/mi35x/test_deepseek_v32_mtp_eval_mi35x.py
@@ -96,7 +96,7 @@ class TestDeepseekV32TPMTP(CustomTestCase):
num_questions=200,
parallel=64,
max_new_tokens=512,
- host="http://127.0.0.1",
+ host="127.0.0.1",
port=int(self.base_url.split(":")[-1]),
)
metrics = run_eval_few_shot_gsm8k(args)
diff --git a/test/registered/amd/accuracy/mi35x/test_kimi_k25_aiter_mla_eval_mi35x.py b/test/registered/amd/accuracy/mi35x/test_kimi_k25_aiter_mla_eval_mi35x.py
index 7c726cf3cd..73b7ba76db 100644
--- a/test/registered/amd/accuracy/mi35x/test_kimi_k25_aiter_mla_eval_mi35x.py
+++ b/test/registered/amd/accuracy/mi35x/test_kimi_k25_aiter_mla_eval_mi35x.py
@@ -160,7 +160,7 @@ class TestKimiK25AiterMlaEvalMI35x(unittest.TestCase):
num_questions=self.num_questions,
parallel=self.num_questions,
max_new_tokens=512,
- host="http://127.0.0.1",
+ host="127.0.0.1",
port=int(self.base_url.split(":")[-1]),
)
metrics = run_eval_few_shot_gsm8k(args)
diff --git a/test/registered/amd/accuracy/mi35x/test_kimi_k25_eval_mi35x.py b/test/registered/amd/accuracy/mi35x/test_kimi_k25_eval_mi35x.py
index a8f05dfa05..9845ccc29b 100644
--- a/test/registered/amd/accuracy/mi35x/test_kimi_k25_eval_mi35x.py
+++ b/test/registered/amd/accuracy/mi35x/test_kimi_k25_eval_mi35x.py
@@ -76,7 +76,7 @@ class TestKimiK25EvalMI35x(CustomTestCase):
num_questions=1319,
parallel=1319,
max_new_tokens=512,
- host="http://127.0.0.1",
+ host="127.0.0.1",
port=int(self.base_url.split(":")[-1]),
)
metrics = run_eval_few_shot_gsm8k(args)
diff --git a/test/registered/amd/accuracy/mi35x/test_kimi_k25_mxfp4_eval_mi35x.py b/test/registered/amd/accuracy/mi35x/test_kimi_k25_mxfp4_eval_mi35x.py
index 084dedd804..df117d50d5 100644
--- a/test/registered/amd/accuracy/mi35x/test_kimi_k25_mxfp4_eval_mi35x.py
+++ b/test/registered/amd/accuracy/mi35x/test_kimi_k25_mxfp4_eval_mi35x.py
@@ -153,7 +153,7 @@ class TestKimiK25MXFP4AiterMlaEvalMI35x(unittest.TestCase):
num_questions=self.num_questions,
parallel=self.num_questions,
max_new_tokens=512,
- host="http://127.0.0.1",
+ host="127.0.0.1",
port=int(self.base_url.split(":")[-1]),
)
metrics = run_eval_few_shot_gsm8k(args)
diff --git a/test/registered/amd/accuracy/mi35x/test_kimi_k26_eval_mi35x.py b/test/registered/amd/accuracy/mi35x/test_kimi_k26_eval_mi35x.py
index 652fa82764..e8c6a47dfa 100644
--- a/test/registered/amd/accuracy/mi35x/test_kimi_k26_eval_mi35x.py
+++ b/test/registered/amd/accuracy/mi35x/test_kimi_k26_eval_mi35x.py
@@ -80,7 +80,7 @@ class TestKimiK26EvalMI35x(CustomTestCase):
num_questions=1319,
parallel=1319,
max_new_tokens=512,
- host="http://127.0.0.1",
+ host="127.0.0.1",
port=int(self.base_url.split(":")[-1]),
)
metrics = run_eval_few_shot_gsm8k(args)
diff --git a/test/registered/amd/accuracy/mi35x/test_kimi_k27_code_mxfp4_eval_mi35x.py b/test/registered/amd/accuracy/mi35x/test_kimi_k27_code_mxfp4_eval_mi35x.py
index bc08a47118..0069394541 100644
--- a/test/registered/amd/accuracy/mi35x/test_kimi_k27_code_mxfp4_eval_mi35x.py
+++ b/test/registered/amd/accuracy/mi35x/test_kimi_k27_code_mxfp4_eval_mi35x.py
@@ -137,7 +137,7 @@ class TestKimiK27CodeMXFP4AiterMlaEvalMI35x(unittest.TestCase):
num_questions=self.num_questions,
parallel=self.num_questions,
max_new_tokens=512,
- host="http://127.0.0.1",
+ host="127.0.0.1",
port=int(self.base_url.split(":")[-1]),
)
metrics = run_eval_few_shot_gsm8k(args)
diff --git a/test/registered/amd/accuracy/mi35x/test_kimi_k2_eval_mi35x.py b/test/registered/amd/accuracy/mi35x/test_kimi_k2_eval_mi35x.py
index 53d8401470..887a0bbca1 100644
--- a/test/registered/amd/accuracy/mi35x/test_kimi_k2_eval_mi35x.py
+++ b/test/registered/amd/accuracy/mi35x/test_kimi_k2_eval_mi35x.py
@@ -75,7 +75,7 @@ class TestKimiK2EvalMI35x(CustomTestCase):
num_questions=1319,
parallel=1319,
max_new_tokens=512,
- host="http://127.0.0.1",
+ host="127.0.0.1",
port=int(self.base_url.split(":")[-1]),
)
metrics = run_eval_few_shot_gsm8k(args)
diff --git a/test/registered/amd/accuracy/mi35x/test_kimi_k3_eval_mi35x.py b/test/registered/amd/accuracy/mi35x/test_kimi_k3_eval_mi35x.py
index 9a3b43f939..439577b89e 100644
--- a/test/registered/amd/accuracy/mi35x/test_kimi_k3_eval_mi35x.py
+++ b/test/registered/amd/accuracy/mi35x/test_kimi_k3_eval_mi35x.py
@@ -133,7 +133,7 @@ class TestKimiK3EvalMI35x(CustomTestCase):
num_questions=self.num_questions,
parallel=self.num_questions,
max_new_tokens=self.max_new_tokens,
- host="http://127.0.0.1",
+ host="127.0.0.1",
port=int(self.base_url.split(":")[-1]),
)
metrics = run_eval_few_shot_gsm8k(args)
diff --git a/test/registered/amd/disaggregation/test_disaggregation_basic.py b/test/registered/amd/disaggregation/test_disaggregation_basic.py
index 0229af441e..f8dbec119a 100644
--- a/test/registered/amd/disaggregation/test_disaggregation_basic.py
+++ b/test/registered/amd/disaggregation/test_disaggregation_basic.py
@@ -108,7 +108,7 @@ class TestDisaggregationAccuracy(PDDisaggregationServerBase):
num_questions=200,
max_new_tokens=512,
parallel=128,
- host=f"http://{self.base_host}",
+ host=self.base_host,
port=int(self.lb_port),
)
metrics = run_eval_few_shot_gsm8k(args)
@@ -311,7 +311,7 @@ class TestDisaggregationMooncakeFailure(PDDisaggregationServerBase):
num_questions=200,
max_new_tokens=512,
parallel=128,
- host=f"http://{self.base_host}",
+ host=self.base_host,
port=int(self.lb_port),
)
@@ -423,7 +423,7 @@ class TestDisaggregationSimulatedRetract(PDDisaggregationServerBase):
num_questions=200,
max_new_tokens=512,
parallel=128,
- host=f"http://{self.base_host}",
+ host=self.base_host,
port=int(self.lb_port),
)
metrics = run_eval_few_shot_gsm8k(args)
diff --git a/test/registered/amd/disaggregation/test_disaggregation_pp.py b/test/registered/amd/disaggregation/test_disaggregation_pp.py
index a817ae78bd..a9ac8a5072 100644
--- a/test/registered/amd/disaggregation/test_disaggregation_pp.py
+++ b/test/registered/amd/disaggregation/test_disaggregation_pp.py
@@ -98,7 +98,7 @@ class TestDisaggregationPrefillPPAccuracy(PDDisaggregationServerBase):
num_questions=200,
max_new_tokens=512,
parallel=128,
- host=f"http://{self.base_host}",
+ host=self.base_host,
port=int(self.lb_port),
)
metrics = run_eval(args)
@@ -192,7 +192,7 @@ class TestDisaggregationPrefillPPDynamicChunkAccuracy(PDDisaggregationServerBase
num_questions=200,
max_new_tokens=512,
parallel=128,
- host=f"http://{self.base_host}",
+ host=self.base_host,
port=int(self.lb_port),
)
metrics = run_eval(args)
@@ -287,7 +287,7 @@ class TestDisaggregationDecodePPAccuracy(PDDisaggregationServerBase):
num_questions=200,
max_new_tokens=512,
parallel=128,
- host=f"http://{self.base_host}",
+ host=self.base_host,
port=int(self.lb_port),
)
metrics = run_eval(args)
diff --git a/test/registered/amd/disaggregation/test_nixl_transfer_engine_e2e.py b/test/registered/amd/disaggregation/test_nixl_transfer_engine_e2e.py
index 1491f2bbb7..ee1068fa19 100644
--- a/test/registered/amd/disaggregation/test_nixl_transfer_engine_e2e.py
+++ b/test/registered/amd/disaggregation/test_nixl_transfer_engine_e2e.py
@@ -198,7 +198,7 @@ class TestNixlTransferEngineAccuracy(NixlTransferEngineBase):
num_questions=200,
max_new_tokens=512,
parallel=128,
- host=f"http://{self.base_host}",
+ host=self.base_host,
port=int(self.lb_port),
)
metrics = run_eval_few_shot_gsm8k(args)
diff --git a/test/registered/amd/test_deepseek_r1_mxfp4_8gpu.py b/test/registered/amd/test_deepseek_r1_mxfp4_8gpu.py
index 1763f0d7e4..7a4532be9a 100644
--- a/test/registered/amd/test_deepseek_r1_mxfp4_8gpu.py
+++ b/test/registered/amd/test_deepseek_r1_mxfp4_8gpu.py
@@ -68,7 +68,7 @@ class TestDeepseekR1MXFP4(CustomTestCase):
num_questions=1319,
parallel=1319,
max_new_tokens=512,
- host="http://127.0.0.1",
+ host="127.0.0.1",
port=int(self.base_url.split(":")[-1]),
)
metrics = run_eval_few_shot_gsm8k(args)
@@ -141,7 +141,7 @@ class TestDeepseekR1MXFP4MTP(CustomTestCase):
num_questions=200,
max_new_tokens=512,
parallel=128,
- host="http://127.0.0.1",
+ host="127.0.0.1",
port=int(self.base_url.split(":")[-1]),
)
metrics = run_eval_few_shot_gsm8k(args)
diff --git a/test/registered/amd/test_deepseek_v32_basic.py b/test/registered/amd/test_deepseek_v32_basic.py
index e4118c32aa..71610f4ecf 100644
--- a/test/registered/amd/test_deepseek_v32_basic.py
+++ b/test/registered/amd/test_deepseek_v32_basic.py
@@ -64,7 +64,7 @@ class TestDeepseekV32DP(CustomTestCase):
num_questions=1400,
parallel=1400,
max_new_tokens=512,
- host="http://127.0.0.1",
+ host="127.0.0.1",
port=int(self.base_url.split(":")[-1]),
)
metrics = run_eval_few_shot_gsm8k(args)
@@ -132,7 +132,7 @@ class TestDeepseekV32TP(CustomTestCase):
num_questions=1400,
parallel=1400,
max_new_tokens=512,
- host="http://127.0.0.1",
+ host="127.0.0.1",
port=int(self.base_url.split(":")[-1]),
)
metrics = run_eval_few_shot_gsm8k(args)
diff --git a/test/registered/amd/test_deepseek_v32_mtp.py b/test/registered/amd/test_deepseek_v32_mtp.py
index 50b8da2145..e3a8f4fed0 100644
--- a/test/registered/amd/test_deepseek_v32_mtp.py
+++ b/test/registered/amd/test_deepseek_v32_mtp.py
@@ -81,7 +81,7 @@ class TestDeepseekV32DPMTP(CustomTestCase):
num_questions=1400,
parallel=1400,
max_new_tokens=512,
- host="http://127.0.0.1",
+ host="127.0.0.1",
port=int(self.base_url.split(":")[-1]),
)
metrics = run_eval_few_shot_gsm8k(args)
@@ -173,7 +173,7 @@ class TestDeepseekV32TPMTP(CustomTestCase):
num_questions=1400,
parallel=1400,
max_new_tokens=512,
- host="http://127.0.0.1",
+ host="127.0.0.1",
port=int(self.base_url.split(":")[-1]),
)
metrics = run_eval_few_shot_gsm8k(args)
diff --git a/test/registered/amd/test_deepseek_v3_basic.py b/test/registered/amd/test_deepseek_v3_basic.py
index dfa8ae3512..0c5c4b381c 100644
--- a/test/registered/amd/test_deepseek_v3_basic.py
+++ b/test/registered/amd/test_deepseek_v3_basic.py
@@ -52,7 +52,7 @@ class TestDeepseekV3Basic(CustomTestCase):
num_questions=1400,
parallel=1400,
max_new_tokens=512,
- host="http://127.0.0.1",
+ host="127.0.0.1",
port=int(self.base_url.split(":")[-1]),
)
metrics = run_eval_few_shot_gsm8k(args)
diff --git a/test/registered/amd/test_deepseek_v3_basic_kv_fp8.py b/test/registered/amd/test_deepseek_v3_basic_kv_fp8.py
index 1730661447..dbc5a09888 100644
--- a/test/registered/amd/test_deepseek_v3_basic_kv_fp8.py
+++ b/test/registered/amd/test_deepseek_v3_basic_kv_fp8.py
@@ -56,7 +56,7 @@ class TestDeepseekV3BasicKvFp8(CustomTestCase):
num_questions=1400,
parallel=1400,
max_new_tokens=512,
- host="http://127.0.0.1",
+ host="127.0.0.1",
port=int(self.base_url.split(":")[-1]),
)
metrics = run_eval_few_shot_gsm8k(args)
diff --git a/test/registered/amd/test_deepseek_v3_mtp.py b/test/registered/amd/test_deepseek_v3_mtp.py
index 38631562cd..f20a51c7d8 100644
--- a/test/registered/amd/test_deepseek_v3_mtp.py
+++ b/test/registered/amd/test_deepseek_v3_mtp.py
@@ -66,7 +66,7 @@ class TestDeepseekV3MTP(CustomTestCase):
num_questions=200,
max_new_tokens=512,
parallel=128,
- host="http://127.0.0.1",
+ host="127.0.0.1",
port=int(self.base_url.split(":")[-1]),
)
metrics = run_eval_few_shot_gsm8k(args)
diff --git a/test/registered/amd/test_deepseek_v3_mtp_kv_fp8.py b/test/registered/amd/test_deepseek_v3_mtp_kv_fp8.py
index 949b743485..5fed9cd35e 100644
--- a/test/registered/amd/test_deepseek_v3_mtp_kv_fp8.py
+++ b/test/registered/amd/test_deepseek_v3_mtp_kv_fp8.py
@@ -70,7 +70,7 @@ class TestDeepseekV3MTPKvFp8(CustomTestCase):
num_questions=200,
max_new_tokens=512,
parallel=128,
- host="http://127.0.0.1",
+ host="127.0.0.1",
port=int(self.base_url.split(":")[-1]),
)
metrics = run_eval_few_shot_gsm8k(args)
diff --git a/test/registered/amd/test_deepseek_v4_flash_fp4.py b/test/registered/amd/test_deepseek_v4_flash_fp4.py
index 3ff281d121..8129ef89fd 100644
--- a/test/registered/amd/test_deepseek_v4_flash_fp4.py
+++ b/test/registered/amd/test_deepseek_v4_flash_fp4.py
@@ -105,7 +105,7 @@ class TestDeepseekV4Fp4(CustomTestCase):
num_questions=1319,
parallel=1319,
max_new_tokens=512,
- host="http://127.0.0.1",
+ host="127.0.0.1",
port=int(self.base_url.split(":")[-1]),
)
metrics = run_eval_few_shot_gsm8k(args)
diff --git a/test/registered/amd/test_deepseek_v4_flash_fp8.py b/test/registered/amd/test_deepseek_v4_flash_fp8.py
index f6d6d38593..b94fe8bef0 100644
--- a/test/registered/amd/test_deepseek_v4_flash_fp8.py
+++ b/test/registered/amd/test_deepseek_v4_flash_fp8.py
@@ -105,7 +105,7 @@ class TestDeepseekV4Fp8(CustomTestCase):
num_questions=1319,
parallel=1319,
max_new_tokens=512,
- host="http://127.0.0.1",
+ host="127.0.0.1",
port=int(self.base_url.split(":")[-1]),
)
metrics = run_eval_few_shot_gsm8k(args)
diff --git a/test/registered/amd/test_deepseek_v4_flash_fp8_mi30x.py b/test/registered/amd/test_deepseek_v4_flash_fp8_mi30x.py
index d52e41b88d..934d849b51 100644
--- a/test/registered/amd/test_deepseek_v4_flash_fp8_mi30x.py
+++ b/test/registered/amd/test_deepseek_v4_flash_fp8_mi30x.py
@@ -121,7 +121,7 @@ class TestDeepseekV4FlashFp8Mi30x(CustomTestCase):
num_questions=1319,
parallel=1319,
max_new_tokens=512,
- host="http://127.0.0.1",
+ host="127.0.0.1",
port=int(self.base_url.split(":")[-1]),
)
metrics = run_eval_few_shot_gsm8k(args)
diff --git a/test/registered/amd/test_deepseek_v4_flash_fp8_tbo.py b/test/registered/amd/test_deepseek_v4_flash_fp8_tbo.py
index de3bc66518..331566ff97 100644
--- a/test/registered/amd/test_deepseek_v4_flash_fp8_tbo.py
+++ b/test/registered/amd/test_deepseek_v4_flash_fp8_tbo.py
@@ -142,7 +142,7 @@ class TestDeepseekV4FlashFp8Tbo(CustomTestCase):
num_questions=1319,
parallel=1319,
max_new_tokens=512,
- host="http://127.0.0.1",
+ host="127.0.0.1",
port=int(self.base_url.split(":")[-1]),
)
metrics = run_eval_few_shot_gsm8k(args)
diff --git a/test/registered/amd/test_deepseek_v4_pro_fp4.py b/test/registered/amd/test_deepseek_v4_pro_fp4.py
index b1880ddd22..ba0d53e171 100644
--- a/test/registered/amd/test_deepseek_v4_pro_fp4.py
+++ b/test/registered/amd/test_deepseek_v4_pro_fp4.py
@@ -107,7 +107,7 @@ class TestDeepseekV4ProFp4(CustomTestCase):
num_questions=1319,
parallel=1319,
max_new_tokens=512,
- host="http://127.0.0.1",
+ host="127.0.0.1",
port=int(self.base_url.split(":")[-1]),
)
metrics = run_eval_few_shot_gsm8k(args)
diff --git a/test/registered/amd/test_deepseek_v4_pro_fp4_dspark.py b/test/registered/amd/test_deepseek_v4_pro_fp4_dspark.py
index 54d679b151..cfc73385c6 100644
--- a/test/registered/amd/test_deepseek_v4_pro_fp4_dspark.py
+++ b/test/registered/amd/test_deepseek_v4_pro_fp4_dspark.py
@@ -236,7 +236,7 @@ class TestDeepseekV4DSparkUnifiedKVGSM8K(CustomTestCase):
num_questions=1319,
parallel=512,
max_new_tokens=512,
- host="http://127.0.0.1",
+ host="127.0.0.1",
port=int(self.base_url.split(":")[-1]),
)
metrics = run_eval_few_shot_gsm8k(args)
diff --git a/test/registered/amd/test_deepseek_v4_pro_fp4_mtp.py b/test/registered/amd/test_deepseek_v4_pro_fp4_mtp.py
index 97f5e94edc..83b48ac60f 100644
--- a/test/registered/amd/test_deepseek_v4_pro_fp4_mtp.py
+++ b/test/registered/amd/test_deepseek_v4_pro_fp4_mtp.py
@@ -117,7 +117,7 @@ class TestDeepseekV4ProFp4MTP(CustomTestCase):
num_questions=1319,
parallel=1319,
max_new_tokens=512,
- host="http://127.0.0.1",
+ host="127.0.0.1",
port=int(self.base_url.split(":")[-1]),
)
metrics = run_eval_few_shot_gsm8k(args)
diff --git a/test/registered/amd/test_deepseek_v4_pro_fp4_tbo.py b/test/registered/amd/test_deepseek_v4_pro_fp4_tbo.py
index 48fc8f3066..458f70f250 100644
--- a/test/registered/amd/test_deepseek_v4_pro_fp4_tbo.py
+++ b/test/registered/amd/test_deepseek_v4_pro_fp4_tbo.py
@@ -132,7 +132,7 @@ class TestDeepseekV4ProFp4Tbo(CustomTestCase):
num_questions=1319,
parallel=1319,
max_new_tokens=512,
- host="http://127.0.0.1",
+ host="127.0.0.1",
port=int(self.base_url.split(":")[-1]),
)
metrics = run_eval_few_shot_gsm8k(args)
diff --git a/test/registered/amd/test_deepseek_v4_pro_fp4_tbo_mtp.py b/test/registered/amd/test_deepseek_v4_pro_fp4_tbo_mtp.py
index ff73c6d147..97876b7699 100644
--- a/test/registered/amd/test_deepseek_v4_pro_fp4_tbo_mtp.py
+++ b/test/registered/amd/test_deepseek_v4_pro_fp4_tbo_mtp.py
@@ -130,7 +130,7 @@ class TestDeepseekV4ProFp4TboMTP(CustomTestCase):
num_questions=1319,
parallel=512,
max_new_tokens=512,
- host="http://127.0.0.1",
+ host="127.0.0.1",
port=int(self.base_url.split(":")[-1]),
)
metrics = run_eval_few_shot_gsm8k(args)
diff --git a/test/registered/amd/test_deepseek_v4_pro_fp8.py b/test/registered/amd/test_deepseek_v4_pro_fp8.py
index ea74723adf..63a4695b25 100644
--- a/test/registered/amd/test_deepseek_v4_pro_fp8.py
+++ b/test/registered/amd/test_deepseek_v4_pro_fp8.py
@@ -107,7 +107,7 @@ class TestDeepseekV4ProFp8(CustomTestCase):
num_questions=1319,
parallel=1319,
max_new_tokens=512,
- host="http://127.0.0.1",
+ host="127.0.0.1",
port=int(self.base_url.split(":")[-1]),
)
metrics = run_eval_few_shot_gsm8k(args)
diff --git a/test/registered/amd/test_kimi_k25_mxfp4.py b/test/registered/amd/test_kimi_k25_mxfp4.py
index 7c8ac2dc49..2cff759953 100644
--- a/test/registered/amd/test_kimi_k25_mxfp4.py
+++ b/test/registered/amd/test_kimi_k25_mxfp4.py
@@ -85,7 +85,7 @@ class TestKimiK25MXFP4(CustomTestCase):
num_questions=1319,
parallel=1319,
max_new_tokens=512,
- host="http://127.0.0.1",
+ host="127.0.0.1",
port=int(self.base_url.split(":")[-1]),
)
metrics = run_eval_few_shot_gsm8k(args)
diff --git a/test/registered/amd/test_kimi_k25_mxfp4_bcg_mi35x.py b/test/registered/amd/test_kimi_k25_mxfp4_bcg_mi35x.py
index 4e59edb025..315fd132ac 100644
--- a/test/registered/amd/test_kimi_k25_mxfp4_bcg_mi35x.py
+++ b/test/registered/amd/test_kimi_k25_mxfp4_bcg_mi35x.py
@@ -138,7 +138,7 @@ class TestKimiK25MXFP4BcgMI35x(CustomTestCase):
num_questions=GSM8K_NUM_QUESTIONS,
parallel=GSM8K_NUM_QUESTIONS,
max_new_tokens=512,
- host="http://127.0.0.1",
+ host="127.0.0.1",
port=int(self.base_url.split(":")[-1]),
)
metrics = run_eval_few_shot_gsm8k(args)
diff --git a/test/registered/amd/test_kimi_k2_instruct.py b/test/registered/amd/test_kimi_k2_instruct.py
index 5e99ac576d..0f435e2947 100644
--- a/test/registered/amd/test_kimi_k2_instruct.py
+++ b/test/registered/amd/test_kimi_k2_instruct.py
@@ -65,7 +65,7 @@ class TestKimiK2Instruct0905(CustomTestCase):
num_questions=1319,
parallel=512,
max_new_tokens=512,
- host="http://127.0.0.1",
+ host="127.0.0.1",
port=int(self.base_url.split(":")[-1]),
)
metrics = run_eval_few_shot_gsm8k(args)
diff --git a/test/registered/amd/test_moriep_small.py b/test/registered/amd/test_moriep_small.py
index 8e46c4cf6a..5f407552d9 100644
--- a/test/registered/amd/test_moriep_small.py
+++ b/test/registered/amd/test_moriep_small.py
@@ -137,7 +137,7 @@ class TestPureDP(CustomTestCase):
num_questions=200,
max_new_tokens=512,
parallel=128,
- host="http://127.0.0.1",
+ host="127.0.0.1",
port=int(self.base_url.split(":")[-1]),
)
metrics = run_eval_few_shot_gsm8k(args)
@@ -181,7 +181,7 @@ class TestMTP(CustomTestCase):
num_questions=200,
max_new_tokens=512,
parallel=128,
- host="http://127.0.0.1",
+ host="127.0.0.1",
port=int(self.base_url.split(":")[-1]),
)
metrics = run_eval_few_shot_gsm8k(args)
@@ -234,7 +234,7 @@ class TestNormal(CustomTestCase):
num_questions=200,
max_new_tokens=512,
parallel=128,
- host="http://127.0.0.1",
+ host="127.0.0.1",
port=int(self.base_url.split(":")[-1]),
)
metrics = run_eval_few_shot_gsm8k(args)
@@ -283,7 +283,7 @@ class TestLowLatency(CustomTestCase):
num_questions=200,
max_new_tokens=512,
parallel=128,
- host="http://127.0.0.1",
+ host="127.0.0.1",
port=int(self.base_url.split(":")[-1]),
)
metrics = run_eval_few_shot_gsm8k(args)
@@ -331,7 +331,7 @@ class TestTBOwithNormal(CustomTestCase):
num_questions=200,
max_new_tokens=512,
parallel=128,
- host="http://127.0.0.1",
+ host="127.0.0.1",
port=int(self.base_url.split(":")[-1]),
)
metrics = run_eval_few_shot_gsm8k(args)
@@ -381,7 +381,7 @@ class TestTBOwithLowLatency(CustomTestCase):
num_questions=200,
max_new_tokens=512,
parallel=128,
- host="http://127.0.0.1",
+ host="127.0.0.1",
port=int(self.base_url.split(":")[-1]),
)
metrics = run_eval_few_shot_gsm8k(args)
@@ -434,7 +434,7 @@ class TestMTPwithTBONormal(CustomTestCase):
num_questions=200,
max_new_tokens=512,
parallel=128,
- host="http://127.0.0.1",
+ host="127.0.0.1",
port=int(self.base_url.split(":")[-1]),
)
metrics = run_eval_few_shot_gsm8k(args)
@@ -496,7 +496,7 @@ class TestMTPwithTBOLowLatency(CustomTestCase):
num_questions=200,
max_new_tokens=512,
parallel=128,
- host="http://127.0.0.1",
+ host="127.0.0.1",
port=int(self.base_url.split(":")[-1]),
)
metrics = run_eval_few_shot_gsm8k(args)
@@ -559,7 +559,7 @@ class TestEPLBMoriStat(CustomTestCase):
num_questions=200,
max_new_tokens=512,
parallel=128,
- host="http://127.0.0.1",
+ host="127.0.0.1",
port=int(self.base_url.split(":")[-1]),
)
metrics = run_eval_few_shot_gsm8k(args)
diff --git a/test/registered/amd/test_qwen3_coder_next_8gpu.py b/test/registered/amd/test_qwen3_coder_next_8gpu.py
index e8a30e5aae..d05a5f8e2e 100644
--- a/test/registered/amd/test_qwen3_coder_next_8gpu.py
+++ b/test/registered/amd/test_qwen3_coder_next_8gpu.py
@@ -74,7 +74,7 @@ class TestQwen3CoderNext(CustomTestCase):
num_questions=200,
parallel=128,
max_new_tokens=512,
- host="http://127.0.0.1",
+ host="127.0.0.1",
port=int(self.base_url.split(":")[-1]),
)
metrics = run_eval_few_shot_gsm8k(args)
@@ -140,7 +140,7 @@ class TestQwen3CoderNextMTP(CustomTestCase):
num_questions=200,
max_new_tokens=512,
parallel=128,
- host="http://127.0.0.1",
+ host="127.0.0.1",
port=int(self.base_url.split(":")[-1]),
)
metrics = run_eval_few_shot_gsm8k(args)
diff --git a/test/registered/amd/test_qwen3_instruct.py b/test/registered/amd/test_qwen3_instruct.py
index 7f9f41c338..b85224aa54 100644
--- a/test/registered/amd/test_qwen3_instruct.py
+++ b/test/registered/amd/test_qwen3_instruct.py
@@ -60,7 +60,7 @@ class TestQwen3Instruct2507(CustomTestCase):
num_questions=1319,
parallel=1319,
max_new_tokens=512,
- host="http://127.0.0.1",
+ host="127.0.0.1",
port=int(self.base_url.split(":")[-1]),
)
metrics = run_eval_few_shot_gsm8k(args)
diff --git a/test/registered/amd/test_qwen3_instruct_fp8.py b/test/registered/amd/test_qwen3_instruct_fp8.py
index 3dc257abc2..34f37430d2 100644
--- a/test/registered/amd/test_qwen3_instruct_fp8.py
+++ b/test/registered/amd/test_qwen3_instruct_fp8.py
@@ -60,7 +60,7 @@ class TestQwen3Instruct2507FP8(CustomTestCase):
num_questions=1319,
parallel=1319,
max_new_tokens=512,
- host="http://127.0.0.1",
+ host="127.0.0.1",
port=int(self.base_url.split(":")[-1]),
)
metrics = run_eval_few_shot_gsm8k(args)
diff --git a/test/registered/amd/test_qwen3_instruct_mxfp4.py b/test/registered/amd/test_qwen3_instruct_mxfp4.py
index 7505555b7c..cda0239418 100644
--- a/test/registered/amd/test_qwen3_instruct_mxfp4.py
+++ b/test/registered/amd/test_qwen3_instruct_mxfp4.py
@@ -64,7 +64,7 @@ class TestQwen3Instruct2507MXFP4(CustomTestCase):
num_questions=1319,
parallel=1319,
max_new_tokens=512,
- host="http://127.0.0.1",
+ host="127.0.0.1",
port=int(self.base_url.split(":")[-1]),
)
metrics = run_eval_few_shot_gsm8k(args)
diff --git a/test/registered/backends/test_deepseek_v3_fp4_cutedsl_moe.py b/test/registered/backends/test_deepseek_v3_fp4_cutedsl_moe.py
index 2da591e07a..40f3d6f66b 100644
--- a/test/registered/backends/test_deepseek_v3_fp4_cutedsl_moe.py
+++ b/test/registered/backends/test_deepseek_v3_fp4_cutedsl_moe.py
@@ -67,7 +67,7 @@ class TestDeepseekV3FP4CuteDSLMoEEP4(CustomTestCase):
num_questions=1319,
parallel=1319,
max_new_tokens=512,
- host="http://127.0.0.1",
+ host="127.0.0.1",
port=int(self.base_url.split(":")[-1]),
)
metrics = run_eval_few_shot_gsm8k(args)
diff --git a/test/registered/cp/test_gqa_prefill_cp.py b/test/registered/cp/test_gqa_prefill_cp.py
index 69ea296d78..0b0764982e 100644
--- a/test/registered/cp/test_gqa_prefill_cp.py
+++ b/test/registered/cp/test_gqa_prefill_cp.py
@@ -68,7 +68,7 @@ class TestGQACP2TP2EP2(CustomTestCase):
top_p=0.95,
top_k=20,
base_url=self.base_url,
- host="http://127.0.0.1",
+ host="127.0.0.1",
port=int(self.base_url.split(":")[-1]),
)
metrics = run_eval(args)
@@ -126,7 +126,7 @@ class TestGQACPTP2CP2EP4(CustomTestCase):
top_p=0.95,
top_k=20,
base_url=self.base_url,
- host="http://127.0.0.1",
+ host="127.0.0.1",
port=int(self.base_url.split(":")[-1]),
)
metrics = run_eval(args)
@@ -186,7 +186,7 @@ class TestGQACPCP4EP4(CustomTestCase):
top_p=0.95,
top_k=20,
base_url=self.base_url,
- host="http://127.0.0.1",
+ host="127.0.0.1",
port=int(self.base_url.split(":")[-1]),
)
metrics = run_eval(args)
diff --git a/test/registered/cpu/test_intel_amx_attention_backend_a.py b/test/registered/cpu/test_intel_amx_attention_backend_a.py
index 3854dbdf54..c9f0ea2ce6 100644
--- a/test/registered/cpu/test_intel_amx_attention_backend_a.py
+++ b/test/registered/cpu/test_intel_amx_attention_backend_a.py
@@ -109,7 +109,7 @@ class TestDPAttention(CustomTestCase):
num_questions=32,
parallel=32,
max_new_tokens=512,
- host="http://127.0.0.1",
+ host="127.0.0.1",
port=int(self.base_url.split(":")[-1]),
)
metrics = run_eval_few_shot_gsm8k(args)
diff --git a/test/registered/disaggregation/test_disaggregation_dwdp_gpt_oss.py b/test/registered/disaggregation/test_disaggregation_dwdp_gpt_oss.py
index d45ada0475..e632d3bf14 100644
--- a/test/registered/disaggregation/test_disaggregation_dwdp_gpt_oss.py
+++ b/test/registered/disaggregation/test_disaggregation_dwdp_gpt_oss.py
@@ -63,7 +63,7 @@ class TestDisaggregationDWDPGptOss(PDDisaggregationServerBase):
repeat=1,
temperature=0.0,
top_p=1.0,
- host="http://127.0.0.1",
+ host="127.0.0.1",
port=int(self.base_url.split(":")[-1]),
)
)
diff --git a/test/registered/e2e/models/test_inkling_small_nvfp4.py b/test/registered/e2e/models/test_inkling_small_nvfp4.py
index bbf7f03096..fc9c0fedf6 100644
--- a/test/registered/e2e/models/test_inkling_small_nvfp4.py
+++ b/test/registered/e2e/models/test_inkling_small_nvfp4.py
@@ -133,7 +133,7 @@ class TestInklingSmallNvfp4(CustomTestCase):
num_questions=200,
max_new_tokens=512,
parallel=128,
- host=f"http://{url.hostname}",
+ host=url.hostname,
port=int(url.port),
)
)
diff --git a/test/registered/e2e/models/test_minimax_m25_basic.py b/test/registered/e2e/models/test_minimax_m25_basic.py
index 11707b5279..9d21082016 100644
--- a/test/registered/e2e/models/test_minimax_m25_basic.py
+++ b/test/registered/e2e/models/test_minimax_m25_basic.py
@@ -56,7 +56,7 @@ class TestMiniMaxM25Basic(CustomTestCase):
num_questions=200,
parallel=200,
max_new_tokens=512,
- host="http://127.0.0.1",
+ host="127.0.0.1",
port=int(self.base_url.split(":")[-1]),
)
metrics = run_eval_few_shot_gsm8k(args)
diff --git a/test/registered/e2e/models/test_nvidia_nemotron_3_super_bf16_mtp.py b/test/registered/e2e/models/test_nvidia_nemotron_3_super_bf16_mtp.py
index 3eed2af0ac..b4b07b6678 100644
--- a/test/registered/e2e/models/test_nvidia_nemotron_3_super_bf16_mtp.py
+++ b/test/registered/e2e/models/test_nvidia_nemotron_3_super_bf16_mtp.py
@@ -72,7 +72,7 @@ class TestNvidiaNemotron3SuperBF16MTP(CustomTestCase):
temperature=1.0,
top_p=0.95,
base_url=self.base_url,
- host="http://127.0.0.1",
+ host="127.0.0.1",
port=int(self.base_url.split(":")[-1]),
)
metrics = run_eval(args)
diff --git a/test/registered/e2e/models/test_qwen35_fp4_mtp.py b/test/registered/e2e/models/test_qwen35_fp4_mtp.py
index bb3191b319..5d55b99f26 100644
--- a/test/registered/e2e/models/test_qwen35_fp4_mtp.py
+++ b/test/registered/e2e/models/test_qwen35_fp4_mtp.py
@@ -68,7 +68,7 @@ def _run_mtp_gsm8k(test_case):
top_p=0.95,
top_k=20,
base_url=test_case.base_url,
- host="http://127.0.0.1",
+ host="127.0.0.1",
port=int(test_case.base_url.split(":")[-1]),
)
metrics = run_eval(args)
diff --git a/test/registered/e2e/models_large/test_deepseek_v32_indexcache.py b/test/registered/e2e/models_large/test_deepseek_v32_indexcache.py
index a3895b3604..c3fabac069 100644
--- a/test/registered/e2e/models_large/test_deepseek_v32_indexcache.py
+++ b/test/registered/e2e/models_large/test_deepseek_v32_indexcache.py
@@ -53,7 +53,7 @@ class TestDeepseekV32IndexTopkPattern(CustomTestCase):
num_questions=1400,
parallel=1400,
max_new_tokens=512,
- host="http://127.0.0.1",
+ host="127.0.0.1",
port=int(self.base_url.split(":")[-1]),
)
metrics = run_eval_few_shot_gsm8k(args)
@@ -100,7 +100,7 @@ class TestDeepseekV32IndexFreq(CustomTestCase):
num_questions=1400,
parallel=1400,
max_new_tokens=512,
- host="http://127.0.0.1",
+ host="127.0.0.1",
port=int(self.base_url.split(":")[-1]),
)
metrics = run_eval_few_shot_gsm8k(args)
diff --git a/test/registered/e2e/models_large/test_nvidia_nemotron_3_super_nvfp4.py b/test/registered/e2e/models_large/test_nvidia_nemotron_3_super_nvfp4.py
index faca4d38df..257b62b2f1 100644
--- a/test/registered/e2e/models_large/test_nvidia_nemotron_3_super_nvfp4.py
+++ b/test/registered/e2e/models_large/test_nvidia_nemotron_3_super_nvfp4.py
@@ -82,7 +82,7 @@ def _run_gsm8k(test_case):
temperature=1.0,
top_p=0.95,
base_url=test_case.base_url,
- host="http://127.0.0.1",
+ host="127.0.0.1",
port=int(test_case.base_url.split(":")[-1]),
)
metrics = run_eval(args)
diff --git a/test/registered/hicache/test_qwen35_hicache.py b/test/registered/hicache/test_qwen35_hicache.py
index e42de0a6fe..c7a31a3a86 100644
--- a/test/registered/hicache/test_qwen35_hicache.py
+++ b/test/registered/hicache/test_qwen35_hicache.py
@@ -110,7 +110,7 @@ class TestQwen35WithHiCache(CustomTestCase):
top_p=0.95,
top_k=20,
base_url=self.base_url,
- host="http://127.0.0.1",
+ host="127.0.0.1",
port=int(self.base_url.split(":")[-1]),
)
return run_eval(args)
diff --git a/test/registered/kernels/ops/attention/test_deepseek_v4_compress_state_runtime_shapes.py b/test/registered/kernels/ops/attention/test_deepseek_v4_compress_state_runtime_shapes.py
index b201874f8c..1d1328e4ab 100644
--- a/test/registered/kernels/ops/attention/test_deepseek_v4_compress_state_runtime_shapes.py
+++ b/test/registered/kernels/ops/attention/test_deepseek_v4_compress_state_runtime_shapes.py
@@ -39,7 +39,7 @@
# - Use long random prompts and short outputs to make prefill dominate:
# SGLANG_DSV4_COMPRESS_STATE_DTYPE=bf16 \
# SGLANG_SHARED_EXPERT_TP1=1 \
-# SGLANG_ENABLE_THINKING=1 \
+# SGLANG_DEFAULT_THINKING=1 \
# SGLANG_DSV4_FP4_EXPERTS=1 \
# SGLANG_JIT_DEEPGEMM_PRECOMPILE=1 \
# sglang serve \
diff --git a/test/registered/npu/accuracy/deepseek_v4_flash/test_npu_deepseek_v4_flash_w8a8_8p_gpqa.py b/test/registered/npu/accuracy/deepseek_v4_flash/test_npu_deepseek_v4_flash_w8a8_8p_gpqa.py
index bf930ab80f..de817f8470 100644
--- a/test/registered/npu/accuracy/deepseek_v4_flash/test_npu_deepseek_v4_flash_w8a8_8p_gpqa.py
+++ b/test/registered/npu/accuracy/deepseek_v4_flash/test_npu_deepseek_v4_flash_w8a8_8p_gpqa.py
@@ -49,7 +49,6 @@ DEEPSEEK_V4_FLASH_W8A8_DSPARK_8P_ENVS = {
"SGLANG_RAGGED_VERIFY_MODE": "static",
"SGLANG_DSPARK_FAST_KERNEL": "0",
# mtp
- "SGLANG_ENABLE_SPEC_V2": "1",
"SGLANG_ENABLE_OVERLAP_PLAN_STREAM": "1",
# deepep
"DEEP_NORMAL_MODE_USE_INT8_QUANT": "1",
diff --git a/test/registered/npu/accuracy/glm5_2/test_npu_glm_5_2_w8a8_16p_gpqa.py b/test/registered/npu/accuracy/glm5_2/test_npu_glm_5_2_w8a8_16p_gpqa.py
index 0ec5a6b911..1ef75f3b85 100644
--- a/test/registered/npu/accuracy/glm5_2/test_npu_glm_5_2_w8a8_16p_gpqa.py
+++ b/test/registered/npu/accuracy/glm5_2/test_npu_glm_5_2_w8a8_16p_gpqa.py
@@ -21,7 +21,6 @@ GLM_5_2_W8A8_16P_TWO_NODE_ENVS = {
"PYTORCH_NPU_ALLOC_CONF": "expandable_segments:True",
"STREAMS_PER_DEVICE": "32",
"SGLANG_SET_CPU_AFFINITY": "1",
- "SGLANG_ENABLE_SPEC_V2": "1",
"SGLANG_ENABLE_OVERLAP_PLAN_STREAM": "1",
"DEEPEP_HCCL_BUFFSIZE": "2500",
"DEEPEP_NORMAL_COMBINE_ENABLE_LONG_SEQ": "1",
diff --git a/test/registered/npu/accuracy/glm5_top64_pruned/test_npu_glm5_top64_pruned_bf16_8p_gsm8k.py b/test/registered/npu/accuracy/glm5_top64_pruned/test_npu_glm5_top64_pruned_bf16_8p_gsm8k.py
index f42d8630f0..63d6932641 100644
--- a/test/registered/npu/accuracy/glm5_top64_pruned/test_npu_glm5_top64_pruned_bf16_8p_gsm8k.py
+++ b/test/registered/npu/accuracy/glm5_top64_pruned/test_npu_glm5_top64_pruned_bf16_8p_gsm8k.py
@@ -15,7 +15,6 @@ ENVS = {
"SGLANG_SET_CPU_AFFINITY": "1",
"STREAMS_PER_DEVICE": "32",
"SGLANG_DISAGGREGATION_BOOTSTRAP_TIMEOUT": "600",
- "SGLANG_ENABLE_SPEC_V2": "1",
"SGLANG_ENABLE_OVERLAP_PLAN_STREAM": "1",
"SGLANG_NPU_USE_MULTI_STREAM": "1",
"HCCL_BUFFSIZE": "1000",
diff --git a/test/registered/npu/accuracy/kimi_k3/test_npu_kimi_k3_w4a8_32p_gpqa.py b/test/registered/npu/accuracy/kimi_k3/test_npu_kimi_k3_w4a8_32p_gpqa.py
index b1b84fd184..9ff5dd16f5 100644
--- a/test/registered/npu/accuracy/kimi_k3/test_npu_kimi_k3_w4a8_32p_gpqa.py
+++ b/test/registered/npu/accuracy/kimi_k3/test_npu_kimi_k3_w4a8_32p_gpqa.py
@@ -24,7 +24,6 @@ KIMI_K3_W4A8_32P_ENVS = {
"SGLANG_NPU_USE_TRITON_PREFIX_KV_CACHE_STORE": "1",
"TRITON_CACHE_DIR": "/tmp/triton_cache",
"SGLANG_ENABLE_OVERLAP_PLAN_STREAM": "1",
- "SGLANG_ENABLE_SPEC_V2": "1",
"SGLANG_RAGGED_VERIFY_MODE": "static",
"SGLANG_DSPARK_FOLDED_PROPOSAL": "0",
"SGLANG_DSPARK_FOLDED_SAMPLING": "0",
diff --git a/test/registered/npu/basic_function/HiCache/test_npu_hicache_mha.py b/test/registered/npu/basic_function/HiCache/test_npu_hicache_mha.py
index 18b8787938..f2418c263f 100644
--- a/test/registered/npu/basic_function/HiCache/test_npu_hicache_mha.py
+++ b/test/registered/npu/basic_function/HiCache/test_npu_hicache_mha.py
@@ -60,7 +60,7 @@ class TestAscendMhaHicache(CustomTestCase):
num_questions=1319,
max_new_tokens=512,
parallel=128,
- host=f"http://{self.url.hostname}",
+ host=self.url.hostname,
port=int(self.url.port),
)
metrics = run_eval_few_shot_gsm8k(args)
diff --git a/test/registered/npu/basic_function/HiCache/test_npu_hicache_mla.py b/test/registered/npu/basic_function/HiCache/test_npu_hicache_mla.py
index e7d8675b00..feca8d3f8d 100644
--- a/test/registered/npu/basic_function/HiCache/test_npu_hicache_mla.py
+++ b/test/registered/npu/basic_function/HiCache/test_npu_hicache_mla.py
@@ -66,7 +66,7 @@ class TestAscendMlaHicache(CustomTestCase):
num_questions=1319,
max_new_tokens=512,
parallel=128,
- host=f"http://{self.url.hostname}",
+ host=self.url.hostname,
port=int(self.url.port),
)
diff --git a/test/registered/npu/basic_function/optimization_debug/test_npu_compile_graph_tp1_bf16.py b/test/registered/npu/basic_function/optimization_debug/test_npu_compile_graph_tp1_bf16.py
index a164b6763c..08c29d8d24 100644
--- a/test/registered/npu/basic_function/optimization_debug/test_npu_compile_graph_tp1_bf16.py
+++ b/test/registered/npu/basic_function/optimization_debug/test_npu_compile_graph_tp1_bf16.py
@@ -70,7 +70,7 @@ class TestAscendTp1Bf16(CustomTestCase):
num_questions=1319,
max_new_tokens=512,
parallel=32,
- host=f"http://{self.url.hostname}",
+ host=self.url.hostname,
port=int(self.url.port),
)
diff --git a/test/registered/npu/basic_function/optimization_debug/test_npu_graph_tp1_bf16.py b/test/registered/npu/basic_function/optimization_debug/test_npu_graph_tp1_bf16.py
index d174da645e..1bbce548cf 100644
--- a/test/registered/npu/basic_function/optimization_debug/test_npu_graph_tp1_bf16.py
+++ b/test/registered/npu/basic_function/optimization_debug/test_npu_graph_tp1_bf16.py
@@ -58,7 +58,7 @@ class TestAscendGraphTp1Bf16(CustomTestCase):
num_questions=1319,
max_new_tokens=512,
parallel=128,
- host=f"http://{self.url.hostname}",
+ host=self.url.hostname,
port=int(self.url.port),
)
diff --git a/test/registered/npu/basic_function/optimization_debug/test_npu_graph_tp2_bf16.py b/test/registered/npu/basic_function/optimization_debug/test_npu_graph_tp2_bf16.py
index 2cd449eeb7..f1549dcd67 100644
--- a/test/registered/npu/basic_function/optimization_debug/test_npu_graph_tp2_bf16.py
+++ b/test/registered/npu/basic_function/optimization_debug/test_npu_graph_tp2_bf16.py
@@ -60,7 +60,7 @@ class TestAscendGraphTp2Bf16(CustomTestCase):
num_questions=1319,
max_new_tokens=512,
parallel=128,
- host=f"http://{self.url.hostname}",
+ host=self.url.hostname,
port=int(self.url.port),
)
diff --git a/test/registered/npu/basic_function/parallel_strategy/data_parallelism/test_npu_load_balance_method.py b/test/registered/npu/basic_function/parallel_strategy/data_parallelism/test_npu_load_balance_method.py
index 8bf6080c7f..157d0089a4 100644
--- a/test/registered/npu/basic_function/parallel_strategy/data_parallelism/test_npu_load_balance_method.py
+++ b/test/registered/npu/basic_function/parallel_strategy/data_parallelism/test_npu_load_balance_method.py
@@ -81,7 +81,7 @@ class TestDPAttentionRoundBinLoadBalance(CustomTestCase):
num_questions=200,
max_new_tokens=512,
parallel=128,
- host=f"http://{self.url.hostname}",
+ host=self.url.hostname,
port=int(self.url.port),
)
diff --git a/test/registered/npu/basic_function/parallel_strategy/data_parallelism/test_npu_load_balance_method_pd_disaggregation.py b/test/registered/npu/basic_function/parallel_strategy/data_parallelism/test_npu_load_balance_method_pd_disaggregation.py
index 60fc0a61c6..ac2e2b2c2e 100644
--- a/test/registered/npu/basic_function/parallel_strategy/data_parallelism/test_npu_load_balance_method_pd_disaggregation.py
+++ b/test/registered/npu/basic_function/parallel_strategy/data_parallelism/test_npu_load_balance_method_pd_disaggregation.py
@@ -143,7 +143,7 @@ class BaseTestNPULoadBalanceMethodDPDisaggregation(TestDisaggregationBase):
num_questions=200,
max_new_tokens=512,
parallel=128,
- host=f"http://{self.url.hostname}",
+ host=self.url.hostname,
port=int(self.url.port),
)
diff --git a/test/registered/npu/basic_function/quant/test_npu_autoround_dense.py b/test/registered/npu/basic_function/quant/test_npu_autoround_dense.py
index e91d8caed2..488f39a6b9 100644
--- a/test/registered/npu/basic_function/quant/test_npu_autoround_dense.py
+++ b/test/registered/npu/basic_function/quant/test_npu_autoround_dense.py
@@ -67,7 +67,7 @@ class TestAscendAutoRoundDense(CustomTestCase):
num_questions=1319,
max_new_tokens=512,
parallel=128,
- host=f"http://{self.url.hostname}",
+ host=self.url.hostname,
port=int(self.url.port),
)
diff --git a/test/registered/npu/basic_function/quant/test_npu_autoround_moe.py b/test/registered/npu/basic_function/quant/test_npu_autoround_moe.py
index 386f36125c..d61f7ea95b 100644
--- a/test/registered/npu/basic_function/quant/test_npu_autoround_moe.py
+++ b/test/registered/npu/basic_function/quant/test_npu_autoround_moe.py
@@ -68,7 +68,7 @@ class TestAscendAutoRoundMoE(CustomTestCase):
num_questions=1319,
max_new_tokens=512,
parallel=128,
- host=f"http://{self.url.hostname}",
+ host=self.url.hostname,
port=int(self.url.port),
)
diff --git a/test/registered/npu/basic_function/quant/test_npu_gguf.py b/test/registered/npu/basic_function/quant/test_npu_gguf.py
index 09557d0963..b2208176e8 100644
--- a/test/registered/npu/basic_function/quant/test_npu_gguf.py
+++ b/test/registered/npu/basic_function/quant/test_npu_gguf.py
@@ -60,7 +60,7 @@ class TestAscendGGUF(CustomTestCase):
num_questions=1319,
max_new_tokens=512,
parallel=128,
- host=f"http://{self.url.hostname}",
+ host=self.url.hostname,
port=int(self.url.port),
)
diff --git a/test/registered/npu/basic_function/quant/test_npu_gguf_moe.py b/test/registered/npu/basic_function/quant/test_npu_gguf_moe.py
index c6b3cb10d9..97576b61a6 100644
--- a/test/registered/npu/basic_function/quant/test_npu_gguf_moe.py
+++ b/test/registered/npu/basic_function/quant/test_npu_gguf_moe.py
@@ -64,7 +64,7 @@ class TestAscendGGUFMoE(CustomTestCase):
num_questions=1319,
max_new_tokens=512,
parallel=128,
- host=f"http://{self.url.hostname}",
+ host=self.url.hostname,
port=int(self.url.port),
)
diff --git a/test/registered/npu/basic_function/quant/test_npu_gptq_moe.py b/test/registered/npu/basic_function/quant/test_npu_gptq_moe.py
index 2512e84d9f..385ad65fe1 100644
--- a/test/registered/npu/basic_function/quant/test_npu_gptq_moe.py
+++ b/test/registered/npu/basic_function/quant/test_npu_gptq_moe.py
@@ -69,7 +69,7 @@ class TestAscendGPTQMoEInt4(CustomTestCase):
num_questions=1319,
max_new_tokens=512,
parallel=128,
- host=f"http://{self.url.hostname}",
+ host=self.url.hostname,
port=int(self.url.port),
)
diff --git a/test/registered/npu/basic_function/runtime_opts/test_npu_mla_fia_w8a8int8.py b/test/registered/npu/basic_function/runtime_opts/test_npu_mla_fia_w8a8int8.py
index 664fa851de..81628175be 100644
--- a/test/registered/npu/basic_function/runtime_opts/test_npu_mla_fia_w8a8int8.py
+++ b/test/registered/npu/basic_function/runtime_opts/test_npu_mla_fia_w8a8int8.py
@@ -69,7 +69,7 @@ class TestAscendMlaW8A8Int8(CustomTestCase):
num_questions=1319,
max_new_tokens=512,
parallel=128,
- host=f"http://{self.url.hostname}",
+ host=self.url.hostname,
port=int(self.url.port),
)
diff --git a/test/registered/npu/basic_function/runtime_opts/test_npu_mla_w8a8int8.py b/test/registered/npu/basic_function/runtime_opts/test_npu_mla_w8a8int8.py
index 5de0dcd6a9..49a8a8812f 100644
--- a/test/registered/npu/basic_function/runtime_opts/test_npu_mla_w8a8int8.py
+++ b/test/registered/npu/basic_function/runtime_opts/test_npu_mla_w8a8int8.py
@@ -67,7 +67,7 @@ class TestAscendMlaW8A8Int8(CustomTestCase):
num_questions=1319,
max_new_tokens=512,
parallel=128,
- host=f"http://{self.url.hostname}",
+ host=self.url.hostname,
port=int(self.url.port),
)
diff --git a/test/registered/npu/basic_function/runtime_opts/test_npu_tp1_bf16.py b/test/registered/npu/basic_function/runtime_opts/test_npu_tp1_bf16.py
index 5a77c9fe21..1995564674 100644
--- a/test/registered/npu/basic_function/runtime_opts/test_npu_tp1_bf16.py
+++ b/test/registered/npu/basic_function/runtime_opts/test_npu_tp1_bf16.py
@@ -64,7 +64,7 @@ class TestAscendTp1Bf16(CustomTestCase):
num_questions=1319,
max_new_tokens=512,
parallel=128,
- host=f"http://{self.url.hostname}",
+ host=self.url.hostname,
port=int(self.url.port),
)
diff --git a/test/registered/npu/basic_function/runtime_opts/test_npu_tp2_bf16.py b/test/registered/npu/basic_function/runtime_opts/test_npu_tp2_bf16.py
index 4f900d4c7a..ad8a1c0388 100644
--- a/test/registered/npu/basic_function/runtime_opts/test_npu_tp2_bf16.py
+++ b/test/registered/npu/basic_function/runtime_opts/test_npu_tp2_bf16.py
@@ -66,7 +66,7 @@ class TestAscendTp2Bf16(CustomTestCase):
num_questions=1319,
max_new_tokens=512,
parallel=128,
- host=f"http://{self.url.hostname}",
+ host=self.url.hostname,
port=int(self.url.port),
)
diff --git a/test/registered/npu/basic_function/runtime_opts/test_npu_tp2_fia_bf16.py b/test/registered/npu/basic_function/runtime_opts/test_npu_tp2_fia_bf16.py
index 8a4e87dc4f..564a5f5fdb 100644
--- a/test/registered/npu/basic_function/runtime_opts/test_npu_tp2_fia_bf16.py
+++ b/test/registered/npu/basic_function/runtime_opts/test_npu_tp2_fia_bf16.py
@@ -69,7 +69,7 @@ class TestAscendTp2Bf16(CustomTestCase):
num_questions=1319,
max_new_tokens=512,
parallel=128,
- host=f"http://{self.url.hostname}",
+ host=self.url.hostname,
port=int(self.url.port),
)
diff --git a/test/registered/npu/basic_function/speculative_inference/test_npu_speculative_attention_mode.py b/test/registered/npu/basic_function/speculative_inference/test_npu_speculative_attention_mode.py
index a3cc30dae2..201e918ff1 100644
--- a/test/registered/npu/basic_function/speculative_inference/test_npu_speculative_attention_mode.py
+++ b/test/registered/npu/basic_function/speculative_inference/test_npu_speculative_attention_mode.py
@@ -85,7 +85,6 @@ class TestNpuSpeculativeAttentionMode(CustomTestCase):
env.update(
{
"SGLANG_ENABLE_OVERLAP_PLAN_STREAM": "1",
- "SGLANG_ENABLE_SPEC_V2": "1",
"TRANSFORMERS_VERBOSITY": "error",
}
)
diff --git a/test/registered/npu/basic_function/speculative_inference/test_npu_speculative_multi_npu.py b/test/registered/npu/basic_function/speculative_inference/test_npu_speculative_multi_npu.py
index 8a9564b2d4..e7b25e98d9 100644
--- a/test/registered/npu/basic_function/speculative_inference/test_npu_speculative_multi_npu.py
+++ b/test/registered/npu/basic_function/speculative_inference/test_npu_speculative_multi_npu.py
@@ -86,7 +86,6 @@ class TestNpuSpeculativeDraftParams(CustomTestCase):
env.update(
{
"SGLANG_ENABLE_OVERLAP_PLAN_STREAM": "1",
- "SGLANG_ENABLE_SPEC_V2": "1",
}
)
cls.process = popen_launch_server(
diff --git a/test/registered/npu/basic_function/speculative_inference/test_npu_speculative_token_map.py b/test/registered/npu/basic_function/speculative_inference/test_npu_speculative_token_map.py
index 048371ed96..f03b31b93c 100644
--- a/test/registered/npu/basic_function/speculative_inference/test_npu_speculative_token_map.py
+++ b/test/registered/npu/basic_function/speculative_inference/test_npu_speculative_token_map.py
@@ -66,7 +66,6 @@ class TestNpuSpeculativeTokenMap(CustomTestCase):
env.update(
{
"SGLANG_ENABLE_OVERLAP_PLAN_STREAM": "1",
- "SGLANG_ENABLE_SPEC_V2": "1",
}
)
process = popen_launch_server(
@@ -126,7 +125,6 @@ class TestNpuSpeculativeTokenMap(CustomTestCase):
env.update(
{
"SGLANG_ENABLE_OVERLAP_PLAN_STREAM": "1",
- "SGLANG_ENABLE_SPEC_V2": "1",
}
)
process = popen_launch_server(
diff --git a/test/registered/npu/performance/deepseek_v4_flash/test_npu_deepseek_v4_flash_w8a8_1p1d_16p_in8k_out1k_50ms.py b/test/registered/npu/performance/deepseek_v4_flash/test_npu_deepseek_v4_flash_w8a8_1p1d_16p_in8k_out1k_50ms.py
index a8dd19da0a..6323f2fd13 100644
--- a/test/registered/npu/performance/deepseek_v4_flash/test_npu_deepseek_v4_flash_w8a8_1p1d_16p_in8k_out1k_50ms.py
+++ b/test/registered/npu/performance/deepseek_v4_flash/test_npu_deepseek_v4_flash_w8a8_1p1d_16p_in8k_out1k_50ms.py
@@ -45,7 +45,6 @@ DEEPSEEK_V4_FLASH_W8A8_1P1D_PREFILL_ENVS = {
# PD disagg
"SGLANG_DISAGGREGATION_BOOTSTRAP_TIMEOUT": "60",
# MTP
- "SGLANG_ENABLE_SPEC_V2": "1",
"SGLANG_ENABLE_OVERLAP_PLAN_STREAM": "1",
}
@@ -77,7 +76,6 @@ DEEPSEEK_V4_FLASH_W8A8_1P1D_DECODE_ENVS = {
"SGLANG_OPT_DEEPGEMM_HC_PRENORM": "False",
"SGLANG_OPT_USE_TILELANG_MHC_POST": "False",
# MTP
- "SGLANG_ENABLE_SPEC_V2": "1",
"SGLANG_ENABLE_OVERLAP_PLAN_STREAM": "1",
"SGLANG_NPU_USE_MULTI_STREAM": "1",
}
diff --git a/test/registered/npu/performance/deepseek_v4_flash/test_npu_deepseek_v4_flash_w8a8_8p_in8k_out1k_50ms.py b/test/registered/npu/performance/deepseek_v4_flash/test_npu_deepseek_v4_flash_w8a8_8p_in8k_out1k_50ms.py
index 2289850143..85897ab9b6 100644
--- a/test/registered/npu/performance/deepseek_v4_flash/test_npu_deepseek_v4_flash_w8a8_8p_in8k_out1k_50ms.py
+++ b/test/registered/npu/performance/deepseek_v4_flash/test_npu_deepseek_v4_flash_w8a8_8p_in8k_out1k_50ms.py
@@ -47,7 +47,6 @@ DEEPSEEK_V4_FLASH_W8A8_8P_ENVS = {
"SGLANG_OPT_DEEPGEMM_HC_PRENORM": "False",
"SGLANG_OPT_USE_TILELANG_MHC_POST": "False",
# mtp
- "SGLANG_ENABLE_SPEC_V2": "1",
"SGLANG_ENABLE_OVERLAP_PLAN_STREAM": "1",
}
diff --git a/test/registered/npu/performance/qwen3_5_397b/test_npu_qwen3_5_397b_w4a8_8p_in3k5_out1k5_50ms.py b/test/registered/npu/performance/qwen3_5_397b/test_npu_qwen3_5_397b_w4a8_8p_in3k5_out1k5_50ms.py
index aa2335e244..467f085c69 100644
--- a/test/registered/npu/performance/qwen3_5_397b/test_npu_qwen3_5_397b_w4a8_8p_in3k5_out1k5_50ms.py
+++ b/test/registered/npu/performance/qwen3_5_397b/test_npu_qwen3_5_397b_w4a8_8p_in3k5_out1k5_50ms.py
@@ -26,7 +26,6 @@ QWEN3_5_397B_A17B_ENVS = {
"HCCL_OP_EXPANSION_MODE": "AIV",
"HCCL_SOCKET_IFNAME": "lo",
"GLOO_SOCKET_IFNAME": "lo",
- "SGLANG_ENABLE_SPEC_V2": "1",
"SGLANG_ENABLE_OVERLAP_PLAN_STREAM": "1",
"SGLANG_ZBAL_LOCAL_MEM_SIZE": "59648",
"SGLANG_ENABLE_TP_MEMORY_INBALANCE_CHECK": "0",
diff --git a/test/registered/npu/performance/qwen3_6_27b/test_npu_qwen3_6_27b_w8a8_2p_in16k_out1k_50ms.py b/test/registered/npu/performance/qwen3_6_27b/test_npu_qwen3_6_27b_w8a8_2p_in16k_out1k_50ms.py
index 965c0a2ec4..35c3d0e0f7 100644
--- a/test/registered/npu/performance/qwen3_6_27b/test_npu_qwen3_6_27b_w8a8_2p_in16k_out1k_50ms.py
+++ b/test/registered/npu/performance/qwen3_6_27b/test_npu_qwen3_6_27b_w8a8_2p_in16k_out1k_50ms.py
@@ -20,7 +20,6 @@ QWEN3_6_27B_16K_1k_ENVS = {
"GLOO_SOCKET_IFNAME": "lo",
"HCCL_OP_EXPANSION_MODE": "AIV",
"SGLANG_SET_CPU_AFFINITY": "1",
- "SGLANG_ENABLE_SPEC_V2": "1",
"SGLANG_ENABLE_OVERLAP_PLAN_STREAM": "1",
"SGLANG_SCHEDULER_DECREASE_PREFILL_IDLE": "1",
"SGLANG_PREFILL_DELAYER_MAX_DELAY_PASSES": "50",
diff --git a/test/registered/page_major/test_page_major_gpt_oss.py b/test/registered/page_major/test_page_major_gpt_oss.py
index 1fea671c60..b7b0efdd47 100644
--- a/test/registered/page_major/test_page_major_gpt_oss.py
+++ b/test/registered/page_major/test_page_major_gpt_oss.py
@@ -47,7 +47,7 @@ class TestUnifiedGptOssTriton(DefaultServerBase):
num_questions=self.num_gsm8k_questions,
max_new_tokens=512,
parallel=self.parallel,
- host=f"http://{url.hostname}",
+ host=url.hostname,
port=int(url.port),
)
metrics = run_few_shot_gsm8k(args)
diff --git a/test/registered/page_major/test_page_major_qwen_hybrid.py b/test/registered/page_major/test_page_major_qwen_hybrid.py
index 032edfcca3..4ea75e21a1 100644
--- a/test/registered/page_major/test_page_major_qwen_hybrid.py
+++ b/test/registered/page_major/test_page_major_qwen_hybrid.py
@@ -55,7 +55,7 @@ class TestUnifiedQwenHybridTriton(DefaultServerBase):
num_questions=self.num_gsm8k_questions,
max_new_tokens=512,
parallel=self.parallel,
- host=f"http://{url.hostname}",
+ host=url.hostname,
port=int(url.port),
)
metrics = run_few_shot_gsm8k(args)
diff --git a/test/registered/quant/test_quark_mxfp4.py b/test/registered/quant/test_quark_mxfp4.py
index afe5118b72..b0bdcd3fde 100644
--- a/test/registered/quant/test_quark_mxfp4.py
+++ b/test/registered/quant/test_quark_mxfp4.py
@@ -168,7 +168,7 @@ class TestOnlineQuantizationMemoryLoad(CustomTestCase):
num_questions=500,
max_new_tokens=512,
parallel=128,
- host="http://127.0.0.1",
+ host="127.0.0.1",
port=int(self.base_url.split(":")[-1]),
)
metrics = run_eval(args)
diff --git a/test/registered/radix_cache/test_int8_mamba_checkpoint_e2e.py b/test/registered/radix_cache/test_int8_mamba_checkpoint_e2e.py
index c20055e176..1598e17250 100644
--- a/test/registered/radix_cache/test_int8_mamba_checkpoint_e2e.py
+++ b/test/registered/radix_cache/test_int8_mamba_checkpoint_e2e.py
@@ -83,7 +83,7 @@ class TestInt8MambaCheckpointE2E(KLDivergenceMixin, DefaultServerBase):
num_questions=self.num_gsm8k_questions,
max_new_tokens=512,
parallel=self.parallel,
- host=f"http://{url.hostname}",
+ host=url.hostname,
port=int(url.port),
)
metrics = run_few_shot_gsm8k(args)
diff --git a/test/registered/radix_cache/unified_radix_tree/test_unified_radix_cache_hicache_pp_kl.py b/test/registered/radix_cache/unified_radix_tree/test_unified_radix_cache_hicache_pp_kl.py
index d69e7196fe..c8e637d37c 100644
--- a/test/registered/radix_cache/unified_radix_tree/test_unified_radix_cache_hicache_pp_kl.py
+++ b/test/registered/radix_cache/unified_radix_tree/test_unified_radix_cache_hicache_pp_kl.py
@@ -54,7 +54,7 @@ class TestUnifiedQwen3HiCachePP(UnifiedRadixTreeTestMixin, CustomTestCase):
num_questions=self.num_gsm8k_questions,
max_new_tokens=2048,
parallel=self.max_running_requests,
- host=f"http://{url.hostname}",
+ host=url.hostname,
port=int(url.port),
)
metrics = run_few_shot_gsm8k(args)
diff --git a/test/registered/unit/layers/quantization/test_fp4_kv_cache_quant_method.py b/test/registered/unit/layers/quantization/test_fp4_kv_cache_quant_method.py
index a70bf545f3..023512d45e 100644
--- a/test/registered/unit/layers/quantization/test_fp4_kv_cache_quant_method.py
+++ b/test/registered/unit/layers/quantization/test_fp4_kv_cache_quant_method.py
@@ -63,29 +63,6 @@ class TestKVCacheQuantRegistry(CustomTestCase):
self.assertEqual(resolve_kv_cache_quant("fp4_mx_block16"), "fp4_mx_block16")
self.assertIsNone(resolve_kv_cache_quant("fp8_e4m3"))
- def test_resolve_legacy_fp4_alias_raises(self):
- from sglang.srt.layers.quantization.fp4_kv_cache_quant_method import (
- resolve_kv_cache_quant,
- )
-
- with self.assertRaisesRegex(ValueError, "fp4_mx_block16"):
- resolve_kv_cache_quant("fp4_e2m1")
-
- def test_model_runner_rejects_legacy_fp4_alias(self):
- from sglang.srt.model_executor.model_runner import ModelRunner
- from sglang.srt.runtime_context import get_context
-
- runner = object.__new__(ModelRunner)
- runner.server_args = SimpleNamespace(speculative_draft_kv_cache_dtype=None)
- runner.draft_attention_backend = None
- # The runner reads the requested dtype off the model bag, so the double
- # publishes it rather than carrying it on a stand-in config.
- override = get_context().override_server_args(kv_cache_dtype="fp4_e2m1")
- override.install()
- self.addCleanup(override.restore)
- with self.assertRaisesRegex(ValueError, "fp4_mx_block16"):
- runner.configure_kv_cache_dtype()
-
def test_resolve_mxfp4_name_raises(self):
from sglang.srt.layers.quantization.fp4_kv_cache_quant_method import (
resolve_kv_cache_quant,
diff --git a/test/registered/unit/lora/test_experimental_sgl_marlin_policy.py b/test/registered/unit/lora/test_experimental_sgl_marlin_policy.py
index ded06e7e33..4629e9d543 100644
--- a/test/registered/unit/lora/test_experimental_sgl_marlin_policy.py
+++ b/test/registered/unit/lora/test_experimental_sgl_marlin_policy.py
@@ -35,7 +35,6 @@ def _validate_server(**overrides):
enable_eplb=False,
elastic_ep_backend=None,
enable_elastic_expert_backup=False,
- elastic_ep_rejoin=False,
)
server_args.update(overrides)
return validate_experimental_sgl_marlin_server_args(
@@ -56,7 +55,6 @@ def _validate_server(**overrides):
{"enable_eplb": True},
{"elastic_ep_backend": "mooncake"},
{"enable_elastic_expert_backup": True},
- {"elastic_ep_rejoin": True},
],
ids=[
"init_expert_location",
@@ -64,7 +62,6 @@ def _validate_server(**overrides):
"enable_eplb",
"elastic_ep_backend",
"enable_elastic_expert_backup",
- "elastic_ep_rejoin",
],
)
def test_lora_ep_placement_validation(placement):
diff --git a/test/registered/unit/multimodal/rust/qwen/_fixtures.py b/test/registered/unit/multimodal/rust/qwen/_fixtures.py
index aa6e4f1016..40403ad628 100644
--- a/test/registered/unit/multimodal/rust/qwen/_fixtures.py
+++ b/test/registered/unit/multimodal/rust/qwen/_fixtures.py
@@ -69,7 +69,6 @@ def make_processor(case, config, image_processor_cls=None):
server_args = SimpleNamespace(
# Non-auto: get_resolved_model_impl would choke on a SimpleNamespace.
model_impl="sglang",
- keep_mm_feature_on_device=False,
mm_feature_transport="cpu",
mm_enable_dp_encoder=False,
image_processor_backend="auto",
diff --git a/test/registered/unit/server_args/test_resolution_declarations.py b/test/registered/unit/server_args/test_resolution_declarations.py
index 9fe1f63e1c..1f4693fa75 100644
--- a/test/registered/unit/server_args/test_resolution_declarations.py
+++ b/test/registered/unit/server_args/test_resolution_declarations.py
@@ -95,7 +95,6 @@ _REACHED_BY_SHAPES = frozenset(
"flashinfer_allreduce_fusion_backend",
"grammar_backend",
"hicache_ratio",
- "keep_mm_feature_on_device",
"load_balance_method",
"max_running_requests",
"mem_fraction_static",
diff --git a/test/registered/unit/server_args/test_server_args.py b/test/registered/unit/server_args/test_server_args.py
index b0780db5ae..f8367542c1 100644
--- a/test/registered/unit/server_args/test_server_args.py
+++ b/test/registered/unit/server_args/test_server_args.py
@@ -545,34 +545,6 @@ class TestMultimodalFeatureTransport(CustomTestCase):
self.assertIn("base GPU 2", output)
self.assertIn("4 tokenizer worker", output)
- @override_platform(is_cuda=True)
- def test_legacy_keep_flag_maps_to_cuda_ipc(self):
- server_args = ServerArgs(model_path="dummy", keep_mm_feature_on_device=True)
-
- with patch.dict(os.environ, {"SGLANG_USE_CUDA_IPC_TRANSPORT": "0"}):
- with self.assertLogs(serving_hook.logger, level="WARNING") as logs:
- handle_multimodal_feature_transport(server_args)
-
- self.assertEqual(
- resolution_result(server_args, "mm_feature_transport"), "cuda_ipc"
- )
- self.assertFalse(
- resolution_result(server_args, "keep_mm_feature_on_device")
- )
- self.assertTrue(envs.SGLANG_USE_CUDA_IPC_TRANSPORT.get())
-
- self.assertIn("deprecated", logs.output[0])
-
- def test_legacy_keep_flag_rejects_explicit_cuda_vmm(self):
- server_args = ServerArgs(
- model_path="dummy",
- keep_mm_feature_on_device=True,
- mm_feature_transport="cuda_vmm",
- )
-
- with self.assertRaisesRegex(ValueError, "conflicts.*cuda_vmm"):
- handle_multimodal_feature_transport(server_args)
-
@override_platform(is_cuda=True)
def test_explicit_cpu_overrides_legacy_environment(self):
server_args = ServerArgs(model_path="dummy", mm_feature_transport="cpu")
diff --git a/test/registered/unit/test_environ.py b/test/registered/unit/test_environ.py
index f75a37a9aa..38a47fe345 100644
--- a/test/registered/unit/test_environ.py
+++ b/test/registered/unit/test_environ.py
@@ -8,7 +8,7 @@ import unittest
import warnings
from contextlib import ExitStack
-from sglang.srt.environ import _DEPRECATED_ENVS, _DeprecatedEnv, envs
+from sglang.srt.environ import _DeprecatedEnv, envs
from sglang.test.ci.ci_register import register_cpu_ci
register_cpu_ci(est_time=6, suite="base-a-test-cpu")
@@ -114,21 +114,6 @@ class TestDeprecatedEnvRegistry(unittest.TestCase):
caught = self._apply(old_name, _DeprecatedEnv())
self.assertIn(f"{old_name} is deprecated", str(caught[0].message))
- def test_w4a4_mxfp4_megamoe_envs_warn_to_use_cli_flag(self):
- old_names = (
- "SGLANG_OPT_DEEPGEMM_MEGA_MOE_USE_FP4_ACTS",
- "SGLANG_OPT_DEEPGEMM_MEGA_MOE_USE_MXF4_KIND",
- )
- for old_name in old_names:
- with self.subTest(old_name=old_name):
- os.environ[old_name] = "1"
- self.addCleanup(os.environ.pop, old_name, None)
-
- caught = self._apply(old_name, _DEPRECATED_ENVS[old_name])
-
- self.assertIn("--enable-w4a4-mxfp4-megamoe", str(caught[0].message))
- self.assertIsNone(_DEPRECATED_ENVS[old_name].replacement)
-
def test_renamed_env_forwards_value(self):
old_name, new_name = "SGLANG_TEST_OLD_ENV", "SGLANG_TEST_NEW_ENV"
os.environ[old_name] = "abc"
@@ -143,24 +128,14 @@ class TestDeprecatedEnvRegistry(unittest.TestCase):
caught = self._apply("SGLANG_TEST_UNSET_ENV", _DeprecatedEnv())
self.assertEqual(len(caught), 0)
- def test_disable_tp_imbalance_check_polarity_is_inverted(self):
- old_name = "SGLANG_DISABLE_TP_MEMORY_INBALANCE_CHECK"
- new_name = "SGLANG_ENABLE_TP_MEMORY_INBALANCE_CHECK"
- os.environ[old_name] = "1"
+ def test_renamed_env_applies_transform(self):
+ old_name, new_name = "SGLANG_TEST_OLD_ENV", "SGLANG_TEST_NEW_ENV"
+ os.environ[old_name] = "abc"
self.addCleanup(os.environ.pop, old_name, None)
self.addCleanup(os.environ.pop, new_name, None)
- self._apply(old_name, _DEPRECATED_ENVS[old_name])
- self.assertIs(envs.SGLANG_ENABLE_TP_MEMORY_INBALANCE_CHECK.get(), False)
-
- def test_ms_to_s_transform(self):
- old_name = "SGLANG_QUEUED_TIMEOUT_MS"
- os.environ[old_name] = "1500"
- self.addCleanup(os.environ.pop, old_name, None)
- self.addCleanup(os.environ.pop, "SGLANG_REQ_WAITING_TIMEOUT", None)
-
- self._apply(old_name, _DEPRECATED_ENVS[old_name])
- self.assertEqual(envs.SGLANG_REQ_WAITING_TIMEOUT.get(), 1.5)
+ self._apply(old_name, _DeprecatedEnv(replacement=new_name, transform=str.upper))
+ self.assertEqual(os.environ[new_name], "ABC")
if __name__ == "__main__":
diff --git a/test/registered/utils/test_socket_utils.py b/test/registered/utils/test_socket_utils.py
index 6119b9a6d0..20c3f8cf4f 100644
--- a/test/registered/utils/test_socket_utils.py
+++ b/test/registered/utils/test_socket_utils.py
@@ -211,15 +211,6 @@ class TestNormalizeBaseUrl(CustomTestCase):
url = normalize_base_url("localhost", 3000)
self.assertEqual(url, "http://localhost:3000")
- def test_deprecated_scheme_passthrough(self):
- """normalize_base_url should pass through host with scheme (deprecated)."""
- import warnings
-
- with warnings.catch_warnings():
- warnings.simplefilter("ignore", DeprecationWarning)
- url = normalize_base_url("http://myhost", 9000)
- self.assertEqual(url, "http://myhost:9000")
-
if __name__ == "__main__":
unittest.main()
diff --git a/test/registered/vlm/test_vlm_tp4.py b/test/registered/vlm/test_vlm_tp4.py
index a2b8f50981..514835f544 100644
--- a/test/registered/vlm/test_vlm_tp4.py
+++ b/test/registered/vlm/test_vlm_tp4.py
@@ -66,7 +66,7 @@ class TestVLMTP4(CustomTestCase):
max_tokens=2048,
chat_template_kwargs={"enable_thinking": False},
base_url=self.base_url,
- host="http://127.0.0.1",
+ host="127.0.0.1",
port=int(self.base_url.split(":")[-1]),
)
metrics = run_eval(args)