GLM-5.3 · Serving

S01 · Offline

Valid

Offline throughput 1dev · Implementation Optimization

1.56×PERFORMANCE RATIO
149TOOL 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 agentGLM-5.3 · 149 visible calls

InspectEditValidateExecuteBuildProfileRollbackOther
96Inspect
24Edit
10Validate
6Execute
2Profile
11Other

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 timeline91 groups · 149 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 and file and log inspection related to task requirements.

    1 call · #0001–#0001

    echo <val>ls -l -a <path> <n> > <path>head -n <n>find <path> -maxdepth <n> -name <val> -o -maxdepth <n> -name <val> <n> <args>
  2. Inspect · Source & workspace

    Requested workspace inspection related to source & workspace.

    1 call · #0002–#0002

    ls -l -a <path>
  3. Inspect · Task requirements

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

    3 calls · #0003–#0005

    Read <path>cd <path>ls -l -a <val> <val> <val> <val> <val> <path> <path>
  4. Validate · Task requirements

    Requested file and log inspection related to task requirements.

    1 call · #0006–#0006

    cd <path><command> <args>cat <val>
  5. Inspect · Device memory

    Requested runtime inspection, file and log inspection and script or workload execution related to device memory.

    1 call · #0007–#0007

    npu-smi info <n> >& <path>head -n <n>echo <flag>python3 -c <script> <n> >& <path>tail -n <n>env
    1 more command sketches
    grep -i -E <val>
  6. Inspect · Source & workspace

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

    1 call · #0008–#0008

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

    Requested file and log inspection related to runtime processes.

    1 call · #0009–#0009

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

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

    3 calls · #0010–#0012

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

    Requested file and log inspection related to source & workspace.

    3 calls · #0013–#0015

    cd <path>sed -n <val> <path>wc -l <path>cat <path>
  10. Inspect · Benchmark & validation setup

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

    4 calls · #0016–#0019

    ls <path>wc -l <path> <path>Read <path>cd <path>sed -n <val> <path>
  11. Inspect · Dependencies & build setup

    Requested script or workload execution, file and log inspection and dependency and build commands related to dependencies & build setup.

    1 call · #0020–#0020

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

    Requested file and log inspection related to source & workspace.

    1 call · #0021–#0021

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

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

    1 call · #0022–#0022

    cd <path>grep -n <val> <path>head -n <n>echo <flag>ls -l -a <path> <path> <n> >& <path>env
    1 more command sketches
    grep -i <val>
  14. Inspect · Source & workspace

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

    2 calls · #0023–#0024

    cat <path>echols -l -a <path> <n> >& <path>headcd <path>sed -n <val> <path>
  15. Validate · Benchmark & validation setup

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

    1 call · #0025–#0025

    nohup <val> -c <path> > <path> <n> >& <path>echo <val>sleep <n>tail -n <n> <path>
  16. Inspect · Source & workspace

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

    1 call · #0026–#0026

    git log --oneline <flag>ls <path>echo <flag>find <path> -path <val> -name <path>head -n <n>
  17. Inspect · Attention kernels

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

    2 calls · #0027–#0028

    ls <path>echo <flag>wc -l <path> <path> <path>tail -n <n> <path>ls -l -a <path>
  18. Validate · Benchmark & validation setup

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

    2 calls · #0029–#0030

    sleep <n>ls -l -a <path>echo <flag>cat <path> <n> > <path>tail -n <n>tail -c <n> <path>
    3 more command sketches
    echoecho <val>cat <path>
  19. Inspect · Source & workspace

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

    5 calls · #0031–#0035

    Read <path>grep -r -n <val> <path>headecho <flag>grep -n <val> <path>head -n <n>
    2 more command sketches
    ls <path>wc -l <path>
  20. Inspect · Benchmark & validation setup

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

    1 call · #0036–#0036

    cat <path>echo <val>tail -c <n> <path>echols <path>
  21. Validate · Benchmark & validation setup

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

    2 calls · #0037–#0038

    sleep <n>cat <path>echo <val>cat <path> <n> > <path>mkdir -p <path>cp <path> <path>
    2 more command sketches
    cd <path>sed -n <val> <path>
  22. Inspect · Task requirements

    Requested file and log inspection related to task requirements.

    1 call · #0039–#0039

    head -c <n> <path>echoecho <val>wc -l <path>
  23. Other · Task requirements

    Requested script or workload execution related to task requirements.

    1 call · #0040–#0040

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

    Requested code edits related to source & workspace.

    1 call · #0041–#0041

    Write <path>
  25. Other · Task requirements

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

    1 call · #0042–#0042

    chmod <val> <path>nohup <val> <path> <val> <path> <n> <n> <n> <val> > <path> <n> <args>echo <val>
  26. Edit · Source & workspace

    Requested code edits related to source & workspace.

    1 call · #0043–#0043

    Write <path>
  27. Inspect · Source & workspace

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

    2 calls · #0044–#0045

    sleep <n>tail -n <n> <path>echo <val>tail -c <n> <path>cat <path>
  28. Edit · Task requirements

    Requested script or workload execution and code edits related to task requirements.

    1 call · #0046–#0046

    nohup <val> <path> <val> <path> <n> <n> <n> <val> > <path> <n> <args>sed -i <path> <path>echo <val>
  29. Other · Batching & scheduling

    1 tool error

    Requested process termination, execution waits and script or workload execution related to batching & scheduling.

    2 calls · #0047–#0048

    pkill -f <val>sleep <n>python3 - <script>cd <path>grep -n <val> <path>python3 -c <script>
  30. Edit · Source & workspace

    Requested code edits related to source & workspace.

    1 call · #0049–#0049

    Edit <path>
  31. Inspect · Device memory

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

    1 call · #0050–#0050

    sleep <n>npu-smi info <n> >& <path>tail -n <n>nohup <val> <val> <val> <path> <val> <path> <n> <n> <n> <val> > <path> <args>echo <val>
  32. Inspect · Source & workspace

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

    1 call · #0051–#0051

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

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

    3 calls · #0052–#0054

    grep -r -n <val> <path> --include <path>head -n <n>echo <val>ls <path>grep -n <val> <path>sed -n <val> <path>
  34. Inspect · Source & workspace

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

    2 calls · #0055–#0056

    sleep <n>cat <path> <n> > <path>echo <val>grep -E <val> <path>tail -n <n>tail -n <n> <path>
  35. Other · Batching & scheduling

    Requested environment setup or inspection related to batching & scheduling.

    1 call · #0057–#0057

    cd <path>env <vars> python3 -c <script>echo <flag>echo <val>
  36. Edit · Source & workspace

    Requested code edits related to source & workspace.

    2 calls · #0058–#0059

    Edit <path>
  37. Other · Batching & scheduling

    Requested environment setup or inspection related to batching & scheduling.

    1 call · #0060–#0060

    cd <path><command> <args>export <vars>echo <val>
  38. Edit · Source & workspace

    Requested code edits related to source & workspace.

    1 call · #0061–#0061

    Edit <path>
  39. Inspect · Batching & scheduling

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

    1 call · #0062–#0062

    cd <path><command> <args>env <vars>echo <val>bash <script> <n> >& <path>head -n <n>
    2 more command sketches
    sleep <n>kill <val> <n> > <path>
  40. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0063–#0063

    cd <path>sed -n <val> <path>
  41. Other · Batching & scheduling

    Requested script or workload execution related to batching & scheduling.

    1 call · #0064–#0064

    bash -n <script>echo <val>nohup <val> <val> <val> <path> <val> <path> <n> <n> <n> <val> > <path> <args>
  42. Inspect · Source & workspace

    1 tool error

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

    2 calls · #0065–#0066

    sleep <n>cat <path> <n> > <path>echo <val>grep -E <val> <path>tail -n <n>head -n <n>
  43. Edit · Source & workspace

    Requested code edits related to source & workspace.

    2 calls · #0067–#0068

    Write <path>
  44. Other · Source & workspace

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

    1 call · #0069–#0069

    chmod <val> <path>nohup <val> <path> > <path> <n> >& <path>echo <val>
  45. Inspect · Source & workspace

    1 tool error

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

    6 calls · #0070–#0075

    Read <path>grep -n <val> <path>head -n <n>sed -n <val> <path>cat <path> <n> > <path>ls -l -a <path> <n> > <path>
    4 more command sketches
    sleep <n>cat <path>tail -n <n> <path> <n> > <path>tail -n <n> <path>
  46. Inspect · Runtime processes

    Requested file and log inspection related to runtime processes.

    1 call · #0076–#0076

    sed -n <val> <path>
  47. Other · Batching & scheduling

    Requested script or workload execution and source searches related to batching & scheduling.

    1 call · #0077–#0077

    cd <path>python3 - <script>grep -n <val> <path> <path>
  48. Other · Source & workspace

    Requested script or workload execution related to source & workspace.

    1 call · #0078–#0078

    nohup <val> <path> > <path> <n> >& <path>echo <val>
  49. Inspect · Source & workspace

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

    4 calls · #0079–#0082

    grep -n <val> <path>head -n <n>echo <val>grep -n <val> -A <n> <path>cat <path>echo <flag>
    4 more command sketches
    tail -n <n> <path> <n> > <path>ls -l -a <path>grep <val>tail -n <n> <path>
  50. Profile · Batching & scheduling

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

    1 call · #0083–#0083

    env <vars> timeout <n> <val> -c <path> <n> >& <path>tail -n <n>
  51. Inspect · Rollout generation

    Requested script or workload execution and file and log inspection related to rollout generation.

    1 call · #0084–#0084

    cd <path>python3 - <script>cat > <path> <script>nohup <val> <path> > <path> <n> >& <path>echo <val>
  52. Inspect · Batching & scheduling

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

    1 call · #0085–#0085

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

    1 tool error

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

    2 calls · #0086–#0087

    sleep <n>cat <path>wc -l <path> <path> <n> > <path>tail -n <n> <path> <n> > <path>echo <val>ls -l -a <path>
  54. Inspect · Device memory

    1 tool error

    Requested process termination, execution waits and source searches related to device memory.

    2 calls · #0088–#0089

    pkill -f <val>sleep <n>grep -n <val> <path>npu-smi info <n> >& <path>tail -n <n>
  55. Inspect · Source & workspace

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

    1 call · #0090–#0090

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

    Requested source searches related to attention kernels.

    1 call · #0091–#0091

    grep -n <val> -A <n> <path>
  57. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0092–#0092

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

    Requested code edits related to source & workspace.

    4 calls · #0093–#0096

    Edit <path>
  59. Inspect · Source & workspace

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

    1 call · #0097–#0097

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

    Requested code edits related to source & workspace.

    4 calls · #0098–#0101

    Edit <path>
  61. Inspect · Source & workspace

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

    1 call · #0102–#0102

    python3 -c <script>python3 -c <script> <n> >& <path>tail -n <n>
  62. Other · Task requirements

    Requested script or workload execution related to task requirements.

    1 call · #0103–#0103

    nohup <val> <path> <val> <path> <n> <n> <n> <val> > <path> <n> <args>echo <val>
  63. Inspect · Source & workspace

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

    1 call · #0104–#0104

    sleep <n>cat <path> <n> > <path>echo <val>tail -c <n> <path> <n> > <path>
  64. Inspect · Attention kernels

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

    2 calls · #0105–#0106

    grep -n <val> -A <n> <path>head -n <n>sed -n <val> <path>echo <val>
  65. Inspect · Source & workspace

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

    3 calls · #0107–#0109

    grep -n <val> <path>head -n <n>echo <flag>grep -n <val> <flag> <args>sed -n <val>cat > <path> <script>
    4 more command sketches
    bash -n <script>nohup <val> <path> > <path> <n> >& <path>echo <val>grep -n <val> -A <n> <path>
  66. Edit · Source & workspace

    Requested code edits related to source & workspace.

    1 call · #0110–#0110

    Edit <path>
  67. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0111–#0111

    Read <path>
  68. Inspect · Attention kernels

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

    1 call · #0112–#0112

    python3 -c <script> <n> >& <path>tail -n <n>
  69. Edit · Source & workspace

    Requested code edits related to source & workspace.

    1 call · #0113–#0113

    Edit <path>
  70. Inspect · Source & workspace

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

    3 calls · #0114–#0116

    cat <path>wc -l <path> <path> <n> > <path>sleep <n>diff < <path> <flag> <args>echo <val><command> <args>
    1 more command sketches
    cut <flag>
  71. Execute · Benchmark & validation setup

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

    1 call · #0117–#0117

    nohup <val> -c <path> > <path> <n> >& <path>echo <val>
  72. Inspect · Source & workspace

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

    2 calls · #0118–#0119

    git diff --statecho <val>git status <flag>grep -n <val> -A <n> <path>grep -n <val> -A <n> <path> <n> > <path>head -n <n>
  73. Execute · Benchmark & validation setup

    1 tool error

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

    2 calls · #0120–#0121

    sleep <n>cat <path>ls <path> <n> > <path>grep -c <val> <path> <n> > <path>ls -l -a <path>tail -n <n>
    1 more command sketches
    grep -E <val> <path> <n> > <path>
  74. Inspect · Source & workspace

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

    1 call · #0122–#0122

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

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

    2 calls · #0123–#0124

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

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

    2 calls · #0125–#0126

    sleep <n>cat <path>echo <val>cat <path> <n> > <path>python3 -m <module> <n> > <path>head -n <n>
    4 more command sketches
    ls -l -a <path>tail -n <n>tail -n <n> <path> <n> > <path>cut <flag>
  77. Inspect · Source & workspace

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

    1 call · #0127–#0127

    cat <path>python3 -c <script>
  78. Execute · Benchmark & validation setup

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

    1 call · #0128–#0128

    sleep <n>cat <path>ls <path>grep -E <val>
  79. Profile · Task requirements

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

    1 call · #0129–#0129

    cp <path> <path>nohup <val> <path> <val> <path> <n> <n> <n> <val> > <path> <n> <args>echo <val>
  80. Inspect · Source & workspace

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

    2 calls · #0130–#0131

    sleep <n>cat <path>grep <flag> <args>
  81. Inspect · Batching & scheduling

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

    1 call · #0132–#0132

    grep -E <val> <path>head -n <n>
  82. Validate · Benchmark & validation setup

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

    1 call · #0133–#0133

    nohup <val> -c <path> > <path> <n> >& <path>echo <val>
  83. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0134–#0134

    Read <path>
  84. Edit · Source & workspace

    Requested code edits related to source & workspace.

    2 calls · #0135–#0136

    Edit <path>
  85. Inspect · Source & workspace

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

    1 call · #0137–#0137

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

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

    2 calls · #0138–#0139

    cat <path> <n> > <path>tail -n <n>ls <path>grep <val>sleep <n>python3 -c <script>
    1 more command sketches
    echo
  87. Validate · Task requirements

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

    1 call · #0140–#0140

    cp <path> <path>nohup <val> <path> <val> <path> <n> <n> <n> <val> > <path> <n> <args>echo <val>
  88. Inspect · Source & workspace

    Requested repository inspection related to source & workspace.

    1 call · #0141–#0141

    git diff
  89. Edit · Source & workspace

    Requested code edits related to source & workspace.

    3 calls · #0142–#0144

    Edit <path>
  90. Inspect · Source & workspace

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

    4 calls · #0145–#0148

    cat <path> <n> > <path>python3 -c <script>sleep <n>cat <path><command> <args>tail <flag>
    6 more command sketches
    truepython3 -m <module> --check <flag> <args>tail -n <n>python3 -c <script> <n> >& <path>rm -rf <path> <path>git status <flag>
  91. Inspect · Benchmark & validation setup

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

    1 call · #0149–#0149

    git status --short <flag> <args>headecho <flag>git diff --statls <path>grep -E <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..e7d4b07d745b080b965750a93bc0ccda8d7e1bde 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@@ -15,7 +15,7 @@ from __future__ import annotations import threading from contextlib import AbstractContextManager, contextmanager from functools import partial-from typing import TYPE_CHECKING, Any, Callable, Dict, Optional+from typing import TYPE_CHECKING, Any, Callable, Dict, KeysView, Optional  import numpy as np import torch@@ -129,6 +129,11 @@ class NPUCudaGraphBackend(BaseCudaGraphBackend):     def can_run(self, forward_batch: ForwardBatch, shape_key: ShapeKey) -> bool:         return shape_key in self._graphs +    @property+    def graph_keys(self) -> KeysView[Any]:+        """Captured shape keys, for callers that plan replays ahead of time."""+        return self._graphs.keys()+     @contextmanager     def replay_session(self):         yielddiff --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..cd25a06bda98544cad7cdbe2fb2ffefa2e485d59 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@@ -22,15 +22,19 @@ capture/replay mechanics live in the backend. This class adds:   - Replay override that issues an async NPUGraph.update for     seq_lens before replay (skipped for deepseek-nsa).   - Smaller cache_loc dtype (int32 instead of int64).+  - Oversized-batch chunked replay: a decode batch wider than the+    largest captured bucket is served by several graph replays+    instead of falling back to a much slower eager forward. """  from __future__ import annotations +import copy import logging import os from contextlib import contextmanager from pathlib import Path-from typing import TYPE_CHECKING, Dict, Optional, Union+from typing import TYPE_CHECKING, Dict, Optional, Sequence, Tuple, Union  import numpy as np import torch@@ -109,6 +113,7 @@ class NPUGraphRunner(DecodeCudaGraphRunner):         self.update_attr_name = None         self.update_attr_type = None         self.model_runner = model_runner+        self._chunked_logits: Optional[torch.Tensor] = None         self._init_arch_map()         self.use_fia = get_bool_env_var("ASCEND_USE_FIA", "False")         self.if_use_v2 = any(@@ -178,6 +183,139 @@ class NPUGraphRunner(DecodeCudaGraphRunner):     def _cache_loc_dtype(self):         return torch.int32 +    # ------------------------------------------------------------------+    # Oversized-batch chunked decode replay+    # ------------------------------------------------------------------+    # A decode batch wider than the largest captured bucket normally falls+    # back to the eager runner, which on NPU costs an order of magnitude+    # more host time per step than a graph replay. Serving such a batch as+    # several bucket-sized replays keeps every request advancing one token+    # per step while staying on the captured graphs. This is a pure graph+    # *execution* strategy: capture, bucket selection and the configured+    # decode max_bs are all left exactly as the user asked for them.++    def _chunked_decode_supported(self) -> bool:+        """Chunked replay is only wired for the plain single-width decode+        path; every feature that keys graphs by something other than the+        request count (speculation, TBO, PDMux, LoRA variants, DP gather)+        opts out."""+        return (+            not self.disable_padding+            and not self.enable_two_batch_overlap+            and not self.is_encoder_decoder+            and not self.is_dllm+            and not self.ragged_verify_mode+            and not self.enable_pdmux+            and not self.require_mlp_sync+            and not self.require_gathered_buffer+            and not self.model_runner.server_args.enable_lora+            and self.model_runner.spec_algorithm.is_none()+        )++    def decode_chunk_plan(+        self, forward_batch: ForwardBatch+    ) -> Optional[Sequence[Tuple[int, int]]]:+        """Row ranges [start, end) of the bucket-sized replays, or None when+        the batch is not an oversized plain decode batch."""+        if not self._chunked_decode_supported():+            return None+        if not forward_batch.forward_mode.is_decode():+            return None+        if forward_batch.replace_embeds is not None:+            return None+        if forward_batch.spec_info is not None:+            return None+        if forward_batch.capture_hidden_mode.need_capture():+            # The chunked path returns logits only; it would silently drop+            # the hidden states the caller asked for.+            return None+        bs = forward_batch.batch_size+        if bs <= self.max_bs:+            # Within the captured range: the ordinary single-replay path+            # already owns it, and anything it rejected was rejected for a+            # reason that applies to the chunks too.+            return None+        if self._make_graph_key(self.max_bs) not in self.backend.graph_keys:+            return None+        step = self.max_bs+        return [(start, min(start + step, bs)) for start in range(0, bs, step)]++    def can_run_graph(self, forward_batch: ForwardBatch):+        return super().can_run_graph(forward_batch) or (+            self.decode_chunk_plan(forward_batch) is not None+        )++    def _chunk_view(+        self, forward_batch: ForwardBatch, start: int, end: int, seq_lens_sum: int+    ) -> ForwardBatch:+        """A row-sliced view of `forward_batch` covering requests+        [start, end); `load_batch` reads only the per-row fields below."""+        chunk = copy.copy(forward_batch)+        chunk.batch_size = end - start+        chunk.seq_lens_sum = seq_lens_sum+        # Each chunk needs its own attention-metadata plan at its own width;+        # a plan recorded for the whole batch must not be reused.+        chunk.forward_metadata_ready = False+        for name in (+            "input_ids",+            "positions",+            "out_cache_loc",+            "req_pool_indices",+            "seq_lens",+            "seq_lens_cpu",+            "rids_int",+            "bootstrap_room_ids_int",+        ):+            value = getattr(forward_batch, name)+            if value is not None:+                setattr(chunk, name, value[start:end])+        chunk.encoder_lens = None+        chunk.mrope_positions = None+        chunk.input_embeds = None+        chunk.spec_info = None+        return chunk++    def _chunked_logits_buffer(self, bs: int) -> torch.Tensor:+        """One grow-only buffer, sliced to the live batch. Keying it by batch+        size instead would hold a separate [bs, vocab] tensor for every width+        the decode batch drains through."""+        buffer = self._chunked_logits+        if buffer is None or buffer.shape[0] < bs:+            buffer = torch.empty(+                (bs, self.model_runner.model_config.vocab_size),+                dtype=self.model_runner.model_config.dtype,+                device=self.device,+            )+            self._chunked_logits = buffer+        return buffer[:bs]++    def _execute_chunked(+        self,+        forward_batch: ForwardBatch,+        plan: Sequence[Tuple[int, int]],+    ) -> LogitsProcessorOutput:+        seq_lens = forward_batch.seq_lens.cpu().tolist()+        logits = self._chunked_logits_buffer(forward_batch.batch_size)+        for start, end in plan:+            width = end - start+            chunk = self._chunk_view(+                forward_batch, start, end, sum(seq_lens[start:end])+            )+            self.load_batch(chunk)+            padded = seq_lens[start:end] + [0] * (self.bs - width)+            output = self.backend.replay_with_input_update(+                self._make_graph_key(self.bs),+                seq_lens=padded,+                attr_name=self._get_update_attr_name(),+                attr_type=self._get_update_attr_type(),+            )+            # Copy out before the next replay overwrites the shared+            # per-graph logits buffer.+            logits[start:end].copy_(+                output.next_token_logits[:width].to(logits.dtype)+            )+        return LogitsProcessorOutput(next_token_logits=logits)+     def _init_profile_context_and_memory_record(self):         output_dir = os.path.join(             os.getenv("SGLANG_TORCH_PROFILER_DIR", "/tmp"), "graph_capture_profile"@@ -211,6 +349,9 @@ class NPUGraphRunner(DecodeCudaGraphRunner):         forward_batch: ForwardBatch,         pp_proxy_tensors: Optional[PPProxyTensors] = None,     ) -> Union[LogitsProcessorOutput, PPProxyTensors]:+        plan = self.decode_chunk_plan(forward_batch)+        if plan is not None:+            return self._execute_chunked(forward_batch, plan)         if forward_batch.needs_forward_metadata_init():             self.load_batch(forward_batch, pp_proxy_tensors)         else: