Kimi K3 · Serving

S09 · Generalist

Valid

Generalist 6-regime 1dev · Implementation Optimization

1.15×PERFORMANCE RATIO
307TOOL EVENTS
1TEXT PATCHES
0BINARY NAMES

01 / PROCESS MAP

Agents over time

Compare agents on one time axis; overlapping spans line up vertically. Select an agent or bar to inspect its events.

Elapsed time · mm:ss

Agent / model
+01:09+12:51+24:33+36:15+47:56
Main agentKimi K3Main timeline · 95 calls
Subagent 1Kimi K3From Main agent · 31 calls
Subagent 2Kimi K3From Main agent · 43 calls
Subagent 3Kimi K3From Main agent · 138 calls

Time starts at the first recorded activity. Select a bar or agent to open its events. Bars span the first and last recorded observation, including gaps; colored ticks mark tool calls. A hollow diamond marks a delegation whose child timing is unavailable.

InspectEditValidateExecuteBuildProfileRollbackOther
266Inspect
5Edit
8Validate
16Execute
12Other

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 timeline147 groups · 307 calls · 3 subagents

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>. Each branch belongs to its named agent. Expand a delegation to inspect its child; branches can run concurrently. Call numbers preserve source order, not a serial schedule. Times are relative to the first recorded activity.

Main agent

  1. Inspect · Source & workspace

    Requested workspace inspection related to source & workspace.

    1 call · #0213–#0213

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

    Requested file and log inspection related to task requirements.

    2 calls · #0214–#0215

    Read <path>
  3. Inspect · Source & workspace

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

    2 calls · #0216–#0217

    find <path> -type <val>head -n <n>echo <flag>ls <path> <path> <path>Read <path>
  4. Inspect · Benchmark & validation setup

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

    1 call · #0218–#0218

    Read <path>
  5. Inspect · Source & workspace

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

    8 calls · #0219–#0226

    Read <path>wc -l <path> <path> <path> <path>cd <path><command> <args>cat <val>env
    6 more command sketches
    grep -E <val>sortecho <flag>which <val>python3 --versionls <path>
  6. Inspect · Dependencies & build setup

    Requested script or workload execution, dependency and build commands and source searches related to dependencies & build setup.

    1 call · #0227–#0227

    python3 -c <script> <n> >& <path>pip list <n> > <path>grep -i -E <val>echo <flag>ls <path>head -n <n>
  7. Inspect · Source & workspace

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

    1 call · #0228–#0228

    cd <path><command> <args>head -n <n> <val>grep -E <val>head -n <n>echo <flag>
    2 more command sketches
    grep -n <val> <path>head
  8. Inspect · Runtime processes

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

    1 call · #0229–#0229

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

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

    2 calls · #0230–#0231

    cd <path>sed -n <val> <path>cat <path> <n> > <path>echo <flag>ls <path> <path> <n> > <path>
  10. Validate · Latency & request handling

    Requested task coordination related to latency & request handling.

    1 call · #0232–#0232

    Delegate <task>
    Subagent 1· Kimi K3 · explore · 31 visible callsCompleted

    Delegated by Main agent at call #0232. Observed activity +04:47–+12:21. Overlapping activity: Subagent 2.

    1. Inspect · Source & workspace

      Requested file and log inspection related to source & workspace.

      2 calls · #0001–#0002

      Read <path>
    2. Inspect · Latency & request handling

      Requested file and log inspection and workspace inspection related to latency & request handling.

      3 calls · #0003–#0005

      Read <path>ls -l -a <path> <path> <path> <path> <path>ls -R <path>head -n <n>echo <val>cat <path> <path> <path>
    3. Inspect · Benchmark & validation setup

      Requested source searches related to benchmark & validation setup.

      1 call · #0006–#0006

      Search <pattern> <path>
    4. Inspect · Task requirements

      Requested file and log inspection related to task requirements.

      2 calls · #0007–#0008

      Read <path>
    5. Inspect · Latency & request handling

      Requested file and log inspection related to latency & request handling.

      1 call · #0009–#0009

      Read <path>
    6. Inspect · Source & workspace

      Requested file and log inspection related to source & workspace.

      4 calls · #0010–#0013

      Read <path>
    7. Inspect · Latency & request handling

      Requested file and log inspection related to latency & request handling.

      2 calls · #0014–#0015

      Read <path>
    8. Inspect · Source & workspace

      Requested file and log inspection related to source & workspace.

      2 calls · #0016–#0017

      Read <path>
    9. Inspect · Latency & request handling

      Requested file and log inspection related to latency & request handling.

      1 call · #0018–#0018

      cd <path>head -c <n> <path>echoecho <val>
    10. Validate · Latency & request handling

      Requested file and log inspection and script or workload execution related to latency & request handling.

      1 call · #0019–#0019

      cd <path>cat <path> <path> <path> <n> > <path>head -n <n>echo <val>python3 -c <script>
    11. Inspect · Benchmark & validation setup

      Requested source searches related to benchmark & validation setup.

      1 call · #0020–#0020

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

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

      6 calls · #0021–#0026

      Read <path>Search <pattern> <path>
    13. Validate · Benchmark & validation setup

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

      1 call · #0027–#0027

      cd <path>cat <path> <path> <path> <n> > <path>head -n <n>
    14. Inspect · Latency & request handling

      Requested source searches related to latency & request handling.

      1 call · #0028–#0028

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

      Requested source searches related to runtime processes.

      2 calls · #0029–#0030

      Search <pattern> <path>
    16. Other · Latency & request handling

      1 tool error

      Requested tool activity related to latency & request handling.

      1 call · #0031–#0031

      cd <path><command> <args>diff <val> <val>
  11. Validate · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0233–#0233

    Delegate <task>
    Subagent 2· Kimi K3 · explore · 43 visible callsCompleted

    Delegated by Main agent at call #0233. Observed activity +04:44–+13:04. Overlapping activity: Subagent 1.

    1. Inspect · Source & workspace

      Requested file and log inspection related to source & workspace.

      3 calls · #0032–#0034

      Read <path>
    2. Inspect · Task requirements

      Requested workspace inspection related to task requirements.

      1 call · #0035–#0035

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

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

      22 calls · #0036–#0057

      Search <pattern> <path>ls -l -a <path> <path> <n> >& <path>cat <path> <n> > <path>head -n <n>Read <path>
    4. Other · Task requirements

      Requested script or workload execution related to task requirements.

      1 call · #0058–#0058

      cd <path>python3 - <script>
    5. Validate · Task requirements

      Requested script or workload execution related to task requirements.

      1 call · #0059–#0059

      cd <path>python3 - <script>
    6. Validate · Attention kernels

      Requested script or workload execution related to attention kernels.

      1 call · #0060–#0060

      cd <path>python3 - <script>
    7. Validate · Task requirements

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

      1 call · #0061–#0061

      cd <path>head -c <n> <val>echoecho <flag>ls <path> <path> <n> > <path>cat <path> <path> <path>
    8. Inspect · Task requirements

      Requested source searches related to task requirements.

      1 call · #0062–#0062

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

      Requested file and log inspection related to source & workspace.

      2 calls · #0063–#0064

      Read <path>
    10. Inspect · Task requirements

      Requested file and log inspection related to task requirements.

      1 call · #0065–#0065

      cd <path>wc -l <val> <path>head -n <n> <val>
    11. Inspect · Runtime processes

      Requested source searches related to runtime processes.

      1 call · #0066–#0066

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

      Requested file and log inspection related to source & workspace.

      1 call · #0067–#0067

      Read <path>
    13. Other · Task requirements

      Requested workspace inspection and script or workload execution related to task requirements.

      1 call · #0068–#0068

      cd <path>ls <path> <path> <path>python3 - <script>
    14. Inspect · Source & workspace

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

      6 calls · #0069–#0074

      Search <pattern> <path>Read <path>cd <path>ls <path>grep -n <val> <path> <n> > <path>head -n <n>
  12. Inspect · Source & workspace

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

    2 calls · #0234–#0235

    Update task list <tasks>cd <path>git status <flag>headgit log --oneline <flag>echo <flag>
    1 more command sketches
    ls <path>
  13. Inspect · Attention kernels

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

    1 call · #0236–#0236

    cd <path>grep -r -n <val> <path>head -n <n>echo <flag>ls <path>
  14. Inspect · Source & workspace

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

    3 calls · #0237–#0239

    cd <path>grep -r -l -n <val> <path>head -n <n>echo <flag>ls <path> <n> > <path>find <path> -name <val> -o -name <val>
    2 more command sketches
    grep -v <val>Read <path>
  15. Inspect · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0240–#0240

    Delegate <task>
    Subagent 3· Kimi K3 · explore · 138 visible callsCompleted

    Delegated by Main agent at call #0240. Observed activity +15:53–+44:36.

    1. Inspect · Attention kernels

      Requested file and log inspection and workspace inspection related to attention kernels.

      2 calls · #0075–#0076

      Read <path>ls <path> <path> <path> <n> > <path>
    2. Other · Attention kernels

      Requested file and log inspection related to attention kernels.

      1 call · #0077–#0077

      wc -l <path> <path> <path> <path> <path> <path> <n> > <path>
    3. Inspect · Attention kernels

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

      8 calls · #0078–#0085

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

      1 tool error

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

      3 calls · #0086–#0088

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

      1 tool error

      Requested source searches related to batching & scheduling.

      1 call · #0089–#0089

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

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

      5 calls · #0090–#0094

      ls <path> <path> <n> > <path>Search <pattern> <path>Read <path>
    7. Inspect · Attention kernels

      Requested file and log inspection related to attention kernels.

      1 call · #0095–#0095

      Read <path>
    8. Inspect · Source & workspace

      Requested file and log inspection related to source & workspace.

      1 call · #0096–#0096

      Read <path>
    9. Inspect · Batching & scheduling

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

      3 calls · #0097–#0099

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

      Requested file and log inspection related to runtime processes.

      1 call · #0100–#0100

      Read <path>
    11. Inspect · Source & workspace

      Requested file and log inspection related to source & workspace.

      1 call · #0101–#0101

      Read <path>
    12. Inspect · Batching & scheduling

      Requested file and log inspection related to batching & scheduling.

      4 calls · #0102–#0105

      Read <path>
    13. Inspect · Runtime processes

      Requested source searches related to runtime processes.

      1 call · #0106–#0106

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

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

      3 calls · #0107–#0109

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

      Requested file and log inspection related to batching & scheduling.

      1 call · #0110–#0110

      Read <path>
    16. Inspect · Source & workspace

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

      5 calls · #0111–#0115

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

      1 tool error

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

      4 calls · #0116–#0119

      Search <pattern> <path>ls <path> <n> > <path>Read <path>
    18. Inspect · Device memory

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

      8 calls · #0120–#0127

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

      Requested file and log inspection related to batching & scheduling.

      1 call · #0128–#0128

      Read <path>
    20. Inspect · Device memory

      Requested source searches related to device memory.

      1 call · #0129–#0129

      Search <pattern> <path>
    21. Inspect · Data movement

      Requested source searches related to data movement.

      1 call · #0130–#0130

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

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

      9 calls · #0131–#0139

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

      Requested source searches related to runtime processes.

      1 call · #0140–#0140

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

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

      4 calls · #0141–#0144

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

      Requested file and log inspection related to attention kernels.

      2 calls · #0145–#0146

      Read <path>
    26. Inspect · Source & workspace

      Requested file and log inspection related to source & workspace.

      1 call · #0147–#0147

      Read <path>
    27. Inspect · Attention kernels

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

      2 calls · #0148–#0149

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

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

      6 calls · #0150–#0155

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

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

      2 calls · #0156–#0157

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

      Requested source searches related to batching & scheduling.

      1 call · #0158–#0158

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

      Requested file and log inspection related to runtime processes.

      1 call · #0159–#0159

      Read <path>
    32. Inspect · Source & workspace

      Requested source searches related to source & workspace.

      2 calls · #0160–#0161

      Search <pattern> <path>
    33. Inspect · Batching & scheduling

      Requested file and log inspection related to batching & scheduling.

      1 call · #0162–#0162

      Read <path>
    34. Inspect · Source & workspace

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

      3 calls · #0163–#0165

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

      Requested file and log inspection related to batching & scheduling.

      1 call · #0166–#0166

      Read <path>
    36. Inspect · Source & workspace

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

      3 calls · #0167–#0169

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

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

      2 calls · #0170–#0171

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

      Requested source searches related to runtime processes.

      1 call · #0172–#0172

      Search <pattern> <path>
    39. Inspect · Data movement

      Requested source searches related to data movement.

      1 call · #0173–#0173

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

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

      1 call · #0174–#0174

      ls <path> <path> <n> > <path>head -n <n>
    41. Inspect · Attention kernels

      1 tool error

      Requested file and log inspection and workspace inspection related to attention kernels.

      2 calls · #0175–#0176

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

      Requested workspace inspection related to source & workspace.

      1 call · #0177–#0177

      ls <path> <n> > <path>
    43. Inspect · Attention kernels

      Requested file and log inspection related to attention kernels.

      1 call · #0178–#0178

      Read <path>
    44. Inspect · Source & workspace

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

      3 calls · #0179–#0181

      Read <path>Search <pattern> <path>
    45. Inspect · Device memory

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

      4 calls · #0182–#0185

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

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

      7 calls · #0186–#0192

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

      Requested file and log inspection related to runtime processes.

      1 call · #0193–#0193

      Read <path>
    48. Inspect · Source & workspace

      Requested source searches related to source & workspace.

      4 calls · #0194–#0197

      Search <pattern> <path>
    49. Inspect · Batching & scheduling

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

      2 calls · #0198–#0199

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

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

      7 calls · #0200–#0206

      Search <pattern> <path>Read <path>python3 -c <script> <n> >& <path>tail -n <n>
    51. Inspect · Runtime processes

      Requested source searches related to runtime processes.

      1 call · #0207–#0207

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

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

      3 calls · #0208–#0210

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

      1 tool error

      Requested source searches related to batching & scheduling.

      2 calls · #0211–#0212

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

    Requested file and log inspection related to attention kernels.

    1 call · #0241–#0241

    cd <path>sed -n <val> <path>
  17. Other · Benchmark & validation setup

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

    1 call · #0242–#0242

    mkdir -p <path>cd <path>env <vars> nohup <val> <path> <flag> <args>echo <val>
  18. Inspect · Source & workspace

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

    7 calls · #0243–#0249

    Read <path>cd <path>grep -n <val> <path>head -n <n>echo <flag>sed -n <val> <path>
    3 more command sketches
    tail -n <n> <path>ls <path> <n> > <path>sed -n <val>
  19. Inspect · Device memory

    Requested file and log inspection related to device memory.

    1 call · #0250–#0250

    Read <path>
  20. Inspect · Batching & scheduling

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

    1 call · #0251–#0251

    cd <path>grep -n <val> -A <n> <path> <path> <n> > <path>head -n <n>
  21. Inspect · Runtime processes

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

    1 call · #0252–#0252

    cd <path>grep -n <val> <path>head -n <n>echo <flag>sed -n <val> <path>
  22. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0253–#0253

    cd <path>sed -n <val> <path>
  23. Inspect · Attention kernels

    Requested file and log inspection related to attention kernels.

    1 call · #0254–#0254

    Read <path>
  24. Inspect · Source & workspace

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

    1 call · #0255–#0255

    tail -n <n> <path>echo <val>find <path> -name <val>headfind <path> -name <val> -o -name <val>
  25. Execute · Benchmark & validation setup

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

    1 call · #0256–#0256

    cd <path>python3 -c <script> <n> > <path>head -n <n>grep -c <path> <val>grep -i -E <val> <val>tail -n <n>
  26. Other · Benchmark & validation setup

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

    1 call · #0257–#0257

    cd <path>env <vars> nohup <val> <path> <flag> <args>echo <val>date
  27. Inspect · Source & workspace

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

    1 call · #0258–#0258

    cd <path>grep -n <val> -A <n> <path> <path> <n> > <path>head -n <n>
  28. Inspect · Device memory

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

    2 calls · #0259–#0260

    cd <path>grep -r -n <val> -A <n> <path>head -n <n>echo <val>grep -r -n <val> <path> <path> <path> <n> > <path>echo <flag>
    1 more command sketches
    sed -n <val> <path>
  29. Inspect · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0261–#0261

    Update task list <tasks>
  30. Inspect · Device memory

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

    1 call · #0262–#0262

    cd <path>grep -n <val> <path> <path>grep -v <val>headecho <flag>grep -n <val> <path>
  31. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    2 calls · #0263–#0264

    cd <path>sed -n <val> <path>
  32. Edit · Device memory

    Requested code edits related to device memory.

    1 call · #0265–#0265

    Edit <path>
  33. Edit · Attention kernels

    Requested code edits related to attention kernels.

    3 calls · #0266–#0268

    Edit <path>
  34. Execute · Benchmark & validation setup

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

    2 calls · #0269–#0270

    tail -n <n> <path>ls <path> <n> > <path>headcd <path>python3 -c <script>grep -i -E <val> <val> <n> > <path>
    2 more command sketches
    tail -n <n>ls
  35. Execute · Latency & request handling

    Requested file and log inspection, script or workload execution and source searches related to latency & request handling.

    1 call · #0271–#0271

    cd <path>cat <val>python3 -c <script>grep -i -E <val> <val>tail -n <n>
  36. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0272–#0272

    cd <path>sed -n <val> <path>
  37. Inspect · Runtime processes

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

    3 calls · #0273–#0275

    cd <path>grep -r -n <val> <path> <path> <path>head -n <n>sed -n <val> <path>awk <path> <path>
  38. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0276–#0276

    Read <path>
  39. Inspect · Device memory

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

    1 call · #0277–#0277

    cd <path>sed -n <val> <path>grep -n <val> <path>head -n <n>
  40. Edit · Source & workspace

    Requested code edits related to source & workspace.

    1 call · #0278–#0278

    Edit <path>
  41. Other · Attention kernels

    Requested script or workload execution related to attention kernels.

    1 call · #0279–#0279

    cd <path>python3 -m <module> <script> <script> <script>echo <val>python3 -c <script>
  42. Other · Benchmark & validation setup

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

    1 call · #0280–#0280

    cd <path>env <vars> nohup <val> <path> <flag> <args>echo <val>date
  43. Inspect · Attention kernels

    Requested file and log inspection related to attention kernels.

    1 call · #0281–#0281

    cd <path>sed -n <val> <path>
  44. Inspect · Source & workspace

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

    2 calls · #0282–#0283

    Update task list <tasks>sleep <n>tail -n <n> <path>ls <path> <n> > <path>
  45. Execute · Benchmark & validation setup

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

    1 call · #0284–#0284

    wc -c <path>find <path> <flag> <args>headls <path> <n> > <path>
  46. Inspect · Benchmark & validation setup

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

    1 call · #0285–#0285

    cd <path>tail -n <n> <val>grep -i -E <val> <val>tail -n <n>
  47. Execute · Benchmark & validation setup

    Requested execution waits, workspace inspection and file and log inspection related to benchmark & validation setup.

    1 call · #0286–#0286

    sleep <n>cd <path>ls<command> <args>echo <val>tail -n <n> <path>
  48. Execute · Latency & request handling

    Requested script or workload execution, source searches and file and log inspection related to latency & request handling.

    1 call · #0287–#0287

    cd <path>python3 -c <script>grep -a <val> <val> <val> <n> > <path>tail -n <n>
  49. Execute · Benchmark & validation setup

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

    1 call · #0288–#0288

    sleep <n>cd <path>ls <val> <n> > <path>python3 -c <script>tail -c <n> <path>
  50. Other · Benchmark & validation setup

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

    1 call · #0289–#0289

    cd <path>env <vars> nohup <val> <path> <flag> <args>echo <val>date
  51. Inspect · Source & workspace

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

    1 call · #0290–#0290

    sleep <n>tail -c <n> <path>ls <path> <n> > <path>
  52. Execute · Benchmark & validation setup

    Requested environment setup or inspection, workspace inspection and file and log inspection related to benchmark & validation setup.

    2 calls · #0291–#0292

    env <vars>ls <val> <n> > <path>tail -n <n> <path> <n> > <path>sleep <n><command> <args>tail -n <n> <path>
  53. Inspect · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0293–#0293

    Update task list <tasks>
  54. Other · Latency & request handling

    Requested environment setup or inspection related to latency & request handling.

    1 call · #0294–#0294

    cd <path>env <vars> nohup <val> <path> <flag> <args>echo <val>date
  55. Validate · Benchmark & validation setup

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

    1 call · #0295–#0295

    env <vars>python3 -c <script>
  56. Execute · Latency & request handling

    Requested execution waits, environment setup or inspection and workspace inspection related to latency & request handling.

    1 call · #0296–#0296

    sleep <n>env <vars>ls <val> <n> > <path>tail -n <n><command> <args>python3 -c <script>
    1 more command sketches
    tail -n <n> <path> <n> > <path>
  57. Inspect · Device memory

    Requested file and log inspection related to device memory.

    1 call · #0297–#0297

    cd <path>sed -n <val> <path>
  58. Execute · Latency & request handling

    Requested execution waits, environment setup or inspection and script or workload execution related to latency & request handling.

    2 calls · #0298–#0299

    sleep <n>env <vars><command> <args>python3 -c <script>tail -n <n> <path> <n> > <path>ls <val>
    3 more command sketches
    tail -n <n>tail -n <n> <path>date
  59. Other · Benchmark & validation setup

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

    1 call · #0300–#0300

    cd <path>env <vars> nohup <val> <path> <flag> <args>echo <val>date
  60. Inspect · Source & workspace

    Requested repository inspection related to source & workspace.

    1 call · #0301–#0301

    cd <path>git diff --statgit diff
  61. Execute · Task requirements

    Requested execution waits, environment setup or inspection and script or workload execution related to task requirements.

    2 calls · #0302–#0303

    sleep <n>env <vars><command> <args>python3 -c <script>tail -n <n> <path> <n> > <path>ls <val> <n> > <path>
    2 more command sketches
    tail -n <n>date
  62. Execute · Runtime processes

    Requested repository inspection, runtime inspection and source searches related to runtime processes.

    1 call · #0304–#0304

    cd <path>git <val> <val>ps <val>grep -i -E <val>grep -v <val>head
    4 more command sketches
    echo <flag><command> <args>grep <n>echo <val>
  63. Other · Source & workspace

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

    1 call · #0305–#0305

    cd <path>bash <script>echo <val>rm -rf <path>
  64. Inspect · Source & workspace

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

    2 calls · #0306–#0307

    cd <path>git status <flag>head -n <n>dateUpdate task list <tasks>

03 / CANDIDATE ARTIFACT

Text patches & binary names

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

sglang · 3 changed files

Base commit: 340db9201005fc64635bb25db1d2538f955761c3

diff --git a/python/sglang/srt/hardware_backend/npu/allocator_npu.py b/python/sglang/srt/hardware_backend/npu/allocator_npu.pyindex 1a6ce9e6e4f73d1f004ed8ba6f109f9b19bb5dbf..f0eab6c71f0ad9159b187665b886c8b45461006d 100644--- a/python/sglang/srt/hardware_backend/npu/allocator_npu.py+++ b/python/sglang/srt/hardware_backend/npu/allocator_npu.py@@ -41,11 +41,13 @@ class NPUPagedTokenToKVPoolAllocator(PagedTokenToKVPoolAllocator):             )          if num_new_pages is None:-            num_new_pages_tensor = (-                (seq_lens + self.roundup) // self.page_size-                - (prefix_lens + self.roundup) // self.page_size-            ).sum()-            num_new_pages_item = num_new_pages_tensor.item()+            # Compute on the CPU mirrors to avoid a device sync per batch+            # (mirrors the base-class behavior in paged.py).+            num_new_pages_item = get_num_new_pages(+                seq_lens=seq_lens_cpu,+                page_size=self.page_size,+                prefix_lens=prefix_lens_cpu,+            )         else:             num_new_pages_item = num_new_pages         if self.need_sort and num_new_pages_item > len(self.free_pages):diff --git a/python/sglang/srt/hardware_backend/npu/attention/ascend_backend.py b/python/sglang/srt/hardware_backend/npu/attention/ascend_backend.pyindex 89e9de06db1cb0350cb55b83dbaffc15c100fff9..2305d80bbcabce680ade89a11b94a7923b5ced1d 100644--- a/python/sglang/srt/hardware_backend/npu/attention/ascend_backend.py+++ b/python/sglang/srt/hardware_backend/npu/attention/ascend_backend.py@@ -430,7 +430,9 @@ class AscendAttnBackend(AttentionBackend):     def init_forward_metadata(self, forward_batch: ForwardBatch):         """Init the metadata for a forward pass."""         self.forward_metadata = ForwardMetadata()-        seq_lens_max = forward_batch.seq_lens.max()+        # Use the host-side mirror: slicing with a device scalar forces a+        # device-to-host sync on every eager forward step.+        seq_lens_max = forward_batch.seq_lens_cpu.max()         if forward_batch.forward_mode.is_target_verify():             seq_lens_max += self.speculative_num_draft_tokens         elif (@@ -440,7 +442,7 @@ class AscendAttnBackend(AttentionBackend):             seq_lens_max += self.speculative_step_id + 1         self.forward_metadata.block_tables = (             self.req_to_token_pool.req_to_token[-                forward_batch.req_pool_indices, :seq_lens_max+                forward_batch.req_pool_indices, : int(seq_lens_max)             ][:, :: self.page_size]             // self.page_size         )@@ -459,9 +461,15 @@ class AscendAttnBackend(AttentionBackend):             )         if forward_batch.extend_seq_lens is not None:             self.forward_metadata.extend_seq_lens = forward_batch.extend_seq_lens-            self.forward_metadata.extend_seq_lens_cpu_int = (-                forward_batch.extend_seq_lens.cpu().int()-            )+            if forward_batch.extend_seq_lens_cpu is not None:+                # Build from the host-side list to avoid a device sync.+                self.forward_metadata.extend_seq_lens_cpu_int = torch.tensor(+                    forward_batch.extend_seq_lens_cpu, dtype=torch.int32+                )+            else:+                self.forward_metadata.extend_seq_lens_cpu_int = (+                    forward_batch.extend_seq_lens.cpu().int()+                )         if forward_batch.seq_lens is not None:             self.forward_metadata.seq_lens = forward_batch.seq_lens.int()         else:@@ -506,11 +514,19 @@ class AscendAttnBackend(AttentionBackend):                 device=self.device,             )         elif forward_batch.forward_mode.is_decode_or_idle():-            self.forward_metadata.actual_seq_lengths_q = torch.tensor(-                [1 + i for i in range(forward_batch.seq_lens.shape[0])],-                dtype=torch.int32,-                device=self.device,-            )+            # Cache the 1..N arange buffer: rebuilding it per step via a+            # Python list-comp plus pageable H2D copy is pure overhead.+            num_reqs = forward_batch.seq_lens.shape[0]+            cached = getattr(self, "_actual_seq_lengths_q_cache", None)+            if cached is None or cached.shape[0] < num_reqs:+                cached = torch.arange(+                    1,+                    max(num_reqs, 1024) + 1,+                    dtype=torch.int32,+                    device=self.device,+                )+                self._actual_seq_lengths_q_cache = cached+            self.forward_metadata.actual_seq_lengths_q = cached[:num_reqs]          if (             self.use_mladiff --git a/python/sglang/srt/hardware_backend/npu/utils.py b/python/sglang/srt/hardware_backend/npu/utils.pyindex 664bb2881873dcfad7859bba9b8900d58ed1cc52..53ade68659d6968ad0900b8db76669241134e02a 100644--- a/python/sglang/srt/hardware_backend/npu/utils.py+++ b/python/sglang/srt/hardware_backend/npu/utils.py@@ -74,6 +74,24 @@ def set_default_server_args(args: "ServerArgs"):             else:                 decode.max_bs = 256 +    # The eager decode fallback on NPU is host-launch-overhead bound, which is+    # very costly for small models. Decode graph capture is comparatively cheap+    # (small static buffers, one graph per bucket), so widen the capture+    # coverage beyond the configured cap when the device budget allows it.+    # This only enlarges the set of batch sizes that can be replayed from a+    # captured graph; larger batches still fall back to eager decode.+    if (+        decode.backend not in (None, "disabled")+        and decode.max_bs is not None+        and args.tp_size == 1+        and npu_mem > 32 * 1024+    ):+        extended_cap = 192+        if args.max_running_requests is not None:+            extended_cap = min(extended_cap, args.max_running_requests)+        if extended_cap > decode.max_bs:+            decode.max_bs = extended_cap+     # NPU does not support CustomAllReduce     args.disable_custom_all_reduce = True