Gemini 3.7 Flash · Serving

S02 · Saturation

Valid

Online saturation throughput 1dev · Implementation Optimization

0.98×PERFORMANCE RATIO
235TOOL 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 · 235 visible calls

InspectEditValidateExecuteBuildProfileRollbackOther
147Inspect
16Edit
14Validate
5Execute
1Profile
52Other

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 timeline129 groups · 235 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> <n> > <path>ls -l -a <path>
  2. Inspect · Task requirements

    Requested file and log inspection related to task requirements.

    2 calls · #0002–#0003

    Read <path>
  3. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    3 calls · #0004–#0006

    head -n <n> <path> <path>Read <path>
  4. Profile · Source & workspace

    Requested script or workload execution related to source & workspace.

    1 call · #0007–#0007

    python3 -c <script><script> <args>
  5. Other · Source & workspace

    Requested environment setup or inspection and source searches related to source & workspace.

    1 call · #0008–#0008

    envgrep <val>
  6. Inspect · Source & workspace

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

    3 calls · #0009–#0011

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

    Requested script or workload execution related to source & workspace.

    1 call · #0012–#0012

    <script> <args>
  8. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0013–#0013

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

    Requested source searches related to benchmark & validation setup.

    1 call · #0014–#0014

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

    Requested file and log inspection related to source & workspace.

    1 call · #0015–#0015

    Read <path>
  11. Validate · Benchmark & validation setup

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

    1 call · #0016–#0016

    <script> <args>
  12. Other · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0017–#0017

    Manage task <task>
  13. Validate · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0018–#0018

    Schedule <task>
  14. Other · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0019–#0019

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

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

    1 call · #0020–#0020

    Read <path>
  16. Validate · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0021–#0021

    Schedule <task>
  17. Inspect · Benchmark & validation setup

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

    1 call · #0022–#0022

    Read <path>
  18. Validate · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0023–#0023

    Schedule <task>
  19. Inspect · Benchmark & validation setup

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

    1 call · #0024–#0024

    Read <path>
  20. Validate · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0025–#0025

    Schedule <task>
  21. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0026–#0026

    Read <path>
  22. Other · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0027–#0027

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

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

    1 call · #0028–#0028

    Read <path>
  24. Validate · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0029–#0029

    Schedule <task>
  25. Inspect · Benchmark & validation setup

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

    1 call · #0030–#0030

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

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

    1 call · #0031–#0031

    <script> <args>
  27. Inspect · Source & workspace

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

    5 calls · #0032–#0036

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

    Requested task coordination related to source & workspace.

    1 call · #0037–#0037

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

    Requested workspace inspection related to source & workspace.

    1 call · #0038–#0038

    ls -l -a <path>
  30. Execute · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0039–#0039

    Schedule <task>
  31. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0040–#0040

    Read <path>
  32. Execute · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0041–#0041

    Schedule <task>
  33. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0042–#0042

    Read <path>
  34. Execute · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0043–#0043

    Schedule <task>
  35. Other · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0044–#0044

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

    Requested file and log inspection related to source & workspace.

    1 call · #0045–#0045

    Read <path>
  37. Execute · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0046–#0046

    Schedule <task>
  38. Inspect · Source & workspace

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

    4 calls · #0047–#0050

    Search <pattern> <path>List <path>
  39. Inspect · Attention kernels

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

    10 calls · #0051–#0060

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

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

    7 calls · #0061–#0067

    List <path>Read <path>
  41. Inspect · Attention kernels

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

    4 calls · #0068–#0071

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

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

    5 calls · #0072–#0076

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

    Requested source searches related to attention kernels.

    1 call · #0077–#0077

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

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

    5 calls · #0078–#0082

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

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

    4 calls · #0083–#0086

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

    Requested script or workload execution and task coordination related to source & workspace.

    3 calls · #0087–#0089

    python -c <script>Manage task <task>Schedule <task>
  47. Inspect · Source & workspace

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

    2 calls · #0090–#0091

    List <path>Read <path>
  48. Edit · Source & workspace

    Requested code edits related to source & workspace.

    1 call · #0092–#0092

    Write <path>
  49. Other · Source & workspace

    Requested script or workload execution and task coordination related to source & workspace.

    3 calls · #0093–#0095

    python <script>Schedule <task>Manage task <task>
  50. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0096–#0096

    Read <path>
  51. Other · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0097–#0097

    Schedule <task>
  52. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0098–#0098

    Read <path>
  53. Edit · Source & workspace

    Requested code edits related to source & workspace.

    1 call · #0099–#0099

    Write <path>
  54. Other · Source & workspace

    Requested script or workload execution and task coordination related to source & workspace.

    2 calls · #0100–#0101

    python <script>Schedule <task>
  55. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0102–#0102

    Read <path>
  56. Inspect · Attention kernels

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

    4 calls · #0103–#0106

    Read <path>Search <pattern> <path>
  57. Edit · Attention kernels

    Requested code edits related to attention kernels.

    1 call · #0107–#0107

    Write <path>
  58. Other · Attention kernels

    Requested script or workload execution related to attention kernels.

    1 call · #0108–#0108

    python <script>
  59. Other · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0109–#0109

    Schedule <task>
  60. Edit · Attention kernels

    Requested code edits related to attention kernels.

    1 call · #0110–#0110

    Write <path>
  61. Other · Attention kernels

    Requested script or workload execution related to attention kernels.

    1 call · #0111–#0111

    python <script>
  62. Other · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0112–#0112

    Schedule <task>
  63. Edit · Source & workspace

    Requested code edits related to source & workspace.

    1 call · #0113–#0113

    Write <path>
  64. Other · Source & workspace

    Requested script or workload execution and task coordination related to source & workspace.

    2 calls · #0114–#0115

    python <script>Schedule <task>
  65. Edit · Source & workspace

    Requested code edits related to source & workspace.

    1 call · #0116–#0116

    Write <path>
  66. Other · Source & workspace

    Requested script or workload execution and task coordination related to source & workspace.

    3 calls · #0117–#0119

    python <script>Schedule <task>Manage task <task>
  67. Inspect · Attention kernels

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

    6 calls · #0120–#0125

    Search <pattern> <path>Read <path>
  68. Edit · Source & workspace

    Requested code edits related to source & workspace.

    1 call · #0126–#0126

    Write <path>
  69. Other · Source & workspace

    1 tool error

    Requested script or workload execution and task coordination related to source & workspace.

    5 calls · #0127–#0131

    python <script>Schedule <task>Manage task <task>
  70. Inspect · Attention kernels

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

    2 calls · #0132–#0133

    Search <pattern> <path>Read <path>
  71. Edit · Source & workspace

    Requested code edits related to source & workspace.

    1 call · #0134–#0134

    Write <path>
  72. Other · Source & workspace

    Requested script or workload execution and task coordination related to source & workspace.

    2 calls · #0135–#0136

    python <script>Schedule <task>
  73. Edit · Source & workspace

    Requested code edits related to source & workspace.

    1 call · #0137–#0137

    Write <path>
  74. Other · Source & workspace

    Requested script or workload execution and task coordination related to source & workspace.

    2 calls · #0138–#0139

    python <script>Schedule <task>
  75. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0140–#0140

    Read <path>
  76. Inspect · Batching & scheduling

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

    11 calls · #0141–#0151

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

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

    2 calls · #0152–#0153

    find <path> -name <val>Read <path>
  78. Inspect · Device memory

    Requested source searches related to device memory.

    1 call · #0154–#0154

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

    Requested file and log inspection related to source & workspace.

    1 call · #0155–#0155

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

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

    1 call · #0156–#0156

    cat <path>
  81. Inspect · Source & workspace

    Requested workspace inspection related to source & workspace.

    1 call · #0157–#0157

    ls -l -a <path>
  82. Inspect · Benchmark & validation setup

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

    1 call · #0158–#0158

    Read <path>
  83. Edit · Source & workspace

    Requested code edits related to source & workspace.

    1 call · #0159–#0159

    Write <path>
  84. Other · Source & workspace

    Requested script or workload execution and task coordination related to source & workspace.

    2 calls · #0160–#0161

    python <script>Schedule <task>
  85. Inspect · Attention kernels

    Requested file and log inspection related to attention kernels.

    2 calls · #0162–#0163

    Read <path>
  86. Edit · Source & workspace

    Requested code edits related to source & workspace.

    1 call · #0164–#0164

    Write <path>
  87. Other · Source & workspace

    Requested script or workload execution and task coordination related to source & workspace.

    2 calls · #0165–#0166

    python <script>Schedule <task>
  88. Edit · Source & workspace

    Requested code edits related to source & workspace.

    1 call · #0167–#0167

    Write <path>
  89. Other · Source & workspace

    Requested script or workload execution and task coordination related to source & workspace.

    2 calls · #0168–#0169

    python <script>Schedule <task>
  90. Inspect · Source & workspace

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

    3 calls · #0170–#0172

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

    Requested file and log inspection related to batching & scheduling.

    2 calls · #0173–#0174

    Read <path>
  92. Inspect · Source & workspace

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

    6 calls · #0175–#0180

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

    Requested file and log inspection related to attention kernels.

    1 call · #0181–#0181

    Read <path>
  94. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0182–#0182

    Read <path>
  95. Inspect · Attention kernels

    Requested file and log inspection related to attention kernels.

    3 calls · #0183–#0185

    Read <path>
  96. Edit · Source & workspace

    Requested code edits related to source & workspace.

    1 call · #0186–#0186

    Write <path>
  97. Other · Source & workspace

    Requested script or workload execution and task coordination related to source & workspace.

    2 calls · #0187–#0188

    python <script>Schedule <task>
  98. Edit · Source & workspace

    Requested code edits related to source & workspace.

    1 call · #0189–#0189

    Write <path>
  99. Other · Source & workspace

    Requested script or workload execution and task coordination related to source & workspace.

    2 calls · #0190–#0191

    python <script>Schedule <task>
  100. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0192–#0192

    Read <path>
  101. Inspect · Attention kernels

    Requested file and log inspection related to attention kernels.

    1 call · #0193–#0193

    Read <path>
  102. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0194–#0194

    Read <path>
  103. Inspect · Attention kernels

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

    5 calls · #0195–#0199

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

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

    2 calls · #0200–#0201

    Read <path>Search <pattern> <path>
  105. Edit · Source & workspace

    Requested code edits related to source & workspace.

    1 call · #0202–#0202

    Edit <path>
  106. Validate · Benchmark & validation setup

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

    1 call · #0203–#0203

    bash <script>
  107. Validate · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0204–#0204

    Schedule <task>
  108. Other · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0205–#0205

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

    Requested file and log inspection related to source & workspace.

    1 call · #0206–#0206

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

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

    1 call · #0207–#0207

    Read <path>
  111. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    2 calls · #0208–#0209

    Read <path>
  112. Edit · Source & workspace

    Requested code edits related to source & workspace.

    1 call · #0210–#0210

    Edit <path>
  113. Validate · Benchmark & validation setup

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

    1 call · #0211–#0211

    bash <script>
  114. Validate · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0212–#0212

    Schedule <task>
  115. Inspect · Benchmark & validation setup

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

    1 call · #0213–#0213

    Read <path>
  116. Validate · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0214–#0214

    Schedule <task>
  117. Other · Benchmark & validation setup

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

    1 call · #0215–#0215

    bash <script>
  118. Other · Source & workspace

    Requested task coordination related to source & workspace.

    2 calls · #0216–#0217

    Schedule <task>Manage task <task>
  119. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    2 calls · #0218–#0219

    Read <path>
  120. Execute · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0220–#0220

    Schedule <task>
  121. Other · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0221–#0221

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

    Requested file and log inspection related to source & workspace.

    1 call · #0222–#0222

    Read <path>
  123. Other · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0223–#0223

    Schedule <task>
  124. Inspect · Attention kernels

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

    2 calls · #0224–#0225

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

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

    6 calls · #0226–#0231

    Read <path>Search <pattern> <path>git diff <path>git status -s
  126. Validate · Benchmark & validation setup

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

    1 call · #0232–#0232

    bash <script>
  127. Validate · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0233–#0233

    Schedule <task>
  128. Other · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0234–#0234

    Manage task <task>
  129. Validate · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0235–#0235

    Schedule <task>

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 · 1 changed files

Base commit: 340db9201005fc64635bb25db1d2538f955761c3

diff --git a/python/sglang/srt/models/qwen3.py b/python/sglang/srt/models/qwen3.pyindex 9fbd046709e6d2d557b005f22d8b8586727fcec4..48c3eca1863290808e4c8e77861e6eecab00a8e2 100644--- a/python/sglang/srt/models/qwen3.py+++ b/python/sglang/srt/models/qwen3.py@@ -55,6 +55,7 @@ if _use_aiter:         pass  if _is_npu:+    import torch_npu     from sgl_kernel_npu.norm.split_qkv_rmsnorm_rope import split_qkv_rmsnorm_rope      from sglang.srt.hardware_backend.npu.cmo import get_cmo_stream, wait_cmo_stream@@ -185,23 +186,34 @@ class Qwen3Attention(nn.Module):      def forward_prepare_npu(self, positions, hidden_states, forward_batch):         qkv, _ = self.qkv_proj(hidden_states)--        if self.attn.layer_id == self.start_layer:-            self.rotary_emb.get_cos_sin_with_position(positions)-        q, k, v = split_qkv_rmsnorm_rope(-            qkv,-            self.rotary_emb.position_sin,-            self.rotary_emb.position_cos,-            self.q_size,-            self.kv_size,+        q, k, v = qkv.split([self.q_size, self.kv_size, self.kv_size], dim=-1)+        num_tokens = qkv.shape[0]+        q_3d = q.reshape(num_tokens, -1, self.head_dim)+        k_3d = k.reshape(num_tokens, -1, self.head_dim)+        q_norm = torch_npu.npu_rms_norm(+            q_3d, self.q_norm.weight, self.q_norm.variance_epsilon+        )[0]+        k_norm = torch_npu.npu_rms_norm(+            k_3d, self.k_norm.weight, self.k_norm.variance_epsilon+        )[0]+        if (+            self.rotary_emb.cos_sin_cache.dtype != q.dtype+            or self.rotary_emb.cos_sin_cache.device != q.device+        ):+            self.rotary_emb.cos_sin_cache = self.rotary_emb.cos_sin_cache.to(+                device=q.device, dtype=q.dtype+            )+        pos = positions.long() if positions.dtype != torch.int64 else positions+        q_rope, k_rope = torch_npu.npu_mrope(+            pos,+            q_norm.reshape(num_tokens, -1),+            k_norm.reshape(num_tokens, -1),+            self.rotary_emb.cos_sin_cache,             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),+            mrope_section=[0, 0, 0],+            rotary_mode="half" if self.rotary_emb.is_neox_style else "interleave",         )-        return q, k, v+        return q_rope.reshape(num_tokens, -1), k_rope.reshape(num_tokens, -1), v      def forward_prepare_aiter_fused_mrope(         self, positions, hidden_states, forward_batch