Inspect · Source & workspace
Requested workspace inspection related to source & workspace.
1 call · #0213–#0213
echo <val>ls -l -a <val> <n> > <path>trueKimi K3 · Serving
Generalist 6-regime 1dev · Implementation Optimization
01 / PROCESS MAP
Compare agents on one time axis; overlapping spans line up vertically. Select an agent or bar to inspect its events.
Time starts at the first recorded activity. Select a bar or agent to open its events. Bars span the first and last recorded observation, including gaps; colored ticks mark tool calls. A hollow diamond marks a delegation whose child timing is unavailable.
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>. Each branch belongs to its named agent. Expand a delegation to inspect its child; branches can run concurrently. Call numbers preserve source order, not a serial schedule. Times are relative to the first recorded activity.
Requested workspace inspection related to source & workspace.
1 call · #0213–#0213
echo <val>ls -l -a <val> <n> > <path>trueRequested file and log inspection related to task requirements.
2 calls · #0214–#0215
Read <path>Requested workspace inspection and file and log inspection related to source & workspace.
2 calls · #0216–#0217
find <path> -type <val>head -n <n>echo <flag>ls <path> <path> <path>Read <path>Requested file and log inspection related to benchmark & validation setup.
1 call · #0218–#0218
Read <path>Requested file and log inspection, environment setup or inspection and source searches related to source & workspace.
8 calls · #0219–#0226
Read <path>wc -l <path> <path> <path> <path>cd <path><command> <args>cat <val>envgrep -E <val>sortecho <flag>which <val>python3 --versionls <path>Requested script or workload execution, dependency and build commands and source searches related to dependencies & build setup.
1 call · #0227–#0227
python3 -c <script> <n> >& <path>pip list <n> > <path>grep -i -E <val>echo <flag>ls <path>head -n <n>Requested file and log inspection and source searches related to source & workspace.
1 call · #0228–#0228
cd <path><command> <args>head -n <n> <val>grep -E <val>head -n <n>echo <flag>grep -n <val> <path>headRequested source searches and file and log inspection related to runtime processes.
1 call · #0229–#0229
cd <path>grep -n <val> <path>head -n <n>Requested file and log inspection and workspace inspection related to source & workspace.
2 calls · #0230–#0231
cd <path>sed -n <val> <path>cat <path> <n> > <path>echo <flag>ls <path> <path> <n> > <path>Requested task coordination related to latency & request handling.
1 call · #0232–#0232
Delegate <task>Delegated by Main agent at call #0232. Observed activity +04:47–+12:21. Overlapping activity: Subagent 2.
Requested file and log inspection related to source & workspace.
2 calls · #0001–#0002
Read <path>Requested file and log inspection and workspace inspection related to latency & request handling.
3 calls · #0003–#0005
Read <path>ls -l -a <path> <path> <path> <path> <path>ls -R <path>head -n <n>echo <val>cat <path> <path> <path>Requested source searches related to benchmark & validation setup.
1 call · #0006–#0006
Search <pattern> <path>Requested file and log inspection related to task requirements.
2 calls · #0007–#0008
Read <path>Requested file and log inspection related to latency & request handling.
1 call · #0009–#0009
Read <path>Requested file and log inspection related to source & workspace.
4 calls · #0010–#0013
Read <path>Requested file and log inspection related to latency & request handling.
2 calls · #0014–#0015
Read <path>Requested file and log inspection related to source & workspace.
2 calls · #0016–#0017
Read <path>Requested file and log inspection related to latency & request handling.
1 call · #0018–#0018
cd <path>head -c <n> <path>echoecho <val>Requested file and log inspection and script or workload execution related to latency & request handling.
1 call · #0019–#0019
cd <path>cat <path> <path> <path> <n> > <path>head -n <n>echo <val>python3 -c <script>Requested source searches related to benchmark & validation setup.
1 call · #0020–#0020
Search <pattern> <path>Requested file and log inspection and source searches related to source & workspace.
6 calls · #0021–#0026
Read <path>Search <pattern> <path>Requested file and log inspection related to benchmark & validation setup.
1 call · #0027–#0027
cd <path>cat <path> <path> <path> <n> > <path>head -n <n>Requested source searches related to latency & request handling.
1 call · #0028–#0028
Search <pattern> <path>Requested source searches related to runtime processes.
2 calls · #0029–#0030
Search <pattern> <path>Requested tool activity related to latency & request handling.
1 call · #0031–#0031
cd <path><command> <args>diff <val> <val>Requested task coordination related to source & workspace.
1 call · #0233–#0233
Delegate <task>Delegated by Main agent at call #0233. Observed activity +04:44–+13:04. Overlapping activity: Subagent 1.
Requested file and log inspection related to source & workspace.
3 calls · #0032–#0034
Read <path>Requested workspace inspection related to task requirements.
1 call · #0035–#0035
ls -l -a <path> <path> <path> <path> <n> >& <path>ls <path> <n> >& <path>Requested source searches, workspace inspection and file and log inspection related to source & workspace.
22 calls · #0036–#0057
Search <pattern> <path>ls -l -a <path> <path> <n> >& <path>cat <path> <n> > <path>head -n <n>Read <path>Requested script or workload execution related to task requirements.
1 call · #0058–#0058
cd <path>python3 - <script>Requested script or workload execution related to task requirements.
1 call · #0059–#0059
cd <path>python3 - <script>Requested script or workload execution related to attention kernels.
1 call · #0060–#0060
cd <path>python3 - <script>Requested file and log inspection and workspace inspection related to task requirements.
1 call · #0061–#0061
cd <path>head -c <n> <val>echoecho <flag>ls <path> <path> <n> > <path>cat <path> <path> <path>Requested source searches related to task requirements.
1 call · #0062–#0062
Search <pattern> <path>Requested file and log inspection related to source & workspace.
2 calls · #0063–#0064
Read <path>Requested file and log inspection related to task requirements.
1 call · #0065–#0065
cd <path>wc -l <val> <path>head -n <n> <val>Requested source searches related to runtime processes.
1 call · #0066–#0066
Search <pattern> <path>Requested file and log inspection related to source & workspace.
1 call · #0067–#0067
Read <path>Requested workspace inspection and script or workload execution related to task requirements.
1 call · #0068–#0068
cd <path>ls <path> <path> <path>python3 - <script>Requested source searches, file and log inspection and workspace inspection related to source & workspace.
6 calls · #0069–#0074
Search <pattern> <path>Read <path>cd <path>ls <path>grep -n <val> <path> <n> > <path>head -n <n>Requested task coordination, repository inspection and file and log inspection related to source & workspace.
2 calls · #0234–#0235
Update task list <tasks>cd <path>git status <flag>headgit log --oneline <flag>echo <flag>ls <path>Requested source searches, file and log inspection and workspace inspection related to attention kernels.
1 call · #0236–#0236
cd <path>grep -r -n <val> <path>head -n <n>echo <flag>ls <path>Requested source searches, file and log inspection and workspace inspection related to source & workspace.
3 calls · #0237–#0239
cd <path>grep -r -l -n <val> <path>head -n <n>echo <flag>ls <path> <n> > <path>find <path> -name <val> -o -name <val>grep -v <val>Read <path>Requested task coordination related to source & workspace.
1 call · #0240–#0240
Delegate <task>Delegated by Main agent at call #0240. Observed activity +15:53–+44:36.
Requested file and log inspection and workspace inspection related to attention kernels.
2 calls · #0075–#0076
Read <path>ls <path> <path> <path> <n> > <path>Requested file and log inspection related to attention kernels.
1 call · #0077–#0077
wc -l <path> <path> <path> <path> <path> <path> <n> > <path>Requested source searches and file and log inspection related to attention kernels.
8 calls · #0078–#0085
Search <pattern> <path>Read <path>Requested file and log inspection and source searches related to source & workspace.
3 calls · #0086–#0088
Read <path>Search <pattern> <path>Requested source searches related to batching & scheduling.
1 call · #0089–#0089
Search <pattern> <path>Requested workspace inspection, source searches and file and log inspection related to source & workspace.
5 calls · #0090–#0094
ls <path> <path> <n> > <path>Search <pattern> <path>Read <path>Requested file and log inspection related to attention kernels.
1 call · #0095–#0095
Read <path>Requested file and log inspection related to source & workspace.
1 call · #0096–#0096
Read <path>Requested source searches and file and log inspection related to batching & scheduling.
3 calls · #0097–#0099
Search <pattern> <path>Read <path>Requested file and log inspection related to runtime processes.
1 call · #0100–#0100
Read <path>Requested file and log inspection related to source & workspace.
1 call · #0101–#0101
Read <path>Requested file and log inspection related to batching & scheduling.
4 calls · #0102–#0105
Read <path>Requested source searches related to runtime processes.
1 call · #0106–#0106
Search <pattern> <path>Requested file and log inspection and source searches related to source & workspace.
3 calls · #0107–#0109
Read <path>Search <pattern> <path>Requested file and log inspection related to batching & scheduling.
1 call · #0110–#0110
Read <path>Requested file and log inspection and source searches related to source & workspace.
5 calls · #0111–#0115
Read <path>Search <pattern> <path>Requested source searches, workspace inspection and file and log inspection related to attention kernels.
4 calls · #0116–#0119
Search <pattern> <path>ls <path> <n> > <path>Read <path>Requested source searches and file and log inspection related to device memory.
8 calls · #0120–#0127
Search <pattern> <path>Read <path>Requested file and log inspection related to batching & scheduling.
1 call · #0128–#0128
Read <path>Requested source searches related to device memory.
1 call · #0129–#0129
Search <pattern> <path>Requested source searches related to data movement.
1 call · #0130–#0130
Search <pattern> <path>Requested source searches and file and log inspection related to source & workspace.
9 calls · #0131–#0139
Search <pattern> <path>Read <path>Requested source searches related to runtime processes.
1 call · #0140–#0140
Search <pattern> <path>Requested file and log inspection and source searches related to source & workspace.
4 calls · #0141–#0144
Read <path>Search <pattern> <path>Requested file and log inspection related to attention kernels.
2 calls · #0145–#0146
Read <path>Requested file and log inspection related to source & workspace.
1 call · #0147–#0147
Read <path>Requested source searches and file and log inspection related to attention kernels.
2 calls · #0148–#0149
Search <pattern> <path>Read <path>Requested source searches and file and log inspection related to source & workspace.
6 calls · #0150–#0155
Search <pattern> <path>Read <path>Requested source searches and file and log inspection related to runtime processes.
2 calls · #0156–#0157
Search <pattern> <path>Read <path>Requested source searches related to batching & scheduling.
1 call · #0158–#0158
Search <pattern> <path>Requested file and log inspection related to runtime processes.
1 call · #0159–#0159
Read <path>Requested source searches related to source & workspace.
2 calls · #0160–#0161
Search <pattern> <path>Requested file and log inspection related to batching & scheduling.
1 call · #0162–#0162
Read <path>Requested file and log inspection and source searches related to source & workspace.
3 calls · #0163–#0165
Read <path>Search <pattern> <path>Requested file and log inspection related to batching & scheduling.
1 call · #0166–#0166
Read <path>Requested source searches and file and log inspection related to source & workspace.
3 calls · #0167–#0169
Search <pattern> <path>Read <path>Requested source searches and file and log inspection related to batching & scheduling.
2 calls · #0170–#0171
Search <pattern> <path>Read <path>Requested source searches related to runtime processes.
1 call · #0172–#0172
Search <pattern> <path>Requested source searches related to data movement.
1 call · #0173–#0173
Search <pattern> <path>Requested workspace inspection and file and log inspection related to source & workspace.
1 call · #0174–#0174
ls <path> <path> <n> > <path>head -n <n>Requested file and log inspection and workspace inspection related to attention kernels.
2 calls · #0175–#0176
Read <path>Find <pattern>Requested workspace inspection related to source & workspace.
1 call · #0177–#0177
ls <path> <n> > <path>Requested file and log inspection related to attention kernels.
1 call · #0178–#0178
Read <path>Requested file and log inspection and source searches related to source & workspace.
3 calls · #0179–#0181
Read <path>Search <pattern> <path>Requested source searches and file and log inspection related to device memory.
4 calls · #0182–#0185
Search <pattern> <path>Read <path>Requested source searches and file and log inspection related to source & workspace.
7 calls · #0186–#0192
Search <pattern> <path>Read <path>Requested file and log inspection related to runtime processes.
1 call · #0193–#0193
Read <path>Requested source searches related to source & workspace.
4 calls · #0194–#0197
Search <pattern> <path>Requested source searches and file and log inspection related to batching & scheduling.
2 calls · #0198–#0199
Search <pattern> <path>Read <path>Requested source searches, file and log inspection and script or workload execution related to source & workspace.
7 calls · #0200–#0206
Search <pattern> <path>Read <path>python3 -c <script> <n> >& <path>tail -n <n>Requested source searches related to runtime processes.
1 call · #0207–#0207
Search <pattern> <path>Requested source searches and file and log inspection related to source & workspace.
3 calls · #0208–#0210
Search <pattern> <path>Read <path>Requested source searches related to batching & scheduling.
2 calls · #0211–#0212
Search <pattern> <path>Requested file and log inspection related to attention kernels.
1 call · #0241–#0241
cd <path>sed -n <val> <path>Requested workspace file updates and environment setup or inspection related to benchmark & validation setup.
1 call · #0242–#0242
mkdir -p <path>cd <path>env <vars> nohup <val> <path> <flag> <args>echo <val>Requested file and log inspection, source searches and workspace inspection related to source & workspace.
7 calls · #0243–#0249
Read <path>cd <path>grep -n <val> <path>head -n <n>echo <flag>sed -n <val> <path>tail -n <n> <path>ls <path> <n> > <path>sed -n <val>Requested file and log inspection related to device memory.
1 call · #0250–#0250
Read <path>Requested source searches and file and log inspection related to batching & scheduling.
1 call · #0251–#0251
cd <path>grep -n <val> -A <n> <path> <path> <n> > <path>head -n <n>Requested source searches and file and log inspection related to runtime processes.
1 call · #0252–#0252
cd <path>grep -n <val> <path>head -n <n>echo <flag>sed -n <val> <path>Requested file and log inspection related to source & workspace.
1 call · #0253–#0253
cd <path>sed -n <val> <path>Requested file and log inspection related to attention kernels.
1 call · #0254–#0254
Read <path>Requested file and log inspection and workspace inspection related to source & workspace.
1 call · #0255–#0255
tail -n <n> <path>echo <val>find <path> -name <val>headfind <path> -name <val> -o -name <val>Requested script or workload execution, file and log inspection and source searches related to benchmark & validation setup.
1 call · #0256–#0256
cd <path>python3 -c <script> <n> > <path>head -n <n>grep -c <path> <val>grep -i -E <val> <val>tail -n <n>Requested environment setup or inspection related to benchmark & validation setup.
1 call · #0257–#0257
cd <path>env <vars> nohup <val> <path> <flag> <args>echo <val>dateRequested source searches and file and log inspection related to source & workspace.
1 call · #0258–#0258
cd <path>grep -n <val> -A <n> <path> <path> <n> > <path>head -n <n>Requested source searches and file and log inspection related to device memory.
2 calls · #0259–#0260
cd <path>grep -r -n <val> -A <n> <path>head -n <n>echo <val>grep -r -n <val> <path> <path> <path> <n> > <path>echo <flag>sed -n <val> <path>Requested task coordination related to source & workspace.
1 call · #0261–#0261
Update task list <tasks>Requested source searches and file and log inspection related to device memory.
1 call · #0262–#0262
cd <path>grep -n <val> <path> <path>grep -v <val>headecho <flag>grep -n <val> <path>Requested file and log inspection related to source & workspace.
2 calls · #0263–#0264
cd <path>sed -n <val> <path>Requested code edits related to device memory.
1 call · #0265–#0265
Edit <path>Requested code edits related to attention kernels.
3 calls · #0266–#0268
Edit <path>Requested file and log inspection, workspace inspection and script or workload execution related to benchmark & validation setup.
2 calls · #0269–#0270
tail -n <n> <path>ls <path> <n> > <path>headcd <path>python3 -c <script>grep -i -E <val> <val> <n> > <path>tail -n <n>lsRequested file and log inspection, script or workload execution and source searches related to latency & request handling.
1 call · #0271–#0271
cd <path>cat <val>python3 -c <script>grep -i -E <val> <val>tail -n <n>Requested file and log inspection related to source & workspace.
1 call · #0272–#0272
cd <path>sed -n <val> <path>Requested source searches and file and log inspection related to runtime processes.
3 calls · #0273–#0275
cd <path>grep -r -n <val> <path> <path> <path>head -n <n>sed -n <val> <path>awk <path> <path>Requested file and log inspection related to source & workspace.
1 call · #0276–#0276
Read <path>Requested file and log inspection and source searches related to device memory.
1 call · #0277–#0277
cd <path>sed -n <val> <path>grep -n <val> <path>head -n <n>Requested code edits related to source & workspace.
1 call · #0278–#0278
Edit <path>Requested script or workload execution related to attention kernels.
1 call · #0279–#0279
cd <path>python3 -m <module> <script> <script> <script>echo <val>python3 -c <script>Requested environment setup or inspection related to benchmark & validation setup.
1 call · #0280–#0280
cd <path>env <vars> nohup <val> <path> <flag> <args>echo <val>dateRequested file and log inspection related to attention kernels.
1 call · #0281–#0281
cd <path>sed -n <val> <path>Requested task coordination, execution waits and file and log inspection related to source & workspace.
2 calls · #0282–#0283
Update task list <tasks>sleep <n>tail -n <n> <path>ls <path> <n> > <path>Requested file and log inspection and workspace inspection related to benchmark & validation setup.
1 call · #0284–#0284
wc -c <path>find <path> <flag> <args>headls <path> <n> > <path>Requested file and log inspection and source searches related to benchmark & validation setup.
1 call · #0285–#0285
cd <path>tail -n <n> <val>grep -i -E <val> <val>tail -n <n>Requested execution waits, workspace inspection and file and log inspection related to benchmark & validation setup.
1 call · #0286–#0286
sleep <n>cd <path>ls<command> <args>echo <val>tail -n <n> <path>Requested script or workload execution, source searches and file and log inspection related to latency & request handling.
1 call · #0287–#0287
cd <path>python3 -c <script>grep -a <val> <val> <val> <n> > <path>tail -n <n>Requested execution waits, workspace inspection and script or workload execution related to benchmark & validation setup.
1 call · #0288–#0288
sleep <n>cd <path>ls <val> <n> > <path>python3 -c <script>tail -c <n> <path>Requested environment setup or inspection related to benchmark & validation setup.
1 call · #0289–#0289
cd <path>env <vars> nohup <val> <path> <flag> <args>echo <val>dateRequested execution waits, file and log inspection and workspace inspection related to source & workspace.
1 call · #0290–#0290
sleep <n>tail -c <n> <path>ls <path> <n> > <path>Requested environment setup or inspection, workspace inspection and file and log inspection related to benchmark & validation setup.
2 calls · #0291–#0292
env <vars>ls <val> <n> > <path>tail -n <n> <path> <n> > <path>sleep <n><command> <args>tail -n <n> <path>Requested task coordination related to source & workspace.
1 call · #0293–#0293
Update task list <tasks>Requested environment setup or inspection related to latency & request handling.
1 call · #0294–#0294
cd <path>env <vars> nohup <val> <path> <flag> <args>echo <val>dateRequested environment setup or inspection and script or workload execution related to benchmark & validation setup.
1 call · #0295–#0295
env <vars>python3 -c <script>Requested execution waits, environment setup or inspection and workspace inspection related to latency & request handling.
1 call · #0296–#0296
sleep <n>env <vars>ls <val> <n> > <path>tail -n <n><command> <args>python3 -c <script>tail -n <n> <path> <n> > <path>Requested file and log inspection related to device memory.
1 call · #0297–#0297
cd <path>sed -n <val> <path>Requested execution waits, environment setup or inspection and script or workload execution related to latency & request handling.
2 calls · #0298–#0299
sleep <n>env <vars><command> <args>python3 -c <script>tail -n <n> <path> <n> > <path>ls <val>tail -n <n>tail -n <n> <path>dateRequested environment setup or inspection related to benchmark & validation setup.
1 call · #0300–#0300
cd <path>env <vars> nohup <val> <path> <flag> <args>echo <val>dateRequested repository inspection related to source & workspace.
1 call · #0301–#0301
cd <path>git diff --statgit diffRequested execution waits, environment setup or inspection and script or workload execution related to task requirements.
2 calls · #0302–#0303
sleep <n>env <vars><command> <args>python3 -c <script>tail -n <n> <path> <n> > <path>ls <val> <n> > <path>tail -n <n>dateRequested repository inspection, runtime inspection and source searches related to runtime processes.
1 call · #0304–#0304
cd <path>git <val> <val>ps <val>grep -i -E <val>grep -v <val>headecho <flag><command> <args>grep <n>echo <val>Requested script or workload execution and workspace file updates related to source & workspace.
1 call · #0305–#0305
cd <path>bash <script>echo <val>rm -rf <path>Requested repository inspection, file and log inspection and task coordination related to source & workspace.
2 calls · #0306–#0307
cd <path>git status <flag>head -n <n>dateUpdate task list <tasks>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
@@ -41,11 +41,13 @@ class NPUPagedTokenToKVPoolAllocator(PagedTokenToKVPoolAllocator): ) if num_new_pages is None:- num_new_pages_tensor = (- (seq_lens + self.roundup) // self.page_size- - (prefix_lens + self.roundup) // self.page_size- ).sum()- num_new_pages_item = num_new_pages_tensor.item()+ # Compute on the CPU mirrors to avoid a device sync per batch+ # (mirrors the base-class behavior in paged.py).+ num_new_pages_item = get_num_new_pages(+ seq_lens=seq_lens_cpu,+ page_size=self.page_size,+ prefix_lens=prefix_lens_cpu,+ ) else: num_new_pages_item = num_new_pages if self.need_sort and num_new_pages_item > len(self.free_pages):@@ -430,7 +430,9 @@ 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()+ # Use the host-side mirror: slicing with a device scalar forces a+ # device-to-host sync on every eager forward step.+ seq_lens_max = forward_batch.seq_lens_cpu.max() if forward_batch.forward_mode.is_target_verify(): seq_lens_max += self.speculative_num_draft_tokens elif (@@ -440,7 +442,7 @@ class AscendAttnBackend(AttentionBackend): seq_lens_max += self.speculative_step_id + 1 self.forward_metadata.block_tables = ( self.req_to_token_pool.req_to_token[- forward_batch.req_pool_indices, :seq_lens_max+ forward_batch.req_pool_indices, : int(seq_lens_max) ][:, :: self.page_size] // self.page_size )@@ -459,9 +461,15 @@ 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:+ # Build from the host-side list to avoid a device sync.+ 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:@@ -506,11 +514,19 @@ class AscendAttnBackend(AttentionBackend): device=self.device, ) elif forward_batch.forward_mode.is_decode_or_idle():- self.forward_metadata.actual_seq_lengths_q = torch.tensor(- [1 + i for i in range(forward_batch.seq_lens.shape[0])],- dtype=torch.int32,- device=self.device,- )+ # Cache the 1..N arange buffer: rebuilding it per step via a+ # Python list-comp plus pageable H2D copy is pure overhead.+ num_reqs = forward_batch.seq_lens.shape[0]+ cached = getattr(self, "_actual_seq_lengths_q_cache", None)+ if cached is None or cached.shape[0] < num_reqs:+ cached = torch.arange(+ 1,+ max(num_reqs, 1024) + 1,+ dtype=torch.int32,+ device=self.device,+ )+ self._actual_seq_lengths_q_cache = cached+ self.forward_metadata.actual_seq_lengths_q = cached[:num_reqs] if ( self.use_mla@@ -74,6 +74,24 @@ def set_default_server_args(args: "ServerArgs"): else: decode.max_bs = 256 + # The eager decode fallback on NPU is host-launch-overhead bound, which is+ # very costly for small models. Decode graph capture is comparatively cheap+ # (small static buffers, one graph per bucket), so widen the capture+ # coverage beyond the configured cap when the device budget allows it.+ # This only enlarges the set of batch sizes that can be replayed from a+ # captured graph; larger batches still fall back to eager decode.+ if (+ decode.backend not in (None, "disabled")+ and decode.max_bs is not None+ and args.tp_size == 1+ and npu_mem > 32 * 1024+ ):+ extended_cap = 192+ if args.max_running_requests is not None:+ extended_cap = min(extended_cap, args.max_running_requests)+ if extended_cap > decode.max_bs:+ decode.max_bs = extended_cap+ # NPU does not support CustomAllReduce args.disable_custom_all_reduce = True