Skip to content

Conversation

@yuan-luo
Copy link
Collaborator

@yuan-luo yuan-luo commented Nov 21, 2025

Motivation

Replace torch.repeat_interleave with faster np.repeat for Qwen2-VL, Qwen3-VL, Qwen3-VL-MoE.
E2E TTFT reduces 1.5%.
gsm8k matched. More benchmark and profile will be updated.

[The result is from commit 1, which is updated in commit 2. But it's obvious to show the performance improvement, so keep it here.]
$python test/srt/ops/test_repeat_interleave.py 
[2025-11-21 23:59:33] INFO utils.py:148: Note: detected 192 virtual cores but NumExpr set to maximum of 64, check "NUMEXPR_MAX_THREADS" environment variable.
[2025-11-21 23:59:33] INFO utils.py:151: Note: NumExpr detected 192 cores but "NUMEXPR_MAX_THREADS" not set, so enforcing safe limit of 16.
[2025-11-21 23:59:33] INFO utils.py:164: NumExpr defaulting to 16 threads.
CPU correctness check: PASSED.

All correctness checks passed. Starting benchmark...

=== CPU benchmark ===
[CPU] T=  128, iters=2000 | torch=  54.57 ms, numpy=  18.58 ms, same=True
[CPU] T=  512, iters=2000 | torch=  61.48 ms, numpy=  26.38 ms, same=True
[CPU] T= 2048, iters=2000 | torch=  92.67 ms, numpy=  65.20 ms, same=True
[CPU] T= 8192, iters=2000 | torch= 299.10 ms, numpy= 279.42 ms, same=True

Modifications

Accuracy Tests

Benchmarking and Profiling

Checklist

@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @yuan-luo, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request focuses on enhancing the performance of Qwen-VL series models by optimizing a specific tensor operation. It transitions from a PyTorch-native repeat_interleave function to a more efficient NumPy equivalent for calculating cu_seqlens, resulting in measurable speed improvements for these vision-language models.

Highlights

  • Performance Optimization: Replaced torch.repeat_interleave with np.repeat for cu_seqlens computation in Qwen-VL series models, leading to a 1.5% reduction in End-to-End Time To First Token (TTFT).
  • New Utility Function: Introduced a new utility function compute_cu_seqlens_from_grid_numpy in sglang/srt/models/utils.py to encapsulate the NumPy-based cu_seqlens calculation.
  • Benchmarking and Testing: Added a dedicated test file test/srt/ops/test_repeat_interleave.py to verify correctness and benchmark the performance gains of np.repeat over torch.repeat_interleave on CPU.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request replaces torch.repeat_interleave with the faster np.repeat for computing cu_seqlens in Qwen-VL models, backed by benchmark results. The changes include refactoring the logic into a utility function and adding a comprehensive test file. My review focuses on a potential integer overflow issue in the new numpy-based implementation and suggests a fix to ensure correctness for large inputs. I also noted an opportunity to reduce code duplication by using the new utility function in all relevant models.

@yuan-luo yuan-luo force-pushed the qwen_replace_repeat_interleave branch from 231ee84 to c426c39 Compare November 21, 2025 16:10
@yuan-luo yuan-luo force-pushed the qwen_replace_repeat_interleave branch from c426c39 to 4ce872e Compare November 21, 2025 16:17
@yuan-luo yuan-luo requested a review from hnyls2002 November 21, 2025 16:19
Copy link
Collaborator

@yhyang201 yhyang201 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. I just wanted to check — do we need to add it to the unit tests?

@yuan-luo
Copy link
Collaborator Author

LGTM. I just wanted to check — do we need to add it to the unit tests?

This function can be reused by more models. Adding it to unit test seems reasonable. We can do more enhancement in terms of model ops. This unit test can be an example.

f"same={same}"
)


Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please refactor the test into a unit-test style, keeping it consistent with the other tests under the srt directory.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Refactored test to unit-test style.

$python -m pytest ./test/srt/ops/test_repeat_interleave.py
/opt/conda/lib/python3.10/site-packages/pytest_asyncio/plugin.py:252: PytestDeprecationWarning: The configuration option "asyncio_default_fixture_loop_scope" is unset.
The event loop scope for asynchronous fixtures will default to the fixture caching scope. Future versions of pytest-asyncio will default the loop scope for asynchronous fixtures to function scope. Set the default fixture loop scope explicitly in order to avoid unexpected behavior in the future. Valid fixture loop scopes are: "function", "class", "module", "package", "session"

  warnings.warn(PytestDeprecationWarning(_DEFAULT_FIXTURE_LOOP_SCOPE_UNSET))
============================================================================================= test session starts =============================================================================================
platform linux -- Python 3.10.13, pytest-8.3.5, pluggy-1.5.0
rootdir: /root/luoyuan.luo/workspace/sglang_dev
plugins: anyio-4.11.0, asyncio-1.2.0
asyncio: mode=strict, debug=False, asyncio_default_fixture_loop_scope=None, asyncio_default_test_loop_scope=function
collected 41 items                                                                                                                                                                                            

test_repeat_interleave.py .........................................                                                                                                                                     [100%]

============================================================================================== warnings summary ===============================================================================================
<frozen importlib._bootstrap>:241
  <frozen importlib._bootstrap>:241: DeprecationWarning: builtin type SwigPyPacked has no __module__ attribute

<frozen importlib._bootstrap>:241
  <frozen importlib._bootstrap>:241: DeprecationWarning: builtin type SwigPyObject has no __module__ attribute

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
======================================================================================= 41 passed, 2 warnings in 6.46s ========================================================================================
sys:1: DeprecationWarning: builtin type swigvarlink has no __module__ attribute

@BBuf BBuf merged commit 5625e32 into sgl-project:main Nov 22, 2025
43 of 50 checks passed
dougyster pushed a commit that referenced this pull request Nov 23, 2025
@yuan-luo yuan-luo deleted the qwen_replace_repeat_interleave branch November 24, 2025 05:55
yukavio pushed a commit to yukavio/sglang that referenced this pull request Nov 25, 2025
* [model-gateway] update workflow names for gateway and exclude npu (sgl-project#13415)

* [Tiny fix] Fix bench_speculative.py run bug (sgl-project#13416)

* [model-gateway] Add Gateway Release Tooling (sgl-project#13420)

* fix uneven PP layer indices (sgl-project#13282)

Co-authored-by: Xuchun Shang <[email protected]>

* diffusion: fix wan2.2 ti2v num_frames adjust logic (sgl-project#13379)

Co-authored-by: adarshxs <[email protected]>
Co-authored-by: Adarsh Shirawalmath <[email protected]>

* [PD][bug fix] fix memleak when last_batch is none (sgl-project#13144)

Signed-off-by: Xuchun Shang <[email protected]>
Co-authored-by: Shangming Cai <[email protected]>

* Fix cache_tokens calculate issue when retracted (sgl-project#11900)

Signed-off-by: Michael Qiu <[email protected]>
Co-authored-by: Mike_Qiu <[email protected]>

* [feature] Custom base path on FastAPI server (sgl-project#5879)

Co-authored-by: lianhu.yin <[email protected]>
Co-authored-by: kebyn <[email protected]>
Co-authored-by: Liangsheng Yin <[email protected]>

* Adding user defined hooks support (sgl-project#13217)

* Fix log time stats (sgl-project#13418)

* [Ci tiny fix] Lower score threshold in evaluation test (sgl-project#13443)

* diffusion: fix loading with local model_path (sgl-project#13445)

* [2/N] CI refactor: sperate some backend-independent CPU tasks. (sgl-project#13447)

* Temporarily disable model hooks CI (sgl-project#13450)

* [Deepseek V3.2] Use torch.compile to speed up torch.cat in nsa (sgl-project#13022)

Signed-off-by: Hao Lu <[email protected]>

* Remove verbs from GET endpoint paths to follow REST standards (sgl-project#13273)

* Add missing models (sgl-project#13456)

* extend sagemaker.Dockerfile serve script to allow all sglang serve flags (sgl-project#13173)

* Fix 8-gpu B200 nightly tests (sgl-project#13457)

* Fixes validation errors for Wan-AI models which store model weights in subdirectories (sgl-project#13461)

* [Embeddings Performance Testing] Add performance test for embedding models (sgl-project#12359)

* [NVIDIA] Fix broken fp8 MoE of deepseek v3 (sgl-project#13264)

Co-authored-by: Baizhou Zhang <[email protected]>
Co-authored-by: Kangyan-Zhou <[email protected]>

* Temporarily comment out multimodal gen test to recover runners (sgl-project#13463)

* Update pr-test.yml to fix invalid job name error

* Add interface_v1 option for dynamic HiCache backend (sgl-project#13140)

Co-authored-by: Zhiqiang Xie <[email protected]>

* Add bfloat16 tuned fused moe config for Dpsk-MTP layer on B200 (sgl-project#13455)

* fix MambaPool clear method after refactoring (sgl-project#13449)

* [AMD CI] Update sgl-router python path in dockerfile. (sgl-project#13458)

* [CI] re-enable test_vision_openai_server_a ci (sgl-project#13444)

* Adding CI Monitor Improvements (sgl-project#13462)

* [GLM4.6v] Required changes for bumping up to transformer 5.x (sgl-project#13229)

* [GLM4.6v] Relax the constraint of non-user role chat completion message schema for new GLM-v release (sgl-project#13258)

* [model-gateway] use worker startup time out for worker registration (sgl-project#13473)

* model: support JetVLM (sgl-project#13289)

* chore: add an unified server arg for multimodal inputs preprocess config(sgl-project#12149)

Co-authored-by: bianfeng <[email protected]>
Co-authored-by: Xinyuan Tong <[email protected]>

* [PD] Clarify init method docstrings for kvsender and kvreceiver (sgl-project#13476)

* Fix lora test (sgl-project#13479)

* [Piecewise CUDA Graph] Support ModelOpt FP8 (sgl-project#13094)

* CI: fix NFS EBUSY error in PR test workflow (sgl-project#13460)

Co-authored-by: Kangyan-Zhou <[email protected]>
Co-authored-by: Mick <[email protected]>

* [CI] fix triggered by a non-run-ci label (sgl-project#13393)

* [CI] remove auto-labeling `run-ci` label. (sgl-project#13486)

* fix: change performance log directory to cache path (sgl-project#13482)

Co-authored-by: Mick <[email protected]>

* [CI] Add input for pr-gate (sgl-project#13491)

* [opt kimi k2 3/n] opt kimi_k2 moe_fused_gate kernel (sgl-project#13374)

* [CI] fix lint yml (syntax error) (sgl-project#13496)

* [VLM][feat] Support encoder DP for Qwen2.5-VL (sgl-project#13126)

Co-authored-by: Shangming Cai <[email protected]>
Co-authored-by: liusy58 <[email protected]>
Co-authored-by: Yuan Luo <[email protected]>

* [HiCache] Critical fix to host memory double free (sgl-project#13501)

Co-authored-by: Hao Chen <[email protected]>

* [BugFix] Accuracy and function Issue when run ptpc quant model (sgl-project#13157)

Co-authored-by: yuechguo <[email protected]>

* fix: create git tags directly instead of temporary branches (sgl-project#13168)

* Add .github/CI_PERMISSIONS.json to define the CI permissions (sgl-project#13509)

Co-authored-by: sglang-bot <[email protected]>

* README.md -> FOLDER_README.md (sgl-project#13510)

Co-authored-by: sglang-bot <[email protected]>

* Use slash command to trigger CI (sgl-project#13512)

Co-authored-by: sglang-bot <[email protected]>

* Add docs on trigger ci (sgl-project#13513)

Co-authored-by: sglang-bot <[email protected]>

* [Feature] Re:Enable hybrid mem saver (sgl-project#12962)

* Trigger CI retry with edit (sgl-project#13516)

Co-authored-by: sglang-bot <[email protected]>

* Update docs (sgl-project#13519)

Co-authored-by: sglang-bot <[email protected]>

* Add /tag-and-rerun-ci (sgl-project#13521)

* [CI] update pr-gate to be compatible with new slash triggering mananer. (sgl-project#13522)

* [CI] fix skipping pr-gate on main (sgl-project#13525)

* Small cleanups related to LoRA weight loading (sgl-project#13474)

* [CI] fix CI skipped on main (sgl-project#13527)

* [model-gateway] fix gateway docker build due to recent py code change (sgl-project#13532)

* [model-gateway] limit opened files in docker build to fix edge case (sgl-project#13536)

* [docker] fix dockerfile naming for diffusion (sgl-project#13534)

* fix lora test (sgl-project#13537)

* Remove jet-ai/Jet-Nemotron-2B in nightly text tests as this is constantly failing (sgl-project#13540)

* [fix] Fixes accuracy issues caused by incorrect use of rope (sgl-project#13495)

* Flashinfer TRTLLM-GEN-MoE + Qwen3 (sgl-project#13489)

* [chore] Disable ccache for sgl-kernel release (sgl-project#13541)

* Add Qwen/Qwen1.5-MoE-A2.7B to model list (sgl-project#13543)

* [Fix] Fix DeepSeek V3 MTP on B200 (sgl-project#13548)

* [router][grpc] Support num_reasoning_tokens in haromy models (sgl-project#13047)

* [feat][Ascend][Mindspore]: support model-impl of mindspore (sgl-project#9234)

* [AMD CI] Local cache fallback. (sgl-project#13452)

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>

* [CI] fix amd 1 gpu basic test (sgl-project#13551)

* [Doc] Update HiCache and Mooncake docs & Mooncake Setup Error Checking (sgl-project#12740)

* purge unnecessary env variable set in deterministic test (sgl-project#13481)

* chore: bump sgl-kernel version to 0.3.17.post2 (sgl-project#13542)

* Add `lmsys/gpt-oss-20b-bf16` to model validation check (sgl-project#13557)

* CI Failure Monitor Improvements (sgl-project#13558)

* [RL] Allow passing tensors of different dtypes for FlattenedTensorBucket (sgl-project#13413)

* [CI] Fix CUDA workflow's dependency. (sgl-project#13568)

* [NPU] Adapt pr-gate for pr-test workflow & workflows refresh (sgl-project#13567)

* Tiny enhance test suites sanity check (sgl-project#13589)

* [3/N] CI refactor: move some manually triggered tests. (sgl-project#13448)

* Support moe topk sigmoid kernel (sgl-project#13049)

Co-authored-by: xuebi <[email protected]>

* Expend compatibility check for all quantized MoE models (sgl-project#13465)

Signed-off-by: Xinyuan Tong <[email protected]>

* add https://github.com/netanel-haber to CI_PERMISSIONS.json (sgl-project#13577)

* chore: bump sgl-kernel version to 0.3.17.post2 (sgl-project#13570)

* [Auto Sync] Update base_grammar_backend.py, collector.py (20251116) (sgl-project#13357)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Sehoon Kim <[email protected]>

* [GDN] Remove unnecessary contiguous() (sgl-project#13604)

* [GDN] Remove unnecessary conv state clone (sgl-project#13603)

* [VLM] Support Piecewise CUDA Graph for Qwen2.5-VL  (sgl-project#13055)

Co-authored-by: luoyuan.luo <[email protected]>
Co-authored-by: Yuhao Yang <[email protected]>

* [diffusion] CI: improve diffusion CI (sgl-project#13562)

Co-authored-by: Adarsh Shirawalmath <[email protected]>

* feat: support external custom models (sgl-project#13429)

Co-authored-by: qiuxuan.lzw <[email protected]>
Co-authored-by: Mick <[email protected]>

* [CI fix] Fix image download failures in VLM CI tests (sgl-project#13613)

* [NVIDIA] Add fp8 gemm benchmark on blackwell (sgl-project#13528)

* [UT] Destroy process group after broadcast to resolve port occupation issues in multi-server tests (sgl-project#12379)

* [diffusion] refactor: remove PreprocessorConfig (sgl-project#13248)

* [diffusion] refactor: refactor pipeline folders (sgl-project#13253)

* Add FP32 dtype support for RoPE - Part2 (sgl-project#13328)

* [diffusion] fix: remove multimodal_gen redundant get_bool_env_var func (sgl-project#13583)

Co-authored-by: Mick <[email protected]>

* Add support for new aiter version (AR accuracy, is_shuffled PR) (sgl-project#13554)

Co-authored-by: sogalin <[email protected]>

* diffusion: improve baseline performance monitor (sgl-project#13614)

* [Feature] Introduce JIT Kernel in sglang (with hicache JIT kernel) (sgl-project#13453)

* [CI] Align metric units for CI rate limit (sgl-project#13633)

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>

* [ROCM] Optimized deepseek-r1 fp8 model with + triton_gemm_a8w8 + batch_gemm_a8w8 + fused set_mla_kv_buffer kernel (sgl-project#13617)

Co-authored-by: root <[email protected]>
Co-authored-by: jacky.cheng <[email protected]>

* fix bench_speculative bug (sgl-project#13197)

* Revert "[Feature] Introduce JIT Kernel in sglang (with hicache JIT kernel)" (sgl-project#13644)

* [CI] optimize CI workflow info (sgl-project#13634)

* CI: Kill zombie diffusion processes in CI & minor code style fix on rotary embedding fallback  (sgl-project#13637)

* [CI] apply pr-gate for XPU (sgl-project#13663)

* Add fused_rmsnorm_gated_cpu kernel for CPU to support Qwen3-Next (sgl-project#11577)

* [10/n] decouple quantization impl from vllm dependency - fix import (sgl-project#13524)

* Adding nightly tests as release guard for bot bump workflows (sgl-project#13655)

* [DeepseekV3.2] Deepseek fp8 support for MHA path (sgl-project#12964)

* Fix launch of `Olmo3` (sgl-project#13666)

Signed-off-by: Vincent Zhong <[email protected]>

* [Deepseek V3.2] Change indexer weights_proj to fp32 (sgl-project#13459)

* enable csgmv automatically on cuda (sgl-project#13600)

* Add nightly test CI monitor workflow (sgl-project#13038)

* allow loras to be implicitly evicted and loaded based on max_loaded_loras (sgl-project#11526)

* Test reorganization: Move tests to manual/ (sgl-project#13610)

* [Piecewise CUDA Graph] Fix recompile issue for Mixtral and Grok2 (sgl-project#13667)

Co-authored-by: Minglei Zhu <[email protected]>
Co-authored-by: Ke Bao <[email protected]>
Co-authored-by: Oasis-Git <[email protected]>

* Super tiny remove unused MiniMaxM2MLP class (sgl-project#13659)

* Update quantization.md with new model resources (sgl-project#13677)

* [model-gateway] add both python and rust cli alias (sgl-project#13678)

* [diffusion] CI: improve validation method (sgl-project#13627)

* [model-gateway] fix gateway cli arg parser to not use = (sgl-project#13685)

* [CI] Move nightly tests to test/nightly/ (sgl-project#13683)

* [NVIDIA] Add cutedsl e2e test to GB200 CI (sgl-project#12672)

Co-authored-by: Baizhou Zhang <[email protected]>

* Add sgl-kernel CI test for Blackwell (B200) (sgl-project#13301)

* remove unnecessary starvation check (sgl-project#13619)

* Fix target MLA with eagle3 support for PD disaggregation (sgl-project#13555)

Signed-off-by: Michael Qiu <[email protected]>
Co-authored-by: Mike_Qiu <[email protected]>

* [kimi k2 thinking] Avoid useless torch.zeros_  (sgl-project#13596)

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* [opt kimi k2 4 / n] Delete useless pad kernel in sgl_moe_align_block_size (sgl-project#13587)

* [VLM] Support Piecewise CUDA Graph for InternVL (sgl-project#13640)

Co-authored-by: luoyuan.luo <[email protected]>

* [Piecewise Cuda Graph] rename, refactor and add more logging (sgl-project#13675)

Co-authored-by: Minglei Zhu <[email protected]>
Co-authored-by: Ke Bao <[email protected]>
Co-authored-by: Oasis-Git <[email protected]>

* [difusion] CI: speed up multimodal_gen ci (sgl-project#13665)

Co-authored-by: Mick <[email protected]>

* [diffusion] doc: minor update docs (sgl-project#13177)

* Fix ZMQ bind error on non-zero rank nodes when using SGLANG_BLOCK_NONZERO_RANK_CHILDREN=0 (sgl-project#13686)

* [diffusion] server: use meta to avoid Linear init for TextEncoder (sgl-project#13564)

Co-authored-by: Mick <[email protected]>

* [Auto Sync] Update http_server.py, io_struct.py, scheduler_... (20251120) (sgl-project#13679)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Zhuqi Li <[email protected]>

* [Bugfix] Fix hidden state size in EAGLE PD disaggregation buffers (sgl-project#13590)

Co-authored-by: ZeldaHuang <[email protected]>
Co-authored-by: Shangming Cai <[email protected]>

* [HiCache] fix unit test with changed new APIs (sgl-project#13498)

* [Fix] Qwen3Next lmhead dtype  (sgl-project#13708)

* [NPU] chore: bump to CANN 8.3.RC1 and Pytorch 2.8.0 (sgl-project#13647)

* [11/N] MoE Refactor: Simplifying SBO Implementation with Dispatcher Hooks (sgl-project#13327)

Co-authored-by: Baizhou Zhang <[email protected]>

* [Clean code] Compressed_tensors_moe code clean (sgl-project#13719)

* [diffusion] profile: support performance metric dumping and comparison (sgl-project#13630)

* [AMD] Enable fused shared expert append and flatten quant for fp8 deepseekR1 model (sgl-project#13705)

Co-authored-by: yctseng0211 <[email protected]>

* [diffusion] doc: add contributing.md (sgl-project#13649)

* fix 3fs down, lock schedule main thread (sgl-project#13407)

* Fix url: use https://roadmap.sglang.io for roadmap (sgl-project#13733)

Co-authored-by: sglang-bot <[email protected]>

* Super tiny delete unused files (sgl-project#13734)

* [diffusion] log: minor improve logging (sgl-project#13735)

* [CI] minor hot fix of model validation list (sgl-project#13737)

* Add to ci permission (sgl-project#13739)

* [Piecewise CUDA Graph] Support Kimi-K2 (non-Thinking) (sgl-project#13466)

Co-authored-by: Brayden Zhong <[email protected]>
Co-authored-by: luoyuan.luo <[email protected]>

* Fix: CI monitor should not exit with error on regressions (sgl-project#13694)

* Revert "enable csgmv automatically on cuda" (sgl-project#13707)

* Support torch 12.9 + DeepEP by removing custom nvshmem (sgl-project#12949)

Co-authored-by: Baizhou Zhang <[email protected]>

* add some more labels (sgl-project#13701)

Co-authored-by: Brayden Zhong <[email protected]>

* Feat/nemotron nano v3 support (sgl-project#12690)

* Fix global scaling factor loading hang (sgl-project#13484)

* Fix B200 Nightly tests and move one manual test back to unit test to prevent the same issue (sgl-project#13746)

* fix test_lora_update.py starvation message check (sgl-project#13702)

* Fix model weights validation with automatic cache cleanup (sgl-project#13729)

* [Auto Sync] Update evict_policy.py, radix_cache.py (20251120) (sgl-project#13669)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: cctry <[email protected]>

* [Tiny] Renaming environ for NVFP4 dispatch (sgl-project#13756)

* modularize gsm8k and mmmu test classes (sgl-project#13506)

* Use dual stream for DS MoE whenever cuda graph is used (instead of with token threshold) (sgl-project#9405)

* [Ascend] support Kimi-K2-Thinking (sgl-project#12759)

Co-authored-by: ZhengdQin <[email protected]>
Co-authored-by: richhuan <[email protected]>
Co-authored-by: ZhengdQin <[email protected]>

* Refactor eagle bigram key matching (sgl-project#13714)

* [diffusion] fix: fix hunyuanvideo and add 2-gpu ci test  (sgl-project#13720)

Co-authored-by: Mick <[email protected]>

* Update mem checker during busy (sgl-project#13704)

* Tiny support different prompts in `send_one.py` (sgl-project#13768)

* [diffusion] refactor: refactor sampling params (sgl-project#13706)

* [VLM] Replace torch.repeat_interleave with faster np.repeat for Qwen-VL series (sgl-project#13736)

Co-authored-by: luoyuan.luo <[email protected]>

* [Spec v2] Remove `allocate_lens` and enable over-allocation (sgl-project#13478)

* [diffusion] CI: tinyfix diffusion ci (sgl-project#13769)

Co-authored-by: Mick <[email protected]>

* align code style eagle draft&draft_extend cuda graph runner (sgl-project#13533)

* Refactor MHA & MLA KV caches to support FP4 (sgl-project#13547)

Signed-off-by: Ho-Ren (Jack) Chuang <[email protected]>

* Move unnecessary input_addr capture under debug mode flag for speed-up (sgl-project#13690)

* Gather static input buffers for cuda graph (sgl-project#13676)

* Revert "Fix RMSNorm API CALL mismatch issue. (sgl-project#10032)" (sgl-project#13727)

* [model-gateway] update smg code owner (sgl-project#13777)

* [model-gateway] clean up router manager function order (sgl-project#13776)

* Fix typo in docs (sgl-project#13709)

* [Feature] HiCache JIT kernel (once again) (sgl-project#13764)

* [DeepEP] Add SGLANG_DEEPEP_BF16_DISPATCH env var in Normal mode (sgl-project#13787)

* Upgrade flashmla kernel for NSA tp support (sgl-project#13718)

* [diffusion] feat: support sp for image models (sgl-project#13180)

* [diffusion] CI: add run_suite to multimodal_gen CI (sgl-project#13791)

* Fix pagination bug in CI monitor preventing performance-test-2-gpu data collection (sgl-project#13781)

* [Scheduler] Tiny organize code style (sgl-project#13806)

* [Deepseek] Refactor deepseek server_args _handle_model_specific_adjustments (sgl-project#13687)

* [CI] Tiny refactoring sgl-kernel tests (sgl-project#13813)

* Tune fp8_w8a8 fused triton moe for GLM-4.6-FP8 (sgl-project#13815)

* make trtllm attn backend's init_forward_metadat non blocking (sgl-project#13802)

* remove package json which is not used (sgl-project#13810)

* [1/2] Refactor DeepGeem requant for FP8 Linear on Blackwell  (sgl-project#13601)

Co-authored-by: fy1214

* chore: bump sgl-kernel version to 0.3.18 (sgl-project#13816)

* xgrammar up version to 0.1.27 (sgl-project#13650)

* Fix bug: Incorrect variable used in rem_total_token_offset calculatio… (sgl-project#13201)

* [Doc] Refine fused_moe_triton configs doc (sgl-project#13820)

* Update MindSpore documentation (sgl-project#13656)

Co-authored-by: wangtiance <[email protected]>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>

* Refactor cache init logic (sgl-project#13800)

* [Bugfix] Add jit kernel files in packaging (sgl-project#13829)

Co-authored-by: luoyuan.luo <[email protected]>
Co-authored-by: Xu Yongfei <[email protected]>

* [diffusion] doc: minor update contributing.md with test section (sgl-project#13792)

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>

* [misc] Rename minilb install env & remove files & fix lint (sgl-project#13831)

* [diffusion] CI: send nightly-test outputs of diffusion to slack for correctness monitoring (sgl-project#13833)

Co-authored-by: Mick <[email protected]>

* [chore]Upgrade flashinfer to 0.5.3 (sgl-project#13751)

* [Intel XPU]support xgrammar backend for intel xpu (sgl-project#13245)

* [sgl-kernel Code Clean] Remove useless lightning_attention kernel (sgl-project#13819)

* [VLM] Revise InternVL Piecewise CUDA Graph Supporting (sgl-project#13846)

Co-authored-by: luoyuan.luo <[email protected]>

* Fix TorchAO quant in VLM (sgl-project#13508)

Co-authored-by: qiuxuan.lzw <[email protected]>

* [Fix]: Adjust FutureMap's token_id_bufs Size to Prevent ChunkedPrefill's next_token_ids from Overwriting Previous Prefill Requests' next_token_id (sgl-project#13713)

Signed-off-by: vito.yy <[email protected]>

* Fix: Safe RoPE Cache Expansion to Prevent Position-ID Out-of-Bounds in EAGLE + Long-Sequence Workloads (sgl-project#11871)

* [Fix] Fix uvloop get_event_loop() is not suitable for 0.22.x (sgl-project#13612)

Signed-off-by: lzy <[email protected]>
Co-authored-by: lzy <[email protected]>

* Tiny unpin uvloop for other backends (sgl-project#13858)

* [model-gateway] Refactor router e2e responses tests (sgl-project#13745)

Co-authored-by: Chang Su <[email protected]>
Co-authored-by: Simo Lin <[email protected]>

* [Perf] Optimize DeepSeek-R1 w4afp8 glue kernels (sgl-project#10027)

Co-authored-by: Fan Yin <[email protected]>

* Fix quantized moe checker fail for Qwen3 dense fp8 model (sgl-project#13853)

* [model-gateway] add grpc server code owner (sgl-project#13865)

* [BugFix] fix outplace_fused_experts missing is_gated (sgl-project#13864)

* fix xgrammar_backend crash with malformed inputs (sgl-project#13752)

* [Auto Sync] Update schedule_batch.py, schedule_policy.py, b... (20251122) (sgl-project#13763)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Hanming Lu <[email protected]>
Co-authored-by: Hanming Lu <[email protected]>

* [Doc] Add an Introduction to Expert Parallelism (sgl-project#13783)

* add LoRA warning if loading a preexisting LoRA adapter with a different name (sgl-project#13822)

* [NPU] Fix NPU CI (sgl-project#13834)

Co-authored-by: c30031083 <[email protected]>

* Overlap glm moe gemms in two cuda streams (sgl-project#13786)

* [Performance] Replace preprocess_video logic from GLM  multimodal processor with transformer impl for speed up (up to 27% faster) and addressing OOM (up to 50x improvements) (sgl-project#13487)

* Add support for bf16 x bf16 cutlass fused MoE (sgl-project#10275)

Co-authored-by: Sam Li <[email protected]>
Co-authored-by: jackeyhua <[email protected]>

* [Router bugfix] Fix router_manager selecting the wrong router when enable-igw. (sgl-project#13572)

* Fix nightly test job to fail when any test fails (sgl-project#13871)

* [diffusion] refactor: remove training-related code (sgl-project#13860)

* [CI] fix multimodel-gen-test job (sgl-project#13874)

* [diffusion] CI: add validation and cleanup for corrupted safetensors in multimodal loader (sgl-project#13870)

Co-authored-by: Mick <[email protected]>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>

* [CI] fix lint error (sgl-project#13891)

* fix: draft model revision misuse model revision (sgl-project#11893)

* Fix trace publish paths in nightly-test-nvidia workflow (sgl-project#13888)

* Adding nightly tests for Kimi-K2-thinking, Qwen3, minimax-m2, GLM4.6 (sgl-project#13890)

* [Fix] JIT kernel dependencies in other platforms (sgl-project#13889)

* remove RoPE CPU fp32 tests (sgl-project#13827)

Co-authored-by: Fan Yin <[email protected]>

* Move test_dummy_grok_models.py from manual to srt (temporary) (sgl-project#13901)

* [CI tiny fix] Enhance robustness of vision chunked prefill test with ROUGE-L metric (sgl-project#13793)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* update flashinfer_cubin==0.5.3 (sgl-project#13848)

* fix

* fix

---------

Signed-off-by: Xuchun Shang <[email protected]>
Signed-off-by: Michael Qiu <[email protected]>
Signed-off-by: Hao Lu <[email protected]>
Signed-off-by: Xinyuan Tong <[email protected]>
Signed-off-by: Vincent Zhong <[email protected]>
Signed-off-by: Ho-Ren (Jack) Chuang <[email protected]>
Signed-off-by: vito.yy <[email protected]>
Signed-off-by: lzy <[email protected]>
Co-authored-by: Simo Lin <[email protected]>
Co-authored-by: Xiaoyu Zhang <[email protected]>
Co-authored-by: AlphaBaby <[email protected]>
Co-authored-by: Xuchun Shang <[email protected]>
Co-authored-by: Mick <[email protected]>
Co-authored-by: adarshxs <[email protected]>
Co-authored-by: Adarsh Shirawalmath <[email protected]>
Co-authored-by: Xuchun Shang <[email protected]>
Co-authored-by: Shangming Cai <[email protected]>
Co-authored-by: Mike Qiu <[email protected]>
Co-authored-by: Mike_Qiu <[email protected]>
Co-authored-by: kebyn <[email protected]>
Co-authored-by: lianhu.yin <[email protected]>
Co-authored-by: kebyn <[email protected]>
Co-authored-by: Liangsheng Yin <[email protected]>
Co-authored-by: Carlo Mussolini <[email protected]>
Co-authored-by: Rain H <[email protected]>
Co-authored-by: Liangsheng Yin <[email protected]>
Co-authored-by: hlu1 <[email protected]>
Co-authored-by: Kangyan-Zhou <[email protected]>
Co-authored-by: Sirut Buasai <[email protected]>
Co-authored-by: Vedant V Jhaveri <[email protected]>
Co-authored-by: Kaixi Hou <[email protected]>
Co-authored-by: Baizhou Zhang <[email protected]>
Co-authored-by: pansicheng <[email protected]>
Co-authored-by: Zhiqiang Xie <[email protected]>
Co-authored-by: Minglei Zhu <[email protected]>
Co-authored-by: Sai Enduri <[email protected]>
Co-authored-by: Yuhao Yang <[email protected]>
Co-authored-by: Douglas Yang <[email protected]>
Co-authored-by: Binyao Jiang <[email protected]>
Co-authored-by: Zijian Zhang <[email protected]>
Co-authored-by: wingedge <[email protected]>
Co-authored-by: bianfeng <[email protected]>
Co-authored-by: Xinyuan Tong <[email protected]>
Co-authored-by: b8zhong <[email protected]>
Co-authored-by: alisonshao <[email protected]>
Co-authored-by: Cheng Wan <[email protected]>
Co-authored-by: Nicholas <[email protected]>
Co-authored-by: liusy58 <[email protected]>
Co-authored-by: Yuan Luo <[email protected]>
Co-authored-by: Hao Chen <[email protected]>
Co-authored-by: Morpheus Guo <[email protected]>
Co-authored-by: yuechguo <[email protected]>
Co-authored-by: Lianmin Zheng <[email protected]>
Co-authored-by: sglang-bot <[email protected]>
Co-authored-by: Junrong Lin <[email protected]>
Co-authored-by: Glen Liu <[email protected]>
Co-authored-by: Chang Su <[email protected]>
Co-authored-by: gongwei-130 <[email protected]>
Co-authored-by: Baidu-AIAK <[email protected]>
Co-authored-by: Chen Haozhe <[email protected]>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: ykwd <[email protected]>
Co-authored-by: Zilin Zhu <[email protected]>
Co-authored-by: Even Zhou <[email protected]>
Co-authored-by: Roger Young <[email protected]>
Co-authored-by: xuebi <[email protected]>
Co-authored-by: Netanel Haber <[email protected]>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Sehoon Kim <[email protected]>
Co-authored-by: luoyuan.luo <[email protected]>
Co-authored-by: Yuhao Yang <[email protected]>
Co-authored-by: StonyPort <[email protected]>
Co-authored-by: qiuxuan.lzw <[email protected]>
Co-authored-by: Zeyu Li <[email protected]>
Co-authored-by: iLeGend <[email protected]>
Co-authored-by: joesun <[email protected]>
Co-authored-by: Thomas Wang <[email protected]>
Co-authored-by: sogalin <[email protected]>
Co-authored-by: DarkSharpness <[email protected]>
Co-authored-by: yctseng0211 <[email protected]>
Co-authored-by: root <[email protected]>
Co-authored-by: jacky.cheng <[email protected]>
Co-authored-by: Lzhang-hub <[email protected]>
Co-authored-by: YanbingJiang <[email protected]>
Co-authored-by: Fan Yin <[email protected]>
Co-authored-by: YAMY <[email protected]>
Co-authored-by: Vincent Zhong <[email protected]>
Co-authored-by: Stefan He <[email protected]>
Co-authored-by: Ke Bao <[email protected]>
Co-authored-by: Oasis-Git <[email protected]>
Co-authored-by: fzyzcjy <[email protected]>
Co-authored-by: 赵晨阳 <[email protected]>
Co-authored-by: ishandhanani <[email protected]>
Co-authored-by: zyksir <[email protected]>
Co-authored-by: Zhuqi Li <[email protected]>
Co-authored-by: Michele Marzollo <[email protected]>
Co-authored-by: ZeldaHuang <[email protected]>
Co-authored-by: Teng Ma <[email protected]>
Co-authored-by: weibingo <[email protected]>
Co-authored-by: Jiajun Li <[email protected]>
Co-authored-by: Brayden Zhong <[email protected]>
Co-authored-by: Qiaolin Yu <[email protected]>
Co-authored-by: roikoren755 <[email protected]>
Co-authored-by: Shu Wang <[email protected]>
Co-authored-by: cctry <[email protected]>
Co-authored-by: Trevor Morris <[email protected]>
Co-authored-by: Yijie Zhu <[email protected]>
Co-authored-by: ZhengdQin <[email protected]>
Co-authored-by: richhuan <[email protected]>
Co-authored-by: ZhengdQin <[email protected]>
Co-authored-by: yinghui <[email protected]>
Co-authored-by: Ho-Ren (Jack) Chuang <[email protected]>
Co-authored-by: ErsongWang <[email protected]>
Co-authored-by: Peiqi Yin <[email protected]>
Co-authored-by: Swipe4057 <[email protected]>
Co-authored-by: liuhuijiayou <[email protected]>
Co-authored-by: Tiance Wang <[email protected]>
Co-authored-by: wangtiance <[email protected]>
Co-authored-by: Xu Yongfei <[email protected]>
Co-authored-by: gaopengff <[email protected]>
Co-authored-by: ant-yy <[email protected]>
Co-authored-by: Zhi Yiliu <[email protected]>
Co-authored-by: lzy <[email protected]>
Co-authored-by: Xinyue Zhang <[email protected]>
Co-authored-by: Yuhao Yao <[email protected]>
Co-authored-by: Hanming Lu <[email protected]>
Co-authored-by: Hanming Lu <[email protected]>
Co-authored-by: c30031083 <[email protected]>
Co-authored-by: Nicolas Castet <[email protected]>
Co-authored-by: Sam Li <[email protected]>
Co-authored-by: jackeyhua <[email protected]>
Co-authored-by: Siyuan Chen <[email protected]>
Co-authored-by: Yibo Cai <[email protected]>
Co-authored-by: Yibo Cai <[email protected]>
Co-authored-by: Zaili Wang <[email protected]>
Co-authored-by: josephyou <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants