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
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 agentGemini 3.7 Flash · 385 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 and workspace inspection related to task requirements.
3 calls · #0002–#0004
Read <path>ls -l -a <path> <path> <path> <path>Requested file and log inspection related to source & workspace.
4 calls · #0005–#0008
Read <path>Requested file and log inspection related to runtime processes.
1 call · #0009–#0009
Read <path>Requested file and log inspection related to task requirements.
1 call · #0010–#0010
Read <path>Requested file and log inspection related to source & workspace.
1 call · #0011–#0011
Read <path>Requested environment setup or inspection and source searches related to source & workspace.
1 call · #0012–#0012
envgrep <val>trueRequested file and log inspection related to source & workspace.
1 call · #0013–#0013
Read <path>Requested script or workload execution related to source & workspace.
1 call · #0014–#0014
bash <script>Requested script or workload execution related to benchmark & validation setup.
1 call · #0015–#0015
bash <script>Requested task coordination related to source & workspace.
1 call · #0016–#0016
Manage task <task>Requested task coordination related to source & workspace.
1 call · #0017–#0017
Schedule <task>Requested task coordination related to source & workspace.
1 call · #0018–#0018
Manage task <task>Requested file and log inspection related to source & workspace.
1 call · #0019–#0019
Read <path>Requested task coordination related to source & workspace.
1 call · #0020–#0020
Schedule <task>Requested task coordination related to source & workspace.
1 call · #0021–#0021
Manage task <task>Requested workspace inspection related to task requirements.
1 call · #0022–#0022
ls -l -a <path>Requested file and log inspection related to benchmark & validation setup.
2 calls · #0023–#0024
Read <path>Requested file and log inspection related to task requirements.
1 call · #0025–#0025
Read <path>Requested script or workload execution related to benchmark & validation setup.
1 call · #0026–#0026
bash <script>Requested task coordination related to source & workspace.
1 call · #0027–#0027
Schedule <task>Requested workspace inspection related to source & workspace.
2 calls · #0028–#0029
Find <pattern>Requested task coordination related to source & workspace.
1 call · #0030–#0030
Manage task <task>Requested file and log inspection related to benchmark & validation setup.
1 call · #0031–#0031
Read <path>Requested task coordination related to source & workspace.
1 call · #0032–#0032
Manage task <task>Requested file and log inspection related to benchmark & validation setup.
1 call · #0033–#0033
Read <path>Requested task coordination related to source & workspace.
1 call · #0034–#0034
Schedule <task>Requested task coordination related to source & workspace.
1 call · #0035–#0035
Manage task <task>Requested file and log inspection related to benchmark & validation setup.
2 calls · #0036–#0037
Read <path>Requested task coordination related to source & workspace.
1 call · #0038–#0038
Schedule <task>Requested task coordination related to source & workspace.
1 call · #0039–#0039
Manage task <task>Requested file and log inspection related to benchmark & validation setup.
1 call · #0040–#0040
Read <path>Requested task coordination related to source & workspace.
1 call · #0041–#0041
Schedule <task>Requested task coordination related to source & workspace.
1 call · #0042–#0042
Manage task <task>Requested file and log inspection related to benchmark & validation setup.
1 call · #0043–#0043
Read <path>Requested task coordination related to source & workspace.
1 call · #0044–#0044
Schedule <task>Requested workspace inspection and file and log inspection related to source & workspace.
3 calls · #0045–#0047
Find <pattern>Read <path>Requested task coordination related to source & workspace.
1 call · #0048–#0048
Manage task <task>Requested file and log inspection related to benchmark & validation setup.
1 call · #0049–#0049
Read <path>Requested task coordination related to source & workspace.
1 call · #0050–#0050
Schedule <task>Requested file and log inspection related to source & workspace.
1 call · #0051–#0051
Read <path>Requested task coordination related to source & workspace.
1 call · #0052–#0052
Manage task <task>Requested file and log inspection related to benchmark & validation setup.
1 call · #0053–#0053
Read <path>Requested task coordination related to source & workspace.
1 call · #0054–#0054
Schedule <task>Requested source searches related to attention kernels.
1 call · #0055–#0055
Search <pattern> <path>Requested workspace inspection related to source & workspace.
2 calls · #0056–#0057
Find <pattern>Requested source searches related to attention kernels.
1 call · #0058–#0058
Search <pattern> <path>Requested workspace inspection related to source & workspace.
1 call · #0059–#0059
Find <pattern>Requested task coordination related to source & workspace.
1 call · #0060–#0060
Manage task <task>Requested file and log inspection related to benchmark & validation setup.
1 call · #0061–#0061
Read <path>Requested task coordination related to source & workspace.
1 call · #0062–#0062
Manage task <task>Requested task coordination related to source & workspace.
1 call · #0063–#0063
Schedule <task>Requested task coordination related to source & workspace.
1 call · #0064–#0064
Manage task <task>Requested file and log inspection related to benchmark & validation setup.
1 call · #0065–#0065
Read <path>Requested task coordination related to source & workspace.
1 call · #0066–#0066
Schedule <task>Requested task coordination related to source & workspace.
1 call · #0067–#0067
Manage task <task>Requested file and log inspection related to task requirements.
1 call · #0068–#0068
Read <path>Requested script or workload execution related to benchmark & validation setup.
1 call · #0069–#0069
bash <script>Requested task coordination related to source & workspace.
1 call · #0070–#0070
Schedule <task>Requested file and log inspection related to source & workspace.
3 calls · #0071–#0073
Read <path>Requested task coordination related to source & workspace.
1 call · #0074–#0074
Manage task <task>Requested file and log inspection related to benchmark & validation setup.
1 call · #0075–#0075
Read <path>Requested task coordination related to source & workspace.
1 call · #0076–#0076
Manage task <task>Requested file and log inspection related to benchmark & validation setup.
1 call · #0077–#0077
Read <path>Requested task coordination related to source & workspace.
1 call · #0078–#0078
Schedule <task>Requested task coordination related to source & workspace.
1 call · #0079–#0079
Manage task <task>Requested file and log inspection related to benchmark & validation setup.
1 call · #0080–#0080
Read <path>Requested task coordination related to source & workspace.
1 call · #0081–#0081
Schedule <task>Requested task coordination related to source & workspace.
1 call · #0082–#0082
Manage task <task>Requested file and log inspection related to benchmark & validation setup.
1 call · #0083–#0083
Read <path>Requested task coordination related to source & workspace.
1 call · #0084–#0084
Schedule <task>Requested task coordination related to source & workspace.
1 call · #0085–#0085
Manage task <task>Requested file and log inspection related to benchmark & validation setup.
1 call · #0086–#0086
Read <path>Requested task coordination related to source & workspace.
1 call · #0087–#0087
Schedule <task>Requested task coordination related to source & workspace.
1 call · #0088–#0088
Manage task <task>Requested file and log inspection related to benchmark & validation setup.
1 call · #0089–#0089
Read <path>Requested task coordination related to source & workspace.
1 call · #0090–#0090
Schedule <task>Requested task coordination related to source & workspace.
1 call · #0091–#0091
Manage task <task>Requested script or workload execution related to rollout generation.
1 call · #0092–#0092
python3 -c <script>Requested code edits related to source & workspace.
2 calls · #0093–#0094
Write <path>Requested script or workload execution related to source & workspace.
1 call · #0095–#0095
bash <script>Requested task coordination related to source & workspace.
1 call · #0096–#0096
Schedule <task>Requested task coordination related to source & workspace.
1 call · #0097–#0097
Manage task <task>Requested file and log inspection related to source & workspace.
3 calls · #0098–#0100
Read <path>Requested task coordination related to source & workspace.
1 call · #0101–#0101
Schedule <task>Requested task coordination related to source & workspace.
1 call · #0102–#0102
Manage task <task>Requested file and log inspection related to source & workspace.
1 call · #0103–#0103
Read <path>Requested script or workload execution, task coordination and workspace file updates related to source & workspace.
10 calls · #0104–#0113
python3 <script> <val>Schedule <task>Manage task <task>bash <script>cp <path> <path>Requested workspace inspection and source searches related to source & workspace.
2 calls · #0114–#0115
Find <pattern>Search <pattern> <path>Requested source searches and file and log inspection related to runtime processes.
3 calls · #0116–#0118
Search <pattern> <path>Read <path>Requested source searches, file and log inspection and workspace inspection related to source & workspace.
4 calls · #0119–#0122
Search <pattern> <path>Read <path>Find <pattern>Requested file and log inspection related to parallelism & communication.
4 calls · #0123–#0126
Read <path>Requested source searches related to attention kernels.
1 call · #0127–#0127
Search <pattern> <path>Requested source searches and file and log inspection related to source & workspace.
2 calls · #0128–#0129
Search <pattern> <path>Read <path>Requested file and log inspection and source searches related to attention kernels.
13 calls · #0130–#0142
Read <path>Search <pattern> <path>Requested source searches and file and log inspection related to runtime processes.
2 calls · #0143–#0144
Search <pattern> <path>Read <path>Requested script or workload execution related to source & workspace.
1 call · #0145–#0145
python3 -c <script>Requested code edits related to source & workspace.
1 call · #0146–#0146
Write <path>Requested workspace file updates related to source & workspace.
1 call · #0147–#0147
mkdir -p <path>Requested file and log inspection related to runtime processes.
1 call · #0148–#0148
cat <script>Requested script or workload execution related to source & workspace.
1 call · #0149–#0149
bash <script>Requested script or workload execution related to benchmark & validation setup.
2 calls · #0150–#0151
bash <script>Requested workspace inspection and file and log inspection related to source & workspace.
2 calls · #0152–#0153
ls -l -a <path>Read <path>Requested workspace file updates related to source & workspace.
1 call · #0154–#0154
rm -rf <path>Requested script or workload execution related to benchmark & validation setup.
1 call · #0155–#0155
bash <script>Requested workspace inspection related to source & workspace.
1 call · #0156–#0156
ls -l -a <path>Requested workspace file updates related to source & workspace.
1 call · #0157–#0157
rm -f <path>Requested script or workload execution related to benchmark & validation setup.
1 call · #0158–#0158
bash <script>Requested workspace file updates related to source & workspace.
1 call · #0159–#0159
rm -rf <path> <path>Requested script or workload execution related to benchmark & validation setup.
1 call · #0160–#0160
bash <script>Requested task coordination related to source & workspace.
1 call · #0161–#0161
Schedule <task>Requested task coordination related to source & workspace.
1 call · #0162–#0162
Manage task <task>Requested file and log inspection related to benchmark & validation setup.
1 call · #0163–#0163
Read <path>Requested file and log inspection related to source & workspace.
1 call · #0164–#0164
Read <path>Requested task coordination related to source & workspace.
1 call · #0165–#0165
Schedule <task>Requested task coordination related to source & workspace.
1 call · #0166–#0166
Manage task <task>Requested file and log inspection related to source & workspace.
4 calls · #0167–#0170
Read <path>Requested task coordination related to source & workspace.
1 call · #0171–#0171
Schedule <task>Requested task coordination related to source & workspace.
1 call · #0172–#0172
Manage task <task>Requested file and log inspection related to benchmark & validation setup.
1 call · #0173–#0173
Read <path>Requested task coordination related to source & workspace.
1 call · #0174–#0174
Schedule <task>Requested task coordination related to source & workspace.
1 call · #0175–#0175
Manage task <task>Requested file and log inspection related to benchmark & validation setup.
1 call · #0176–#0176
Read <path>Requested workspace file updates and script or workload execution related to source & workspace.
1 call · #0177–#0177
rm -rf <path> <path>bash <script>Requested task coordination related to source & workspace.
1 call · #0178–#0178
Schedule <task>Requested task coordination related to source & workspace.
1 call · #0179–#0179
Manage task <task>Requested file and log inspection related to source & workspace.
1 call · #0180–#0180
Read <path>Requested task coordination related to source & workspace.
1 call · #0181–#0181
Schedule <task>Requested task coordination related to source & workspace.
1 call · #0182–#0182
Manage task <task>Requested file and log inspection related to source & workspace.
3 calls · #0183–#0185
Read <path>Requested task coordination related to source & workspace.
1 call · #0186–#0186
Schedule <task>Requested task coordination related to source & workspace.
1 call · #0187–#0187
Manage task <task>Requested file and log inspection related to source & workspace.
1 call · #0188–#0188
Read <path>Requested task coordination related to source & workspace.
2 calls · #0189–#0190
Schedule <task>Manage task <task>Requested file and log inspection related to source & workspace.
1 call · #0191–#0191
Read <path>Requested task coordination and script or workload execution related to source & workspace.
7 calls · #0192–#0198
Schedule <task>python3 <script> <val>Manage task <task>shell <script>Requested file and log inspection related to task requirements.
2 calls · #0199–#0200
Read <path>Requested script or workload execution related to source & workspace.
1 call · #0201–#0201
bash <script>Requested file and log inspection related to task requirements.
2 calls · #0202–#0203
Read <path>Requested workspace file updates and script or workload execution related to benchmark & validation setup.
1 call · #0204–#0204
rm -rf <path> <path>bash <script>Requested task coordination related to source & workspace.
1 call · #0205–#0205
Schedule <task>Requested task coordination related to source & workspace.
1 call · #0206–#0206
Manage task <task>Requested file and log inspection related to benchmark & validation setup.
1 call · #0207–#0207
Read <path>Requested file and log inspection related to source & workspace.
1 call · #0208–#0208
Read <path>Requested task coordination related to source & workspace.
1 call · #0209–#0209
Schedule <task>Requested task coordination related to source & workspace.
1 call · #0210–#0210
Manage task <task>Requested file and log inspection related to benchmark & validation setup.
1 call · #0211–#0211
Read <path>Requested task coordination related to source & workspace.
1 call · #0212–#0212
Schedule <task>Requested task coordination related to source & workspace.
1 call · #0213–#0213
Manage task <task>Requested file and log inspection related to benchmark & validation setup.
1 call · #0214–#0214
Read <path>Requested task coordination related to source & workspace.
1 call · #0215–#0215
Schedule <task>Requested task coordination related to source & workspace.
1 call · #0216–#0216
Manage task <task>Requested file and log inspection related to benchmark & validation setup.
1 call · #0217–#0217
Read <path>Requested task coordination related to source & workspace.
1 call · #0218–#0218
Schedule <task>Requested task coordination related to source & workspace.
1 call · #0219–#0219
Manage task <task>Requested file and log inspection related to benchmark & validation setup.
1 call · #0220–#0220
Read <path>Requested task coordination related to source & workspace.
1 call · #0221–#0221
Schedule <task>Requested task coordination related to source & workspace.
1 call · #0222–#0222
Manage task <task>Requested file and log inspection related to benchmark & validation setup.
2 calls · #0223–#0224
Read <path>Requested task coordination related to source & workspace.
1 call · #0225–#0225
Schedule <task>Requested task coordination related to source & workspace.
1 call · #0226–#0226
Manage task <task>Requested file and log inspection related to benchmark & validation setup.
1 call · #0227–#0227
Read <path>Requested task coordination related to source & workspace.
1 call · #0228–#0228
Schedule <task>Requested file and log inspection and workspace inspection related to source & workspace.
14 calls · #0229–#0242
Read <path>Find <pattern>Requested file and log inspection related to runtime processes.
1 call · #0243–#0243
cat <script>Requested workspace file updates and script or workload execution related to benchmark & validation setup.
1 call · #0244–#0244
rm -rf <path> <path>bash <script>Requested task coordination related to source & workspace.
1 call · #0245–#0245
Schedule <task>Requested task coordination related to source & workspace.
1 call · #0246–#0246
Manage task <task>Requested file and log inspection related to benchmark & validation setup.
1 call · #0247–#0247
Read <path>Requested file and log inspection related to source & workspace.
1 call · #0248–#0248
Read <path>Requested task coordination related to source & workspace.
1 call · #0249–#0249
Schedule <task>Requested task coordination related to source & workspace.
1 call · #0250–#0250
Manage task <task>Requested file and log inspection related to benchmark & validation setup.
1 call · #0251–#0251
Read <path>Requested file and log inspection related to source & workspace.
1 call · #0252–#0252
Read <path>Requested task coordination related to source & workspace.
1 call · #0253–#0253
Schedule <task>Requested task coordination related to source & workspace.
1 call · #0254–#0254
Manage task <task>Requested file and log inspection related to source & workspace.
1 call · #0255–#0255
Read <path>Requested task coordination related to source & workspace.
1 call · #0256–#0256
Schedule <task>Requested workspace file updates and script or workload execution related to source & workspace.
1 call · #0257–#0257
rm -rf <path> <path>bash <script>Requested task coordination related to source & workspace.
1 call · #0258–#0258
Schedule <task>Requested task coordination related to source & workspace.
1 call · #0259–#0259
Manage task <task>Requested file and log inspection related to source & workspace.
3 calls · #0260–#0262
Read <path>Requested task coordination related to source & workspace.
1 call · #0263–#0263
Schedule <task>Requested task coordination related to source & workspace.
1 call · #0264–#0264
Manage task <task>Requested file and log inspection related to source & workspace.
2 calls · #0265–#0266
Read <path>Requested task coordination related to source & workspace.
1 call · #0267–#0267
Schedule <task>Requested task coordination related to source & workspace.
1 call · #0268–#0268
Manage task <task>Requested file and log inspection related to source & workspace.
1 call · #0269–#0269
Read <path>Requested task coordination related to source & workspace.
1 call · #0270–#0270
Schedule <task>Requested script or workload execution and task coordination related to source & workspace.
3 calls · #0271–#0273
python3 <script> <val>Schedule <task>bash <script>Requested workspace file updates and script or workload execution related to benchmark & validation setup.
1 call · #0274–#0274
rm -rf <path> <path>bash <script>Requested task coordination related to source & workspace.
1 call · #0275–#0275
Schedule <task>Requested task coordination related to source & workspace.
1 call · #0276–#0276
Manage task <task>Requested file and log inspection related to benchmark & validation setup.
1 call · #0277–#0277
Read <path>Requested file and log inspection related to source & workspace.
1 call · #0278–#0278
Read <path>Requested task coordination related to source & workspace.
1 call · #0279–#0279
Schedule <task>Requested task coordination related to source & workspace.
1 call · #0280–#0280
Manage task <task>Requested file and log inspection related to benchmark & validation setup.
1 call · #0281–#0281
Read <path>Requested task coordination related to source & workspace.
1 call · #0282–#0282
Schedule <task>Requested task coordination related to source & workspace.
1 call · #0283–#0283
Manage task <task>Requested file and log inspection related to benchmark & validation setup.
2 calls · #0284–#0285
Read <path>Requested task coordination related to source & workspace.
1 call · #0286–#0286
Schedule <task>Requested task coordination related to source & workspace.
1 call · #0287–#0287
Manage task <task>Requested file and log inspection related to benchmark & validation setup.
1 call · #0288–#0288
Read <path>Requested task coordination related to source & workspace.
1 call · #0289–#0289
Schedule <task>Requested task coordination related to source & workspace.
1 call · #0290–#0290
Manage task <task>Requested file and log inspection related to benchmark & validation setup.
1 call · #0291–#0291
Read <path>Requested source searches related to source & workspace.
3 calls · #0292–#0294
Search <pattern> <path>Requested source searches related to attention kernels.
1 call · #0295–#0295
Search <pattern> <path>Requested workspace inspection, file and log inspection and source searches related to source & workspace.
11 calls · #0296–#0306
Find <pattern>Read <path>Search <pattern> <path>Requested task coordination related to source & workspace.
3 calls · #0307–#0309
shell <script>Schedule <task>Manage task <task>Requested file and log inspection related to source & workspace.
1 call · #0310–#0310
Read <path>Requested task coordination related to source & workspace.
2 calls · #0311–#0312
Schedule <task>Manage task <task>Requested file and log inspection related to source & workspace.
1 call · #0313–#0313
Read <path>Requested source searches related to runtime processes.
1 call · #0314–#0314
Search <pattern> <path>Requested file and log inspection related to source & workspace.
1 call · #0315–#0315
Read <path>Requested source searches related to runtime processes.
1 call · #0316–#0316
Search <pattern> <path>Requested code edits related to source & workspace.
1 call · #0317–#0317
Edit <path>Requested workspace file updates and script or workload execution related to benchmark & validation setup.
1 call · #0318–#0318
rm -rf <path> <path>bash <script>Requested task coordination related to source & workspace.
1 call · #0319–#0319
Schedule <task>Requested task coordination related to source & workspace.
1 call · #0320–#0320
Manage task <task>Requested file and log inspection related to benchmark & validation setup.
1 call · #0321–#0321
Read <path>Requested file and log inspection related to source & workspace.
1 call · #0322–#0322
Read <path>Requested task coordination related to source & workspace.
1 call · #0323–#0323
Schedule <task>Requested task coordination related to source & workspace.
1 call · #0324–#0324
Manage task <task>Requested file and log inspection related to benchmark & validation setup.
1 call · #0325–#0325
Read <path>Requested file and log inspection related to source & workspace.
1 call · #0326–#0326
Read <path>Requested task coordination related to source & workspace.
1 call · #0327–#0327
Schedule <task>Requested task coordination related to source & workspace.
1 call · #0328–#0328
Manage task <task>Requested file and log inspection related to source & workspace.
1 call · #0329–#0329
Read <path>Requested task coordination related to source & workspace.
1 call · #0330–#0330
Schedule <task>Requested task coordination related to source & workspace.
1 call · #0331–#0331
Manage task <task>Requested file and log inspection related to benchmark & validation setup.
1 call · #0332–#0332
Read <path>Requested task coordination related to source & workspace.
1 call · #0333–#0333
Schedule <task>Requested task coordination related to source & workspace.
1 call · #0334–#0334
Manage task <task>Requested workspace file updates and script or workload execution related to benchmark & validation setup.
1 call · #0335–#0335
rm -rf <path> <path>bash <script>Requested task coordination related to source & workspace.
1 call · #0336–#0336
Schedule <task>Requested task coordination related to source & workspace.
1 call · #0337–#0337
Manage task <task>Requested file and log inspection related to benchmark & validation setup.
1 call · #0338–#0338
Read <path>Requested file and log inspection related to source & workspace.
2 calls · #0339–#0340
Read <path>Requested task coordination related to source & workspace.
1 call · #0341–#0341
Schedule <task>Requested task coordination related to source & workspace.
1 call · #0342–#0342
Manage task <task>Requested file and log inspection related to benchmark & validation setup.
1 call · #0343–#0343
Read <path>Requested file and log inspection related to source & workspace.
1 call · #0344–#0344
Read <path>Requested task coordination related to source & workspace.
1 call · #0345–#0345
Schedule <task>Requested task coordination related to source & workspace.
1 call · #0346–#0346
Manage task <task>Requested file and log inspection related to benchmark & validation setup.
2 calls · #0347–#0348
Read <path>Requested task coordination related to source & workspace.
1 call · #0349–#0349
Schedule <task>Requested task coordination related to source & workspace.
1 call · #0350–#0350
Manage task <task>Requested file and log inspection related to benchmark & validation setup.
2 calls · #0351–#0352
Read <path>Requested task coordination related to source & workspace.
1 call · #0353–#0353
Schedule <task>Requested task coordination related to source & workspace.
1 call · #0354–#0354
Manage task <task>Requested file and log inspection related to benchmark & validation setup.
1 call · #0355–#0355
Read <path>Requested task coordination related to source & workspace.
1 call · #0356–#0356
Schedule <task>Requested code edits related to source & workspace.
1 call · #0357–#0357
Edit <path>Requested workspace file updates and script or workload execution related to benchmark & validation setup.
1 call · #0358–#0358
rm -rf <path> <path>bash <script>Requested task coordination related to source & workspace.
1 call · #0359–#0359
Schedule <task>Requested task coordination related to source & workspace.
1 call · #0360–#0360
Manage task <task>Requested file and log inspection related to benchmark & validation setup.
1 call · #0361–#0361
Read <path>Requested file and log inspection related to source & workspace.
3 calls · #0362–#0364
Read <path>Requested task coordination related to source & workspace.
1 call · #0365–#0365
Schedule <task>Requested task coordination related to source & workspace.
1 call · #0366–#0366
Manage task <task>Requested file and log inspection related to benchmark & validation setup.
2 calls · #0367–#0368
Read <path>Requested task coordination related to source & workspace.
1 call · #0369–#0369
Schedule <task>Requested task coordination related to source & workspace.
1 call · #0370–#0370
Manage task <task>Requested file and log inspection related to benchmark & validation setup.
2 calls · #0371–#0372
Read <path>Requested task coordination related to source & workspace.
1 call · #0373–#0373
Schedule <task>Requested task coordination related to source & workspace.
1 call · #0374–#0374
Manage task <task>Requested file and log inspection related to benchmark & validation setup.
1 call · #0375–#0375
Read <path>Requested task coordination related to source & workspace.
1 call · #0376–#0376
Schedule <task>Requested repository inspection related to source & workspace.
1 call · #0377–#0377
git statusRequested workspace file updates related to source & workspace.
1 call · #0378–#0378
rm -rf <path>Requested repository inspection and file and log inspection related to source & workspace.
4 calls · #0379–#0382
git statusgit status <flag>Read <path>Requested script or workload execution related to source & workspace.
1 call · #0383–#0383
bash <script>Requested script or workload execution related to benchmark & validation setup.
1 call · #0384–#0384
bash <script>Requested file and log inspection related to benchmark & validation setup.
1 call · #0385–#0385
Read <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
@@ -0,0 +1,313 @@+import argparse+import asyncio+import itertools+import json+import logging+import os+import signal+import subprocess+import sys+import time+from pathlib import Path+from typing import List++import httpx+import uvicorn+from fastapi import FastAPI, Request, Response++logging.basicConfig(+ level=logging.INFO,+ format="%(asctime)s [%(levelname)s] %(name)s: %(message)s",+)+logger = logging.getLogger("qwen3_14b_deployment")++app = FastAPI(title="Qwen3-14B Multi-Worker Router")++class WorkerPool:+ def __init__(self, worker_urls: List[str]):+ self.worker_urls = worker_urls+ self.active_requests = {url: 0 for url in worker_urls}+ self.lock = asyncio.Lock()+ self.rr_cycle = itertools.cycle(worker_urls)+ self.client = httpx.AsyncClient(+ timeout=httpx.Timeout(connect=30.0, read=900.0, write=60.0, pool=900.0),+ limits=httpx.Limits(max_connections=256, max_keepalive_connections=128),+ )++ async def get_best_worker(self) -> str:+ async with self.lock:+ min_count = min(self.active_requests.values())+ candidates = [url for url in self.worker_urls if self.active_requests[url] == min_count]+ if len(candidates) == 1:+ url = candidates[0]+ else:+ while True:+ url = next(self.rr_cycle)+ if url in candidates:+ break+ self.active_requests[url] += 1+ return url++ async def release_worker(self, url: str):+ async with self.lock:+ if url in self.active_requests and self.active_requests[url] > 0:+ self.active_requests[url] -= 1++ async def forward_request(self, target_url: str, request: Request) -> Response:+ body = await request.body()+ headers = dict(request.headers)+ headers.pop("host", None)+ headers.pop("content-length", None)+ + resp = await self.client.request(+ method=request.method,+ url=target_url,+ content=body,+ headers=headers,+ params=request.query_params,+ )+ return Response(+ content=resp.content,+ status_code=resp.status_code,+ headers={k: v for k, v in resp.headers.items() if k.lower() not in ("content-length", "content-encoding")},+ media_type=resp.headers.get("content-type"),+ )++ async def broadcast_flush(self, path: str, request: Request) -> Response:+ body = await request.body()+ headers = dict(request.headers)+ headers.pop("host", None)+ headers.pop("content-length", None)+ + async def flush_one(url: str):+ return await self.client.request(+ method="POST",+ url=f"{url}{path}",+ content=body,+ headers=headers,+ )+ + responses = await asyncio.gather(*(flush_one(url) for url in self.worker_urls))+ first = responses[0]+ return Response(+ content=first.content,+ status_code=first.status_code,+ headers={k: v for k, v in first.headers.items() if k.lower() not in ("content-length", "content-encoding")},+ media_type=first.headers.get("content-type"),+ )++ async def close(self):+ await self.client.aclose()+++pool: WorkerPool = None+worker_subprocesses: List[subprocess.Popen] = []++@app.on_event("shutdown")+async def on_shutdown():+ global pool+ if pool is not None:+ await pool.close()++@app.get("/v1/models")+@app.get("/model_info")+@app.get("/get_model_info")+@app.get("/health")+async def get_metadata(request: Request):+ url = f"{pool.worker_urls[0]}{request.url.path}"+ return await pool.forward_request(url, request)++@app.post("/flush_cache")+async def flush_cache_endpoint(request: Request):+ return await pool.broadcast_flush("/flush_cache", request)++@app.api_route("/{path:path}", methods=["GET", "POST", "PUT", "DELETE", "OPTIONS", "HEAD"])+async def route_all(path: str, request: Request):+ if path == "flush_cache":+ return await pool.broadcast_flush(f"/{path}", request)+ + worker_url = await pool.get_best_worker()+ try:+ url = f"{worker_url}/{path}"+ return await pool.forward_request(url, request)+ finally:+ await pool.release_worker(worker_url)+++def check_url_ready(url: str, timeout_s: float = 300) -> bool:+ deadline = time.monotonic() + timeout_s+ while time.monotonic() < deadline:+ try:+ req = httpx.get(f"{url}/v1/models", timeout=2.0)+ if req.status_code == 200:+ data = req.json().get("data", [])+ if data and isinstance(data, list):+ return True+ except Exception:+ pass+ time.sleep(1.0)+ return False+++def main():+ parser = argparse.ArgumentParser(description="Qwen3-14B Two-Device Serving Deployment")+ parser.add_argument("--model-path", type=str, required=True)+ parser.add_argument("--tokenizer-path", type=str, required=True)+ parser.add_argument("--served-model-name", type=str, required=True)+ parser.add_argument("--host", type=str, default="127.0.0.1")+ parser.add_argument("--port", type=int, required=True)+ parser.add_argument("--device-ids", type=str, default="0,1")+ parser.add_argument("--runtime-dir", type=str, required=True)+ args = parser.parse_args()++ device_list = [int(x.strip()) for x in args.device_ids.split(",") if x.strip()]+ if not device_list:+ device_list = [0]++ logger.info(f"Starting Qwen3-14B deployment on devices {device_list} with public port {args.port}")++ runtime_dir = Path(args.runtime_dir)+ runtime_dir.mkdir(parents=True, exist_ok=True)++ worker_ports = []+ worker_urls = []+ + def cleanup_handler(signum, frame):+ logger.info(f"Received signal {signum}, terminating worker processes...")+ for p in worker_subprocesses:+ try:+ p.terminate()+ except Exception:+ pass+ time.sleep(1.0)+ for p in worker_subprocesses:+ try:+ p.kill()+ except Exception:+ pass+ sys.exit(0)++ signal.signal(signal.SIGTERM, cleanup_handler)+ signal.signal(signal.SIGINT, cleanup_handler)++ base_worker_port = args.port + 10+ for idx, dev_id in enumerate(device_list):+ w_port = base_worker_port + idx+ worker_ports.append(w_port)+ w_url = f"http://127.0.0.1:{w_port}"+ worker_urls.append(w_url)++ worker_log = runtime_dir / f"worker_{idx}_dev_{dev_id}.log"+ w_env = dict(os.environ)+ w_env["ASCEND_RT_VISIBLE_DEVICES"] = str(dev_id)+ w_env["HCCL_OP_EXPANSION_MODE"] = "AIV"+ w_env["HCCL_BUFFSIZE"] = "200"+ w_env["SGLANG_ENABLE_OVERLAP_PLAN_STREAM"] = "1"+ w_env["PYTORCH_NPU_ALLOC_CONF"] = "expandable_segments:True"+ w_env["PYTHONDONTWRITEBYTECODE"] = "1"+ w_env["PYTHONUNBUFFERED"] = "1"++ worker_cmd = [+ sys.executable,+ "-B",+ "-m",+ "sglang.launch_server",+ "--model-path",+ args.model_path,+ "--tokenizer-path",+ args.tokenizer_path,+ "--served-model-name",+ args.served_model_name,+ "--host",+ "127.0.0.1",+ "--port",+ str(w_port),+ "--dtype",+ "bfloat16",+ "--context-length",+ "4096",+ "--random-seed",+ "20260819",+ "--tp-size",+ "1",+ "--dp-size",+ "1",+ "--pp-size",+ "1",+ "--schedule-policy",+ "fcfs",+ "--chunked-prefill-size",+ "8192",+ "--max-running-requests",+ "32",+ "--max-total-tokens",+ "32768",+ "--mem-fraction-static",+ "0.8",+ "--disable-radix-cache",+ "--cuda-graph-backend-decode",+ "full",+ "--cuda-graph-max-bs-decode",+ "32",+ "--cuda-graph-backend-prefill",+ "disabled",+ "--cuda-graph-max-bs-prefill",+ "32",+ "--attention-backend",+ "ascend",+ "--device",+ "npu",+ ]++ logger.info(f"Spawning worker {idx} on NPU {dev_id} at port {w_port}")+ log_file = open(worker_log, "wb")+ proc = subprocess.Popen(+ worker_cmd,+ env=w_env,+ stdin=subprocess.DEVNULL,+ stdout=log_file,+ stderr=subprocess.STDOUT,+ )+ worker_subprocesses.append(proc)++ logger.info("Waiting for all workers to become ready...")+ for idx, (w_url, proc) in enumerate(zip(worker_urls, worker_subprocesses)):+ while proc.poll() is None:+ if check_url_ready(w_url, timeout_s=5):+ logger.info(f"Worker {idx} at {w_url} is ready!")+ break+ if proc.poll() is not None:+ raise RuntimeError(f"Worker {idx} exited prematurely with return code {proc.returncode}")++ global pool+ pool = WorkerPool(worker_urls)++ logger.info("Verifying readiness of each worker...")+ for idx, w_url in enumerate(worker_urls):+ resp = httpx.post(+ f"{w_url}/generate",+ json={+ "text": "Return one token to confirm request readiness.",+ "sampling_params": {+ "temperature": 0.0,+ "max_new_tokens": 1,+ "ignore_eos": True,+ },+ },+ timeout=120.0,+ )+ if resp.status_code != 200:+ raise RuntimeError(f"Worker {idx} failed readiness generate: {resp.text}")++ logger.info(f"All {len(worker_urls)} workers verified ready! Starting public proxy on {args.host}:{args.port}")+ + uvicorn.run(+ app,+ host=args.host,+ port=args.port,+ log_level="warning",+ access_log=False,+ )++if __name__ == "__main__":+ main()