feat: add decode clear steps env var (#28160)

This commit is contained in:
Chang Min Bark
2026-06-13 17:15:42 -07:00
committed by GitHub
parent 3f4a338212
commit 93b402580c
3 changed files with 7 additions and 2 deletions
@@ -60,6 +60,8 @@ SGLANG_USE_MLX=1 python -m sglang.launch_server \
2. `--disable-cuda-graph` - Disables usage of CUDA graph, which is not relevant for Apple Metal.
3. `--disable-overlap-schedule` - Disables overlap scheduling (enabled/not present by default) achieved using MLX's `async_eval()`
4. `SGLANG_MLX_USE_CUSTOM_ROPE=1` - Enables the optional custom Metal RoPE kernel. It is disabled by default, so the MLX backend uses the standard RoPE path unless you opt in for A/B testing.
5. `SGLANG_MLX_FUSE_SWIGLU=1` - Enables the use of fused Swish-Gated Linear Unit kernel (disabled by default)
6. `SGLANG_MLX_CLEAR_CACHE_STEPS=256` - Sets the number of decode steps before clearing the MLX cache (256 by default)
## Quantization