Gemini 3.7 Flash · Serving

S10 · SGLang 14B

Measurement failed

SGLang Qwen3-14B system serving 2dev · Joint Optimization

—PERFORMANCE RATIO
385TOOL 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 · 385 visible calls

InspectEditValidateExecuteBuildProfileRollbackOther
198Inspect
5Edit
34Validate
36Execute
3Profile
109Other

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 timeline276 groups · 385 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 and workspace inspection related to task requirements.

    3 calls · #0002–#0004

    Read <path>ls -l -a <path> <path> <path> <path>
  3. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    4 calls · #0005–#0008

    Read <path>
  4. Inspect · Runtime processes

    Requested file and log inspection related to runtime processes.

    1 call · #0009–#0009

    Read <path>
  5. Inspect · Task requirements

    Requested file and log inspection related to task requirements.

    1 call · #0010–#0010

    Read <path>
  6. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0011–#0011

    Read <path>
  7. Other · Source & workspace

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

    1 call · #0012–#0012

    envgrep <val>true
  8. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0013–#0013

    Read <path>
  9. Other · Source & workspace

    Requested script or workload execution related to source & workspace.

    1 call · #0014–#0014

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

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

    1 call · #0015–#0015

    bash <script>
  11. Other · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0016–#0016

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

    Requested task coordination related to source & workspace.

    1 call · #0017–#0017

    Schedule <task>
  13. Other · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0018–#0018

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

    Requested file and log inspection related to source & workspace.

    1 call · #0019–#0019

    Read <path>
  15. Validate · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0020–#0020

    Schedule <task>
  16. Other · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0021–#0021

    Manage task <task>
  17. Inspect · Task requirements

    Requested workspace inspection related to task requirements.

    1 call · #0022–#0022

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

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

    2 calls · #0023–#0024

    Read <path>
  19. Inspect · Task requirements

    Requested file and log inspection related to task requirements.

    1 call · #0025–#0025

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

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

    1 call · #0026–#0026

    bash <script>
  21. Validate · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0027–#0027

    Schedule <task>
  22. Inspect · Source & workspace

    Requested workspace inspection related to source & workspace.

    2 calls · #0028–#0029

    Find <pattern>
  23. Other · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0030–#0030

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

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

    1 call · #0031–#0031

    Read <path>
  25. Other · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0032–#0032

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

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

    1 call · #0033–#0033

    Read <path>
  27. Validate · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0034–#0034

    Schedule <task>
  28. Other · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0035–#0035

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

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

    2 calls · #0036–#0037

    Read <path>
  30. Validate · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0038–#0038

    Schedule <task>
  31. Other · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0039–#0039

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

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

    1 call · #0040–#0040

    Read <path>
  33. Validate · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0041–#0041

    Schedule <task>
  34. Other · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0042–#0042

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

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

    1 call · #0043–#0043

    Read <path>
  36. Validate · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0044–#0044

    Schedule <task>
  37. Inspect · Source & workspace

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

    3 calls · #0045–#0047

    Find <pattern>Read <path>
  38. Other · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0048–#0048

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

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

    1 call · #0049–#0049

    Read <path>
  40. Validate · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0050–#0050

    Schedule <task>
  41. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0051–#0051

    Read <path>
  42. Other · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0052–#0052

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

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

    1 call · #0053–#0053

    Read <path>
  44. Validate · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0054–#0054

    Schedule <task>
  45. Inspect · Attention kernels

    Requested source searches related to attention kernels.

    1 call · #0055–#0055

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

    Requested workspace inspection related to source & workspace.

    2 calls · #0056–#0057

    Find <pattern>
  47. Inspect · Attention kernels

    Requested source searches related to attention kernels.

    1 call · #0058–#0058

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

    Requested workspace inspection related to source & workspace.

    1 call · #0059–#0059

    Find <pattern>
  49. Other · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0060–#0060

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

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

    1 call · #0061–#0061

    Read <path>
  51. Other · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0062–#0062

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

    Requested task coordination related to source & workspace.

    1 call · #0063–#0063

    Schedule <task>
  53. Other · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0064–#0064

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

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

    1 call · #0065–#0065

    Read <path>
  55. Validate · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0066–#0066

    Schedule <task>
  56. Other · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0067–#0067

    Manage task <task>
  57. Inspect · Task requirements

    Requested file and log inspection related to task requirements.

    1 call · #0068–#0068

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

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

    1 call · #0069–#0069

    bash <script>
  59. Execute · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0070–#0070

    Schedule <task>
  60. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    3 calls · #0071–#0073

    Read <path>
  61. Other · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0074–#0074

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

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

    1 call · #0075–#0075

    Read <path>
  63. Other · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0076–#0076

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

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

    1 call · #0077–#0077

    Read <path>
  65. Execute · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0078–#0078

    Schedule <task>
  66. Other · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0079–#0079

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

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

    1 call · #0080–#0080

    Read <path>
  68. Execute · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0081–#0081

    Schedule <task>
  69. Other · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0082–#0082

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

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

    1 call · #0083–#0083

    Read <path>
  71. Execute · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0084–#0084

    Schedule <task>
  72. Other · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0085–#0085

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

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

    1 call · #0086–#0086

    Read <path>
  74. Execute · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0087–#0087

    Schedule <task>
  75. Other · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0088–#0088

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

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

    1 call · #0089–#0089

    Read <path>
  77. Execute · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0090–#0090

    Schedule <task>
  78. Other · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0091–#0091

    Manage task <task>
  79. Other · Rollout generation

    Requested script or workload execution related to rollout generation.

    1 call · #0092–#0092

    python3 -c <script>
  80. Edit · Source & workspace

    1 tool error

    Requested code edits related to source & workspace.

    2 calls · #0093–#0094

    Write <path>
  81. Other · Source & workspace

    Requested script or workload execution related to source & workspace.

    1 call · #0095–#0095

    bash <script>
  82. Execute · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0096–#0096

    Schedule <task>
  83. Other · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0097–#0097

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

    Requested file and log inspection related to source & workspace.

    3 calls · #0098–#0100

    Read <path>
  85. Execute · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0101–#0101

    Schedule <task>
  86. Other · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0102–#0102

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

    Requested file and log inspection related to source & workspace.

    1 call · #0103–#0103

    Read <path>
  88. Other · Source & workspace

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

    10 calls · #0104–#0113

    python3 <script> <val>Schedule <task>Manage task <task>bash <script>cp <path> <path>
  89. Inspect · Source & workspace

    1 tool error

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

    2 calls · #0114–#0115

    Find <pattern>Search <pattern> <path>
  90. Inspect · Runtime processes

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

    3 calls · #0116–#0118

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

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

    4 calls · #0119–#0122

    Search <pattern> <path>Read <path>Find <pattern>
  92. Inspect · Parallelism & communication

    Requested file and log inspection related to parallelism & communication.

    4 calls · #0123–#0126

    Read <path>
  93. Inspect · Attention kernels

    Requested source searches related to attention kernels.

    1 call · #0127–#0127

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

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

    2 calls · #0128–#0129

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

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

    13 calls · #0130–#0142

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

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

    2 calls · #0143–#0144

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

    Requested script or workload execution related to source & workspace.

    1 call · #0145–#0145

    python3 -c <script>
  98. Edit · Source & workspace

    1 tool error

    Requested code edits related to source & workspace.

    1 call · #0146–#0146

    Write <path>
  99. Other · Source & workspace

    Requested workspace file updates related to source & workspace.

    1 call · #0147–#0147

    mkdir -p <path>
  100. Inspect · Runtime processes

    Requested file and log inspection related to runtime processes.

    1 call · #0148–#0148

    cat <script>
  101. Other · Source & workspace

    Requested script or workload execution related to source & workspace.

    1 call · #0149–#0149

    bash <script>
  102. Validate · Benchmark & validation setup

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

    2 calls · #0150–#0151

    bash <script>
  103. Inspect · Source & workspace

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

    2 calls · #0152–#0153

    ls -l -a <path>Read <path>
  104. Other · Source & workspace

    Requested workspace file updates related to source & workspace.

    1 call · #0154–#0154

    rm -rf <path>
  105. Validate · Benchmark & validation setup

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

    1 call · #0155–#0155

    bash <script>
  106. Inspect · Source & workspace

    Requested workspace inspection related to source & workspace.

    1 call · #0156–#0156

    ls -l -a <path>
  107. Other · Source & workspace

    Requested workspace file updates related to source & workspace.

    1 call · #0157–#0157

    rm -f <path>
  108. Validate · Benchmark & validation setup

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

    1 call · #0158–#0158

    bash <script>
  109. Other · Source & workspace

    Requested workspace file updates related to source & workspace.

    1 call · #0159–#0159

    rm -rf <path> <path>
  110. Validate · Benchmark & validation setup

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

    1 call · #0160–#0160

    bash <script>
  111. Validate · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0161–#0161

    Schedule <task>
  112. Other · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0162–#0162

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

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

    1 call · #0163–#0163

    Read <path>
  114. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0164–#0164

    Read <path>
  115. Validate · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0165–#0165

    Schedule <task>
  116. Other · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0166–#0166

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

    Requested file and log inspection related to source & workspace.

    4 calls · #0167–#0170

    Read <path>
  118. Validate · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0171–#0171

    Schedule <task>
  119. Other · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0172–#0172

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

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

    1 call · #0173–#0173

    Read <path>
  121. Validate · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0174–#0174

    Schedule <task>
  122. Other · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0175–#0175

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

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

    1 call · #0176–#0176

    Read <path>
  124. Other · Source & workspace

    Requested workspace file updates and script or workload execution related to source & workspace.

    1 call · #0177–#0177

    rm -rf <path> <path>bash <script>
  125. Execute · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0178–#0178

    Schedule <task>
  126. Other · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0179–#0179

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

    Requested file and log inspection related to source & workspace.

    1 call · #0180–#0180

    Read <path>
  128. Execute · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0181–#0181

    Schedule <task>
  129. Other · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0182–#0182

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

    Requested file and log inspection related to source & workspace.

    3 calls · #0183–#0185

    Read <path>
  131. Execute · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0186–#0186

    Schedule <task>
  132. Other · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0187–#0187

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

    Requested file and log inspection related to source & workspace.

    1 call · #0188–#0188

    Read <path>
  134. Other · Source & workspace

    Requested task coordination related to source & workspace.

    2 calls · #0189–#0190

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

    Requested file and log inspection related to source & workspace.

    1 call · #0191–#0191

    Read <path>
  136. Other · Source & workspace

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

    7 calls · #0192–#0198

    Schedule <task>python3 <script> <val>Manage task <task>shell <script>
  137. Inspect · Task requirements

    Requested file and log inspection related to task requirements.

    2 calls · #0199–#0200

    Read <path>
  138. Other · Source & workspace

    Requested script or workload execution related to source & workspace.

    1 call · #0201–#0201

    bash <script>
  139. Inspect · Task requirements

    Requested file and log inspection related to task requirements.

    2 calls · #0202–#0203

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

    Requested workspace file updates and script or workload execution related to benchmark & validation setup.

    1 call · #0204–#0204

    rm -rf <path> <path>bash <script>
  141. Execute · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0205–#0205

    Schedule <task>
  142. Other · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0206–#0206

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

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

    1 call · #0207–#0207

    Read <path>
  144. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0208–#0208

    Read <path>
  145. Execute · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0209–#0209

    Schedule <task>
  146. Other · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0210–#0210

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

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

    1 call · #0211–#0211

    Read <path>
  148. Execute · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0212–#0212

    Schedule <task>
  149. Other · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0213–#0213

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

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

    1 call · #0214–#0214

    Read <path>
  151. Execute · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0215–#0215

    Schedule <task>
  152. Other · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0216–#0216

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

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

    1 call · #0217–#0217

    Read <path>
  154. Execute · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0218–#0218

    Schedule <task>
  155. Other · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0219–#0219

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

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

    1 call · #0220–#0220

    Read <path>
  157. Execute · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0221–#0221

    Schedule <task>
  158. Other · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0222–#0222

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

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

    2 calls · #0223–#0224

    Read <path>
  160. Profile · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0225–#0225

    Schedule <task>
  161. Other · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0226–#0226

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

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

    1 call · #0227–#0227

    Read <path>
  163. Execute · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0228–#0228

    Schedule <task>
  164. Inspect · Source & workspace

    1 tool error

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

    14 calls · #0229–#0242

    Read <path>Find <pattern>
  165. Inspect · Runtime processes

    Requested file and log inspection related to runtime processes.

    1 call · #0243–#0243

    cat <script>
  166. Validate · Benchmark & validation setup

    Requested workspace file updates and script or workload execution related to benchmark & validation setup.

    1 call · #0244–#0244

    rm -rf <path> <path>bash <script>
  167. Validate · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0245–#0245

    Schedule <task>
  168. Other · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0246–#0246

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

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

    1 call · #0247–#0247

    Read <path>
  170. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0248–#0248

    Read <path>
  171. Validate · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0249–#0249

    Schedule <task>
  172. Other · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0250–#0250

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

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

    1 call · #0251–#0251

    Read <path>
  174. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0252–#0252

    Read <path>
  175. Validate · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0253–#0253

    Schedule <task>
  176. Other · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0254–#0254

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

    Requested file and log inspection related to source & workspace.

    1 call · #0255–#0255

    Read <path>
  178. Validate · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0256–#0256

    Schedule <task>
  179. Other · Source & workspace

    Requested workspace file updates and script or workload execution related to source & workspace.

    1 call · #0257–#0257

    rm -rf <path> <path>bash <script>
  180. Execute · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0258–#0258

    Schedule <task>
  181. Other · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0259–#0259

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

    Requested file and log inspection related to source & workspace.

    3 calls · #0260–#0262

    Read <path>
  183. Execute · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0263–#0263

    Schedule <task>
  184. Other · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0264–#0264

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

    Requested file and log inspection related to source & workspace.

    2 calls · #0265–#0266

    Read <path>
  186. Execute · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0267–#0267

    Schedule <task>
  187. Other · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0268–#0268

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

    Requested file and log inspection related to source & workspace.

    1 call · #0269–#0269

    Read <path>
  189. Execute · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0270–#0270

    Schedule <task>
  190. Other · Source & workspace

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

    3 calls · #0271–#0273

    python3 <script> <val>Schedule <task>bash <script>
  191. Other · Benchmark & validation setup

    Requested workspace file updates and script or workload execution related to benchmark & validation setup.

    1 call · #0274–#0274

    rm -rf <path> <path>bash <script>
  192. Execute · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0275–#0275

    Schedule <task>
  193. Other · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0276–#0276

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

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

    1 call · #0277–#0277

    Read <path>
  195. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0278–#0278

    Read <path>
  196. Execute · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0279–#0279

    Schedule <task>
  197. Other · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0280–#0280

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

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

    1 call · #0281–#0281

    Read <path>
  199. Execute · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0282–#0282

    Schedule <task>
  200. Other · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0283–#0283

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

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

    2 calls · #0284–#0285

    Read <path>
  202. Execute · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0286–#0286

    Schedule <task>
  203. Other · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0287–#0287

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

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

    1 call · #0288–#0288

    Read <path>
  205. Profile · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0289–#0289

    Schedule <task>
  206. Other · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0290–#0290

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

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

    1 call · #0291–#0291

    Read <path>
  208. Inspect · Source & workspace

    Requested source searches related to source & workspace.

    3 calls · #0292–#0294

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

    Requested source searches related to attention kernels.

    1 call · #0295–#0295

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

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

    11 calls · #0296–#0306

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

    Requested task coordination related to source & workspace.

    3 calls · #0307–#0309

    shell <script>Schedule <task>Manage task <task>
  212. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0310–#0310

    Read <path>
  213. Other · Source & workspace

    Requested task coordination related to source & workspace.

    2 calls · #0311–#0312

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

    Requested file and log inspection related to source & workspace.

    1 call · #0313–#0313

    Read <path>
  215. Inspect · Runtime processes

    Requested source searches related to runtime processes.

    1 call · #0314–#0314

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

    Requested file and log inspection related to source & workspace.

    1 call · #0315–#0315

    Read <path>
  217. Inspect · Runtime processes

    Requested source searches related to runtime processes.

    1 call · #0316–#0316

    Search <pattern> <path>
  218. Edit · Source & workspace

    Requested code edits related to source & workspace.

    1 call · #0317–#0317

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

    Requested workspace file updates and script or workload execution related to benchmark & validation setup.

    1 call · #0318–#0318

    rm -rf <path> <path>bash <script>
  220. Validate · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0319–#0319

    Schedule <task>
  221. Other · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0320–#0320

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

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

    1 call · #0321–#0321

    Read <path>
  223. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0322–#0322

    Read <path>
  224. Validate · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0323–#0323

    Schedule <task>
  225. Other · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0324–#0324

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

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

    1 call · #0325–#0325

    Read <path>
  227. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0326–#0326

    Read <path>
  228. Validate · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0327–#0327

    Schedule <task>
  229. Other · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0328–#0328

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

    Requested file and log inspection related to source & workspace.

    1 call · #0329–#0329

    Read <path>
  231. Validate · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0330–#0330

    Schedule <task>
  232. Other · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0331–#0331

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

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

    1 call · #0332–#0332

    Read <path>
  234. Validate · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0333–#0333

    Schedule <task>
  235. Other · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0334–#0334

    Manage task <task>
  236. Other · Benchmark & validation setup

    Requested workspace file updates and script or workload execution related to benchmark & validation setup.

    1 call · #0335–#0335

    rm -rf <path> <path>bash <script>
  237. Execute · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0336–#0336

    Schedule <task>
  238. Other · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0337–#0337

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

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

    1 call · #0338–#0338

    Read <path>
  240. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    2 calls · #0339–#0340

    Read <path>
  241. Execute · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0341–#0341

    Schedule <task>
  242. Other · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0342–#0342

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

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

    1 call · #0343–#0343

    Read <path>
  244. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0344–#0344

    Read <path>
  245. Execute · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0345–#0345

    Schedule <task>
  246. Other · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0346–#0346

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

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

    2 calls · #0347–#0348

    Read <path>
  248. Execute · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0349–#0349

    Schedule <task>
  249. Other · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0350–#0350

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

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

    2 calls · #0351–#0352

    Read <path>
  251. Execute · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0353–#0353

    Schedule <task>
  252. Other · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0354–#0354

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

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

    1 call · #0355–#0355

    Read <path>
  254. Execute · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0356–#0356

    Schedule <task>
  255. Edit · Source & workspace

    Requested code edits related to source & workspace.

    1 call · #0357–#0357

    Edit <path>
  256. Other · Benchmark & validation setup

    Requested workspace file updates and script or workload execution related to benchmark & validation setup.

    1 call · #0358–#0358

    rm -rf <path> <path>bash <script>
  257. Execute · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0359–#0359

    Schedule <task>
  258. Other · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0360–#0360

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

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

    1 call · #0361–#0361

    Read <path>
  260. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    3 calls · #0362–#0364

    Read <path>
  261. Execute · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0365–#0365

    Schedule <task>
  262. Other · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0366–#0366

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

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

    2 calls · #0367–#0368

    Read <path>
  264. Execute · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0369–#0369

    Schedule <task>
  265. Other · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0370–#0370

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

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

    2 calls · #0371–#0372

    Read <path>
  267. Execute · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0373–#0373

    Schedule <task>
  268. Other · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0374–#0374

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

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

    1 call · #0375–#0375

    Read <path>
  270. Profile · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0376–#0376

    Schedule <task>
  271. Inspect · Source & workspace

    Requested repository inspection related to source & workspace.

    1 call · #0377–#0377

    git status
  272. Other · Source & workspace

    Requested workspace file updates related to source & workspace.

    1 call · #0378–#0378

    rm -rf <path>
  273. Inspect · Source & workspace

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

    4 calls · #0379–#0382

    git statusgit status <flag>Read <path>
  274. Other · Source & workspace

    Requested script or workload execution related to source & workspace.

    1 call · #0383–#0383

    bash <script>
  275. Validate · Benchmark & validation setup

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

    1 call · #0384–#0384

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

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

    1 call · #0385–#0385

    Read <path>

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/deployment/qwen3_14b.py b/python/sglang/srt/deployment/qwen3_14b.pynew file mode 100644index 0000000000000000000000000000000000000000..97dc41388e4717d704c262e62204e547b67544a8--- /dev/null+++ b/python/sglang/srt/deployment/qwen3_14b.py@@ -0,0 +1,313 @@+import argparse+import asyncio+import itertools+import json+import logging+import os+import signal+import subprocess+import sys+import time+from pathlib import Path+from typing import List++import httpx+import uvicorn+from fastapi import FastAPI, Request, Response++logging.basicConfig(+    level=logging.INFO,+    format="%(asctime)s [%(levelname)s] %(name)s: %(message)s",+)+logger = logging.getLogger("qwen3_14b_deployment")++app = FastAPI(title="Qwen3-14B Multi-Worker Router")++class WorkerPool:+    def __init__(self, worker_urls: List[str]):+        self.worker_urls = worker_urls+        self.active_requests = {url: 0 for url in worker_urls}+        self.lock = asyncio.Lock()+        self.rr_cycle = itertools.cycle(worker_urls)+        self.client = httpx.AsyncClient(+            timeout=httpx.Timeout(connect=30.0, read=900.0, write=60.0, pool=900.0),+            limits=httpx.Limits(max_connections=256, max_keepalive_connections=128),+        )++    async def get_best_worker(self) -> str:+        async with self.lock:+            min_count = min(self.active_requests.values())+            candidates = [url for url in self.worker_urls if self.active_requests[url] == min_count]+            if len(candidates) == 1:+                url = candidates[0]+            else:+                while True:+                    url = next(self.rr_cycle)+                    if url in candidates:+                        break+            self.active_requests[url] += 1+            return url++    async def release_worker(self, url: str):+        async with self.lock:+            if url in self.active_requests and self.active_requests[url] > 0:+                self.active_requests[url] -= 1++    async def forward_request(self, target_url: str, request: Request) -> Response:+        body = await request.body()+        headers = dict(request.headers)+        headers.pop("host", None)+        headers.pop("content-length", None)+        +        resp = await self.client.request(+            method=request.method,+            url=target_url,+            content=body,+            headers=headers,+            params=request.query_params,+        )+        return Response(+            content=resp.content,+            status_code=resp.status_code,+            headers={k: v for k, v in resp.headers.items() if k.lower() not in ("content-length", "content-encoding")},+            media_type=resp.headers.get("content-type"),+        )++    async def broadcast_flush(self, path: str, request: Request) -> Response:+        body = await request.body()+        headers = dict(request.headers)+        headers.pop("host", None)+        headers.pop("content-length", None)+        +        async def flush_one(url: str):+            return await self.client.request(+                method="POST",+                url=f"{url}{path}",+                content=body,+                headers=headers,+            )+            +        responses = await asyncio.gather(*(flush_one(url) for url in self.worker_urls))+        first = responses[0]+        return Response(+            content=first.content,+            status_code=first.status_code,+            headers={k: v for k, v in first.headers.items() if k.lower() not in ("content-length", "content-encoding")},+            media_type=first.headers.get("content-type"),+        )++    async def close(self):+        await self.client.aclose()+++pool: WorkerPool = None+worker_subprocesses: List[subprocess.Popen] = []++@app.on_event("shutdown")+async def on_shutdown():+    global pool+    if pool is not None:+        await pool.close()++@app.get("/v1/models")+@app.get("/model_info")+@app.get("/get_model_info")+@app.get("/health")+async def get_metadata(request: Request):+    url = f"{pool.worker_urls[0]}{request.url.path}"+    return await pool.forward_request(url, request)++@app.post("/flush_cache")+async def flush_cache_endpoint(request: Request):+    return await pool.broadcast_flush("/flush_cache", request)++@app.api_route("/{path:path}", methods=["GET", "POST", "PUT", "DELETE", "OPTIONS", "HEAD"])+async def route_all(path: str, request: Request):+    if path == "flush_cache":+        return await pool.broadcast_flush(f"/{path}", request)+        +    worker_url = await pool.get_best_worker()+    try:+        url = f"{worker_url}/{path}"+        return await pool.forward_request(url, request)+    finally:+        await pool.release_worker(worker_url)+++def check_url_ready(url: str, timeout_s: float = 300) -> bool:+    deadline = time.monotonic() + timeout_s+    while time.monotonic() < deadline:+        try:+            req = httpx.get(f"{url}/v1/models", timeout=2.0)+            if req.status_code == 200:+                data = req.json().get("data", [])+                if data and isinstance(data, list):+                    return True+        except Exception:+            pass+        time.sleep(1.0)+    return False+++def main():+    parser = argparse.ArgumentParser(description="Qwen3-14B Two-Device Serving Deployment")+    parser.add_argument("--model-path", type=str, required=True)+    parser.add_argument("--tokenizer-path", type=str, required=True)+    parser.add_argument("--served-model-name", type=str, required=True)+    parser.add_argument("--host", type=str, default="127.0.0.1")+    parser.add_argument("--port", type=int, required=True)+    parser.add_argument("--device-ids", type=str, default="0,1")+    parser.add_argument("--runtime-dir", type=str, required=True)+    args = parser.parse_args()++    device_list = [int(x.strip()) for x in args.device_ids.split(",") if x.strip()]+    if not device_list:+        device_list = [0]++    logger.info(f"Starting Qwen3-14B deployment on devices {device_list} with public port {args.port}")++    runtime_dir = Path(args.runtime_dir)+    runtime_dir.mkdir(parents=True, exist_ok=True)++    worker_ports = []+    worker_urls = []+    +    def cleanup_handler(signum, frame):+        logger.info(f"Received signal {signum}, terminating worker processes...")+        for p in worker_subprocesses:+            try:+                p.terminate()+            except Exception:+                pass+        time.sleep(1.0)+        for p in worker_subprocesses:+            try:+                p.kill()+            except Exception:+                pass+        sys.exit(0)++    signal.signal(signal.SIGTERM, cleanup_handler)+    signal.signal(signal.SIGINT, cleanup_handler)++    base_worker_port = args.port + 10+    for idx, dev_id in enumerate(device_list):+        w_port = base_worker_port + idx+        worker_ports.append(w_port)+        w_url = f"http://127.0.0.1:{w_port}"+        worker_urls.append(w_url)++        worker_log = runtime_dir / f"worker_{idx}_dev_{dev_id}.log"+        w_env = dict(os.environ)+        w_env["ASCEND_RT_VISIBLE_DEVICES"] = str(dev_id)+        w_env["HCCL_OP_EXPANSION_MODE"] = "AIV"+        w_env["HCCL_BUFFSIZE"] = "200"+        w_env["SGLANG_ENABLE_OVERLAP_PLAN_STREAM"] = "1"+        w_env["PYTORCH_NPU_ALLOC_CONF"] = "expandable_segments:True"+        w_env["PYTHONDONTWRITEBYTECODE"] = "1"+        w_env["PYTHONUNBUFFERED"] = "1"++        worker_cmd = [+            sys.executable,+            "-B",+            "-m",+            "sglang.launch_server",+            "--model-path",+            args.model_path,+            "--tokenizer-path",+            args.tokenizer_path,+            "--served-model-name",+            args.served_model_name,+            "--host",+            "127.0.0.1",+            "--port",+            str(w_port),+            "--dtype",+            "bfloat16",+            "--context-length",+            "4096",+            "--random-seed",+            "20260819",+            "--tp-size",+            "1",+            "--dp-size",+            "1",+            "--pp-size",+            "1",+            "--schedule-policy",+            "fcfs",+            "--chunked-prefill-size",+            "8192",+            "--max-running-requests",+            "32",+            "--max-total-tokens",+            "32768",+            "--mem-fraction-static",+            "0.8",+            "--disable-radix-cache",+            "--cuda-graph-backend-decode",+            "full",+            "--cuda-graph-max-bs-decode",+            "32",+            "--cuda-graph-backend-prefill",+            "disabled",+            "--cuda-graph-max-bs-prefill",+            "32",+            "--attention-backend",+            "ascend",+            "--device",+            "npu",+        ]++        logger.info(f"Spawning worker {idx} on NPU {dev_id} at port {w_port}")+        log_file = open(worker_log, "wb")+        proc = subprocess.Popen(+            worker_cmd,+            env=w_env,+            stdin=subprocess.DEVNULL,+            stdout=log_file,+            stderr=subprocess.STDOUT,+        )+        worker_subprocesses.append(proc)++    logger.info("Waiting for all workers to become ready...")+    for idx, (w_url, proc) in enumerate(zip(worker_urls, worker_subprocesses)):+        while proc.poll() is None:+            if check_url_ready(w_url, timeout_s=5):+                logger.info(f"Worker {idx} at {w_url} is ready!")+                break+        if proc.poll() is not None:+            raise RuntimeError(f"Worker {idx} exited prematurely with return code {proc.returncode}")++    global pool+    pool = WorkerPool(worker_urls)++    logger.info("Verifying readiness of each worker...")+    for idx, w_url in enumerate(worker_urls):+        resp = httpx.post(+            f"{w_url}/generate",+            json={+                "text": "Return one token to confirm request readiness.",+                "sampling_params": {+                    "temperature": 0.0,+                    "max_new_tokens": 1,+                    "ignore_eos": True,+                },+            },+            timeout=120.0,+        )+        if resp.status_code != 200:+            raise RuntimeError(f"Worker {idx} failed readiness generate: {resp.text}")++    logger.info(f"All {len(worker_urls)} workers verified ready! Starting public proxy on {args.host}:{args.port}")+    +    uvicorn.run(+        app,+        host=args.host,+        port=args.port,+        log_level="warning",+        access_log=False,+    )++if __name__ == "__main__":+    main()