Claude Opus 5 · Serving

S07 · SGLang 8B

Valid

SGLang Qwen3-8B CodeOpt saturation 1dev · Implementation Optimization

0.97×PERFORMANCE RATIO
161TOOL 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 agentClaude Opus 5 · 161 visible calls

InspectEditValidateExecuteBuildProfileRollbackOther
102Inspect
8Edit
23Validate
24Execute
1Rollback
3Other

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 timeline90 groups · 161 calls

Scroll within this panel to view all events. Command sketches retain familiar programs and options. Values become <val> or <n>; paths, addresses and script bodies are hidden as <path>, <url> and <script>.

Main agent

  1. Inspect · Source & workspace

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

    2 calls · #0001–#0002

    echo <val>ls -l -a <path> <n> > <path>head -n <n>ls -l -a <path>
  2. 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> <n> > <path>
  3. Validate · Task requirements

    Requested file and log inspection related to task requirements.

    1 call · #0006–#0006

    cd <path><command> <args>cat <val>echo
  4. Inspect · Source & workspace

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

    8 calls · #0007–#0014

    lsecho <flag>git log --oneline <flag>python -c <script> <n> >& <path>tail -n <n>cd <path>
    4 more command sketches
    wc -l <path>grep -n <val> <path>head -n <n>Read <path>
  5. Inspect · Device memory

    Requested environment setup or inspection, source searches and runtime inspection related to device memory.

    1 call · #0015–#0015

    envgrep -i <val>sortecho <flag>npu-smi info <n> >& <path>head -n <n>
  6. Inspect · Source & workspace

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

    5 calls · #0016–#0020

    cat <path> <n> >& <path>head -n <n>echo <flag>ls -l -a <path> <n> >& <path>headbash <script> <n> >& <path>
    2 more command sketches
    tail -n <n>Read <path>
  7. Inspect · Attention kernels

    Requested dependency and build commands, file and log inspection and script or workload execution related to attention kernels.

    2 calls · #0021–#0022

    pip show <val> <n> > <path>head -n <n>echo <flag>python -c <script>ls <path>ls <path> <n> > <path>
    3 more command sketches
    grep -r -l -n <val> <path>echo <val>grep -r -n <val> <path>
  8. Validate · Benchmark & validation setup

    1 tool error

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

    3 calls · #0023–#0025

    nohup <val> <path> > <path> <n> >& <path>echo <val>cat <path>tail -n <n>python -c <script>ls -l -a <path>
    2 more command sketches
    cat <path> <n> > <path>ls -l -a <val> <n> > <path>
  9. Inspect · Benchmark & validation setup

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

    1 call · #0026–#0026

    ps <val>grep -c <val>ls -l -a <val>echo <flag>cat <path>echo
    1 more command sketches
    tail -c <n> <path>
  10. Inspect · Source & workspace

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

    1 call · #0027–#0027

    find <path> -type <val> -name <path>xargs <val> -lsort <flag>head -n <n>
  11. Inspect · Benchmark & validation setup

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

    1 call · #0028–#0028

    tail -c <n> <path>echo <val>ls <val>
  12. Validate · Benchmark & validation setup

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

    1 call · #0029–#0029

    sleep <n>tail -c <n> <path>echoecho <val>ls <val>ps <val>
    2 more command sketches
    grep <val>wc -l
  13. Inspect · Runtime processes

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

    1 call · #0030–#0030

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

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

    1 call · #0031–#0031

    ls <val>echo <val>grep -n <val> <path>tail -n <n>
  15. Validate · Benchmark & validation setup

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

    2 calls · #0032–#0033

    <command> <args>sleep <n>ls <val>echo <val>python -c <script> <n> >& <path>head -n <n>
    7 more command sketches
    mkdir -p <path>cp <path> <path>python - <script>echo <flag>grep -n <val> <path>tail -n <n>nohup <val> <path> > <path> <n> >& <path>
  16. Inspect · Attention kernels

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

    1 call · #0034–#0034

    grep -n <val> <path>head -n <n>
  17. Inspect · Benchmark & validation setup

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

    1 call · #0035–#0035

    ls <val>echo <flag>tail -c <n> <path>
  18. Inspect · Attention kernels

    Requested file and log inspection related to attention kernels.

    1 call · #0036–#0036

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

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

    1 call · #0037–#0037

    ls <val>echo <flag>grep -n <val> <path>tail -n <n>
  20. Inspect · Attention kernels

    Requested file and log inspection related to attention kernels.

    1 call · #0038–#0038

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

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

    1 call · #0039–#0039

    ls <val>echo <flag>grep -c <path> <path>grep -n <val> <path>tail -n <n>
  22. Execute · Benchmark & validation setup

    Requested execution waits, workspace inspection and source searches related to benchmark & validation setup.

    1 call · #0040–#0040

    sleep <n>ls <val>echo <flag>grep -c <path> <path>grep -n <val> <path>tail -n <n>
  23. Inspect · Batching & scheduling

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

    2 calls · #0041–#0042

    grep -n <val> <path>tail -n <n>echo <flag>ls <val>grep <val>sleep <n>
  24. Other · Source & workspace

    Requested script or workload execution related to source & workspace.

    1 call · #0043–#0043

    date -upython - <script>echo <flag>python -c <script>
  25. Inspect · Batching & scheduling

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

    2 calls · #0044–#0045

    cd <path>python -c <script> <n> > <path>head -n <n>echo <val>wc -l <path>grep -n <val> <path>
    1 more command sketches
    python -c <script>
  26. Inspect · Attention kernels

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

    4 calls · #0046–#0049

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

    Requested file and log inspection related to source & workspace.

    2 calls · #0050–#0051

    Read <path>cd <path>sed -n <val> <path>
  28. Inspect · Batching & scheduling

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

    2 calls · #0052–#0053

    cd <path>ls <val>grep -E <val>echo <flag>grep -n <val> <path>tail -n <n>
    6 more command sketches
    echo <val>grep -r -n <val> <path>head -n <n>python -c <script>sed -n <val> <path>echo <path>
  29. Inspect · Attention kernels

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

    5 calls · #0054–#0058

    cd <path>sed -n <val> <path>ls <val>grep -E <val>echo <val>grep -n <val> <path>
    1 more command sketches
    tail -n <n>
  30. Inspect · Batching & scheduling

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

    2 calls · #0059–#0060

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

    Requested source searches related to source & workspace.

    1 call · #0061–#0061

    cd <path>grep -n <val> -A <n> <path>
  32. Inspect · Batching & scheduling

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

    1 call · #0062–#0062

    cd <path>ls <val>grep -E <val>grep -n <val> <path>tail -n <n>echo <val>
    1 more command sketches
    sed -n <val> <path>
  33. Inspect · Source & workspace

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

    1 call · #0063–#0063

    cd <path>grep -n <val> <path>head -n <n>
  34. Execute · Benchmark & validation setup

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

    1 call · #0064–#0064

    cd <path>grep -r -n <val> <path> <path> <n> > <path>head -n <n>
  35. Inspect · Benchmark & validation setup

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

    1 call · #0065–#0065

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

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

    1 call · #0066–#0066

    cd <path>grep -n <val> <path>grep -n <val>head -n <n>echo <val>grep -r -n <val> <path> <n> > <path>
  37. Inspect · Benchmark & validation setup

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

    1 call · #0067–#0067

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

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

    1 call · #0068–#0068

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

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

    3 calls · #0069–#0071

    date -uecho <flag>ls -l -a <path> <n> > <path>head -n <n>echo <val>cd <val>
    8 more command sketches
    ls -l -a <val> <n> > <path>python3 -c <script>tail -n <n> <path> <n> > <path>ps <val>grep -E <val>grep -v <val>awk <val>echo <path>
  40. Inspect · Attention kernels

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

    2 calls · #0072–#0073

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

    Requested file and log inspection related to source & workspace.

    1 call · #0074–#0074

    cd <path>sed -n <val> <path>echo <val>
  42. Execute · Benchmark & validation setup

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

    1 call · #0075–#0075

    date -ucd <val>ls -l -a <val> <n> > <path>echo <val>ls -thead -n <n>
  43. Inspect · Source & workspace

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

    6 calls · #0076–#0081

    cd <path>grep -n <val> <path>sed -n <val>head -n <n>sed -n <val> <path>echo <val>
  44. Inspect · Attention kernels

    Requested file and log inspection related to attention kernels.

    1 call · #0082–#0082

    cd <path>sed -n <val> <path>
  45. Execute · Attention kernels

    Requested file and log inspection related to attention kernels.

    1 call · #0083–#0083

    date -ucd <val><command> <args>echo <val>cd <path>sed -n <val> <path>
  46. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0084–#0084

    Read <path>
  47. Edit · Source & workspace

    Requested code edits related to source & workspace.

    1 call · #0085–#0085

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

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

    2 calls · #0086–#0087

    date -ucd <val><command> <args>echo <val>cd <path>sed -n <val> <path>
    1 more command sketches
    python3 -c <script>
  49. Inspect · Batching & scheduling

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

    1 call · #0088–#0088

    cd <path>echo <path>grep -n <val> <path>sed -n <val>
  50. Inspect · Device memory

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

    6 calls · #0089–#0094

    cd <path>echo <path>sed -n <val> <path>echo <val>grep -r -n <val> <path>grep -n <val> -A <n> <path>
    3 more command sketches
    grep -n <val>head -n <n>head
  51. Inspect · Attention kernels

    Requested source searches related to attention kernels.

    1 call · #0095–#0095

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

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

    9 calls · #0096–#0104

    cd <path>grep -n <val> <path>head -n <n>grep -r -n <val> <path>headgrep -r -n <val> <path> <path> <n> > <path>
    6 more command sketches
    sed -n <val> <path>grep -r -n <val> -A <n> <path>grep -n <val>grep -r -n <val> <path> <n> > <path>grep -r -l -n <val> <path>grep -n <val> <flag> <args>
  53. Validate · Benchmark & validation setup

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

    1 call · #0105–#0105

    bash <script> > <path> <n> >& <path>echo <val>
  54. Inspect · Attention kernels

    Requested file and log inspection related to attention kernels.

    1 call · #0106–#0106

    cd <path>sed -n <val> <path>
  55. Validate · Benchmark & validation setup

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

    2 calls · #0107–#0108

    date -utail -n <n> <path> <n> > <path>echo <path>cd <path>grep -r -n <val> <path> <n> > <path>head -n <n>
    4 more command sketches
    ls <path>grep -i <val>echo <val>grep -n <val> <path>
  56. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0109–#0109

    cd <path>sed -n <val> <path>
  57. Validate · Benchmark & validation setup

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

    3 calls · #0110–#0112

    date -uls -l -a <path> <n> > <path>echo <val>tail -n <n> <path> <n> > <path>ls -l -a <path>head -n <n>
    8 more command sketches
    ps <val>grep -E <val>grep -v <val>awk <val>headls <path> <n> > <path>grep -i -E <val> <path> <n> > <path>tail -n <n>
  58. Inspect · Attention kernels

    Requested file and log inspection related to attention kernels.

    1 call · #0113–#0113

    Read <path>
  59. Edit · Attention kernels

    Requested code edits related to attention kernels.

    1 call · #0114–#0114

    Edit <path>
  60. Other · Attention kernels

    Requested script or workload execution and source searches related to attention kernels.

    1 call · #0115–#0115

    cd <path>python3 -c <script>echo <val>grep -n <val> <path>
  61. Validate · Benchmark & validation setup

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

    4 calls · #0116–#0119

    date -uls <path> <n> > <path>echo <val>tail -n <n> <path> <n> > <path><command> <args>sleep <n>
    9 more command sketches
    ls -l -a <path> <n> > <path>cat <path> <n> > <path>tail -n <n>grep -i -n -E <val> <path> <n> > <path>cd <val>ls -l -a <flag> <args>awk <val>ls -thead -n <n>
  62. Inspect · Benchmark & validation setup

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

    1 call · #0120–#0120

    cd <val>echo <path>grep -i -n -E <val> <val>tail -n <n>echoecho <val>
    1 more command sketches
    tail -n <n> <val>
  63. Validate · Benchmark & validation setup

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

    2 calls · #0121–#0122

    date -uecho <val>cat <path>echotail -n <n> <path>grep -c <path> <path>
    1 more command sketches
    grep <val> <path>
  64. Rollback · Source & workspace

    Requested source restoration and repository inspection related to source & workspace.

    1 call · #0123–#0123

    cd <path>git checkout <flag> <args>echo <val>git status --shortgit diff
  65. Validate · Benchmark & validation setup

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

    1 call · #0124–#0124

    cd <path>bash <script> > <path> <n> >& <path>echo <val>
  66. Inspect · Device memory

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

    1 call · #0125–#0125

    date -uecho <val>cat <path> <n> > <path>echotimeout <n> <val> <val> <n> >& <path>head -n <n>
  67. Validate · Benchmark & validation setup

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

    1 call · #0126–#0126

    date -u<command> <args>sleep <n>cat <path> <n> > <path>python3 -c <script> <n> > <path>echo <path>
  68. Inspect · Attention kernels

    Requested file and log inspection related to attention kernels.

    1 call · #0127–#0127

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

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

    2 calls · #0128–#0129

    cd <path>echo <val>grep -n <val> <path>sed -n <val>sed -n <val> <path>
  70. Edit · Attention kernels

    Requested code edits related to attention kernels.

    1 call · #0130–#0130

    Edit <path>
  71. Other · Source & workspace

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

    1 call · #0131–#0131

    cd <path>awk <val> <path>grep -n <val>echo <val>awk <path> <path>python3 - <script>
  72. Inspect · Source & workspace

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

    1 call · #0132–#0132

    cd <path>grep -r -n <val> <path>head
  73. Edit · Attention kernels

    Requested code edits related to attention kernels.

    1 call · #0133–#0133

    Edit <path>
  74. Inspect · Attention kernels

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

    1 call · #0134–#0134

    cd <path>python3 -c <script>echo <val>git diff --statgit diff
  75. Validate · Benchmark & validation setup

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

    2 calls · #0135–#0136

    cd <path>bash <script> > <path> <n> >& <path>echo <val>date -urm -f <path><command> <args>
    3 more command sketches
    sleep <n>cat <path> <n> > <path>python3 -c <script> <n> > <path>
  76. Execute · Benchmark & validation setup

    1 tool error

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

    4 calls · #0137–#0140

    cd <path>bash <script> > <path> <n> >& <path>echo <val>date -u<command> <args>sleep <n>
    6 more command sketches
    ls -t <path> <n> > <path>head -n <n>echo <flag>grep -E <val> <val>ls <path> <n> > <path>tail -n <n> <path> <n> > <path>
  77. Execute · Batching & scheduling

    Requested script or workload execution related to batching & scheduling.

    1 call · #0141–#0141

    date -ucd <val>python3 -c <script>
  78. Execute · Benchmark & validation setup

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

    1 call · #0142–#0142

    date -ucd <val>python3 -c <script>echo <val>tail -n <n> <path>
  79. Inspect · Source & workspace

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

    1 call · #0143–#0143

    date -ucd <path>echo <val>git <val> <val>ls -l -a <path> <n> > <path>echo <path>
    1 more command sketches
    git status --short
  80. Execute · Benchmark & validation setup

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

    2 calls · #0144–#0145

    date -uecho <val>python3 - <script>python3 -c <script>
  81. Inspect · Precision & numerical checks

    Requested script or workload execution related to precision & numerical checks.

    1 call · #0146–#0146

    cd <path>timeout <n> <val> <val> <script>
  82. Execute · Benchmark & validation setup

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

    1 call · #0147–#0147

    cd <path>bash <script> > <path> <n> >& <path>echo <val>
  83. Inspect · Device memory

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

    1 call · #0148–#0148

    ls -l -a <path> <n> > <path>echo <val>cat <path> <n> > <path>
  84. Edit · Device memory

    Requested code edits related to device memory.

    4 calls · #0149–#0152

    Write <path>
  85. Execute · Benchmark & validation setup

    1 tool error

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

    4 calls · #0153–#0156

    date -uls <path> <n> > <path>echo <val><command> <args>echo <flag>grep -E <val> <val>
    3 more command sketches
    tail -n <n> <path> <n> > <path>sleep <n>cut <flag>
  86. Execute · Batching & scheduling

    Requested script or workload execution related to batching & scheduling.

    1 call · #0157–#0157

    date -upython3 -c <script>
  87. Inspect · Device memory

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

    1 call · #0158–#0158

    date -uecho <path>ps <val>grep -E <val>grep -v <val>awk <val>
    7 more command sketches
    trueecho <val><command> <args>grep <n>git <val> <val>ls -d <path> <n> > <path>timeout <n> <val> <val> <n> > <path>
  88. Inspect · Source & workspace

    Requested repository inspection and source searches related to source & workspace.

    1 call · #0159–#0159

    git status --shortecho <flag>git diff --statgit status <flag> <args>grep <val>echo <val>
  89. Inspect · Attention kernels

    Requested repository inspection related to attention kernels.

    1 call · #0160–#0160

    git diff <flag> <args>
  90. Inspect · Source & workspace

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

    1 call · #0161–#0161

    date -uls <flag> <args>head -n <n>echo <val>head

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/attention/ascend_backend.py b/python/sglang/srt/hardware_backend/npu/attention/ascend_backend.pyindex 89e9de06db1cb0350cb55b83dbaffc15c100fff9..0de50899a695c39375c9ab8f39f5fc05da85726a 100644--- a/python/sglang/srt/hardware_backend/npu/attention/ascend_backend.py+++ b/python/sglang/srt/hardware_backend/npu/attention/ascend_backend.py@@ -430,7 +430,15 @@ class AscendAttnBackend(AttentionBackend):     def init_forward_metadata(self, forward_batch: ForwardBatch):         """Init the metadata for a forward pass."""         self.forward_metadata = ForwardMetadata()-        seq_lens_max = forward_batch.seq_lens.max()+        # Slicing req_to_token with this bound calls __index__ on it, so taking+        # the reduction on the device tensor would block the host until the+        # queued forward drains. The scheduler already keeps a host copy in+        # lockstep (ScheduleBatch.prepare_for_{extend,decode}), so reduce there+        # and keep the host running ahead. Values are identical.+        if forward_batch.seq_lens_cpu is not None:+            seq_lens_max = int(forward_batch.seq_lens_cpu.max())+        else:+            seq_lens_max = int(forward_batch.seq_lens.max())         if forward_batch.forward_mode.is_target_verify():             seq_lens_max += self.speculative_num_draft_tokens         elif (@@ -459,9 +467,22 @@ class AscendAttnBackend(AttentionBackend):             )         if forward_batch.extend_seq_lens is not None:             self.forward_metadata.extend_seq_lens = forward_batch.extend_seq_lens-            self.forward_metadata.extend_seq_lens_cpu_int = (-                forward_batch.extend_seq_lens.cpu().int()-            )+            # Same host list the device tensor was built from on the main path+            # (ForwardBatch.init_new), so build the int mirror from it instead of+            # copying back from the device. gpu_only batches leave the host list+            # unset, so keep the D2H fallback for them.+            # _pad_inputs_to_size pads the device tensor without extending the+            # host list, so require matching lengths before trusting the host.+            if forward_batch.extend_seq_lens_cpu is not None and len(+                forward_batch.extend_seq_lens_cpu+            ) == forward_batch.extend_seq_lens.shape[0]:+                self.forward_metadata.extend_seq_lens_cpu_int = torch.tensor(+                    forward_batch.extend_seq_lens_cpu, dtype=torch.int32+                )+            else:+                self.forward_metadata.extend_seq_lens_cpu_int = (+                    forward_batch.extend_seq_lens.cpu().int()+                )         if forward_batch.seq_lens is not None:             self.forward_metadata.seq_lens = forward_batch.seq_lens.int()         else: