GPT-5.6 Sol · Serving

S02 · Saturation

Valid

Online saturation throughput 1dev · Implementation Optimization

1.06×PERFORMANCE RATIO
151TOOL 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 · 151 visible calls

InspectEditValidateExecuteBuildProfileRollbackOther
103Inspect
7Edit
1Build
18Validate
4Execute
1Profile
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 timeline109 groups · 151 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.

    4 calls · #0001–#0004

    pwdprintenv <vars>rg --files -g <val> -g <path> -g <path>sortsed -n <val> <path>find <path> <path> <path> -type <val> -maxdepth <n> <flag>
    1 more command sketches
    wc -lc <path> <path> <path> <path> <path>
  2. Other · Source & workspace

    1 tool error

    Requested script or workload execution related to source & workspace.

    1 call · #0005–#0005

    bash <script>
  3. Execute · Task requirements

    Requested file and log inspection related to task requirements.

    1 call · #0006–#0006

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

    Requested file and log inspection related to source & workspace.

    1 call · #0007–#0007

    sed -n <val> <path>
  5. Inspect · Task requirements

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

    1 call · #0008–#0008

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

    Requested file and log inspection related to source & workspace.

    1 call · #0009–#0009

    sed -n <val> <path>
  7. Validate · Task requirements

    Requested file and log inspection related to task requirements.

    1 call · #0010–#0010

    jq <val> <path> <val> <n> > <path>truejq <path> <val>echo <val>jq <path> <path>jq -s <val> <path>
    1 more command sketches
    <command> <args>
  8. Inspect · Task requirements

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

    1 call · #0011–#0011

    printenvrg <val>sortgit status --short <flag> <args>head -n <n>sha256sum <path>
  9. Validate · Device memory

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

    1 call · #0012–#0012

    <command> <args>npu-smi info <n> > <path>head -n <n>true
  10. Validate · Batching & scheduling

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

    1 call · #0013–#0013

    ps <flag> <args>rg <val>head -n <n>ls -l <val> <val>sed -n <val><command> <args>
  11. Validate · Device memory

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

    1 call · #0014–#0014

    tail -n <n> <path>sed -n <val>npu-smi info <n> > <path>tail -n <n>true
  12. Inspect · Source & workspace

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

    1 call · #0015–#0015

    rg --files <path>rg <val>sed -n <val>rg --files <val>rg -v <path>git log <flag> <args>
  13. Inspect · Benchmark & validation setup

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

    1 call · #0016–#0016

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

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

    1 call · #0017–#0017

    export <vars>bash <script>
  15. Validate · Benchmark & validation setup

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

    1 call · #0018–#0018

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

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

    3 calls · #0019–#0021

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

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

    1 call · #0022–#0022

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

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

    1 call · #0023–#0023

    rg <flag> <args>sed -n <val>sed -n <val> <path>rg -n <val> <path> <path>head -n <n>
  19. Inspect · Source & workspace

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

    1 call · #0024–#0024

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

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

    2 calls · #0025–#0026

    rg -n <val> <path> <path> <path> <path> -g <path>sed -n <val>sed -n <val> <path>rg -n -C <n> <val>
  21. Validate · Task requirements

    Requested file and log inspection related to task requirements.

    1 call · #0027–#0027

    <command> <args>sha256sumjq -r <val> <val>jq -r <path> <val>jq -r <path> <path>head -n <n>
  22. Inspect · Source & workspace

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

    1 call · #0028–#0028

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

    Requested file and log inspection related to runtime processes.

    1 call · #0029–#0029

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

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

    4 calls · #0030–#0033

    rg -n <val> <path> <path> -g <path>sed -n <val>sed -n <val> <path>rg -n <val> <path>rg -n <val> <path> -g <path> -g <path>
  25. Inspect · Task requirements

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

    1 call · #0034–#0034

    rg -n <val> <val> <val> <path> -g <path> <n> > <path>sed -n <val>find <path> -name <val> <flag> <args>
  26. Inspect · Source & workspace

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

    1 call · #0035–#0035

    tail -c <n> <path> <n> > <path>tr <val> <val>tail -n <n>ls -l -t <val>head -n <n>
  27. Inspect · Batching & scheduling

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

    2 calls · #0036–#0037

    jq <val> <path>rg -n <val> <path> <path>sed -n <val>
  28. Inspect · Attention kernels

    Requested file and log inspection related to attention kernels.

    1 call · #0038–#0038

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

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

    2 calls · #0039–#0040

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

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

    1 call · #0041–#0041

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

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

    1 call · #0042–#0042

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

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

    1 call · #0043–#0043

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

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

    2 calls · #0044–#0045

    rg -n <val> <path> <path> <n> > <path>head -n <n>sed -n <val> <path>rg -n <val> <path>
  34. Execute · Benchmark & validation setup

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

    1 call · #0046–#0046

    cp <path> <path>sha256sum <path>jq <path> <path>
  35. Edit · Source & workspace

    Requested code edits related to source & workspace.

    1 call · #0047–#0047

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

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

    3 calls · #0048–#0050

    git diff --check <flag> <args>git diff <flag> <args>python3 - <script><command> <args>rg -n <val> <path> <path> <path> -g <path>sed -n <val>
    2 more command sketches
    rg -n <val> <path> -g <path>rg -n <val> <path> <path> -g <path>
  37. Inspect · Prefix caching

    Requested file and log inspection related to prefix caching.

    1 call · #0051–#0051

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

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

    1 call · #0052–#0052

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

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

    1 call · #0053–#0053

    export <vars>bash <script>
  40. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0054–#0054

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

    Requested script or workload execution related to attention kernels.

    2 calls · #0055–#0056

    python - <script>
  42. Inspect · Batching & scheduling

    Requested workspace inspection and file and log inspection related to batching & scheduling.

    1 call · #0057–#0057

    ls -l -t <val>head -n <n><command> <args>tail -c <n> <path> <n> > <path>tr <val> <val>tail -n <n>
  43. Inspect · Source & workspace

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

    1 call · #0058–#0058

    tail -c <n> <path>tr <val> <val>tail -n <n>stat -c <val> <path> <n> > <path>sort
  44. Validate · Task requirements

    Requested workspace file updates, environment setup or inspection and script or workload execution related to task requirements.

    1 call · #0059–#0059

    cp <path> <path>export <vars>bash <script>
  45. Inspect · Batching & scheduling

    Requested file and log inspection related to batching & scheduling.

    1 call · #0060–#0060

    <command> <args>jq -r <val> <val>tail -c <n> <path>tr <val> <val>tail -n <n>
  46. Execute · Batching & scheduling

    Requested workspace file updates and environment setup or inspection related to batching & scheduling.

    1 call · #0061–#0061

    cp <path> <path>env <vars> python3 - <script>
  47. Inspect · Source & workspace

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

    1 call · #0062–#0062

    git diff <flag> <args>sed -n <val> <path>
  48. Inspect · Batching & scheduling

    Requested workspace inspection, repository inspection and source searches related to batching & scheduling.

    1 call · #0063–#0063

    find <val> -maxdepth <n> -type <val> <flag> <args>sortgit status --short <flag> <args>rg -n <val> <val> -g <val> -g <val>tail -n <n>
  49. Inspect · Attention kernels

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

    3 calls · #0064–#0066

    rg -n <val> <path> <path> <path> -g <path>head -n <n>sed -n <val> <path>rg -n <val> <path> -g <path>rg -n <val> <path>
  50. Inspect · Speculative decoding

    Requested file and log inspection related to speculative decoding.

    1 call · #0067–#0067

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

    1 tool error

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

    1 call · #0068–#0068

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

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

    4 calls · #0069–#0072

    rg -n <val> <path> <path> -g <path>head -n <n>sed -n <val> <path>rg -n <val> <path> <val> <path> -g <path>
  53. Other · Batching & scheduling

    Requested environment setup or inspection related to batching & scheduling.

    1 call · #0073–#0073

    env <vars> python3 - <script>
  54. Profile · Task requirements

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

    1 call · #0074–#0074

    rg -n <val> <path> -g <path>head -n <n>sed -n <val> <path> <n> > <path>truesed -n <val> <path>
  55. Inspect · Benchmark & validation setup

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

    1 call · #0075–#0075

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

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

    2 calls · #0076–#0077

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

    Requested file and log inspection related to task requirements.

    1 call · #0078–#0078

    <command> <args>jq <path> <path>head -n <n>
  58. Inspect · Source & workspace

    1 tool error

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

    9 calls · #0079–#0087

    rg -n <val> <path> <path> -g <path>head -n <n>sed -n <val> <path>rg -n <val> <path> <path> <path>rg -n <val> <path>rg -n <val> <path> -g <path>
    2 more command sketches
    sed -n <val> <path> <n> > <path>true
  59. Inspect · Attention kernels

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

    1 call · #0088–#0088

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

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

    1 call · #0089–#0089

    rg -n <val> <path> -g <path>head -n <n>rg -n <val> <path> <path> -g <path>
  61. Inspect · Runtime processes

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

    1 call · #0090–#0090

    rg -n -i <val> <path> -g <path>sed -n <val> <path>
  62. Inspect · Batching & scheduling

    Requested source searches related to batching & scheduling.

    1 call · #0091–#0091

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

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

    3 calls · #0092–#0094

    rg -n <val> <path> <path> <path> -g <path>head -n <n>sed -n <val> <path>rg -n <val> <path> -g <path>
  64. Inspect · Parallelism & communication

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

    1 call · #0095–#0095

    sed -n <val> <path>envrg <val>sorthead -n <n>
  65. Inspect · Source & workspace

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

    1 call · #0096–#0096

    find <val> -path <val> -type <val>sorthead -n <n>rg -n <val> <path> <path> -g <path> -g <val> -g <val> -g <val>
  66. Other · Source & workspace

    Requested environment setup or inspection related to source & workspace.

    1 call · #0097–#0097

    env <vars> python3 - <script>
  67. Inspect · Source & workspace

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

    2 calls · #0098–#0099

    rg -n <val> <path> <path> -g <path>head -n <n>rg -n <val> <path>sed -n <val> <path>rg -n <val> <path> -g <path>
  68. Inspect · Attention kernels

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

    3 calls · #0100–#0102

    rg -n -i <val> <path>head -n <n>rg -n <val> <path>sed -n <val> <path>jq <val> <path>
  69. Other · Attention kernels

    2 tool errors

    Requested environment setup or inspection related to attention kernels.

    3 calls · #0103–#0105

    env <vars> python3 - <script>
  70. Inspect · Source & workspace

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

    1 call · #0106–#0106

    rg -n <val> <val> <path> -g <path>head -n <n>rg -n <val> <path> -g <path>
  71. Inspect · Attention kernels

    Requested file and log inspection related to attention kernels.

    1 call · #0107–#0107

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

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

    1 call · #0108–#0108

    ls <flag> <args>sed -n <val> <path>
  73. Other · Attention kernels

    Requested environment setup or inspection related to attention kernels.

    2 calls · #0109–#0110

    env <vars> python3 - <script>
  74. Inspect · Attention kernels

    Requested file and log inspection related to attention kernels.

    1 call · #0111–#0111

    sed -n <val> <path>
  75. Edit · Source & workspace

    Requested code edits related to source & workspace.

    1 call · #0112–#0112

    Apply patch <patch>
  76. Inspect · Attention kernels

    Requested file and log inspection related to attention kernels.

    1 call · #0113–#0113

    sed -n <val> <path>
  77. Edit · Attention kernels

    Requested code edits related to attention kernels.

    1 call · #0114–#0114

    Apply patch <patch>
  78. Inspect · Attention kernels

    Requested repository inspection and script or workload execution related to attention kernels.

    1 call · #0115–#0115

    git diff --checkpython3 - <script><command> <args>git diff --statgit diff <flag> <args>
  79. Validate · Task requirements

    1 tool error

    Requested environment setup or inspection related to task requirements.

    1 call · #0116–#0116

    env <vars> bash <script>
  80. Inspect · Benchmark & validation setup

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

    1 call · #0117–#0117

    tail -n <n> <path>
  81. Edit · Attention kernels

    Requested code edits related to attention kernels.

    1 call · #0118–#0118

    Apply patch <patch>
  82. Validate · Attention kernels

    Requested repository inspection, script or workload execution and environment setup or inspection related to attention kernels.

    2 calls · #0119–#0120

    git diff --checkpython3 -m <module> <script> <script> <script>env <vars> bash <script>cp <path> <path>
  83. Edit · Attention kernels

    Requested code edits related to attention kernels.

    1 call · #0121–#0121

    Apply patch <patch>
  84. Validate · Attention kernels

    Requested workspace file updates, repository inspection and script or workload execution related to attention kernels.

    1 call · #0122–#0122

    cp <path> <path>git diff --checkpython3 -m <module> <script> <script>git status --short <flag> <args>env <vars> bash <script>
  85. Inspect · Attention kernels

    Requested repository inspection related to attention kernels.

    1 call · #0123–#0123

    git diff <flag> <args>git diff --statgit diff --check
  86. Edit · Attention kernels

    Requested code edits related to attention kernels.

    1 call · #0124–#0124

    Apply patch <patch>
  87. Other · Attention kernels

    Requested environment setup or inspection related to attention kernels.

    1 call · #0125–#0125

    env <vars> python3 - <script>
  88. Inspect · Source & workspace

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

    2 calls · #0126–#0127

    rg -n <val> <path>sed -n <val> <path>
  89. Other · Attention kernels

    Requested environment setup or inspection related to attention kernels.

    1 call · #0128–#0128

    env <vars> python3 - <script>
  90. Inspect · Source & workspace

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

    1 call · #0129–#0129

    rg -n <val> <path> <path> <val> -g <path> -g <val> -g <val>head -n <n>rg -n <val> <path> -g <path>
  91. Build · Source & workspace

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

    1 call · #0130–#0130

    git status --short <flag> <args>git diff --stat <flag> <args>git diff --check <flag> <args>sed -n <val> <path>rg -n --glob <val> --glob <path> <val> <path> <n> > <path>head -n <n>
  92. Inspect · Source & workspace

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

    1 call · #0131–#0131

    git diff <flag> <args>sed -n <val> <path>rg -n <val> <path>
  93. Inspect · Task requirements

    Requested file and log inspection related to task requirements.

    1 call · #0132–#0132

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

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

    1 call · #0133–#0133

    bash <script> > <path> <n> >& <path>env <vars>sed -n <val> <path><command> <args>
  95. Other · Attention kernels

    1 tool error

    Requested environment setup or inspection related to attention kernels.

    1 call · #0134–#0134

    env <vars> python3 - <script>
  96. Inspect · Benchmark & validation setup

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

    1 call · #0135–#0135

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

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

    3 calls · #0136–#0138

    sed -n <val> <path>envsortrg <val>truerg -n <val> <val> --glob <path> --glob <path> --glob <val>
    4 more command sketches
    rg -n <val> <val> <path> --glob <path> --glob <path>head -n <n>rg -n <val> <path> <path> -g <path>git diff --numstat <flag> <args>
  98. Other · Source & workspace

    Requested environment setup or inspection related to source & workspace.

    1 call · #0139–#0139

    env <vars> bash <script>
  99. Validate · Task requirements

    1 tool error

    Requested environment setup or inspection related to task requirements.

    2 calls · #0140–#0141

    env <vars> bash <script>
  100. Inspect · Speculative decoding

    Requested file and log inspection and source searches related to speculative decoding.

    1 call · #0142–#0142

    sed -n <val> <path>rg -n <val> <path> -g <path>head -n <n>
  101. Validate · Task requirements

    Requested environment setup or inspection related to task requirements.

    1 call · #0143–#0143

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

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

    1 call · #0144–#0144

    cp <path> <path> <n> > <path>cp <path> <path>python3 -m <module> <script> <script>python3 -m <module> <val> <script> <script>python3 -m <module> <val> --check <script> <script>python3 -m <module> -q <script>
  103. Inspect · Source & workspace

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

    1 call · #0145–#0145

    command -v <val>truefind <path> -type <val> -name <val> <flag> <args>head -n <n>git diff --check <flag> <args>git status --short <flag> <args>
  104. Other · Task requirements

    Requested environment setup or inspection related to task requirements.

    1 call · #0146–#0146

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

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

    1 call · #0147–#0147

    cp <path> <path>bash <script>python3 - <script>git diff --check <flag> <args>git status --short <flag> <args>git diff --stat <flag> <args>
    4 more command sketches
    <command> <args>rg <val>truepgrep <flag> <args>
  106. Other · Runtime processes

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

    1 call · #0148–#0148

    python3 -m <module> --version <n> > <path>truepython3 -m <module> <val> <script> <script> <n> > <path>git status --short <flag> <args>python3 - <script>ps <flag> <args>
    2 more command sketches
    awk <path>sha256sum <path> <path>
  107. Inspect · Source & workspace

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

    1 call · #0149–#0149

    ls -l <path>sed -n <val> <path>
  108. Edit · Source & workspace

    Requested code edits related to source & workspace.

    1 call · #0150–#0150

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

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

    1 call · #0151–#0151

    git status --short <flag> <args>git diff --check <flag> <args>git diff <flag> <args>awk <val> <path> <path><command> <args>sed -n <val>

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/hardware_backend/npu/graph_runner/npu_cudagraph_backend.py b/python/sglang/srt/hardware_backend/npu/graph_runner/npu_cudagraph_backend.pyindex 105034c03c0fb36d35254f822b63908f5bd0a2a0..0e6b179b0e74c92c540b70ca45a5d3d07774bcbb 100644--- a/python/sglang/srt/hardware_backend/npu/graph_runner/npu_cudagraph_backend.py+++ b/python/sglang/srt/hardware_backend/npu/graph_runner/npu_cudagraph_backend.py@@ -12,7 +12,7 @@ non-NPU hosts.  from __future__ import annotations -import threading+import concurrent.futures from contextlib import AbstractContextManager, contextmanager from functools import partial from typing import TYPE_CHECKING, Any, Callable, Dict, Optional@@ -63,6 +63,15 @@ class NPUCudaGraphBackend(BaseCudaGraphBackend):         self._enable_torch_compile = getattr(             cuda_graph_runner, "enable_torch_compile", False         )+        # NPUGraph.update must overlap replay, but constructing a Python thread+        # for every generated token adds avoidable host overhead.  A dedicated+        # worker preserves that overlap and keeps its NPU device context warm.+        self._update_executor = concurrent.futures.ThreadPoolExecutor(+            max_workers=1,+            thread_name_prefix="sglang-npu-graph-update",+            initializer=self._device_module.set_device,+            initargs=(self._device_id,),+        )      @contextmanager     def capture_session(self, stream):@@ -166,17 +175,15 @@ class NPUCudaGraphBackend(BaseCudaGraphBackend):          graph = self._graphs[shape_key] -        def _update():-            self._device_module.set_device(self._device_id)-            graph.update(cpu_update_input=cpu_update_input)--        thread = threading.Thread(target=_update)-        thread.start()+        update = self._update_executor.submit(+            graph.update, cpu_update_input=cpu_update_input+        )         graph.replay()-        thread.join()+        update.result()         return self._outputs[shape_key]      def cleanup(self) -> None:+        self._update_executor.shutdown(wait=True)         self._graphs.clear()         self._outputs.clear()         self._pool = Nonediff --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..99e5ba3d835a52f2408e59f4a90a60e9aa9a84c0 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@@ -239,13 +239,18 @@ class NPUGraphRunner(DecodeCudaGraphRunner):             is_deepseek_dsa(self.model_runner.model_config.hf_config)             or is_deepseek_v4(self.model_runner.model_config.hf_config)         ):+            # ScheduleBatch already maintains an authoritative CPU mirror of+            # seq_lens.  Reading the device tensor here introduces a stream+            # synchronization on every decode step, immediately before graph+            # replay.  Keep the device fallback for hand-built ForwardBatch+            # instances that do not provide the mirror.+            seq_lens_cpu = forward_batch.seq_lens_cpu+            if seq_lens_cpu is None:+                seq_lens_cpu = forward_batch.seq_lens.cpu()+            seq_lens = seq_lens_cpu[: self.raw_bs].tolist()             if forward_batch.forward_mode.is_target_verify():-                seq_lens_cpu = forward_batch.seq_lens.cpu() + self.captured_req_width-                seq_lens = seq_lens_cpu.tolist() + [0] * (self.bs - self.raw_bs)-            else:-                seq_lens = forward_batch.seq_lens.cpu().tolist() + [0] * (-                    self.bs - self.raw_bs-                )+                seq_lens = [value + self.captured_req_width for value in seq_lens]+            seq_lens.extend([0] * (self.bs - self.raw_bs))             output = self.backend.replay_with_input_update(                 graph_key,                 seq_lens=seq_lens,