Gemini 3.7 Flash · Serving

S04 · SLO

Valid

Online SLO goodput 1dev · Implementation Optimization

1.00×PERFORMANCE RATIO
158TOOL EVENTS
1TEXT PATCHES
0BINARY NAMES

01 / PROCESS MAP

Tool activity

Each row shows one agent’s tool events in its own recorded order. Colors show broad activities; bar widths do not represent duration.

Main agentGemini 3.7 Flash · 158 visible calls

InspectEditValidateExecuteBuildProfileRollbackOther
138Inspect
4Edit
5Validate
11Other

02 / EVENT SEQUENCE

Event timeline

Requests are grouped by agent, activity and topic. Delegations open into child branches. Summaries describe visible requests; tool errors and missing responses are flagged. A recorded response does not establish command success or a performance improvement.

Show event timelineHide event timeline84 groups · 158 calls

Scroll within this panel to view all events. Command sketches retain familiar programs and options. Values become <val> or <n>; paths, addresses and script bodies are hidden as <path>, <url> and <script>.

Main agent

  1. Inspect · Source & workspace

    Requested workspace inspection related to source & workspace.

    1 call · #0001–#0001

    echo <val>ls -l -a <val>
  2. Inspect · Task requirements

    Requested file and log inspection related to task requirements.

    2 calls · #0002–#0003

    Read <path>
  3. Inspect · Runtime processes

    Requested file and log inspection related to runtime processes.

    1 call · #0004–#0004

    Read <path>
  4. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    3 calls · #0005–#0007

    Read <path>
  5. Other · Source & workspace

    Requested environment setup or inspection, source searches and script or workload execution related to source & workspace.

    2 calls · #0008–#0009

    envgrep -E <val>sortbash <script>
  6. Inspect · Source & workspace

    Requested source searches and file and log inspection related to source & workspace.

    2 calls · #0010–#0011

    Search <pattern> <path>Read <path>
  7. Inspect · Benchmark & validation setup

    Requested file and log inspection related to benchmark & validation setup.

    1 call · #0012–#0012

    Read <path>
  8. Inspect · Source & workspace

    Requested source searches and file and log inspection related to source & workspace.

    2 calls · #0013–#0014

    Search <pattern> <path>Read <path>
  9. Other · Source & workspace

    Requested environment setup or inspection related to source & workspace.

    1 call · #0015–#0015

    env <vars> bash <script>
  10. Validate · Benchmark & validation setup

    Requested environment setup or inspection related to benchmark & validation setup.

    1 call · #0016–#0016

    env <vars> bash <script>
  11. Inspect · Source & workspace

    Requested source searches and file and log inspection related to source & workspace.

    2 calls · #0017–#0018

    Search <pattern> <path>Read <path>
  12. Other · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0019–#0019

    Manage task <task>
  13. Inspect · Benchmark & validation setup

    Requested source searches related to benchmark & validation setup.

    1 call · #0020–#0020

    Search <pattern> <path>
  14. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    3 calls · #0021–#0023

    Read <path>
  15. Other · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0024–#0024

    Manage task <task>
  16. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0025–#0025

    Read <path>
  17. Inspect · Benchmark & validation setup

    Requested file and log inspection related to benchmark & validation setup.

    1 call · #0026–#0026

    Read <path>
  18. Inspect · Source & workspace

    Requested file and log inspection, runtime inspection and source searches related to source & workspace.

    9 calls · #0027–#0035

    Read <path>ps <val>grep <val>Search <pattern> <path>List <path>
  19. Validate · Benchmark & validation setup

    Requested script or workload execution related to benchmark & validation setup.

    1 call · #0036–#0036

    bash <script>
  20. Inspect · Benchmark & validation setup

    Requested source searches related to benchmark & validation setup.

    1 call · #0037–#0037

    Search <pattern> <path>
  21. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    4 calls · #0038–#0041

    Read <path>
  22. Inspect · Benchmark & validation setup

    Requested file and log inspection related to benchmark & validation setup.

    1 call · #0042–#0042

    Read <path>
  23. Inspect · Source & workspace

    Requested file and log inspection, runtime inspection and source searches related to source & workspace.

    2 calls · #0043–#0044

    Read <path>ps <flag>grep -E <val>
  24. Inspect · Benchmark & validation setup

    Requested file and log inspection related to benchmark & validation setup.

    1 call · #0045–#0045

    Read <path>
  25. Inspect · Task requirements

    Requested file and log inspection related to task requirements.

    2 calls · #0046–#0047

    Read <path>
  26. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0048–#0048

    Read <path>
  27. Inspect · Task requirements

    Requested file and log inspection related to task requirements.

    1 call · #0049–#0049

    Read <path>
  28. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0050–#0050

    Read <path>
  29. Other · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0051–#0051

    Manage task <task>
  30. Inspect · Runtime processes

    Requested file and log inspection related to runtime processes.

    1 call · #0052–#0052

    Read <path>
  31. Validate · Task requirements

    Requested environment setup or inspection related to task requirements.

    1 call · #0053–#0053

    env <vars> bash <script>
  32. Inspect · Task requirements

    Requested file and log inspection related to task requirements.

    1 call · #0054–#0054

    Read <path>
  33. Other · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0055–#0055

    Manage task <task>
  34. Inspect · Benchmark & validation setup

    Requested file and log inspection related to benchmark & validation setup.

    2 calls · #0056–#0057

    Read <path>
  35. Other · Benchmark & validation setup

    Requested script or workload execution related to benchmark & validation setup.

    1 call · #0058–#0058

    bash <script>
  36. Inspect · Source & workspace

    Requested file and log inspection and source searches related to source & workspace.

    4 calls · #0059–#0062

    Read <path>Search <pattern> <path>
  37. Inspect · Attention kernels

    Requested source searches related to attention kernels.

    1 call · #0063–#0063

    Search <pattern> <path>
  38. Inspect · Source & workspace

    Requested workspace inspection related to source & workspace.

    1 call · #0064–#0064

    List <path>
  39. Other · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0065–#0065

    Manage task <task>
  40. Inspect · Batching & scheduling

    Requested file and log inspection and source searches related to batching & scheduling.

    5 calls · #0066–#0070

    Read <path>Search <pattern> <path>
  41. Inspect · Source & workspace

    Requested file and log inspection, workspace inspection and source searches related to source & workspace.

    7 calls · #0071–#0077

    Read <path>List <path>Search <pattern> <path>
  42. Inspect · Attention kernels

    Requested file and log inspection and source searches related to attention kernels.

    4 calls · #0078–#0081

    Read <path>Search <pattern> <path>
  43. Inspect · Source & workspace

    Requested source searches, repository inspection and file and log inspection related to source & workspace.

    3 calls · #0082–#0084

    Search <pattern> <path>git log -p -n <n> -S <val>Read <path>
  44. Inspect · Attention kernels

    Requested file and log inspection related to attention kernels.

    2 calls · #0085–#0086

    Read <path>
  45. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0087–#0087

    Read <path>
  46. Inspect · Attention kernels

    Requested file and log inspection related to attention kernels.

    8 calls · #0088–#0095

    Read <path>
  47. Inspect · Source & workspace

    Requested source searches related to source & workspace.

    1 call · #0096–#0096

    Search <pattern> <path>
  48. Inspect · Attention kernels

    Requested file and log inspection related to attention kernels.

    1 call · #0097–#0097

    Read <path>
  49. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0098–#0098

    Read <path>
  50. Inspect · Attention kernels

    Requested source searches related to attention kernels.

    1 call · #0099–#0099

    Search <pattern> <path>
  51. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0100–#0100

    Read <path>
  52. Inspect · Attention kernels

    Requested file and log inspection related to attention kernels.

    1 call · #0101–#0101

    Read <path>
  53. Inspect · Source & workspace

    Requested file and log inspection and source searches related to source & workspace.

    9 calls · #0102–#0110

    Read <path>Search <pattern> <path>
  54. Inspect · Batching & scheduling

    Requested source searches related to batching & scheduling.

    1 call · #0111–#0111

    Search <pattern> <path>
  55. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0112–#0112

    Read <path>
  56. Inspect · Batching & scheduling

    Requested source searches related to batching & scheduling.

    1 call · #0113–#0113

    Search <pattern> <path>
  57. Inspect · Source & workspace

    Requested file and log inspection and source searches related to source & workspace.

    5 calls · #0114–#0118

    Read <path>Search <pattern> <path>
  58. Inspect · Runtime processes

    Requested source searches and file and log inspection related to runtime processes.

    7 calls · #0119–#0125

    Search <pattern> <path>Read <path>
  59. Inspect · Source & workspace

    Requested source searches related to source & workspace.

    1 call · #0126–#0126

    Search <pattern> <path>
  60. Inspect · Runtime processes

    Requested file and log inspection related to runtime processes.

    1 call · #0127–#0127

    Read <path>
  61. Inspect · Source & workspace

    Requested source searches related to source & workspace.

    1 call · #0128–#0128

    Search <pattern> <path>
  62. Inspect · Runtime processes

    Requested file and log inspection and source searches related to runtime processes.

    2 calls · #0129–#0130

    Read <path>Search <pattern> <path>
  63. Inspect · Source & workspace

    Requested source searches related to source & workspace.

    1 call · #0131–#0131

    Search <pattern> <path>
  64. Inspect · Runtime processes

    Requested source searches and file and log inspection related to runtime processes.

    2 calls · #0132–#0133

    Search <pattern> <path>Read <path>
  65. Inspect · Source & workspace

    Requested source searches related to source & workspace.

    1 call · #0134–#0134

    Search <pattern> <path>
  66. Inspect · Runtime processes

    Requested file and log inspection related to runtime processes.

    1 call · #0135–#0135

    Read <path>
  67. Inspect · Batching & scheduling

    Requested file and log inspection related to batching & scheduling.

    1 call · #0136–#0136

    Read <path>
  68. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    2 calls · #0137–#0138

    Read <path>
  69. Edit · Source & workspace

    Requested code edits related to source & workspace.

    1 call · #0139–#0139

    Edit <path>
  70. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0140–#0140

    Read <path>
  71. Edit · Source & workspace

    Requested code edits related to source & workspace.

    1 call · #0141–#0141

    Edit <path>
  72. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0142–#0142

    Read <path>
  73. Edit · Source & workspace

    Requested code edits related to source & workspace.

    1 call · #0143–#0143

    Edit <path>
  74. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0144–#0144

    Read <path>
  75. Edit · Source & workspace

    Requested code edits related to source & workspace.

    1 call · #0145–#0145

    Edit <path>
  76. Inspect · Attention kernels

    Requested file and log inspection related to attention kernels.

    1 call · #0146–#0146

    Read <path>
  77. Validate · Task requirements

    Requested environment setup or inspection related to task requirements.

    1 call · #0147–#0147

    env <vars> bash <script>
  78. Other · Benchmark & validation setup

    Requested script or workload execution related to benchmark & validation setup.

    1 call · #0148–#0148

    bash <script>
  79. Inspect · Task requirements

    Requested file and log inspection related to task requirements.

    1 call · #0149–#0149

    Read <path>
  80. Inspect · Attention kernels

    Requested file and log inspection and source searches related to attention kernels.

    3 calls · #0150–#0152

    Read <path>Search <pattern> <path>
  81. Inspect · Batching & scheduling

    Requested source searches and file and log inspection related to batching & scheduling.

    2 calls · #0153–#0154

    Search <pattern> <path>Read <path>
  82. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    2 calls · #0155–#0156

    Read <path>
  83. Validate · Task requirements

    Requested environment setup or inspection related to task requirements.

    1 call · #0157–#0157

    env <vars> bash <script>
  84. Other · Source & workspace

    Requested repository inspection related to source & workspace.

    1 call · #0158–#0158

    git -C <path> <val> -sgit -C <path> <val> --stat

03 / CANDIDATE ARTIFACT

Text patches & binary names

Read code changes as Git diffs. Identifying strings are masked; binary files are listed by their full relative names.

sglang · 3 changed files

Base commit: 340db9201005fc64635bb25db1d2538f955761c3

diff --git a/python/sglang/srt/hardware_backend/npu/graph_runner/npu_cudagraph_backend.py b/python/sglang/srt/hardware_backend/npu/graph_runner/npu_cudagraph_backend.pyindex 105034c03c0fb36d35254f822b63908f5bd0a2a0..25ee85ee6e83e5131b7b6bdbbf3bc9981e7b9ac4 100644--- a/python/sglang/srt/hardware_backend/npu/graph_runner/npu_cudagraph_backend.py+++ b/python/sglang/srt/hardware_backend/npu/graph_runner/npu_cudagraph_backend.py@@ -165,15 +165,9 @@ class NPUCudaGraphBackend(BaseCudaGraphBackend):             cpu_update_input = [{attr_name: seq_lens}]          graph = self._graphs[shape_key]--        def _update():-            self._device_module.set_device(self._device_id)-            graph.update(cpu_update_input=cpu_update_input)--        thread = threading.Thread(target=_update)-        thread.start()+        self._device_module.set_device(self._device_id)+        graph.update(cpu_update_input=cpu_update_input)         graph.replay()-        thread.join()         return self._outputs[shape_key]      def cleanup(self) -> None:diff --git a/python/sglang/srt/hardware_backend/npu/graph_runner/npu_graph_runner.py b/python/sglang/srt/hardware_backend/npu/graph_runner/npu_graph_runner.pyindex b82c973bc340c072ea79877ef4a0d183bd6af32d..893c51460fc2738fae30b367185a2b23549f111c 100644--- a/python/sglang/srt/hardware_backend/npu/graph_runner/npu_graph_runner.py+++ b/python/sglang/srt/hardware_backend/npu/graph_runner/npu_graph_runner.py@@ -240,12 +240,21 @@ class NPUGraphRunner(DecodeCudaGraphRunner):             or is_deepseek_v4(self.model_runner.model_config.hf_config)         ):             if forward_batch.forward_mode.is_target_verify():-                seq_lens_cpu = forward_batch.seq_lens.cpu() + self.captured_req_width+                seq_lens_cpu = (+                    (forward_batch.seq_lens_cpu + self.captured_req_width)+                    if forward_batch.seq_lens_cpu is not None+                    else (forward_batch.seq_lens.cpu() + self.captured_req_width)+                )                 seq_lens = seq_lens_cpu.tolist() + [0] * (self.bs - self.raw_bs)             else:-                seq_lens = forward_batch.seq_lens.cpu().tolist() + [0] * (-                    self.bs - self.raw_bs-                )+                if forward_batch.seq_lens_cpu is not None:+                    seq_lens = forward_batch.seq_lens_cpu.tolist() + [0] * (+                        self.bs - self.raw_bs+                    )+                else:+                    seq_lens = forward_batch.seq_lens.cpu().tolist() + [0] * (+                        self.bs - self.raw_bs+                    )             output = self.backend.replay_with_input_update(                 graph_key,                 seq_lens=seq_lens,diff --git a/python/sglang/srt/models/qwen3.py b/python/sglang/srt/models/qwen3.pyindex 9fbd046709e6d2d557b005f22d8b8586727fcec4..8fe714c7c42aa1aa5c9d4880f7e600936172e7fd 100644--- a/python/sglang/srt/models/qwen3.py+++ b/python/sglang/srt/models/qwen3.py@@ -56,6 +56,12 @@ if _use_aiter:  if _is_npu:     from sgl_kernel_npu.norm.split_qkv_rmsnorm_rope import split_qkv_rmsnorm_rope+    try:+        from sgl_kernel_npu.norm.split_qkv_rmsnorm_rope_pos_cache_half_npu import (+            split_qkv_rmsnorm_rope_pos_cache_half_npu,+        )+    except (ImportError, OSError):+        split_qkv_rmsnorm_rope_pos_cache_half_npu = None      from sglang.srt.hardware_backend.npu.cmo import get_cmo_stream, wait_cmo_stream @@ -186,6 +192,27 @@ class Qwen3Attention(nn.Module):     def forward_prepare_npu(self, positions, hidden_states, forward_batch):         qkv, _ = self.qkv_proj(hidden_states) +        if (+            split_qkv_rmsnorm_rope_pos_cache_half_npu is not None+            and not isinstance(self.rotary_emb, MRotaryEmbedding)+            and hasattr(self.rotary_emb, "cos_sin_cache")+        ):+            q, k, v = split_qkv_rmsnorm_rope_pos_cache_half_npu(+                qkv,+                positions,+                self.rotary_emb.cos_sin_cache,+                self.q_size,+                self.kv_size,+                self.head_dim,+                eps=self.q_norm.variance_epsilon,+                q_weight=self.q_norm.weight,+                k_weight=self.k_norm.weight,+                q_bias=getattr(self.q_norm, "bias", None),+                k_bias=getattr(self.k_norm, "bias", None),+                rope_dim=getattr(self.rotary_emb, "rotary_dim", self.head_dim),+            )+            return q, k, v+         if self.attn.layer_id == self.start_layer:             self.rotary_emb.get_cos_sin_with_position(positions)         q, k, v = split_qkv_rmsnorm_rope(