GPT-5.6 Sol · Serving

S01 · Offline

Valid

Offline throughput 1dev · Implementation Optimization

1.42×PERFORMANCE RATIO
165TOOL 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 agentGPT-5.6 Sol · 165 visible calls

InspectEditValidateExecuteBuildProfileRollbackOther
118Inspect
10Edit
2Build
9Validate
9Execute
17Other

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 timeline111 groups · 165 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 · Task requirements

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

    2 calls · #0001–#0002

    pwdprintenv <vars>rg --files -g <val> -g <path> -g <path> <path>sed -n <val> <path>jq <path> <path>
  2. Inspect · Source & workspace

    Requested workspace inspection related to source & workspace.

    1 call · #0003–#0003

    find <val> -maxdepth <n> -type <val> <flag> <args>sort
  3. Inspect · Runtime processes

    Requested file and log inspection related to runtime processes.

    1 call · #0004–#0004

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

    Requested repository inspection related to source & workspace.

    1 call · #0005–#0005

    git status --shortgit branch <flag>git rev-parse <val>
  5. Validate · Task requirements

    Requested tool activity related to task requirements.

    1 call · #0006–#0006

    <command> <args>
  6. Other · Source & workspace

    1 tool error

    Requested script or workload execution related to source & workspace.

    1 call · #0007–#0007

    bash <script>
  7. Inspect · Parallelism & communication

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

    1 call · #0008–#0008

    envrg <val>sort
  8. Inspect · Benchmark & validation setup

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

    2 calls · #0009–#0010

    rg -n <val> <path>sed -n <val>sed -n <val> <path>
  9. Validate · Attention kernels

    1 tool error

    Requested file and log inspection related to attention kernels.

    1 call · #0011–#0011

    jq <val> <path>jq -s <val> <path><command> <args>
  10. Other · Source & workspace

    Requested environment setup or inspection related to source & workspace.

    1 call · #0012–#0012

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

    Requested file and log inspection related to source & workspace.

    5 calls · #0013–#0017

    sed -n <val> <path>tail -n <n> <path>
  12. Validate · Benchmark & validation setup

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

    2 calls · #0018–#0019

    tail -n <n> <path> <n> > <path>true
  13. Validate · Task requirements

    Requested environment setup or inspection related to task requirements.

    1 call · #0020–#0020

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

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

    1 call · #0021–#0021

    cp <flag> <args>sha256sum <path>jq <path> <path>git status --short
  15. Inspect · Attention kernels

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

    1 call · #0022–#0022

    rg --files <path> <val>rg <val>head -n <n>
  16. Inspect · Source & workspace

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

    1 call · #0023–#0023

    git log --oneline <flag> <args>git status --shortrg -n <val> <path> -g <path>head -n <n>
  17. Inspect · Attention kernels

    Requested file and log inspection related to attention kernels.

    1 call · #0024–#0024

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

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

    3 calls · #0025–#0027

    sed -n <val> <path>find <val> -maxdepth <n> -type <val> <flag> <args>sort<command> <args>tail -n <n> <val>rg -n <val> <path> <path> <path> <path> <path>
    1 more command sketches
    sed -n <val>
  19. Inspect · Batching & scheduling

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

    1 call · #0028–#0028

    rg -n <val> <path> <path> <path>head -n <n>
  20. Inspect · Source & workspace

    1 tool error

    Requested file and log inspection related to source & workspace.

    2 calls · #0029–#0030

    <command> <args>tail -n <n> <val>sed -n <val> <path>
  21. Inspect · Latency & request handling

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

    1 call · #0031–#0031

    find <val> -maxdepth <n> -type <val> <flag> <args>sorttail -n <n><command> <args>jq <val> <val>
  22. Inspect · Source & workspace

    3 tool errors

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

    9 calls · #0032–#0040

    tail -n <n> <path> <n> > <path>true<command> <args>jq <path> <path>rg --files <path>sort
    8 more command sketches
    rg -n <val> <path> -g <path>sed -n <val> <path>rg -n <val> <path> <path> <path> -g <path>head -n <n>jq <path> <val>find <val> -maxdepth <n> -type <val> <flag> <args>tail -n <n>rg -n <val> -S <path>
  23. Inspect · Runtime processes

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

    1 call · #0041–#0041

    sed -n <val> <path>rg -n <val> <path> -g <path> -g <val>
  24. Inspect · Source & workspace

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

    4 calls · #0042–#0045

    sed -n <val> <path><command> <args>jq <path> <val>find <val> -maxdepth <n> -type <val> <flag> <args>sorttail -n <n>
    3 more command sketches
    tail -n <n> <path> <n> > <path>truerg -n <val> <path>
  25. Inspect · Runtime processes

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

    1 call · #0046–#0046

    rg -n <val> <path> <path> <path> -g <path>head -n <n>
  26. Inspect · Batching & scheduling

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

    1 call · #0047–#0047

    rg -n <val> <path> -g <path>head -n <n>rg -n <val> <path> <path> -g <path>
  27. Inspect · Source & workspace

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

    2 calls · #0048–#0049

    tail -n <n> <path> <n> > <path>true<command> <args>jq <path> <path>rg -n <val> <path> -g <path>head -n <n>
  28. Inspect · Benchmark & validation setup

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

    1 call · #0050–#0050

    sed -n <val> <path>rg -n <val> <path> <path> <path> -g <path>head -n <n>
  29. Inspect · Source & workspace

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

    1 call · #0051–#0051

    rg -n <val> <path> <path>sed -n <val> <path>
  30. Inspect · Runtime processes

    Requested file and log inspection related to runtime processes.

    1 call · #0052–#0052

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

    1 tool error

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

    7 calls · #0053–#0059

    <command> <args>jq <path> <path>find <val> -maxdepth <n> -type <val> <flag> <args>sorttail -n <n>sed -n <val> <path>
    6 more command sketches
    rg -n <val> <path> <path> -g <path> -g <path>head -n <n>rg -n <val> <path>tail -n <n> <path> <n> > <path>truerg -n <val> <path> -g <path>
  32. Other · Task requirements

    Requested environment setup or inspection related to task requirements.

    1 call · #0060–#0060

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

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

    1 call · #0061–#0061

    jq <val> <val>python3 - <script>
  34. Execute · Latency & request handling

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

    1 call · #0062–#0062

    cp <flag> <args>sha256sum <path>jq <val> <path>git status --short
  35. Other · Batching & scheduling

    Requested script or workload execution related to batching & scheduling.

    3 calls · #0063–#0065

    python3 -m <module> <flag> <args>
  36. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0066–#0066

    sed -n <val> <path>
  37. Inspect · Batching & scheduling

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

    1 call · #0067–#0067

    rg -n <val> <path> <path> <path>head -n <n>
  38. Inspect · Source & workspace

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

    3 calls · #0068–#0070

    sed -n <val> <path>rg -n <val> <path> <path>head -n <n>rg -n <val> <path>
  39. Inspect · Batching & scheduling

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

    2 calls · #0071–#0072

    rg -n <val> <path> <path>head -n <n>sed -n <val> <path>rg -n <val> <path>
  40. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0073–#0073

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

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

    1 call · #0074–#0074

    rg -n <val> <path> <path> <path>head -n <n>sed -n <val> <path>
  42. Inspect · Runtime processes

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

    2 calls · #0075–#0076

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

    Requested file and log inspection related to source & workspace.

    1 call · #0077–#0077

    <command> <args>sed -n <val>
  44. Edit · Source & workspace

    Requested code edits related to source & workspace.

    1 call · #0078–#0078

    Apply patch <patch>
  45. Inspect · Source & workspace

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

    1 call · #0079–#0079

    git diff --checkgit diff <flag> <args>python -m <module> <script>
  46. Other · Batching & scheduling

    1 tool error

    Requested script or workload execution related to batching & scheduling.

    1 call · #0080–#0080

    <command> <args>python3 -m <module> <flag> <args>
  47. Inspect · Source & workspace

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

    1 call · #0081–#0081

    envrg <val>sortpwdls -l -a <val> <n> >& <path>head
  48. Other · Batching & scheduling

    Requested script or workload execution related to batching & scheduling.

    1 call · #0082–#0082

    python3 -m <module> <flag> <args>
  49. Edit · Source & workspace

    Requested code edits related to source & workspace.

    1 call · #0083–#0083

    Apply patch <patch>
  50. Inspect · Source & workspace

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

    1 call · #0084–#0084

    rg --files <path>rg <val>head -n <n>rg -n <val> <val> <path> <n> > <path>
  51. Inspect · Benchmark & validation setup

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

    2 calls · #0085–#0086

    ps <flag> <args>rg <val>head -n <n>find <val> -maxdepth <n> -type <val> <flag> <args>sorttail -n <n>
    1 more command sketches
    tail -n <n> <path>
  52. Inspect · Task requirements

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

    1 call · #0087–#0087

    sed -n <val> <path>find <path> -maxdepth <n> -type <val> <flag> <args>sort
  53. Inspect · Benchmark & validation setup

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

    1 call · #0088–#0088

    rg -n <val> <path>tail -n <n>
  54. Validate · Task requirements

    Requested environment setup or inspection related to task requirements.

    1 call · #0089–#0089

    env <vars> bash <script>tee <path>
  55. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0090–#0090

    sed -n <val> <path>
  56. Inspect · Benchmark & validation setup

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

    2 calls · #0091–#0092

    rg -n <val> <path>head -n <n>sed -n <val> <path>
  57. Other · Task requirements

    Requested script or workload execution related to task requirements.

    1 call · #0093–#0093

    python - <script>
  58. Execute · Rollout generation

    1 tool error

    Requested script or workload execution related to rollout generation.

    1 call · #0094–#0094

    python - <script>
  59. Inspect · Runtime processes

    Requested script or workload execution, runtime inspection and source searches related to runtime processes.

    1 call · #0095–#0095

    bash <script>ps <flag> <args>rg <val>true
  60. Edit · Source & workspace

    Requested code edits related to source & workspace.

    1 call · #0096–#0096

    Apply patch <patch>
  61. Other · Source & workspace

    Requested script or workload execution related to source & workspace.

    1 call · #0097–#0097

    python <script>
  62. Edit · Source & workspace

    Requested code edits related to source & workspace.

    1 call · #0098–#0098

    Apply patch <patch>
  63. Inspect · Source & workspace

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

    1 call · #0099–#0099

    rg -n <val> <path> <path> <path>head -n <n>rg -n <val> <path>
  64. Edit · Source & workspace

    Requested code edits related to source & workspace.

    1 call · #0100–#0100

    Apply patch <patch>
  65. Inspect · Source & workspace

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

    1 call · #0101–#0101

    <command> <args>truegit diff --checkpython -m <module> <script>
  66. Other · Source & workspace

    Requested script or workload execution related to source & workspace.

    1 call · #0102–#0102

    python -m <module> --check <script> <n> >& <path>truepython -m <module> <flag> <args>
  67. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0103–#0103

    <command> <args>sed -n <val>
  68. Edit · Source & workspace

    Requested code edits related to source & workspace.

    1 call · #0104–#0104

    Apply patch <patch>
  69. Inspect · Benchmark & validation setup

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

    1 call · #0105–#0105

    ps <flag> <args>rg <val>head -n <n>find <val> -maxdepth <n> -type <val> <flag> <args>sort
  70. Inspect · Source & workspace

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

    2 calls · #0106–#0107

    tail -n <n> <path>ls -l <path> <n> > <path>truesed -n <path>
  71. Inspect · Batching & scheduling

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

    1 call · #0108–#0108

    ps <flag> <args>rg <val>head -n <n>tail -n <n> <path>
  72. Execute · Benchmark & validation setup

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

    1 call · #0109–#0109

    <command> <args>cat <val>ps <flag> <args>rg <val>head -n <n>
  73. Inspect · Source & workspace

    1 tool error

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

    2 calls · #0110–#0111

    tail -n <n> <path>ls -l -a <path> <n> >& <path>date -u <val>ps -p <val> -o <val>ls -l <path> <n> > <path>tail -n <n>
  74. Inspect · Device memory

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

    1 call · #0112–#0112

    npu-smi info <n> >& <path>head -n <n>stat -c <val> <path>
  75. Inspect · Source & workspace

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

    2 calls · #0113–#0114

    command -v <val>truetimeout <n> <val> -p <n> -f <flag> <args>head -n <n>timeout <n> <val> <val> <flag> <args>
  76. Inspect · Device memory

    Requested execution waits, runtime inspection and file and log inspection related to device memory.

    1 call · #0115–#0115

    sleep <n>npu-smi infosed -n <val><command> <args>head -n <n>tail -n <n> <path>
  77. Execute · Task requirements

    1 tool error

    Requested environment setup or inspection related to task requirements.

    1 call · #0116–#0116

    env <vars> bash <script>tee <path>
  78. Inspect · Source & workspace

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

    1 call · #0117–#0117

    bash <script>ps <flag> <args>rg <val>true
  79. Edit · Source & workspace

    Requested code edits related to source & workspace.

    1 call · #0118–#0118

    Apply patch <patch>
  80. Other · Batching & scheduling

    Requested script or workload execution related to batching & scheduling.

    1 call · #0119–#0119

    python -m <module> <flag> <args>
  81. Edit · Source & workspace

    Requested code edits related to source & workspace.

    1 call · #0120–#0120

    Apply patch <patch>
  82. Inspect · Source & workspace

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

    4 calls · #0121–#0124

    sed -n <val> <path>git status --shortgit diff --statgit diff --checkgit diff <flag> <args>sed -n <val>
    7 more command sketches
    rg -n <val> <val> <val> <path> <path> <n> > <path>head -n <n>find <path> -type <val> -name <val> <n> > <path>headcommand -v <val>truels -d <path> <n> > <path>
  83. Other · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0125–#0125

    awk <val> <path>
  84. Execute · Benchmark & validation setup

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

    1 call · #0126–#0126

    date <val>ps <flag> <args>rg <val>head -n <n>find <val> -maxdepth <n> -type <val> <flag> <args>sort
    1 more command sketches
    tail -n <n>
  85. Inspect · Source & workspace

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

    4 calls · #0127–#0130

    tail -n <n> <path>rg -o <val> <path>tail -n <n>ps <flag> <args>rg <val>head -n <n>
    3 more command sketches
    stat -c <val> <path>tail -c <n> <path>tr <val> <val>
  86. Execute · Benchmark & validation setup

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

    1 call · #0131–#0131

    tail -c <n> <path>tr <val> <val>rg <val>tail -n <n>ls -l <path> <n> > <path>true
  87. Inspect · Benchmark & validation setup

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

    1 call · #0132–#0132

    cat <path>ps <flag> <args>rg <val>head -n <n>
  88. Inspect · Source & workspace

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

    5 calls · #0133–#0137

    date <val><command> <args>cat <val>ps <flag> <args>rg <val>head -n <n>
    8 more command sketches
    stat -c <val> <path> <n> > <path>tail -c <n> <path> <n> > <path>tr <val> <val>tail -n <n>test -f <path>cat <path>tail -c <n> <path>stat -c <val> <path>
  89. Execute · Task requirements

    Requested environment setup or inspection related to task requirements.

    1 call · #0138–#0138

    env <vars> bash <script>tee <path>
  90. Inspect · Source & workspace

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

    1 call · #0139–#0139

    date <val>test -f <path>cat <path>ps <flag> <args>rg <val>head -n <n>
  91. Edit · Source & workspace

    Requested code edits related to source & workspace.

    1 call · #0140–#0140

    Apply patch <patch>
  92. Inspect · Source & workspace

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

    3 calls · #0141–#0143

    rg -n <val> <path>head -n <n>sed -n <val> <path>
  93. Edit · Source & workspace

    Requested code edits related to source & workspace.

    1 call · #0144–#0144

    Apply patch <patch>
  94. Build · Source & workspace

    Requested script or workload execution related to source & workspace.

    1 call · #0145–#0145

    bash <script>tee <path>
  95. Inspect · Task requirements

    Requested file and log inspection and source searches related to task requirements.

    1 call · #0146–#0146

    sed -n <val> <path>rg -n <val> <path> <path> <path> <path>head -n <n>
  96. Build · Source & workspace

    Requested environment setup or inspection related to source & workspace.

    1 call · #0147–#0147

    <command> <args>env <vars> bash <script>tee <path>
  97. Inspect · Source & workspace

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

    1 call · #0148–#0148

    python -m <module> <script>git diff --checkawk <val> <path>
  98. Inspect · Benchmark & validation setup

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

    1 call · #0149–#0149

    tail -c <n> <path>tr <val> <val>rg <val>tail -n <n>
  99. Validate · Task requirements

    Requested environment setup or inspection related to task requirements.

    1 call · #0150–#0150

    env <vars> bash <script>tee <path>
  100. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0151–#0151

    sed -n <val> <path>
  101. Execute · Benchmark & validation setup

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

    1 call · #0152–#0152

    date <val>ps <flag> <args>rg <val>head -n <n>stat -c <val> <path> <n> > <path>
  102. Inspect · Source & workspace

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

    3 calls · #0153–#0155

    date <val>tail -c <n> <path>tr <val> <val>rg <val>tail -n <n>cat <path>
    3 more command sketches
    test -f <path>ps <flag> <args>head -n <n>
  103. Other · Source & workspace

    Requested script or workload execution related to source & workspace.

    1 call · #0156–#0156

    python - <script>
  104. Inspect · Source & workspace

    1 tool error

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

    2 calls · #0157–#0158

    date <val>tail -c <n> <path>tr <val> <val>rg <val>tail -n <n>test -f <path>
    4 more command sketches
    cat <path>cat <path> <n> > <path>ps <flag> <args>head -n <n>
  105. Execute · Task requirements

    Requested environment setup or inspection related to task requirements.

    1 call · #0159–#0159

    env <vars> bash <script>tee <path>
  106. Inspect · Source & workspace

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

    1 call · #0160–#0160

    date <val>test -f <path>cat <path>ps <flag> <args>rg <val>head -n <n>
  107. Other · Source & workspace

    Requested script or workload execution related to source & workspace.

    1 call · #0161–#0161

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

    Requested script or workload execution, repository inspection and runtime inspection related to benchmark & validation setup.

    1 call · #0162–#0162

    <command> <args>python -m <module> <script>git diff --checkgit status --short <flag> <args>python - <script>ps <flag> <args>
    2 more command sketches
    rg <val>true
  109. Other · Batching & scheduling

    Requested script or workload execution related to batching & scheduling.

    1 call · #0163–#0163

    python - <script>
  110. Inspect · Source & workspace

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

    1 call · #0164–#0164

    git diff --statgit diff <flag> <args>sed -n <val>
  111. Other · Source & workspace

    Requested script or workload execution related to source & workspace.

    1 call · #0165–#0165

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

Base commit: 340db9201005fc64635bb25db1d2538f955761c3

diff --git a/python/sglang/srt/hardware_backend/npu/graph_runner/npu_graph_runner.py b/python/sglang/srt/hardware_backend/npu/graph_runner/npu_graph_runner.pyindex b82c973bc340c072ea79877ef4a0d183bd6af32d..5dc7ff1febea2038453288b8d17d268ab3257333 100644--- a/python/sglang/srt/hardware_backend/npu/graph_runner/npu_graph_runner.py+++ b/python/sglang/srt/hardware_backend/npu/graph_runner/npu_graph_runner.py@@ -21,6 +21,8 @@ capture/replay mechanics live in the backend. This class adds:   - Profile context override (NPU profiler emits to disk, not in-mem).   - Replay override that issues an async NPUGraph.update for     seq_lens before replay (skipped for deepseek-nsa).+  - Chunked replay for feature-free decode batches larger than the+    configured maximum graph shape.   - Smaller cache_loc dtype (int32 instead of int64). """ @@ -29,6 +31,7 @@ from __future__ import annotations import logging import os from contextlib import contextmanager+from dataclasses import replace from pathlib import Path from typing import TYPE_CHECKING, Dict, Optional, Union @@ -58,6 +61,8 @@ if is_npu:  logger = logging.getLogger(__name__) +_MAX_CHUNKED_DECODE_GRAPH_REPLAYS = 4+ if TYPE_CHECKING:     from sglang.srt.model_executor.model_runner import ModelRunner @@ -116,6 +121,7 @@ class NPUGraphRunner(DecodeCudaGraphRunner):             in ("MiMoV2ForCausalLM", "MiMoV2FlashForCausalLM", "Step3p5ForCausalLM")             for arch in (model_runner.model_config.hf_config.architectures or [])         )+        self._chunked_logits_buffer = None      def _init_arch_map(self):         if self.is_dllm:@@ -206,10 +212,195 @@ class NPUGraphRunner(DecodeCudaGraphRunner):         # for NPU, profile data will be saved to disk for further analysis.         pass +    def can_run_graph(self, forward_batch: ForwardBatch):+        if super().can_run_graph(forward_batch):+            return True+        return self._can_run_chunked_decode_graph(forward_batch)++    def _can_run_chunked_decode_graph(self, forward_batch: ForwardBatch) -> bool:+        """Whether a large plain-decode batch can use several graph replays.++        NPU graph capture is comparatively expensive, so deployments commonly+        capture a conservative maximum batch size.  A larger decode batch used+        to fall back to eager execution even though requests in a plain decode+        step are independent.  Keep the configured capture limit intact and+        replay the captured graph over request chunks instead.++        Start with the deliberately narrow, feature-free case.  More involved+        modes carry cross-request metadata whose slicing needs a mode-specific+        implementation and must continue to use the eager fallback.+        """+        return (+            forward_batch.batch_size > self.max_bs+            and forward_batch.batch_size+            <= self.max_bs * _MAX_CHUNKED_DECODE_GRAPH_REPLAYS+            and forward_batch.forward_mode.is_decode()+            and self.captured_req_width == 1+            and self.model_runner.spec_algorithm.is_none()+            and self.dp_size == 1+            and self.pp_size == 1+            and not self.require_mlp_sync+            and not self.enable_two_batch_overlap+            and not self.enable_pdmux+            and not self.is_encoder_decoder+            and not self.is_dllm+            and not self.model_runner.server_args.enable_lora+            and not self.use_ngram_embedding+            and not forward_batch.return_logprob+            and not forward_batch.return_hidden_states_before_norm+            and (+                forward_batch.capture_hidden_mode is None+                or not forward_batch.capture_hidden_mode.need_capture()+            )+            and forward_batch.input_ids is not None+            and forward_batch.input_ids.numel() == forward_batch.batch_size+            and forward_batch.req_pool_indices is not None+            and forward_batch.req_pool_indices.numel() == forward_batch.batch_size+            and forward_batch.seq_lens is not None+            and forward_batch.seq_lens.numel() == forward_batch.batch_size+            and forward_batch.out_cache_loc is not None+            and forward_batch.out_cache_loc.numel() == forward_batch.batch_size+            and forward_batch.positions is not None+            and forward_batch.positions.numel() == forward_batch.batch_size+            and forward_batch.seq_lens_cpu is not None+            and len(forward_batch.seq_lens_cpu) == forward_batch.batch_size+            and forward_batch.out_cache_loc_dsv4 is None+            and forward_batch.input_embeds is None+            and forward_batch.replace_embeds is None+            and forward_batch.replace_positions is None+            and forward_batch.token_type_ids is None+            and (+                not forward_batch.mm_inputs+                or all(item is None for item in forward_batch.mm_inputs)+            )+            and forward_batch.mm_input_embeds is None+            and forward_batch.mrope_positions is None+            and forward_batch.mamba_track_indices is None+            and forward_batch.mamba_track_mask is None+            and forward_batch.mamba_track_seqlens is None+            and forward_batch.mamba_cow_src_indices is None+            and forward_batch.mamba_cow_dst_indices is None+            and forward_batch.mamba_clear_indices is None+            and forward_batch.attn_cp_metadata is None+            and forward_batch.attn_dcp_metadata is None+            and forward_batch.dcp_kv_mask is None+            and forward_batch.req_all_ids_flat is None+            and forward_batch.req_all_ids_lens is None+            and forward_batch.rids_int is None+            and forward_batch.bootstrap_room_ids_int is None+            and forward_batch.cross_attention_custom_mask is None+            and forward_batch.minimax_m3_precached_sparse_layers is None+            and (+                forward_batch.sampling_info is None+                or getattr(forward_batch.sampling_info, "grammars", None) is None+            )+            and not forward_batch.forward_metadata_ready+        )++    @staticmethod+    def _slice_optional_tensor(value, start: int, end: int):+        return None if value is None else value[start:end]++    @staticmethod+    def _slice_optional_list(value, start: int, end: int):+        return None if value is None else value[start:end]++    def _slice_plain_decode_batch(+        self, forward_batch: ForwardBatch, start: int, end: int+    ) -> ForwardBatch:+        seq_lens_cpu = forward_batch.seq_lens_cpu[start:end]+        return replace(+            forward_batch,+            batch_size=end - start,+            input_ids=forward_batch.input_ids[start:end],+            req_pool_indices=forward_batch.req_pool_indices[start:end],+            seq_lens=forward_batch.seq_lens[start:end],+            out_cache_loc=forward_batch.out_cache_loc[start:end],+            seq_lens_sum=int(seq_lens_cpu.sum()),+            seq_lens_cpu=seq_lens_cpu,+            orig_seq_lens=self._slice_optional_tensor(+                forward_batch.orig_seq_lens, start, end+            ),+            positions=forward_batch.positions[start:end],+            mm_inputs=self._slice_optional_list(forward_batch.mm_inputs, start, end),+            lora_ids=self._slice_optional_list(forward_batch.lora_ids, start, end),+            rids=self._slice_optional_list(forward_batch.rids, start, end),+        )++    def _copy_chunk_output(+        self,+        buffer_name: str,+        source: Optional[torch.Tensor],+        start: int,+        end: int,+        total: int,+    ) -> Optional[torch.Tensor]:+        if source is None:+            return None++        buffer = getattr(self, buffer_name)+        required_shape = (total, *source.shape[1:])+        if (+            buffer is None+            or buffer.shape[0] < total+            or buffer.shape[1:] != source.shape[1:]+            or buffer.dtype != source.dtype+            or buffer.device != source.device+        ):+            buffer = torch.empty(+                required_shape, dtype=source.dtype, device=source.device+            )+            setattr(self, buffer_name, buffer)+        buffer[start:end].copy_(source)+        return buffer[:total]++    def _execute_chunked_decode(+        self, forward_batch: ForwardBatch+    ) -> LogitsProcessorOutput:+        total = forward_batch.batch_size+        combined_logits = None++        for start in range(0, total, self.max_bs):+            end = min(start + self.max_bs, total)+            chunk = self._slice_plain_decode_batch(forward_batch, start, end)+            output = self._execute_one(chunk)+            if not isinstance(output, LogitsProcessorOutput):+                raise RuntimeError(+                    "Plain decode graph replay unexpectedly returned pipeline tensors"+                )+            combined_logits = self._copy_chunk_output(+                "_chunked_logits_buffer",+                output.next_token_logits,+                start,+                end,+                total,+            )+            if output.hidden_states is not None:+                raise RuntimeError(+                    "Plain decode graph replay unexpectedly returned hidden states"+                )++        return LogitsProcessorOutput(next_token_logits=combined_logits)+     def execute(         self,         forward_batch: ForwardBatch,         pp_proxy_tensors: Optional[PPProxyTensors] = None,+    ) -> Union[LogitsProcessorOutput, PPProxyTensors]:+        if forward_batch.batch_size > self.max_bs:+            if pp_proxy_tensors is not None or not self._can_run_chunked_decode_graph(+                forward_batch+            ):+                raise RuntimeError(+                    "An unsupported oversized batch reached the NPU graph runner"+                )+            return self._execute_chunked_decode(forward_batch)+        return self._execute_one(forward_batch, pp_proxy_tensors)++    def _execute_one(+        self,+        forward_batch: ForwardBatch,+        pp_proxy_tensors: Optional[PPProxyTensors] = None,     ) -> Union[LogitsProcessorOutput, PPProxyTensors]:         if forward_batch.needs_forward_metadata_init():             self.load_batch(forward_batch, pp_proxy_tensors)