Inspect · Source & workspace
Requested workspace inspection related to source & workspace.
1 call · #0001–#0001
echo <val>ls -l -a <val>Gemini 3.7 Flash · Serving
Online TTFT 1dev · Implementation Optimization
01 / PROCESS MAP
Each row shows one agent’s tool events in its own recorded order. Colors show broad activities; bar widths do not represent duration.
Main agentGemini 3.7 Flash · 458 visible calls
02 / EVENT SEQUENCE
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.
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>.
Requested workspace inspection related to source & workspace.
1 call · #0001–#0001
echo <val>ls -l -a <val>Requested file and log inspection related to task requirements.
2 calls · #0002–#0003
Read <path>Requested file and log inspection related to runtime processes.
1 call · #0004–#0004
Read <path>Requested file and log inspection related to source & workspace.
3 calls · #0005–#0007
Read <path>Requested file and log inspection related to benchmark & validation setup.
1 call · #0008–#0008
Read <path>Requested environment setup or inspection, source searches and script or workload execution related to source & workspace.
2 calls · #0009–#0010
envgrep <val>bash <script>Requested source searches and file and log inspection related to source & workspace.
4 calls · #0011–#0014
Search <pattern> <path>Read <path>Requested environment setup or inspection related to source & workspace.
1 call · #0015–#0015
env <vars> bash <script>Requested environment setup or inspection related to benchmark & validation setup.
1 call · #0016–#0016
env <vars> bash <script>Requested task coordination related to source & workspace.
1 call · #0017–#0017
Manage task <task>Requested file and log inspection related to source & workspace.
2 calls · #0018–#0019
Read <path>Requested file and log inspection and source searches related to benchmark & validation setup.
2 calls · #0020–#0021
Read <path>Search <pattern> <path>Requested file and log inspection related to source & workspace.
1 call · #0022–#0022
Read <path>Requested environment setup or inspection related to benchmark & validation setup.
1 call · #0023–#0023
env <vars> bash <script>Requested file and log inspection related to task requirements.
2 calls · #0024–#0025
Read <path>Requested task coordination related to source & workspace.
1 call · #0026–#0026
Manage task <task>Requested environment setup or inspection related to benchmark & validation setup.
1 call · #0027–#0027
env <vars> bash <script>Requested workspace inspection related to source & workspace.
1 call · #0028–#0028
List <path>Requested source searches related to benchmark & validation setup.
1 call · #0029–#0029
Search <pattern> <path>Requested file and log inspection, source searches and workspace inspection related to source & workspace.
9 calls · #0030–#0038
Read <path>Search <pattern> <path>List <path>Requested file and log inspection related to benchmark & validation setup.
1 call · #0039–#0039
Read <path>Requested file and log inspection and source searches related to source & workspace.
5 calls · #0040–#0044
Read <path>Search <pattern> <path>Requested source searches related to benchmark & validation setup.
1 call · #0045–#0045
Search <pattern> <path>Requested file and log inspection and source searches related to source & workspace.
5 calls · #0046–#0050
Read <path>Search <pattern> <path>Requested script or workload execution related to source & workspace.
2 calls · #0051–#0052
python3 -c <script>Requested file and log inspection and source searches related to source & workspace.
5 calls · #0053–#0057
Read <path>Search <pattern> <path>Requested source searches and file and log inspection related to attention kernels.
3 calls · #0058–#0060
Search <pattern> <path>Read <path>Requested workspace inspection, file and log inspection and source searches related to source & workspace.
17 calls · #0061–#0077
List <path>Read <path>Search <pattern> <path>Requested source searches and file and log inspection related to attention kernels.
9 calls · #0078–#0086
Search <pattern> <path>Read <path>Requested workspace inspection related to source & workspace.
1 call · #0087–#0087
List <path>Requested source searches and file and log inspection related to attention kernels.
4 calls · #0088–#0091
Search <pattern> <path>Read <path>Requested workspace inspection related to source & workspace.
1 call · #0092–#0092
List <path>Requested file and log inspection related to runtime processes.
1 call · #0093–#0093
Read <path>Requested source searches and file and log inspection related to source & workspace.
2 calls · #0094–#0095
Search <pattern> <path>Read <path>Requested task coordination related to source & workspace.
1 call · #0096–#0096
Manage task <task>Requested environment setup or inspection related to benchmark & validation setup.
1 call · #0097–#0097
env <vars> bash <script>Requested file and log inspection related to task requirements.
1 call · #0098–#0098
Read <path>Requested source searches and file and log inspection related to runtime processes.
2 calls · #0099–#0100
Search <pattern> <path>Read <path>Requested source searches and file and log inspection related to source & workspace.
5 calls · #0101–#0105
Search <pattern> <path>Read <path>Requested source searches related to batching & scheduling.
1 call · #0106–#0106
Search <pattern> <path>Requested file and log inspection related to source & workspace.
1 call · #0107–#0107
Read <path>Requested source searches and file and log inspection related to batching & scheduling.
7 calls · #0108–#0114
Search <pattern> <path>Read <path>Requested source searches and file and log inspection related to source & workspace.
3 calls · #0115–#0117
Search <pattern> <path>Read <path>Requested source searches and file and log inspection related to batching & scheduling.
6 calls · #0118–#0123
Search <pattern> <path>Read <path>Requested task coordination related to source & workspace.
1 call · #0124–#0124
Manage task <task>Requested file and log inspection and source searches related to source & workspace.
6 calls · #0125–#0130
Read <path>Search <pattern> <path>Requested source searches related to attention kernels.
1 call · #0131–#0131
Search <pattern> <path>Requested source searches and file and log inspection related to source & workspace.
7 calls · #0132–#0138
Search <pattern> <path>Read <path>Requested task coordination related to source & workspace.
1 call · #0139–#0139
Manage task <task>Requested source searches and file and log inspection related to attention kernels.
3 calls · #0140–#0142
Search <pattern> <path>Read <path>Requested task coordination related to source & workspace.
1 call · #0143–#0143
Manage task <task>Requested file and log inspection related to source & workspace.
3 calls · #0144–#0146
Read <path>Requested task coordination related to source & workspace.
1 call · #0147–#0147
Manage task <task>Requested file and log inspection and source searches related to source & workspace.
3 calls · #0148–#0150
Read <path>Search <pattern> <path>Requested source searches and file and log inspection related to batching & scheduling.
3 calls · #0151–#0153
Search <pattern> <path>Read <path>Requested source searches and file and log inspection related to source & workspace.
2 calls · #0154–#0155
Search <pattern> <path>Read <path>Requested source searches and file and log inspection related to attention kernels.
2 calls · #0156–#0157
Search <pattern> <path>Read <path>Requested source searches related to source & workspace.
2 calls · #0158–#0159
Search <pattern> <path>Requested file and log inspection related to device memory.
1 call · #0160–#0160
Read <path>Requested source searches and file and log inspection related to attention kernels.
2 calls · #0161–#0162
Search <pattern> <path>Read <path>Requested source searches related to batching & scheduling.
1 call · #0163–#0163
Search <pattern> <path>Requested file and log inspection related to source & workspace.
2 calls · #0164–#0165
Read <path>Requested source searches and file and log inspection related to batching & scheduling.
4 calls · #0166–#0169
Search <pattern> <path>Read <path>Requested file and log inspection related to dependencies & build setup.
1 call · #0170–#0170
Read <path>Requested source searches related to batching & scheduling.
2 calls · #0171–#0172
Search <pattern> <path>Requested file and log inspection related to runtime processes.
2 calls · #0173–#0174
Read <path>Requested source searches and file and log inspection related to source & workspace.
3 calls · #0175–#0177
Search <pattern> <path>Read <path>Requested source searches and file and log inspection related to runtime processes.
3 calls · #0178–#0180
Search <pattern> <path>Read <path>Requested source searches and file and log inspection related to batching & scheduling.
9 calls · #0181–#0189
Search <pattern> <path>Read <path>Requested file and log inspection and source searches related to source & workspace.
6 calls · #0190–#0195
Read <path>Search <pattern> <path>Requested file and log inspection related to batching & scheduling.
1 call · #0196–#0196
Read <path>Requested file and log inspection related to source & workspace.
3 calls · #0197–#0199
Read <path>Requested file and log inspection and source searches related to batching & scheduling.
7 calls · #0200–#0206
Read <path>Search <pattern> <path>Requested file and log inspection and source searches related to attention kernels.
6 calls · #0207–#0212
Read <path>Search <pattern> <path>Requested file and log inspection and source searches related to source & workspace.
5 calls · #0213–#0217
Read <path>Search <pattern> <path>Requested file and log inspection related to runtime processes.
1 call · #0218–#0218
Read <path>Requested file and log inspection related to source & workspace.
2 calls · #0219–#0220
Read <path>Requested source searches and file and log inspection related to attention kernels.
2 calls · #0221–#0222
Search <pattern> <path>Read <path>Requested file and log inspection and source searches related to source & workspace.
29 calls · #0223–#0251
Read <path>Search <pattern> <path>Requested source searches related to attention kernels.
1 call · #0252–#0252
Search <pattern> <path>Requested file and log inspection related to batching & scheduling.
2 calls · #0253–#0254
Read <path>Requested file and log inspection related to attention kernels.
2 calls · #0255–#0256
Read <path>Requested code edits related to attention kernels.
1 call · #0257–#0257
Edit <path>Requested file and log inspection related to batching & scheduling.
2 calls · #0258–#0259
Read <path>Requested code edits related to batching & scheduling.
1 call · #0260–#0260
Edit <path>Requested environment setup or inspection related to benchmark & validation setup.
1 call · #0261–#0261
env <vars> bash <script>Requested task coordination related to source & workspace.
1 call · #0262–#0262
Schedule <task>Requested task coordination related to source & workspace.
1 call · #0263–#0263
Manage task <task>Requested file and log inspection related to source & workspace.
1 call · #0264–#0264
Read <path>Requested task coordination related to source & workspace.
1 call · #0265–#0265
Schedule <task>Requested task coordination related to source & workspace.
1 call · #0266–#0266
Manage task <task>Requested file and log inspection related to source & workspace.
1 call · #0267–#0267
Read <path>Requested runtime inspection and source searches related to benchmark & validation setup.
1 call · #0268–#0268
ps <val>grep -E <val>Requested file and log inspection related to source & workspace.
2 calls · #0269–#0270
Read <path>Requested source searches related to runtime processes.
1 call · #0271–#0271
Search <pattern> <path>Requested file and log inspection and source searches related to source & workspace.
2 calls · #0272–#0273
Read <path>Search <pattern> <path>Requested file and log inspection related to benchmark & validation setup.
1 call · #0274–#0274
Read <path>Requested source searches related to source & workspace.
1 call · #0275–#0275
Search <pattern> <path>Requested source searches and file and log inspection related to attention kernels.
2 calls · #0276–#0277
Search <pattern> <path>Read <path>Requested code edits related to attention kernels.
1 call · #0278–#0278
Edit <path>Requested environment setup or inspection related to benchmark & validation setup.
1 call · #0279–#0279
env <vars> bash <script>Requested task coordination related to source & workspace.
1 call · #0280–#0280
Schedule <task>Requested task coordination related to source & workspace.
1 call · #0281–#0281
Manage task <task>Requested file and log inspection related to benchmark & validation setup.
1 call · #0282–#0282
Read <path>Requested task coordination related to source & workspace.
2 calls · #0283–#0284
Schedule <task>Manage task <task>Requested file and log inspection related to benchmark & validation setup.
3 calls · #0285–#0287
Read <path>Requested task coordination related to source & workspace.
1 call · #0288–#0288
Schedule <task>Requested environment setup or inspection related to benchmark & validation setup.
1 call · #0289–#0289
env <vars> bash <script>Requested task coordination related to source & workspace.
2 calls · #0290–#0291
Schedule <task>Manage task <task>Requested workspace inspection related to source & workspace.
1 call · #0292–#0292
List <path>Requested task coordination related to source & workspace.
1 call · #0293–#0293
Schedule <task>Requested task coordination related to source & workspace.
1 call · #0294–#0294
Manage task <task>Requested workspace inspection related to source & workspace.
1 call · #0295–#0295
List <path>Requested task coordination related to source & workspace.
1 call · #0296–#0296
Schedule <task>Requested task coordination related to source & workspace.
1 call · #0297–#0297
Manage task <task>Requested runtime inspection and source searches related to benchmark & validation setup.
1 call · #0298–#0298
ps <val>grep -E <val>Requested task coordination related to source & workspace.
1 call · #0299–#0299
Schedule <task>Requested task coordination related to source & workspace.
1 call · #0300–#0300
Manage task <task>Requested runtime inspection and source searches related to benchmark & validation setup.
1 call · #0301–#0301
ps <val>grep -E <val>Requested task coordination related to source & workspace.
1 call · #0302–#0302
Schedule <task>Requested task coordination related to source & workspace.
1 call · #0303–#0303
Manage task <task>Requested runtime inspection and source searches related to benchmark & validation setup.
1 call · #0304–#0304
ps <val>grep -E <val>Requested task coordination related to source & workspace.
1 call · #0305–#0305
Schedule <task>Requested task coordination related to source & workspace.
1 call · #0306–#0306
Manage task <task>Requested runtime inspection and source searches related to benchmark & validation setup.
1 call · #0307–#0307
ps <val>grep -E <val>Requested task coordination related to source & workspace.
1 call · #0308–#0308
Schedule <task>Requested source searches related to latency & request handling.
3 calls · #0309–#0311
Search <pattern> <path>Requested file and log inspection related to source & workspace.
3 calls · #0312–#0314
Read <path>Requested file and log inspection and source searches related to attention kernels.
3 calls · #0315–#0317
Read <path>Search <pattern> <path>Requested source searches and file and log inspection related to device memory.
2 calls · #0318–#0319
Search <pattern> <path>Read <path>Requested source searches related to attention kernels.
1 call · #0320–#0320
Search <pattern> <path>Requested source searches and file and log inspection related to source & workspace.
2 calls · #0321–#0322
Search <pattern> <path>Read <path>Requested source searches and file and log inspection related to attention kernels.
11 calls · #0323–#0333
Search <pattern> <path>Read <path>Requested source searches related to source & workspace.
2 calls · #0334–#0335
Search <pattern> <path>Requested source searches and file and log inspection related to batching & scheduling.
6 calls · #0336–#0341
Search <pattern> <path>Read <path>Requested source searches and file and log inspection related to source & workspace.
5 calls · #0342–#0346
Search <pattern> <path>Read <path>Requested source searches and file and log inspection related to batching & scheduling.
3 calls · #0347–#0349
Search <pattern> <path>Read <path>Requested file and log inspection related to source & workspace.
1 call · #0350–#0350
Read <path>Requested script or workload execution and task coordination related to source & workspace.
2 calls · #0351–#0352
python3 -c <script>Schedule <task>Requested file and log inspection related to source & workspace.
1 call · #0353–#0353
Read <path>Requested task coordination related to source & workspace.
2 calls · #0354–#0355
Manage task <task>Schedule <task>Requested file and log inspection related to batching & scheduling.
1 call · #0356–#0356
Read <path>Requested code edits related to batching & scheduling.
1 call · #0357–#0357
Edit <path>Requested file and log inspection and source searches related to batching & scheduling.
8 calls · #0358–#0365
Read <path>Search <pattern> <path>Requested environment setup or inspection related to benchmark & validation setup.
1 call · #0366–#0366
env <vars> bash <script>Requested task coordination related to source & workspace.
1 call · #0367–#0367
Schedule <task>Requested task coordination related to source & workspace.
1 call · #0368–#0368
Manage task <task>Requested file and log inspection related to benchmark & validation setup.
1 call · #0369–#0369
wc -l <path>Requested task coordination related to source & workspace.
2 calls · #0370–#0371
Schedule <task>Manage task <task>Requested file and log inspection related to benchmark & validation setup.
1 call · #0372–#0372
wc -l <path>Requested task coordination related to source & workspace.
2 calls · #0373–#0374
Schedule <task>Manage task <task>Requested file and log inspection related to benchmark & validation setup.
1 call · #0375–#0375
wc -l <path>Requested task coordination related to source & workspace.
2 calls · #0376–#0377
Schedule <task>Manage task <task>Requested runtime inspection and source searches related to benchmark & validation setup.
1 call · #0378–#0378
ps <val>grep -E <val>Requested task coordination related to source & workspace.
1 call · #0379–#0379
Schedule <task>Requested file and log inspection and workspace inspection related to source & workspace.
2 calls · #0380–#0381
Read <path>List <path>Requested file and log inspection related to benchmark & validation setup.
2 calls · #0382–#0383
Read <path>Requested file and log inspection and source searches related to source & workspace.
3 calls · #0384–#0386
Read <path>Search <pattern> <path>Requested code edits related to source & workspace.
1 call · #0387–#0387
Edit <path>Requested environment setup or inspection related to benchmark & validation setup.
1 call · #0388–#0388
env <vars> bash <script>Requested task coordination related to source & workspace.
1 call · #0389–#0389
Schedule <task>Requested task coordination related to source & workspace.
1 call · #0390–#0390
Manage task <task>Requested file and log inspection related to benchmark & validation setup.
1 call · #0391–#0391
wc -l <path>Requested task coordination related to source & workspace.
2 calls · #0392–#0393
Schedule <task>Manage task <task>Requested file and log inspection related to benchmark & validation setup.
1 call · #0394–#0394
wc -l <path>Requested task coordination related to source & workspace.
1 call · #0395–#0395
Schedule <task>Requested environment setup or inspection related to benchmark & validation setup.
1 call · #0396–#0396
env <vars> bash <script>Requested task coordination related to source & workspace.
1 call · #0397–#0397
Schedule <task>Requested task coordination related to source & workspace.
1 call · #0398–#0398
Manage task <task>Requested file and log inspection related to source & workspace.
1 call · #0399–#0399
wc -l <path>Requested task coordination related to source & workspace.
1 call · #0400–#0400
Schedule <task>Requested task coordination related to source & workspace.
1 call · #0401–#0401
Manage task <task>Requested file and log inspection related to source & workspace.
1 call · #0402–#0402
wc -l <path>Requested task coordination related to source & workspace.
1 call · #0403–#0403
Schedule <task>Requested task coordination related to source & workspace.
1 call · #0404–#0404
Manage task <task>Requested file and log inspection related to source & workspace.
1 call · #0405–#0405
wc -l <path>Requested task coordination related to source & workspace.
1 call · #0406–#0406
Schedule <task>Requested task coordination related to source & workspace.
1 call · #0407–#0407
Manage task <task>Requested file and log inspection related to source & workspace.
1 call · #0408–#0408
wc -l <path>Requested task coordination related to source & workspace.
1 call · #0409–#0409
Schedule <task>Requested task coordination related to source & workspace.
1 call · #0410–#0410
Manage task <task>Requested file and log inspection related to source & workspace.
1 call · #0411–#0411
wc -l <path>Requested task coordination related to source & workspace.
1 call · #0412–#0412
Schedule <task>Requested task coordination related to source & workspace.
1 call · #0413–#0413
Manage task <task>Requested runtime inspection and source searches related to benchmark & validation setup.
1 call · #0414–#0414
ps <val>grep -E <val>Requested task coordination related to source & workspace.
1 call · #0415–#0415
Schedule <task>Requested file and log inspection related to source & workspace.
1 call · #0416–#0416
Read <path>Requested source searches and file and log inspection related to batching & scheduling.
5 calls · #0417–#0421
Search <pattern> <path>Read <path>Requested code edits related to batching & scheduling.
1 call · #0422–#0422
Edit <path>Requested environment setup or inspection related to benchmark & validation setup.
1 call · #0423–#0423
env <vars> bash <script>Requested task coordination related to source & workspace.
1 call · #0424–#0424
Schedule <task>Requested task coordination related to source & workspace.
1 call · #0425–#0425
Manage task <task>Requested file and log inspection related to benchmark & validation setup.
1 call · #0426–#0426
wc -l <path>Requested task coordination related to source & workspace.
2 calls · #0427–#0428
Schedule <task>Manage task <task>Requested file and log inspection related to benchmark & validation setup.
1 call · #0429–#0429
wc -l <path>Requested environment setup or inspection related to benchmark & validation setup.
1 call · #0430–#0430
env <vars> bash <script>Requested task coordination related to source & workspace.
1 call · #0431–#0431
Schedule <task>Requested task coordination related to source & workspace.
1 call · #0432–#0432
Manage task <task>Requested file and log inspection related to source & workspace.
1 call · #0433–#0433
wc -l <path>Requested task coordination related to source & workspace.
1 call · #0434–#0434
Schedule <task>Requested task coordination related to source & workspace.
1 call · #0435–#0435
Manage task <task>Requested file and log inspection related to source & workspace.
1 call · #0436–#0436
wc -l <path>Requested task coordination related to source & workspace.
1 call · #0437–#0437
Schedule <task>Requested task coordination related to source & workspace.
1 call · #0438–#0438
Manage task <task>Requested file and log inspection related to source & workspace.
1 call · #0439–#0439
wc -l <path>Requested task coordination related to source & workspace.
1 call · #0440–#0440
Schedule <task>Requested task coordination related to source & workspace.
1 call · #0441–#0441
Manage task <task>Requested file and log inspection related to source & workspace.
1 call · #0442–#0442
wc -l <path>Requested task coordination related to source & workspace.
1 call · #0443–#0443
Schedule <task>Requested task coordination related to source & workspace.
1 call · #0444–#0444
Manage task <task>Requested runtime inspection and source searches related to benchmark & validation setup.
1 call · #0445–#0445
ps <val>grep -E <val>Requested task coordination related to source & workspace.
1 call · #0446–#0446
Schedule <task>Requested task coordination related to source & workspace.
1 call · #0447–#0447
Manage task <task>Requested runtime inspection and source searches related to benchmark & validation setup.
1 call · #0448–#0448
ps <val>grep -E <val>Requested task coordination related to source & workspace.
1 call · #0449–#0449
Schedule <task>Requested repository inspection related to source & workspace.
2 calls · #0450–#0451
git statusgit diffRequested environment setup or inspection related to benchmark & validation setup.
1 call · #0452–#0452
env <vars> bash <script>Requested task coordination related to source & workspace.
1 call · #0453–#0453
Schedule <task>Requested task coordination related to source & workspace.
1 call · #0454–#0454
Manage task <task>Requested file and log inspection related to benchmark & validation setup.
1 call · #0455–#0455
wc -l <path>Requested task coordination related to source & workspace.
2 calls · #0456–#0457
Schedule <task>Manage task <task>Requested file and log inspection related to benchmark & validation setup.
1 call · #0458–#0458
wc -l <path>03 / CANDIDATE ARTIFACT
Read code changes as Git diffs. Identifying strings are masked; binary files are listed by their full relative names.
Base commit: 340db9201005fc64635bb25db1d2538f955761c3
@@ -430,7 +430,13 @@ 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()+ if forward_batch.seq_lens_cpu is not None:+ if isinstance(forward_batch.seq_lens_cpu, torch.Tensor):+ seq_lens_max = int(forward_batch.seq_lens_cpu.max().item())+ else:+ seq_lens_max = int(max(forward_batch.seq_lens_cpu))+ 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 +465,21 @@ class AscendAttnBackend(AttentionBackend): ) if forward_batch.extend_seq_lens is not None: self.forward_metadata.extend_seq_lens = forward_batch.extend_seq_lens- self.forward_metadata.extend_seq_lens_cpu_int = (- forward_batch.extend_seq_lens.cpu().int()- )+ if forward_batch.extend_seq_lens_cpu is not None:+ if isinstance(forward_batch.extend_seq_lens_cpu, torch.Tensor):+ self.forward_metadata.extend_seq_lens_cpu_int = (+ forward_batch.extend_seq_lens_cpu.int()+ )+ else:+ self.forward_metadata.extend_seq_lens_cpu_int = torch.tensor(+ forward_batch.extend_seq_lens_cpu,+ dtype=torch.int32,+ device="cpu",+ )+ 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:@@ -474,8 +492,9 @@ class AscendAttnBackend(AttentionBackend): not forward_batch.forward_mode.is_draft_extend_v2() and not forward_batch.forward_mode.is_target_verify() ):- seq_lens_list_cumsum = np.cumsum(forward_batch.extend_seq_lens_cpu)- self.forward_metadata.seq_lens_list_cumsum = seq_lens_list_cumsum+ if forward_batch.extend_seq_lens_cpu is not None:+ seq_lens_list_cumsum = np.cumsum(forward_batch.extend_seq_lens_cpu)+ self.forward_metadata.seq_lens_list_cumsum = seq_lens_list_cumsum if forward_batch.forward_mode.is_target_verify() and not _is_dflash_verify( forward_batch.spec_info@@ -1803,9 +1803,12 @@ class Scheduler( last_batch_is_extend = is_extend(last_batch) disable_overlap_for_batch = (- envs.SGLANG_DISABLE_CONSECUTIVE_PREFILL_OVERLAP.get()- and batch_is_extend- and last_batch_is_extend+ (_is_npu and last_batch_is_extend)+ or (+ envs.SGLANG_DISABLE_CONSECUTIVE_PREFILL_OVERLAP.get()+ and batch_is_extend+ and last_batch_is_extend+ ) ) # Sync so the FSM advance lands before the next batch's bitmask. Permanent@@ -3617,18 +3620,18 @@ class Scheduler( forward_done, batch.out_cache_loc, )- # FIXME(lsyin): maybe move this to forward_batch_generation- batch_result.copy_done = self.device_module.Event() if batch_result.delay_sample_func is None: self._relay_forward_payload(future_indices, batch_result)- if _is_hip:+ if _is_hip or _is_npu: # Cross-stream sync costs more than the tiny D2H it # overlaps.+ batch_result.copy_done = None batch_result.copy_to_cpu( return_logprob=batch.return_logprob, return_hidden_states=batch.return_hidden_states, ) else:+ batch_result.copy_done = self.device_module.Event() # Result D2H on copy_stream overlaps the next forward # instead of serializing on forward_stream; it's a leaf # gated by copy_done, so nothing on forward_stream waits.@@ -3638,7 +3641,9 @@ class Scheduler( return_logprob=batch.return_logprob, return_hidden_states=batch.return_hidden_states, )+ batch_result.copy_done.record(self.copy_stream) else:+ batch_result.copy_done = self.device_module.Event() batch_result.future_indices = future_indices # Next-iter input_ids relayed via future_map.@@ -170,7 +170,8 @@ class GenerationBatchResult: if holder is not None: holder.map_device_tensors(_async_d2h) - self.copy_done.record()+ if self.copy_done is not None:+ self.copy_done.record() @classmethod def from_pp_proxy(