Inspect · Source & workspace
Requested workspace inspection and file and log inspection related to source & workspace.
1 call · #0001–#0001
ls <path> <n> >& <path>head -n <n>MiniMax M3 · Serving
SGLang Qwen3-14B system serving 2dev · Joint 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 agentMiniMax M3 · 312 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 and file and log inspection related to source & workspace.
1 call · #0001–#0001
ls <path> <n> >& <path>head -n <n>Requested workspace inspection and file and log inspection related to task requirements.
6 calls · #0002–#0007
find <path> -maxdepth <n> -name <val> <n> > <path>head -n <n>find <path> -name <val> <n> > <path>Read <path>Requested workspace inspection, environment setup or inspection and source searches related to source & workspace.
2 calls · #0008–#0009
echo <val>ls -l -a <path>envgrep -i <val>Requested workspace inspection related to task requirements.
1 call · #0010–#0010
ls <path> <path> <path> <path> <path>Requested task coordination related to task requirements.
1 call · #0011–#0011
Create task <task>Requested task coordination related to benchmark & validation setup.
3 calls · #0012–#0014
Create task <task>Requested task coordination related to source & workspace.
1 call · #0015–#0015
Update task <task>Requested file and log inspection related to source & workspace.
1 call · #0016–#0016
Read <path>Requested file and log inspection related to benchmark & validation setup.
1 call · #0017–#0017
Read <path>Requested file and log inspection related to source & workspace.
1 call · #0018–#0018
Read <path>Requested file and log inspection related to runtime processes.
1 call · #0019–#0019
Read <path>Requested file and log inspection related to task requirements.
4 calls · #0020–#0023
Read <path>Requested file and log inspection related to source & workspace.
1 call · #0024–#0024
Read <path>Requested file and log inspection related to benchmark & validation setup.
3 calls · #0025–#0027
Read <path>Requested file and log inspection related to source & workspace.
1 call · #0028–#0028
Read <path>Requested file and log inspection related to task requirements.
1 call · #0029–#0029
Read <path>Requested workspace inspection and file and log inspection related to source & workspace.
5 calls · #0030–#0034
ls <path> <n> >& <path>head -n <n>find <path> -maxdepth <n> -name <path> -type <val>Requested file and log inspection related to runtime processes.
2 calls · #0035–#0036
cat <path>head -n <n>wc -l <path>Requested file and log inspection and workspace inspection related to source & workspace.
4 calls · #0037–#0040
cat <path>head -n <n>ls <path> <path> <n> >& <path>Read <path>Requested file and log inspection related to task requirements.
2 calls · #0041–#0042
Read <path>Requested file and log inspection related to batching & scheduling.
1 call · #0043–#0043
Read <path>Requested file and log inspection related to task requirements.
1 call · #0044–#0044
Read <path>Requested source searches and file and log inspection related to prefix caching.
1 call · #0045–#0045
grep -n <val> <path>head -n <n>Requested tool activity related to source & workspace.
1 call · #0046–#0046
echo <val>Requested workspace file updates related to source & workspace.
1 call · #0047–#0047
mkdir -p <path>Requested script or workload execution and file and log inspection related to source & workspace.
2 calls · #0048–#0049
bash <script> <n> >& <path>head -n <n>Requested source searches and file and log inspection related to batching & scheduling.
1 call · #0050–#0050
grep -n <val> <path>head -n <n>Requested source searches and file and log inspection related to source & workspace.
1 call · #0051–#0051
grep -n <val> <path> <n> >& <path>head -n <n>Requested source searches and file and log inspection related to attention kernels.
2 calls · #0052–#0053
grep -n <val> <path>head -n <n>Requested source searches and file and log inspection related to runtime processes.
5 calls · #0054–#0058
grep -n <val> <path>head -n <n>Read <path>Requested task coordination related to source & workspace.
2 calls · #0059–#0060
Update task <task>Requested workspace inspection and file and log inspection related to source & workspace.
3 calls · #0061–#0063
ls <path> <n> >& <path>head -n <n>find <path> -path <val> -o -path <val> <n> >& <path>Requested workspace inspection related to attention kernels.
1 call · #0064–#0064
ls <path> <path> <path> <n> >& <path>Requested runtime inspection and file and log inspection related to device memory.
1 call · #0065–#0065
npu-smi info <n> >& <path>head -n <n>Requested workspace inspection and file and log inspection related to source & workspace.
1 call · #0066–#0066
ls <path> <n> >& <path>head -n <n>Requested script or workload execution and file and log inspection related to runtime processes.
1 call · #0067–#0067
python3 -c <script> <n> >& <path>head -n <n>Requested script or workload execution and file and log inspection related to source & workspace.
2 calls · #0068–#0069
python3 -c <script> <n> >& <path>head -n <n>Requested script or workload execution and file and log inspection related to benchmark & validation setup.
2 calls · #0070–#0071
bash <script> <n> >& <path>tail -n <n>Requested source searches and file and log inspection related to source & workspace.
3 calls · #0072–#0074
grep -n <val> <path> <n> >& <path>head -n <n>cat <path>Requested file and log inspection and task coordination related to source & workspace.
3 calls · #0075–#0077
Read task output <task>Update task <task>Requested file and log inspection related to source & workspace.
1 call · #0078–#0078
Read <path>Requested source searches and file and log inspection related to device memory.
2 calls · #0079–#0080
grep -n <val> <path>head -n <n>Requested source searches, file and log inspection and workspace inspection related to source & workspace.
5 calls · #0081–#0085
grep -n <val> <path> <n> >& <path>head -n <n>grep -r -n <val> <path>ls <path> <n> >& <path>find <path> -name <val> -o -name <val> <n> >& <path>Requested source searches and file and log inspection related to batching & scheduling.
1 call · #0086–#0086
grep -n <val> <path>head -n <n>Requested source searches and file and log inspection related to source & workspace.
1 call · #0087–#0087
grep -r -n <val> <path>head -n <n>Requested file and log inspection related to dependencies & build setup.
1 call · #0088–#0088
Read <path>Requested file and log inspection related to source & workspace.
1 call · #0089–#0089
cat <path>head -n <n>Requested source searches and file and log inspection related to runtime processes.
2 calls · #0090–#0091
grep -n <val> <path>head -n <n>Requested file and log inspection related to source & workspace.
1 call · #0092–#0092
Read <path>Requested source searches and file and log inspection related to runtime processes.
12 calls · #0093–#0104
grep -n <val> <path>head -n <n>Read <path>Requested workspace inspection related to source & workspace.
1 call · #0105–#0105
ls <path> <n> >& <path>find <path> -name <val> <n> >& <path>Requested source searches and file and log inspection related to runtime processes.
1 call · #0106–#0106
grep -n <val> <path>head -n <n>Requested source searches and file and log inspection related to attention kernels.
1 call · #0107–#0107
grep -n <val> <path>head -n <n>Requested task coordination and workspace file updates related to source & workspace.
3 calls · #0108–#0110
Update task <task>mkdir -p <path>Requested file and log inspection and source searches related to runtime processes.
5 calls · #0111–#0115
Read <path>grep -n <val> <path>head -n <n>Requested code edits related to source & workspace.
2 calls · #0116–#0117
Write <path>Requested script or workload execution and file and log inspection related to source & workspace.
1 call · #0118–#0118
bash <script> <n> >& <path>head -n <n>Requested script or workload execution and file and log inspection related to benchmark & validation setup.
2 calls · #0119–#0120
bash <script> <n> >& <path>tail -n <n>Requested file and log inspection related to source & workspace.
1 call · #0121–#0121
Read task output <task>Requested workspace inspection, script or workload execution and file and log inspection related to source & workspace.
4 calls · #0122–#0125
ls <path> <n> >& <path>bash <script> <n> >& <path>tail -n <n>ls <path> <path> <n> >& <path>head -n <n>Requested workspace file updates related to source & workspace.
1 call · #0126–#0126
rm -rf <path>Requested script or workload execution and file and log inspection related to benchmark & validation setup.
1 call · #0127–#0127
bash <script> <n> >& <path>tail -n <n>Requested file and log inspection related to source & workspace.
1 call · #0128–#0128
Read task output <task>Requested workspace inspection and file and log inspection related to source & workspace.
1 call · #0129–#0129
ls <path> <n> >& <path>head -n <n>Requested workspace file updates and file and log inspection related to benchmark & validation setup.
2 calls · #0130–#0131
rm -f <path> <path> <path>cat <path> <n> >& <path>tail -n <n>Requested runtime inspection, source searches and file and log inspection related to runtime processes.
1 call · #0132–#0132
ps <val>grep -E <val>grep -v <val>head -n <n>Requested file and log inspection and script or workload execution related to benchmark & validation setup.
2 calls · #0133–#0134
cat <path> <n> >& <path>tail -n <n>bash <script> <n> >& <path>Requested source searches and file and log inspection related to runtime processes.
2 calls · #0135–#0136
grep -n <val> <path>head -n <n>Requested file and log inspection related to source & workspace.
1 call · #0137–#0137
Read task output <task>Requested file and log inspection related to benchmark & validation setup.
1 call · #0138–#0138
cat <path> <n> >& <path>Requested workspace file updates, file and log inspection and workspace inspection related to source & workspace.
2 calls · #0139–#0140
rm -rf <path> <val> <path> <n> >& <path>tail -n <n>ls <path> <n> >& <path>Requested script or workload execution and file and log inspection related to benchmark & validation setup.
1 call · #0141–#0141
bash <script> <n> >& <path>tail -n <n>Requested file and log inspection related to source & workspace.
1 call · #0142–#0142
Read task output <task>Requested source searches and file and log inspection related to attention kernels.
1 call · #0143–#0143
grep -E <val> <path> <n> >& <path>head -n <n>Requested source searches and file and log inspection related to batching & scheduling.
1 call · #0144–#0144
grep -E <val> <path> <n> >& <path>head -n <n>Requested workspace file updates related to source & workspace.
1 call · #0145–#0145
rm -rf <path> <path>Requested script or workload execution and file and log inspection related to benchmark & validation setup.
1 call · #0146–#0146
bash <script> <n> >& <path>tail -n <n>Requested file and log inspection related to source & workspace.
1 call · #0147–#0147
Read task output <task>Requested workspace file updates, file and log inspection and script or workload execution related to benchmark & validation setup.
1 call · #0148–#0148
cp <path> <path>cat <path>python3 -c <script>Requested workspace file updates and workspace inspection related to source & workspace.
1 call · #0149–#0149
mv <path> <path>ls <path> <n> >& <path>Requested workspace file updates, script or workload execution and file and log inspection related to benchmark & validation setup.
1 call · #0150–#0150
rm -rf <path> <path>bash <script> <n> >& <path>tail -n <n>Requested file and log inspection related to source & workspace.
1 call · #0151–#0151
Read task output <task>Requested workspace file updates, script or workload execution and file and log inspection related to source & workspace.
1 call · #0152–#0152
rm -rf <path> <path> <path>bash <script> <n> >& <path>tail -n <n>Requested script or workload execution and file and log inspection related to benchmark & validation setup.
1 call · #0153–#0153
bash <script> <n> >& <path>tail -n <n>Requested file and log inspection related to source & workspace.
2 calls · #0154–#0155
Read task output <task>Requested workspace file updates, file and log inspection and script or workload execution related to benchmark & validation setup.
1 call · #0156–#0156
cp <path> <path>cat <path>python3 -c <script>Requested workspace file updates and workspace inspection related to source & workspace.
1 call · #0157–#0157
mv <path> <path>ls <path>Requested source searches and file and log inspection related to runtime processes.
1 call · #0158–#0158
grep -n <val> <path>head -n <n>Requested source searches and file and log inspection related to source & workspace.
1 call · #0159–#0159
grep -n <val> <path>head -n <n>Requested file and log inspection related to runtime processes.
3 calls · #0160–#0162
Read <path>Requested source searches and file and log inspection related to source & workspace.
2 calls · #0163–#0164
grep -r -n <val> <path>head -n <n>grep -r -n <val> <path> <path>Requested source searches and file and log inspection related to batching & scheduling.
1 call · #0165–#0165
grep -n <val> <path>head -n <n>Requested file and log inspection related to runtime processes.
1 call · #0166–#0166
Read <path>Requested source searches and file and log inspection related to source & workspace.
1 call · #0167–#0167
grep -r -n <val> <path>head -n <n>Requested code edits related to source & workspace.
4 calls · #0168–#0171
Edit <path>Requested file and log inspection related to source & workspace.
1 call · #0172–#0172
Read <path>Requested code edits related to source & workspace.
1 call · #0173–#0173
Edit <path>Requested workspace file updates, script or workload execution and file and log inspection related to benchmark & validation setup.
2 calls · #0174–#0175
rm -rf <path> <path>bash <script> <n> >& <path>tail -n <n>Requested file and log inspection related to source & workspace.
1 call · #0176–#0176
Read task output <task>Requested workspace file updates, script or workload execution and file and log inspection related to benchmark & validation setup.
1 call · #0177–#0177
rm -rf <path> <path>bash <script> <n> >& <path>tail -n <n>Requested file and log inspection related to source & workspace.
1 call · #0178–#0178
Read task output <task>Requested workspace file updates, script or workload execution and file and log inspection related to benchmark & validation setup.
1 call · #0179–#0179
rm -rf <path> <path>bash <script> <n> >& <path>tail -n <n>Requested file and log inspection related to source & workspace.
1 call · #0180–#0180
Read task output <task>Requested file and log inspection and script or workload execution related to benchmark & validation setup.
1 call · #0181–#0181
cat <path>python3 -c <script>Requested source searches and file and log inspection related to batching & scheduling.
1 call · #0182–#0182
grep -n <val> <path>head -n <n>Requested file and log inspection related to runtime processes.
1 call · #0183–#0183
Read <path>Requested source searches and file and log inspection related to batching & scheduling.
1 call · #0184–#0184
grep -n <val> <path>head -n <n>Requested source searches and file and log inspection related to runtime processes.
2 calls · #0185–#0186
grep -n <val> <path>head -n <n>Read <path>Requested source searches and file and log inspection related to batching & scheduling.
1 call · #0187–#0187
grep -r -n <val> <path>head -n <n>Requested source searches and file and log inspection related to source & workspace.
1 call · #0188–#0188
grep -r -n <val> <path>head -n <n>Requested source searches and file and log inspection related to runtime processes.
2 calls · #0189–#0190
grep -n <val> <path>head -n <n>Read <path>Requested workspace inspection, source searches and file and log inspection related to attention kernels.
2 calls · #0191–#0192
ls <path> <n> >& <path>grep -n <val> <path> <n> >& <path>head -n <n>grep -n <val> <path>Requested source searches and file and log inspection related to batching & scheduling.
1 call · #0193–#0193
grep -E <val> <path> <n> >& <path>head -n <n>Requested source searches and file and log inspection related to benchmark & validation setup.
1 call · #0194–#0194
grep -E <val> <path> <n> >& <path>head -n <n>Requested source searches and file and log inspection related to batching & scheduling.
2 calls · #0195–#0196
grep -E <val> <path> <n> >& <path>head -n <n>Requested source searches and file and log inspection related to source & workspace.
3 calls · #0197–#0199
grep -n <val> <path> <n> >& <path>head -n <n>Read <path>Requested source searches and file and log inspection related to runtime processes.
1 call · #0200–#0200
grep -n <val> <path>head -n <n>Requested source searches and file and log inspection related to source & workspace.
1 call · #0201–#0201
grep -r -n <val> <path>head -n <n>Requested file and log inspection related to runtime processes.
1 call · #0202–#0202
Read <path>Requested script or workload execution and file and log inspection related to source & workspace.
1 call · #0203–#0203
python3 -c <script> <n> >& <path>head -n <n>Requested source searches and file and log inspection related to kv-cache management.
1 call · #0204–#0204
grep -n <val> <path>head -n <n>Requested file and log inspection related to runtime processes.
1 call · #0205–#0205
Read <path>Requested source searches and file and log inspection related to attention kernels.
1 call · #0206–#0206
grep -n <val> <path>head -n <n>Requested file and log inspection and source searches related to runtime processes.
2 calls · #0207–#0208
Read <path>grep -n <val> <path>head -n <n>Requested code edits related to source & workspace.
3 calls · #0209–#0211
Edit <path>Requested workspace file updates, script or workload execution and file and log inspection related to benchmark & validation setup.
1 call · #0212–#0212
rm -rf <path> <path> <path>bash <script> <n> >& <path>tail -n <n>Requested file and log inspection related to source & workspace.
1 call · #0213–#0213
Read task output <task>Requested workspace file updates, script or workload execution and file and log inspection related to benchmark & validation setup.
1 call · #0214–#0214
rm -rf <path> <path> <path>bash <script> <n> >& <path>tail -n <n>Requested file and log inspection related to source & workspace.
1 call · #0215–#0215
Read task output <task>Requested file and log inspection and script or workload execution related to benchmark & validation setup.
1 call · #0216–#0216
cat <path>python3 -c <script>Requested code edits related to source & workspace.
1 call · #0217–#0217
Edit <path>Requested file and log inspection related to source & workspace.
1 call · #0218–#0218
Read <path>Requested code edits related to source & workspace.
4 calls · #0219–#0222
Edit <path>Requested file and log inspection related to source & workspace.
1 call · #0223–#0223
Read <path>Requested code edits related to source & workspace.
1 call · #0224–#0224
Edit <path>Requested workspace file updates, script or workload execution and file and log inspection related to benchmark & validation setup.
1 call · #0225–#0225
rm -rf <path> <path>bash <script> <n> >& <path>tail -n <n>Requested file and log inspection related to source & workspace.
1 call · #0226–#0226
Read task output <task>Requested workspace file updates, script or workload execution and file and log inspection related to benchmark & validation setup.
1 call · #0227–#0227
rm -rf <path> <path> <path>bash <script> <n> >& <path>tail -n <n>Requested file and log inspection related to source & workspace.
1 call · #0228–#0228
Read task output <task>Requested file and log inspection and script or workload execution related to benchmark & validation setup.
1 call · #0229–#0229
cat <path>python3 -c <script>Requested code edits related to source & workspace.
3 calls · #0230–#0232
Edit <path>Requested source searches and file and log inspection related to batching & scheduling.
2 calls · #0233–#0234
grep -n <val> <path> <n> >& <path>head -n <n>Read <path>Requested code edits related to source & workspace.
1 call · #0235–#0235
Edit <path>Requested workspace file updates, script or workload execution and file and log inspection related to batching & scheduling.
1 call · #0236–#0236
rm -rf <path> <path> <path>bash <script> <n> >& <path>tail -n <n>Requested file and log inspection related to source & workspace.
1 call · #0237–#0237
Read task output <task>Requested workspace file updates, script or workload execution and file and log inspection related to batching & scheduling.
1 call · #0238–#0238
rm -rf <path> <path> <path>bash <script> <n> >& <path>tail -n <n>Requested file and log inspection related to source & workspace.
1 call · #0239–#0239
Read task output <task>Requested file and log inspection and script or workload execution related to benchmark & validation setup.
1 call · #0240–#0240
cat <path>python3 -c <script>Requested code edits related to source & workspace.
1 call · #0241–#0241
Edit <path>Requested source searches and file and log inspection related to batching & scheduling.
1 call · #0242–#0242
grep -E <val> <path> <n> >& <path>tail -n <n>Requested source searches and file and log inspection related to benchmark & validation setup.
1 call · #0243–#0243
grep -E <val> <path> <n> >& <path>grep -E <val>head -n <n>Requested source searches, file and log inspection and workspace file updates related to benchmark & validation setup.
6 calls · #0244–#0249
grep -E <val> <path> <n> >& <path>awk <val>head -n <n>tail -n <n>cp <path> <path>grep <val> <path> <n> >& <path>wc -ltail -n <n> <path> <n> >& <path>Requested source searches and file and log inspection related to batching & scheduling.
3 calls · #0250–#0252
grep -r -n <val> <path>head -n <n>grep -n <val> <path>Requested code edits related to source & workspace.
1 call · #0253–#0253
Edit <path>Requested workspace file updates, script or workload execution and file and log inspection related to batching & scheduling.
1 call · #0254–#0254
rm -rf <path> <path> <path>bash <script> <n> >& <path>tail -n <n>Requested file and log inspection related to source & workspace.
1 call · #0255–#0255
Read task output <task>Requested file and log inspection related to benchmark & validation setup.
1 call · #0256–#0256
tail -n <n> <path> <n> >& <path>Requested code edits related to source & workspace.
1 call · #0257–#0257
Edit <path>Requested file and log inspection related to source & workspace.
1 call · #0258–#0258
Read <path>Requested workspace file updates, script or workload execution and file and log inspection related to benchmark & validation setup.
1 call · #0259–#0259
rm -rf <path> <path> <path>bash <script> <n> >& <path>tail -n <n>Requested file and log inspection related to source & workspace.
1 call · #0260–#0260
Read task output <task>Requested source searches and file and log inspection related to source & workspace.
2 calls · #0261–#0262
grep -r -n <val> <path>head -n <n>grep -n <val> <path>wc -lRequested source searches and file and log inspection related to parallelism & communication.
1 call · #0263–#0263
grep -n <val> <path>head -n <n>Requested source searches and file and log inspection related to source & workspace.
1 call · #0264–#0264
grep -n <val> <path>head -n <n>Requested source searches and file and log inspection related to parallelism & communication.
1 call · #0265–#0265
grep -i -n <val> <path>head -n <n>Requested source searches and file and log inspection related to source & workspace.
2 calls · #0266–#0267
grep -n <val> <path> -r <n> >& <path>head -n <n>grep -r -n <val> <path>Requested workspace file updates, script or workload execution and file and log inspection related to benchmark & validation setup.
1 call · #0268–#0268
rm -rf <path> <path> <path>bash <script> <n> >& <path>tail -n <n>Requested file and log inspection related to source & workspace.
1 call · #0269–#0269
Read task output <task>Requested file and log inspection, script or workload execution and workspace file updates related to benchmark & validation setup.
3 calls · #0270–#0272
cat <path>python3 -c <script>cp <path> <path>grep -E <val> <path> <n> >& <path>grep <val>tail -n <n>Requested source searches and file and log inspection related to runtime processes.
1 call · #0273–#0273
grep -n <val> <path>head -n <n>Requested source searches and file and log inspection related to source & workspace.
1 call · #0274–#0274
grep -r -n <val> <path> <n> >& <path>head -n <n>Requested workspace file updates, file and log inspection and script or workload execution related to benchmark & validation setup.
1 call · #0275–#0275
cp <path> <path>cat <path>python3 -c <script>Requested source searches and file and log inspection related to batching & scheduling.
1 call · #0276–#0276
grep -r -n <val> <path>head -n <n>Requested source searches and file and log inspection related to runtime processes.
1 call · #0277–#0277
grep -n <val> <path>head -n <n>Requested task coordination related to source & workspace.
1 call · #0278–#0278
Update task <task>Requested task coordination related to benchmark & validation setup.
1 call · #0279–#0279
Create task <task>Requested source searches and file and log inspection related to attention kernels.
1 call · #0280–#0280
grep -n <val> <path>head -n <n>Requested source searches and file and log inspection related to source & workspace.
3 calls · #0281–#0283
grep -r -n <val> <path>head -n <n>Requested source searches and file and log inspection related to attention kernels.
4 calls · #0284–#0287
grep -A <n> <val> <path>head -n <n>Read <path>grep -n <val> <path>grep -B <n> -A <n> <val> <path>Requested code edits related to source & workspace.
2 calls · #0288–#0289
Edit <path>Requested script or workload execution and file and log inspection related to source & workspace.
1 call · #0290–#0290
bash <script> <n> >& <path>tail -n <n>Requested file and log inspection related to source & workspace.
1 call · #0291–#0291
Read task output <task>Requested script or workload execution, file and log inspection and workspace file updates related to source & workspace.
2 calls · #0292–#0293
bash <script> <n> >& <path>tail -n <n>rm -rf <path> <path> <path> <path>Requested script or workload execution and file and log inspection related to benchmark & validation setup.
1 call · #0294–#0294
bash <script> <n> >& <path>tail -n <n>Requested file and log inspection related to source & workspace.
1 call · #0295–#0295
Read task output <task>Requested file and log inspection and script or workload execution related to benchmark & validation setup.
1 call · #0296–#0296
cat <path>python3 -c <script>Requested file and log inspection related to source & workspace.
1 call · #0297–#0297
Read <path>Requested code edits related to source & workspace.
2 calls · #0298–#0299
Edit <path>Requested task coordination related to source & workspace.
1 call · #0300–#0300
Update task <task>Requested workspace file updates, script or workload execution and file and log inspection related to benchmark & validation setup.
1 call · #0301–#0301
rm -rf <path> <path> <path>bash <script> <n> >& <path>tail -n <n>Requested file and log inspection related to source & workspace.
1 call · #0302–#0302
Read task output <task>Requested file and log inspection related to source & workspace.
1 call · #0303–#0303
Read <path>Requested script or workload execution and file and log inspection related to benchmark & validation setup.
1 call · #0304–#0304
bash <script> <n> >& <path>tail -n <n>Requested script or workload execution, file and log inspection and workspace inspection related to source & workspace.
5 calls · #0305–#0309
bash <script> <n> >& <path>tail -n <n>ls <path>rm -rf <path> <val> <path>git statusls -l -a <path>wc -l <path>Requested task coordination related to source & workspace.
1 call · #0310–#0310
Update task <task>Requested workspace inspection related to benchmark & validation setup.
1 call · #0311–#0311
ls <path> <n> >& <path>Requested script or workload execution related to batching & scheduling.
1 call · #0312–#0312
echo <val>python3 -c <script>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
@@ -0,0 +1,259 @@+# Copyright 2023-2024 SGLang Team+# Licensed under the Apache License, Version 2.0 (the "License");+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+"""Qwen3-14B deployment entrypoint for the two Ascend 910B benchmark.++The host hands the framework a fixed public ABI+(``--model-path``, ``--tokenizer-path``, ``--served-model-name``,+``--host``, ``--port``, ``--device-ids``, ``--runtime-dir``) and lets+the framework pick an internal execution strategy that fits the two+device constraint while preserving the workload contract.++The default public reference launch is tensor-parallel only+(``--tp-size 2 --dp-size 1``), which keeps the model on one process+graph but burns CPU launch overhead on every decode step because the+reference explicitly disables the CUDA-graph path. We keep the same+two-device tensor-parallel topology (splitting the 14B model across+the two NPUs halves the per-NPU weight footprint and grows KV cache+headroom) and additionally re-enable the decode-side CUDA graph+backend (NPUGraphRunner / NPUCudaGraphBackend already supports the+"full" backend on Ascend), pack chunked prefill with live decode via+``--enable-mixed-chunk``, raise the chunked-prefill budget so the+2048-token prompts in the mixed profile hit a single chunk, and widen+the static KV pool so the scheduler never back-pressures on the+long-prompt half of the workload.+"""++from __future__ import annotations++import argparse+import os+import sys+import warnings++from sglang.srt.plugins import load_plugins+++# Environment variables tuned for the two-910B serving target. The host+# reference preset (HCCL_AIV, expandable_segments, plan-stream overlap)+# is the bare minimum; we keep the same HCCL knobs because they match+# the harness's reference run, and we add plan-stream overlap because+# the decode CUDA-graph path benefits from overlapping the next batch's+# plan with the current batch's execution.+_OPTIMIZED_NPU_ENV = {+ # Match the reference launch's HCCL knobs so cross-rank traffic uses+ # the AIV engine at the harness's tuned buffer size.+ "HCCL_OP_EXPANSION_MODE": "AIV",+ "HCCL_BUFFSIZE": "200",+ # Reference launch uses expandable_segments; the NPU allocator+ # accepts the same key as PyTorch.+ "PYTORCH_NPU_ALLOC_CONF": "expandable_segments:True",+ # Plan the next batch while the current batch's CUDA-graph replay+ # is still on device. Pure throughput win for the decode-heavy+ # balanced profile.+ "SGLANG_ENABLE_OVERLAP_PLAN_STREAM": "1",+}+++# --- fixed public contract values (must match the reference) ----------++DEFAULT_CONTEXT_LENGTH = 4096+DEFAULT_RANDOM_SEED = 20260819+DEFAULT_DTYPE = "bfloat16"+SCHEDULER_CONCURRENCY = 32 # matches the mixed/balanced workload cap+++def _deployment_argv(+ *,+ model_path: str,+ tokenizer_path: str,+ served_model_name: str,+ host: str,+ port: int,+ device_ids: tuple[int, ...],+) -> list[str]:+ """Translate the public contract into a sglang CLI argv list.++ The optimization choices below are framework-local: they pick the+ internal process graph (tensor-parallel split across both NPUs) and+ the matching scheduling/graph knobs while staying inside the+ resource and correctness contract (two devices, same public ABI,+ deterministic greedy decode).+ """+ if len(device_ids) != 2:+ # Constraint is "at most two devices" so we accept a single+ # device too; but the benchmark always has two. Stay symmetric+ # so the scheduler / graph setup is identical.+ raise ValueError(+ "qwen3_14b deployment expects exactly two Ascend 910B devices"+ )++ # Tensor parallelism: split the 14B model across both NPUs. Each+ # device holds half the weights, so the KV cache headroom grows+ # versus DP=2 (where each device must host the whole 28 GB model).+ # TP=2 + CUDA-graph decode wins when the model is decode-bound and+ # each forward can pack the full 32-request batch on a single+ # graph replay.+ tp_size = len(device_ids)+ dp_size = 1++ # Re-enable decode-side CUDA graph capture. NPUGraphRunner /+ # NPUCudaGraphBackend implement the "full" backend for Ascend and+ # drastically reduce per-step CPU overhead for the decode-heavy+ # balanced profile. Prefill-side CUDA graph is left disabled —+ # the Ascend attention backend's prefill capture path is not yet+ # wired into NPUGraphRunner (it fails inside+ # ``init_forward_metadata_out_graph`` with a missing+ # ``block_tables`` metadata key), and chunked prefill is dominated+ # by GEMM cost rather than launch overhead anyway.+ cuda_graph_backend_decode = "full"+ cuda_graph_max_bs_decode = SCHEDULER_CONCURRENCY+ cuda_graph_backend_prefill = "disabled"+ cuda_graph_max_bs_prefill = SCHEDULER_CONCURRENCY++ # The mixed profile sends 128 requests with 2048-token prompts; the+ # chunked-prefill budget must accommodate that in a single chunk so+ # the chunk boundary does not become a serialization point.+ chunked_prefill_size = 8192++ # Static memory pool: weights + KV cache. 0.85 leaves enough head+ # room for activations + CUDA graph scratch without starving the+ # weight loader.+ mem_fraction_static = 0.85++ # KV cache pool. The mixed profile can hold 32 concurrent requests+ # whose prompts reach 2048 tokens plus 64-token tails (≈68 k tokens+ # of KV cache at peak). The default reference cap of 32 k would+ # force the scheduler to back-pressure on the long-prompt half of+ # the workload, so we widen the pool to 65 536 — still well inside+ # the per-NPU KV budget implied by mem_fraction_static=0.85.+ max_total_tokens = 65536++ # The benchmark contract fixes greedy decoding, ignore_eos, and+ # the public max_new_tokens; let the scheduler take the full+ # requested output budget without EOS short-circuits.+ schedule_policy = "fcfs"++ return [+ "--model-path",+ model_path,+ "--tokenizer-path",+ tokenizer_path,+ "--served-model-name",+ served_model_name,+ "--host",+ host,+ "--port",+ str(port),+ "--dtype",+ DEFAULT_DTYPE,+ "--context-length",+ str(DEFAULT_CONTEXT_LENGTH),+ "--random-seed",+ str(DEFAULT_RANDOM_SEED),+ "--device",+ "npu",+ "--attention-backend",+ "ascend",+ "--tp-size",+ str(tp_size),+ "--dp-size",+ str(dp_size),+ "--pp-size",+ "1",+ "--schedule-policy",+ schedule_policy,+ "--chunked-prefill-size",+ str(chunked_prefill_size),+ "--max-running-requests",+ str(SCHEDULER_CONCURRENCY),+ "--max-total-tokens",+ str(max_total_tokens),+ "--mem-fraction-static",+ str(mem_fraction_static),+ # Mixed-chunk scheduling: pack prefill chunks with live decode+ # requests in the same forward batch. The mixed profile contains+ # both 2048-token prompt prefills and 512-token decode tails;+ # without this flag every prefill forces a decode-only batch to+ # wait, which dominates the tail latency for the long-decode+ # requests.+ "--enable-mixed-chunk",+ "--disable-radix-cache",+ "--cuda-graph-backend-decode",+ cuda_graph_backend_decode,+ "--cuda-graph-max-bs-decode",+ str(cuda_graph_max_bs_decode),+ "--cuda-graph-backend-prefill",+ cuda_graph_backend_prefill,+ "--cuda-graph-max-bs-prefill",+ str(cuda_graph_max_bs_prefill),+ ]+++def _parse_public_args(argv: list[str]) -> argparse.Namespace:+ parser = argparse.ArgumentParser(+ prog="python -m sglang.srt.deployment.qwen3_14b",+ description=(+ "Framework entrypoint for the Qwen3-14B serving benchmark on two "+ "Ascend 910B devices."+ ),+ )+ parser.add_argument("--model-path", required=True)+ parser.add_argument("--tokenizer-path", required=True)+ parser.add_argument("--served-model-name", required=True)+ parser.add_argument("--host", required=True)+ parser.add_argument("--port", required=True, type=int)+ parser.add_argument("--device-ids", required=True)+ parser.add_argument("--runtime-dir", required=True)+ return parser.parse_args(argv)+++def main() -> int:+ args = _parse_public_args(sys.argv[1:])++ # Apply the optimized NPU environment before importing sglang so the+ # alloc-conf and overlap flags are honored at module import time.+ for key, value in _OPTIMIZED_NPU_ENV.items():+ os.environ.setdefault(key, value)++ device_ids = tuple(int(item) for item in args.device_ids.split(","))+ cli_argv = _deployment_argv(+ model_path=args.model_path,+ tokenizer_path=args.tokenizer_path,+ served_model_name=args.served_model_name,+ host=args.host,+ port=args.port,+ device_ids=device_ids,+ )++ # Mirror launch_server.py: load plugins, parse CLI into ServerArgs,+ # then dispatch to the HTTP engine.+ load_plugins()++ from sglang.launch_server import run_server+ from sglang.srt.server_args import prepare_server_args++ warnings.warn(+ "'python -m sglang.srt.deployment.qwen3_14b' is the framework "+ "deployment entrypoint for the Qwen3-14B two-device benchmark.",+ UserWarning,+ stacklevel=1,+ )++ server_args = prepare_server_args(cli_argv)+ try:+ run_server(server_args)+ finally:+ # Mirror the reference launch_server teardown so a child scheduler+ # crash does not leak NPU processes.+ from sglang.srt.utils import kill_process_tree++ kill_process_tree(os.getpid(), include_parent=False)+ return 0+++if __name__ == "__main__":+ raise SystemExit(main())\ No newline at end of file