MiniMax M3 · Serving

S10 · SGLang 14B

Correctness rejected

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

—PERFORMANCE RATIO
312TOOL 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 agentMiniMax M3 · 312 visible calls

InspectEditValidateExecuteBuildProfileRollbackOther
184Inspect
27Edit
26Validate
34Execute
3Profile
38Other

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 timeline197 groups · 312 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 and file and log inspection related to source & workspace.

    1 call · #0001–#0001

    ls <path> <n> >& <path>head -n <n>
  2. Inspect · Task requirements

    Requested workspace inspection and file and log inspection related to task requirements.

    6 calls · #0002–#0007

    find <path> -maxdepth <n> -name <val> <n> > <path>head -n <n>find <path> -name <val> <n> > <path>Read <path>
  3. Inspect · Source & workspace

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

    2 calls · #0008–#0009

    echo <val>ls -l -a <path>envgrep -i <val>
  4. Inspect · Task requirements

    Requested workspace inspection related to task requirements.

    1 call · #0010–#0010

    ls <path> <path> <path> <path> <path>
  5. Execute · Task requirements

    Requested task coordination related to task requirements.

    1 call · #0011–#0011

    Create task <task>
  6. Validate · Benchmark & validation setup

    Requested task coordination related to benchmark & validation setup.

    3 calls · #0012–#0014

    Create task <task>
  7. Other · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0015–#0015

    Update task <task>
  8. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0016–#0016

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

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

    1 call · #0017–#0017

    Read <path>
  10. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0018–#0018

    Read <path>
  11. Inspect · Runtime processes

    Requested file and log inspection related to runtime processes.

    1 call · #0019–#0019

    Read <path>
  12. Inspect · Task requirements

    1 tool error

    Requested file and log inspection related to task requirements.

    4 calls · #0020–#0023

    Read <path>
  13. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0024–#0024

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

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

    3 calls · #0025–#0027

    Read <path>
  15. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0028–#0028

    Read <path>
  16. Inspect · Task requirements

    Requested file and log inspection related to task requirements.

    1 call · #0029–#0029

    Read <path>
  17. Inspect · Source & workspace

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

    5 calls · #0030–#0034

    ls <path> <n> >& <path>head -n <n>find <path> -maxdepth <n> -name <path> -type <val>
  18. Inspect · Runtime processes

    Requested file and log inspection related to runtime processes.

    2 calls · #0035–#0036

    cat <path>head -n <n>wc -l <path>
  19. Inspect · Source & workspace

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

    4 calls · #0037–#0040

    cat <path>head -n <n>ls <path> <path> <n> >& <path>Read <path>
  20. Inspect · Task requirements

    Requested file and log inspection related to task requirements.

    2 calls · #0041–#0042

    Read <path>
  21. Inspect · Batching & scheduling

    Requested file and log inspection related to batching & scheduling.

    1 call · #0043–#0043

    Read <path>
  22. Inspect · Task requirements

    Requested file and log inspection related to task requirements.

    1 call · #0044–#0044

    Read <path>
  23. Inspect · Prefix caching

    Requested source searches and file and log inspection related to prefix caching.

    1 call · #0045–#0045

    grep -n <val> <path>head -n <n>
  24. Inspect · Source & workspace

    Requested tool activity related to source & workspace.

    1 call · #0046–#0046

    echo <val>
  25. Other · Source & workspace

    Requested workspace file updates related to source & workspace.

    1 call · #0047–#0047

    mkdir -p <path>
  26. Inspect · Source & workspace

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

    2 calls · #0048–#0049

    bash <script> <n> >& <path>head -n <n>
  27. Inspect · Batching & scheduling

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

    1 call · #0050–#0050

    grep -n <val> <path>head -n <n>
  28. Inspect · Source & workspace

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

    1 call · #0051–#0051

    grep -n <val> <path> <n> >& <path>head -n <n>
  29. Inspect · Attention kernels

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

    2 calls · #0052–#0053

    grep -n <val> <path>head -n <n>
  30. Inspect · Runtime processes

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

    5 calls · #0054–#0058

    grep -n <val> <path>head -n <n>Read <path>
  31. Other · Source & workspace

    Requested task coordination related to source & workspace.

    2 calls · #0059–#0060

    Update task <task>
  32. Inspect · Source & workspace

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

    3 calls · #0061–#0063

    ls <path> <n> >& <path>head -n <n>find <path> -path <val> -o -path <val> <n> >& <path>
  33. Inspect · Attention kernels

    Requested workspace inspection related to attention kernels.

    1 call · #0064–#0064

    ls <path> <path> <path> <n> >& <path>
  34. Inspect · Device memory

    Requested runtime inspection and file and log inspection related to device memory.

    1 call · #0065–#0065

    npu-smi info <n> >& <path>head -n <n>
  35. Inspect · Source & workspace

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

    1 call · #0066–#0066

    ls <path> <n> >& <path>head -n <n>
  36. Inspect · Runtime processes

    Requested script or workload execution and file and log inspection related to runtime processes.

    1 call · #0067–#0067

    python3 -c <script> <n> >& <path>head -n <n>
  37. Inspect · Source & workspace

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

    2 calls · #0068–#0069

    python3 -c <script> <n> >& <path>head -n <n>
  38. Validate · Benchmark & validation setup

    Requested script or workload execution and file and log inspection related to benchmark & validation setup.

    2 calls · #0070–#0071

    bash <script> <n> >& <path>tail -n <n>
  39. Inspect · Source & workspace

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

    3 calls · #0072–#0074

    grep -n <val> <path> <n> >& <path>head -n <n>cat <path>
  40. Other · Source & workspace

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

    3 calls · #0075–#0077

    Read task output <task>Update task <task>
  41. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0078–#0078

    Read <path>
  42. Inspect · Device memory

    Requested source searches and file and log inspection related to device memory.

    2 calls · #0079–#0080

    grep -n <val> <path>head -n <n>
  43. Inspect · Source & workspace

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

    5 calls · #0081–#0085

    grep -n <val> <path> <n> >& <path>head -n <n>grep -r -n <val> <path>ls <path> <n> >& <path>find <path> -name <val> -o -name <val> <n> >& <path>
  44. Inspect · Batching & scheduling

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

    1 call · #0086–#0086

    grep -n <val> <path>head -n <n>
  45. Inspect · Source & workspace

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

    1 call · #0087–#0087

    grep -r -n <val> <path>head -n <n>
  46. Inspect · Dependencies & build setup

    Requested file and log inspection related to dependencies & build setup.

    1 call · #0088–#0088

    Read <path>
  47. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0089–#0089

    cat <path>head -n <n>
  48. Inspect · Runtime processes

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

    2 calls · #0090–#0091

    grep -n <val> <path>head -n <n>
  49. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0092–#0092

    Read <path>
  50. Inspect · Runtime processes

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

    12 calls · #0093–#0104

    grep -n <val> <path>head -n <n>Read <path>
  51. Inspect · Source & workspace

    Requested workspace inspection related to source & workspace.

    1 call · #0105–#0105

    ls <path> <n> >& <path>find <path> -name <val> <n> >& <path>
  52. Inspect · Runtime processes

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

    1 call · #0106–#0106

    grep -n <val> <path>head -n <n>
  53. Inspect · Attention kernels

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

    1 call · #0107–#0107

    grep -n <val> <path>head -n <n>
  54. Other · Source & workspace

    Requested task coordination and workspace file updates related to source & workspace.

    3 calls · #0108–#0110

    Update task <task>mkdir -p <path>
  55. Inspect · Runtime processes

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

    5 calls · #0111–#0115

    Read <path>grep -n <val> <path>head -n <n>
  56. Edit · Source & workspace

    Requested code edits related to source & workspace.

    2 calls · #0116–#0117

    Write <path>
  57. Inspect · Source & workspace

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

    1 call · #0118–#0118

    bash <script> <n> >& <path>head -n <n>
  58. Validate · Benchmark & validation setup

    Requested script or workload execution and file and log inspection related to benchmark & validation setup.

    2 calls · #0119–#0120

    bash <script> <n> >& <path>tail -n <n>
  59. Other · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0121–#0121

    Read task output <task>
  60. Inspect · Source & workspace

    Requested workspace inspection, script or workload execution and file and log inspection related to source & workspace.

    4 calls · #0122–#0125

    ls <path> <n> >& <path>bash <script> <n> >& <path>tail -n <n>ls <path> <path> <n> >& <path>head -n <n>
  61. Other · Source & workspace

    Requested workspace file updates related to source & workspace.

    1 call · #0126–#0126

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

    Requested script or workload execution and file and log inspection related to benchmark & validation setup.

    1 call · #0127–#0127

    bash <script> <n> >& <path>tail -n <n>
  63. Other · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0128–#0128

    Read task output <task>
  64. Inspect · Source & workspace

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

    1 call · #0129–#0129

    ls <path> <n> >& <path>head -n <n>
  65. Validate · Benchmark & validation setup

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

    2 calls · #0130–#0131

    rm -f <path> <path> <path>cat <path> <n> >& <path>tail -n <n>
  66. Inspect · Runtime processes

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

    1 call · #0132–#0132

    ps <val>grep -E <val>grep -v <val>head -n <n>
  67. Validate · Benchmark & validation setup

    Requested file and log inspection and script or workload execution related to benchmark & validation setup.

    2 calls · #0133–#0134

    cat <path> <n> >& <path>tail -n <n>bash <script> <n> >& <path>
  68. Inspect · Runtime processes

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

    2 calls · #0135–#0136

    grep -n <val> <path>head -n <n>
  69. Other · Source & workspace

    1 tool error

    Requested file and log inspection related to source & workspace.

    1 call · #0137–#0137

    Read task output <task>
  70. Validate · Benchmark & validation setup

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

    1 call · #0138–#0138

    cat <path> <n> >& <path>
  71. Inspect · Source & workspace

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

    2 calls · #0139–#0140

    rm -rf <path> <val> <path> <n> >& <path>tail -n <n>ls <path> <n> >& <path>
  72. Validate · Benchmark & validation setup

    Requested script or workload execution and file and log inspection related to benchmark & validation setup.

    1 call · #0141–#0141

    bash <script> <n> >& <path>tail -n <n>
  73. Other · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0142–#0142

    Read task output <task>
  74. Validate · Attention kernels

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

    1 call · #0143–#0143

    grep -E <val> <path> <n> >& <path>head -n <n>
  75. Validate · Batching & scheduling

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

    1 call · #0144–#0144

    grep -E <val> <path> <n> >& <path>head -n <n>
  76. Other · Source & workspace

    Requested workspace file updates related to source & workspace.

    1 call · #0145–#0145

    rm -rf <path> <path>
  77. Execute · Benchmark & validation setup

    Requested script or workload execution and file and log inspection related to benchmark & validation setup.

    1 call · #0146–#0146

    bash <script> <n> >& <path>tail -n <n>
  78. Other · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0147–#0147

    Read task output <task>
  79. Execute · Benchmark & validation setup

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

    1 call · #0148–#0148

    cp <path> <path>cat <path>python3 -c <script>
  80. Inspect · Source & workspace

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

    1 call · #0149–#0149

    mv <path> <path>ls <path> <n> >& <path>
  81. Execute · Benchmark & validation setup

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

    1 call · #0150–#0150

    rm -rf <path> <path>bash <script> <n> >& <path>tail -n <n>
  82. Other · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0151–#0151

    Read task output <task>
  83. Inspect · Source & workspace

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

    1 call · #0152–#0152

    rm -rf <path> <path> <path>bash <script> <n> >& <path>tail -n <n>
  84. Execute · Benchmark & validation setup

    Requested script or workload execution and file and log inspection related to benchmark & validation setup.

    1 call · #0153–#0153

    bash <script> <n> >& <path>tail -n <n>
  85. Other · Source & workspace

    Requested file and log inspection related to source & workspace.

    2 calls · #0154–#0155

    Read task output <task>
  86. Execute · Benchmark & validation setup

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

    1 call · #0156–#0156

    cp <path> <path>cat <path>python3 -c <script>
  87. Inspect · Source & workspace

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

    1 call · #0157–#0157

    mv <path> <path>ls <path>
  88. Inspect · Runtime processes

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

    1 call · #0158–#0158

    grep -n <val> <path>head -n <n>
  89. Inspect · Source & workspace

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

    1 call · #0159–#0159

    grep -n <val> <path>head -n <n>
  90. Inspect · Runtime processes

    Requested file and log inspection related to runtime processes.

    3 calls · #0160–#0162

    Read <path>
  91. Inspect · Source & workspace

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

    2 calls · #0163–#0164

    grep -r -n <val> <path>head -n <n>grep -r -n <val> <path> <path>
  92. Inspect · Batching & scheduling

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

    1 call · #0165–#0165

    grep -n <val> <path>head -n <n>
  93. Inspect · Runtime processes

    Requested file and log inspection related to runtime processes.

    1 call · #0166–#0166

    Read <path>
  94. Inspect · Source & workspace

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

    1 call · #0167–#0167

    grep -r -n <val> <path>head -n <n>
  95. Edit · Source & workspace

    Requested code edits related to source & workspace.

    4 calls · #0168–#0171

    Edit <path>
  96. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0172–#0172

    Read <path>
  97. Edit · Source & workspace

    Requested code edits related to source & workspace.

    1 call · #0173–#0173

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

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

    2 calls · #0174–#0175

    rm -rf <path> <path>bash <script> <n> >& <path>tail -n <n>
  99. Other · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0176–#0176

    Read task output <task>
  100. Execute · Benchmark & validation setup

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

    1 call · #0177–#0177

    rm -rf <path> <path>bash <script> <n> >& <path>tail -n <n>
  101. Other · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0178–#0178

    Read task output <task>
  102. Execute · Benchmark & validation setup

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

    1 call · #0179–#0179

    rm -rf <path> <path>bash <script> <n> >& <path>tail -n <n>
  103. Other · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0180–#0180

    Read task output <task>
  104. Execute · Benchmark & validation setup

    Requested file and log inspection and script or workload execution related to benchmark & validation setup.

    1 call · #0181–#0181

    cat <path>python3 -c <script>
  105. Inspect · Batching & scheduling

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

    1 call · #0182–#0182

    grep -n <val> <path>head -n <n>
  106. Inspect · Runtime processes

    Requested file and log inspection related to runtime processes.

    1 call · #0183–#0183

    Read <path>
  107. Inspect · Batching & scheduling

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

    1 call · #0184–#0184

    grep -n <val> <path>head -n <n>
  108. Inspect · Runtime processes

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

    2 calls · #0185–#0186

    grep -n <val> <path>head -n <n>Read <path>
  109. Inspect · Batching & scheduling

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

    1 call · #0187–#0187

    grep -r -n <val> <path>head -n <n>
  110. Inspect · Source & workspace

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

    1 call · #0188–#0188

    grep -r -n <val> <path>head -n <n>
  111. Inspect · Runtime processes

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

    2 calls · #0189–#0190

    grep -n <val> <path>head -n <n>Read <path>
  112. Inspect · Attention kernels

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

    2 calls · #0191–#0192

    ls <path> <n> >& <path>grep -n <val> <path> <n> >& <path>head -n <n>grep -n <val> <path>
  113. Execute · Batching & scheduling

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

    1 call · #0193–#0193

    grep -E <val> <path> <n> >& <path>head -n <n>
  114. Execute · Benchmark & validation setup

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

    1 call · #0194–#0194

    grep -E <val> <path> <n> >& <path>head -n <n>
  115. Profile · Batching & scheduling

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

    2 calls · #0195–#0196

    grep -E <val> <path> <n> >& <path>head -n <n>
  116. Inspect · Source & workspace

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

    3 calls · #0197–#0199

    grep -n <val> <path> <n> >& <path>head -n <n>Read <path>
  117. Inspect · Runtime processes

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

    1 call · #0200–#0200

    grep -n <val> <path>head -n <n>
  118. Inspect · Source & workspace

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

    1 call · #0201–#0201

    grep -r -n <val> <path>head -n <n>
  119. Inspect · Runtime processes

    Requested file and log inspection related to runtime processes.

    1 call · #0202–#0202

    Read <path>
  120. Inspect · Source & workspace

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

    1 call · #0203–#0203

    python3 -c <script> <n> >& <path>head -n <n>
  121. Inspect · KV-cache management

    Requested source searches and file and log inspection related to kv-cache management.

    1 call · #0204–#0204

    grep -n <val> <path>head -n <n>
  122. Inspect · Runtime processes

    Requested file and log inspection related to runtime processes.

    1 call · #0205–#0205

    Read <path>
  123. Inspect · Attention kernels

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

    1 call · #0206–#0206

    grep -n <val> <path>head -n <n>
  124. Inspect · Runtime processes

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

    2 calls · #0207–#0208

    Read <path>grep -n <val> <path>head -n <n>
  125. Edit · Source & workspace

    Requested code edits related to source & workspace.

    3 calls · #0209–#0211

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

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

    1 call · #0212–#0212

    rm -rf <path> <path> <path>bash <script> <n> >& <path>tail -n <n>
  127. Other · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0213–#0213

    Read task output <task>
  128. Execute · Benchmark & validation setup

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

    1 call · #0214–#0214

    rm -rf <path> <path> <path>bash <script> <n> >& <path>tail -n <n>
  129. Other · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0215–#0215

    Read task output <task>
  130. Execute · Benchmark & validation setup

    Requested file and log inspection and script or workload execution related to benchmark & validation setup.

    1 call · #0216–#0216

    cat <path>python3 -c <script>
  131. Edit · Source & workspace

    Requested code edits related to source & workspace.

    1 call · #0217–#0217

    Edit <path>
  132. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0218–#0218

    Read <path>
  133. Edit · Source & workspace

    Requested code edits related to source & workspace.

    4 calls · #0219–#0222

    Edit <path>
  134. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0223–#0223

    Read <path>
  135. Edit · Source & workspace

    Requested code edits related to source & workspace.

    1 call · #0224–#0224

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

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

    1 call · #0225–#0225

    rm -rf <path> <path>bash <script> <n> >& <path>tail -n <n>
  137. Other · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0226–#0226

    Read task output <task>
  138. Execute · Benchmark & validation setup

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

    1 call · #0227–#0227

    rm -rf <path> <path> <path>bash <script> <n> >& <path>tail -n <n>
  139. Other · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0228–#0228

    Read task output <task>
  140. Execute · Benchmark & validation setup

    Requested file and log inspection and script or workload execution related to benchmark & validation setup.

    1 call · #0229–#0229

    cat <path>python3 -c <script>
  141. Edit · Source & workspace

    Requested code edits related to source & workspace.

    3 calls · #0230–#0232

    Edit <path>
  142. Inspect · Batching & scheduling

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

    2 calls · #0233–#0234

    grep -n <val> <path> <n> >& <path>head -n <n>Read <path>
  143. Edit · Source & workspace

    Requested code edits related to source & workspace.

    1 call · #0235–#0235

    Edit <path>
  144. Validate · Batching & scheduling

    Requested workspace file updates, script or workload execution and file and log inspection related to batching & scheduling.

    1 call · #0236–#0236

    rm -rf <path> <path> <path>bash <script> <n> >& <path>tail -n <n>
  145. Other · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0237–#0237

    Read task output <task>
  146. Execute · Batching & scheduling

    Requested workspace file updates, script or workload execution and file and log inspection related to batching & scheduling.

    1 call · #0238–#0238

    rm -rf <path> <path> <path>bash <script> <n> >& <path>tail -n <n>
  147. Other · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0239–#0239

    Read task output <task>
  148. Execute · Benchmark & validation setup

    Requested file and log inspection and script or workload execution related to benchmark & validation setup.

    1 call · #0240–#0240

    cat <path>python3 -c <script>
  149. Edit · Source & workspace

    Requested code edits related to source & workspace.

    1 call · #0241–#0241

    Edit <path>
  150. Execute · Batching & scheduling

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

    1 call · #0242–#0242

    grep -E <val> <path> <n> >& <path>tail -n <n>
  151. Profile · Benchmark & validation setup

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

    1 call · #0243–#0243

    grep -E <val> <path> <n> >& <path>grep -E <val>head -n <n>
  152. Execute · Benchmark & validation setup

    Requested source searches, file and log inspection and workspace file updates related to benchmark & validation setup.

    6 calls · #0244–#0249

    grep -E <val> <path> <n> >& <path>awk <val>head -n <n>tail -n <n>cp <path> <path>grep <val> <path> <n> >& <path>
    2 more command sketches
    wc -ltail -n <n> <path> <n> >& <path>
  153. Inspect · Batching & scheduling

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

    3 calls · #0250–#0252

    grep -r -n <val> <path>head -n <n>grep -n <val> <path>
  154. Edit · Source & workspace

    Requested code edits related to source & workspace.

    1 call · #0253–#0253

    Edit <path>
  155. Validate · Batching & scheduling

    Requested workspace file updates, script or workload execution and file and log inspection related to batching & scheduling.

    1 call · #0254–#0254

    rm -rf <path> <path> <path>bash <script> <n> >& <path>tail -n <n>
  156. Other · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0255–#0255

    Read task output <task>
  157. Validate · Benchmark & validation setup

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

    1 call · #0256–#0256

    tail -n <n> <path> <n> >& <path>
  158. Edit · Source & workspace

    Requested code edits related to source & workspace.

    1 call · #0257–#0257

    Edit <path>
  159. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0258–#0258

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

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

    1 call · #0259–#0259

    rm -rf <path> <path> <path>bash <script> <n> >& <path>tail -n <n>
  161. Other · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0260–#0260

    Read task output <task>
  162. Inspect · Source & workspace

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

    2 calls · #0261–#0262

    grep -r -n <val> <path>head -n <n>grep -n <val> <path>wc -l
  163. Inspect · Parallelism & communication

    Requested source searches and file and log inspection related to parallelism & communication.

    1 call · #0263–#0263

    grep -n <val> <path>head -n <n>
  164. Inspect · Source & workspace

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

    1 call · #0264–#0264

    grep -n <val> <path>head -n <n>
  165. Inspect · Parallelism & communication

    Requested source searches and file and log inspection related to parallelism & communication.

    1 call · #0265–#0265

    grep -i -n <val> <path>head -n <n>
  166. Inspect · Source & workspace

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

    2 calls · #0266–#0267

    grep -n <val> <path> -r <n> >& <path>head -n <n>grep -r -n <val> <path>
  167. Execute · Benchmark & validation setup

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

    1 call · #0268–#0268

    rm -rf <path> <path> <path>bash <script> <n> >& <path>tail -n <n>
  168. Other · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0269–#0269

    Read task output <task>
  169. Execute · Benchmark & validation setup

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

    3 calls · #0270–#0272

    cat <path>python3 -c <script>cp <path> <path>grep -E <val> <path> <n> >& <path>grep <val>tail -n <n>
  170. Inspect · Runtime processes

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

    1 call · #0273–#0273

    grep -n <val> <path>head -n <n>
  171. Inspect · Source & workspace

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

    1 call · #0274–#0274

    grep -r -n <val> <path> <n> >& <path>head -n <n>
  172. Execute · Benchmark & validation setup

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

    1 call · #0275–#0275

    cp <path> <path>cat <path>python3 -c <script>
  173. Inspect · Batching & scheduling

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

    1 call · #0276–#0276

    grep -r -n <val> <path>head -n <n>
  174. Inspect · Runtime processes

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

    1 call · #0277–#0277

    grep -n <val> <path>head -n <n>
  175. Other · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0278–#0278

    Update task <task>
  176. Execute · Benchmark & validation setup

    Requested task coordination related to benchmark & validation setup.

    1 call · #0279–#0279

    Create task <task>
  177. Inspect · Attention kernels

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

    1 call · #0280–#0280

    grep -n <val> <path>head -n <n>
  178. Inspect · Source & workspace

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

    3 calls · #0281–#0283

    grep -r -n <val> <path>head -n <n>
  179. Inspect · Attention kernels

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

    4 calls · #0284–#0287

    grep -A <n> <val> <path>head -n <n>Read <path>grep -n <val> <path>grep -B <n> -A <n> <val> <path>
  180. Edit · Source & workspace

    Requested code edits related to source & workspace.

    2 calls · #0288–#0289

    Edit <path>
  181. Inspect · Source & workspace

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

    1 call · #0290–#0290

    bash <script> <n> >& <path>tail -n <n>
  182. Other · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0291–#0291

    Read task output <task>
  183. Inspect · Source & workspace

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

    2 calls · #0292–#0293

    bash <script> <n> >& <path>tail -n <n>rm -rf <path> <path> <path> <path>
  184. Execute · Benchmark & validation setup

    Requested script or workload execution and file and log inspection related to benchmark & validation setup.

    1 call · #0294–#0294

    bash <script> <n> >& <path>tail -n <n>
  185. Other · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0295–#0295

    Read task output <task>
  186. Execute · Benchmark & validation setup

    Requested file and log inspection and script or workload execution related to benchmark & validation setup.

    1 call · #0296–#0296

    cat <path>python3 -c <script>
  187. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0297–#0297

    Read <path>
  188. Edit · Source & workspace

    Requested code edits related to source & workspace.

    2 calls · #0298–#0299

    Edit <path>
  189. Other · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0300–#0300

    Update task <task>
  190. Validate · Benchmark & validation setup

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

    1 call · #0301–#0301

    rm -rf <path> <path> <path>bash <script> <n> >& <path>tail -n <n>
  191. Other · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0302–#0302

    Read task output <task>
  192. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0303–#0303

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

    Requested script or workload execution and file and log inspection related to benchmark & validation setup.

    1 call · #0304–#0304

    bash <script> <n> >& <path>tail -n <n>
  194. Inspect · Source & workspace

    Requested script or workload execution, file and log inspection and workspace inspection related to source & workspace.

    5 calls · #0305–#0309

    bash <script> <n> >& <path>tail -n <n>ls <path>rm -rf <path> <val> <path>git statusls -l -a <path>
    1 more command sketches
    wc -l <path>
  195. Other · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0310–#0310

    Update task <task>
  196. Execute · Benchmark & validation setup

    Requested workspace inspection related to benchmark & validation setup.

    1 call · #0311–#0311

    ls <path> <n> >& <path>
  197. Execute · Batching & scheduling

    Requested script or workload execution related to batching & scheduling.

    1 call · #0312–#0312

    echo <val>python3 -c <script>

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

Base commit: 340db9201005fc64635bb25db1d2538f955761c3

diff --git a/python/sglang/srt/deployment/__init__.py b/python/sglang/srt/deployment/__init__.pynew file mode 100644index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391diff --git a/python/sglang/srt/deployment/qwen3_14b.py b/python/sglang/srt/deployment/qwen3_14b.pynew file mode 100644index 0000000000000000000000000000000000000000..c173b04151e0ff699c26fee5934ef839e1bce50e--- /dev/null+++ b/python/sglang/srt/deployment/qwen3_14b.py@@ -0,0 +1,259 @@+# Copyright 2023-2024 SGLang Team+# Licensed under the Apache License, Version 2.0 (the "License");+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+#     http://www.apache.org/licenses/LICENSE-2.0+"""Qwen3-14B deployment entrypoint for the two Ascend 910B benchmark.++The host hands the framework a fixed public ABI+(``--model-path``, ``--tokenizer-path``, ``--served-model-name``,+``--host``, ``--port``, ``--device-ids``, ``--runtime-dir``) and lets+the framework pick an internal execution strategy that fits the two+device constraint while preserving the workload contract.++The default public reference launch is tensor-parallel only+(``--tp-size 2 --dp-size 1``), which keeps the model on one process+graph but burns CPU launch overhead on every decode step because the+reference explicitly disables the CUDA-graph path. We keep the same+two-device tensor-parallel topology (splitting the 14B model across+the two NPUs halves the per-NPU weight footprint and grows KV cache+headroom) and additionally re-enable the decode-side CUDA graph+backend (NPUGraphRunner / NPUCudaGraphBackend already supports the+"full" backend on Ascend), pack chunked prefill with live decode via+``--enable-mixed-chunk``, raise the chunked-prefill budget so the+2048-token prompts in the mixed profile hit a single chunk, and widen+the static KV pool so the scheduler never back-pressures on the+long-prompt half of the workload.+"""++from __future__ import annotations++import argparse+import os+import sys+import warnings++from sglang.srt.plugins import load_plugins+++# Environment variables tuned for the two-910B serving target. The host+# reference preset (HCCL_AIV, expandable_segments, plan-stream overlap)+# is the bare minimum; we keep the same HCCL knobs because they match+# the harness's reference run, and we add plan-stream overlap because+# the decode CUDA-graph path benefits from overlapping the next batch's+# plan with the current batch's execution.+_OPTIMIZED_NPU_ENV = {+    # Match the reference launch's HCCL knobs so cross-rank traffic uses+    # the AIV engine at the harness's tuned buffer size.+    "HCCL_OP_EXPANSION_MODE": "AIV",+    "HCCL_BUFFSIZE": "200",+    # Reference launch uses expandable_segments; the NPU allocator+    # accepts the same key as PyTorch.+    "PYTORCH_NPU_ALLOC_CONF": "expandable_segments:True",+    # Plan the next batch while the current batch's CUDA-graph replay+    # is still on device. Pure throughput win for the decode-heavy+    # balanced profile.+    "SGLANG_ENABLE_OVERLAP_PLAN_STREAM": "1",+}+++# --- fixed public contract values (must match the reference) ----------++DEFAULT_CONTEXT_LENGTH = 4096+DEFAULT_RANDOM_SEED = 20260819+DEFAULT_DTYPE = "bfloat16"+SCHEDULER_CONCURRENCY = 32  # matches the mixed/balanced workload cap+++def _deployment_argv(+    *,+    model_path: str,+    tokenizer_path: str,+    served_model_name: str,+    host: str,+    port: int,+    device_ids: tuple[int, ...],+) -> list[str]:+    """Translate the public contract into a sglang CLI argv list.++    The optimization choices below are framework-local: they pick the+    internal process graph (tensor-parallel split across both NPUs) and+    the matching scheduling/graph knobs while staying inside the+    resource and correctness contract (two devices, same public ABI,+    deterministic greedy decode).+    """+    if len(device_ids) != 2:+        # Constraint is "at most two devices" so we accept a single+        # device too; but the benchmark always has two. Stay symmetric+        # so the scheduler / graph setup is identical.+        raise ValueError(+            "qwen3_14b deployment expects exactly two Ascend 910B devices"+        )++    # Tensor parallelism: split the 14B model across both NPUs. Each+    # device holds half the weights, so the KV cache headroom grows+    # versus DP=2 (where each device must host the whole 28 GB model).+    # TP=2 + CUDA-graph decode wins when the model is decode-bound and+    # each forward can pack the full 32-request batch on a single+    # graph replay.+    tp_size = len(device_ids)+    dp_size = 1++    # Re-enable decode-side CUDA graph capture. NPUGraphRunner /+    # NPUCudaGraphBackend implement the "full" backend for Ascend and+    # drastically reduce per-step CPU overhead for the decode-heavy+    # balanced profile. Prefill-side CUDA graph is left disabled —+    # the Ascend attention backend's prefill capture path is not yet+    # wired into NPUGraphRunner (it fails inside+    # ``init_forward_metadata_out_graph`` with a missing+    # ``block_tables`` metadata key), and chunked prefill is dominated+    # by GEMM cost rather than launch overhead anyway.+    cuda_graph_backend_decode = "full"+    cuda_graph_max_bs_decode = SCHEDULER_CONCURRENCY+    cuda_graph_backend_prefill = "disabled"+    cuda_graph_max_bs_prefill = SCHEDULER_CONCURRENCY++    # The mixed profile sends 128 requests with 2048-token prompts; the+    # chunked-prefill budget must accommodate that in a single chunk so+    # the chunk boundary does not become a serialization point.+    chunked_prefill_size = 8192++    # Static memory pool: weights + KV cache. 0.85 leaves enough head+    # room for activations + CUDA graph scratch without starving the+    # weight loader.+    mem_fraction_static = 0.85++    # KV cache pool. The mixed profile can hold 32 concurrent requests+    # whose prompts reach 2048 tokens plus 64-token tails (≈68 k tokens+    # of KV cache at peak). The default reference cap of 32 k would+    # force the scheduler to back-pressure on the long-prompt half of+    # the workload, so we widen the pool to 65 536 — still well inside+    # the per-NPU KV budget implied by mem_fraction_static=0.85.+    max_total_tokens = 65536++    # The benchmark contract fixes greedy decoding, ignore_eos, and+    # the public max_new_tokens; let the scheduler take the full+    # requested output budget without EOS short-circuits.+    schedule_policy = "fcfs"++    return [+        "--model-path",+        model_path,+        "--tokenizer-path",+        tokenizer_path,+        "--served-model-name",+        served_model_name,+        "--host",+        host,+        "--port",+        str(port),+        "--dtype",+        DEFAULT_DTYPE,+        "--context-length",+        str(DEFAULT_CONTEXT_LENGTH),+        "--random-seed",+        str(DEFAULT_RANDOM_SEED),+        "--device",+        "npu",+        "--attention-backend",+        "ascend",+        "--tp-size",+        str(tp_size),+        "--dp-size",+        str(dp_size),+        "--pp-size",+        "1",+        "--schedule-policy",+        schedule_policy,+        "--chunked-prefill-size",+        str(chunked_prefill_size),+        "--max-running-requests",+        str(SCHEDULER_CONCURRENCY),+        "--max-total-tokens",+        str(max_total_tokens),+        "--mem-fraction-static",+        str(mem_fraction_static),+        # Mixed-chunk scheduling: pack prefill chunks with live decode+        # requests in the same forward batch. The mixed profile contains+        # both 2048-token prompt prefills and 512-token decode tails;+        # without this flag every prefill forces a decode-only batch to+        # wait, which dominates the tail latency for the long-decode+        # requests.+        "--enable-mixed-chunk",+        "--disable-radix-cache",+        "--cuda-graph-backend-decode",+        cuda_graph_backend_decode,+        "--cuda-graph-max-bs-decode",+        str(cuda_graph_max_bs_decode),+        "--cuda-graph-backend-prefill",+        cuda_graph_backend_prefill,+        "--cuda-graph-max-bs-prefill",+        str(cuda_graph_max_bs_prefill),+    ]+++def _parse_public_args(argv: list[str]) -> argparse.Namespace:+    parser = argparse.ArgumentParser(+        prog="python -m sglang.srt.deployment.qwen3_14b",+        description=(+            "Framework entrypoint for the Qwen3-14B serving benchmark on two "+            "Ascend 910B devices."+        ),+    )+    parser.add_argument("--model-path", required=True)+    parser.add_argument("--tokenizer-path", required=True)+    parser.add_argument("--served-model-name", required=True)+    parser.add_argument("--host", required=True)+    parser.add_argument("--port", required=True, type=int)+    parser.add_argument("--device-ids", required=True)+    parser.add_argument("--runtime-dir", required=True)+    return parser.parse_args(argv)+++def main() -> int:+    args = _parse_public_args(sys.argv[1:])++    # Apply the optimized NPU environment before importing sglang so the+    # alloc-conf and overlap flags are honored at module import time.+    for key, value in _OPTIMIZED_NPU_ENV.items():+        os.environ.setdefault(key, value)++    device_ids = tuple(int(item) for item in args.device_ids.split(","))+    cli_argv = _deployment_argv(+        model_path=args.model_path,+        tokenizer_path=args.tokenizer_path,+        served_model_name=args.served_model_name,+        host=args.host,+        port=args.port,+        device_ids=device_ids,+    )++    # Mirror launch_server.py: load plugins, parse CLI into ServerArgs,+    # then dispatch to the HTTP engine.+    load_plugins()++    from sglang.launch_server import run_server+    from sglang.srt.server_args import prepare_server_args++    warnings.warn(+        "'python -m sglang.srt.deployment.qwen3_14b' is the framework "+        "deployment entrypoint for the Qwen3-14B two-device benchmark.",+        UserWarning,+        stacklevel=1,+    )++    server_args = prepare_server_args(cli_argv)+    try:+        run_server(server_args)+    finally:+        # Mirror the reference launch_server teardown so a child scheduler+        # crash does not leak NPU processes.+        from sglang.srt.utils import kill_process_tree++        kill_process_tree(os.getpid(), include_parent=False)+    return 0+++if __name__ == "__main__":+    raise SystemExit(main())\ No newline at end of file