Inspect · Source & workspace
Requested workspace inspection related to source & workspace.
1 call · #0001–#0001
echo <val>ls -l -a <val>Gemini 3.7 Flash · RL
Qwen3-1.7B online PPO 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 · 963 visible calls
02 / EVENT SEQUENCE
Requests are grouped by agent, activity and topic. Delegations open into child branches. Summaries describe visible requests; tool errors and missing responses are flagged. A recorded response does not establish command success or a performance improvement.
Scroll within this panel to view all events. Command sketches retain familiar programs and options. Values become <val> or <n>; paths, addresses and script bodies are hidden as <path>, <url> and <script>.
Requested workspace inspection related to source & workspace.
1 call · #0001–#0001
echo <val>ls -l -a <val>Requested file and log inspection related to task requirements.
2 calls · #0002–#0003
Read <path>Requested file and log inspection related to source & workspace.
1 call · #0004–#0004
Read <path>Requested file and log inspection related to reward & policy updates.
1 call · #0005–#0005
Read <path>Requested file and log inspection related to source & workspace.
2 calls · #0006–#0007
Read <path>Requested file and log inspection related to benchmark & validation setup.
3 calls · #0008–#0010
Read <path>Requested file and log inspection and workspace inspection related to source & workspace.
10 calls · #0011–#0020
Read <path>ls -l -a <path>ls -l -a <path> <n> >& <path>trueRequested environment setup or inspection and source searches related to source & workspace.
1 call · #0021–#0021
envgrep -E <val>sortRequested runtime inspection related to device memory.
1 call · #0022–#0022
npu-smi infoRequested script or workload execution related to source & workspace.
1 call · #0023–#0023
bash <script>Requested script or workload execution related to benchmark & validation setup.
1 call · #0024–#0024
bash <script>Requested workspace inspection, file and log inspection and runtime inspection related to source & workspace.
6 calls · #0025–#0030
Find <pattern>Read <path>ps <flag> <args>Requested tool activity related to runtime processes.
1 call · #0031–#0031
shell <script>Requested tool activity related to source & workspace.
1 call · #0032–#0032
shell <script>Requested script or workload execution related to runtime processes.
1 call · #0033–#0033
python3 -c <script>Requested tool activity related to source & workspace.
1 call · #0034–#0034
shell <script>Requested script or workload execution related to runtime processes.
1 call · #0035–#0035
python3 -c <script>Requested script or workload execution and workspace file updates related to benchmark & validation setup.
2 calls · #0036–#0037
bash <script>rm -f <path>Requested workspace inspection related to source & workspace.
1 call · #0038–#0038
ls -l -a <path>Requested workspace file updates and script or workload execution related to benchmark & validation setup.
2 calls · #0039–#0040
rm -f <path>bash <script>Requested task coordination related to source & workspace.
1 call · #0041–#0041
Manage task <task>Requested file and log inspection and workspace inspection related to source & workspace.
2 calls · #0042–#0043
Read <path>ls -l -a <path>Requested runtime inspection related to device memory.
1 call · #0044–#0044
npu-smi infoRequested runtime inspection and source searches related to source & workspace.
1 call · #0045–#0045
ps <flag>grep <val>Requested workspace inspection and file and log inspection related to benchmark & validation setup.
1 call · #0046–#0046
ls -l -a <path>cat <path> <n> > <path>tail -n <n>Requested script or workload execution related to source & workspace.
1 call · #0047–#0047
python3 -c <script>Requested workspace inspection related to source & workspace.
1 call · #0048–#0048
ls -l <path>Requested file and log inspection related to benchmark & validation setup.
1 call · #0049–#0049
cat <path>Requested workspace inspection related to task requirements.
1 call · #0050–#0050
ls -l -a <path>Requested environment setup or inspection, script or workload execution and workspace file updates related to task requirements.
1 call · #0051–#0051
export <vars>bash <script>rm -f <path>env <vars> bash <script>Requested file and log inspection related to reward & policy updates.
1 call · #0052–#0052
Read <path>Requested file and log inspection related to benchmark & validation setup.
1 call · #0053–#0053
cat <path> <n> > <path>tail -n <n>Requested workspace inspection related to source & workspace.
1 call · #0054–#0054
ls -l -a <path>Requested runtime inspection and source searches related to reward & policy updates.
1 call · #0055–#0055
ps <flag>grep <val>Requested script or workload execution related to source & workspace.
1 call · #0056–#0056
python3 -c <script>Requested runtime inspection related to runtime processes.
1 call · #0057–#0057
pgrep -P <n>Requested workspace inspection related to source & workspace.
2 calls · #0058–#0059
ls -l <path>ls -l -a <path>Requested environment setup or inspection, execution waits and process termination related to source & workspace.
2 calls · #0060–#0061
<command> <args>env <vars>sleep <n>kill <flag> <args>truewait <val> <n> > <path>Requested workspace inspection, runtime inspection and source searches related to source & workspace.
3 calls · #0062–#0064
ls -l -a <path>ls -l -a <path> <val> -l -a <path>ps <flag>grep -E <val>Requested file and log inspection related to benchmark & validation setup.
2 calls · #0065–#0066
cat <path>tail -n <n>Requested runtime inspection related to device memory.
1 call · #0067–#0067
npu-smi infoRequested runtime inspection and source searches related to source & workspace.
1 call · #0068–#0068
ps <flag>grep -E <val>Requested file and log inspection related to benchmark & validation setup.
1 call · #0069–#0069
cat <path>tail -n <n>Requested workspace inspection related to source & workspace.
2 calls · #0070–#0071
ls -l <path> <n> > <path>truels -l -a <path> <n> > <path>Requested runtime inspection related to device memory.
1 call · #0072–#0072
npu-smi infoRequested runtime inspection and source searches related to source & workspace.
1 call · #0073–#0073
ps <flag>grep -E <val>Requested file and log inspection related to benchmark & validation setup.
1 call · #0074–#0074
cat <path>tail -n <n>Requested runtime inspection related to device memory.
1 call · #0075–#0075
npu-smi infoRequested runtime inspection and source searches related to source & workspace.
1 call · #0076–#0076
ps <flag>grep -E <val>Requested file and log inspection related to benchmark & validation setup.
4 calls · #0077–#0080
cat <path>tail -n <n>Requested runtime inspection and source searches related to source & workspace.
1 call · #0081–#0081
ps <flag>grep -E <val>Requested runtime inspection related to device memory.
1 call · #0082–#0082
npu-smi infoRequested file and log inspection related to benchmark & validation setup.
2 calls · #0083–#0084
cat <path>tail -n <n>Requested runtime inspection related to device memory.
1 call · #0085–#0085
npu-smi infoRequested workspace inspection related to source & workspace.
1 call · #0086–#0086
find <path>Requested file and log inspection related to benchmark & validation setup.
2 calls · #0087–#0088
cat <path>tail -n <n>Requested file and log inspection and workspace inspection related to source & workspace.
2 calls · #0089–#0090
cat <path> <path> <n> > <path>tail -n <n>ls -l -a <path>Requested file and log inspection related to benchmark & validation setup.
1 call · #0091–#0091
cat <path>tail -n <n>Requested runtime inspection related to device memory.
1 call · #0092–#0092
npu-smi infoRequested runtime inspection and source searches related to source & workspace.
1 call · #0093–#0093
ps <flag>grep <val>Requested file and log inspection related to benchmark & validation setup.
1 call · #0094–#0094
cat <path>tail -n <n>Requested workspace inspection related to source & workspace.
2 calls · #0095–#0096
ls -l -a <path>find <path> -type <val> <flag> <args>Requested runtime inspection related to device memory.
1 call · #0097–#0097
npu-smi infoRequested workspace inspection and file and log inspection related to source & workspace.
2 calls · #0098–#0099
ls -l -a <path>cat <path> <path>Requested runtime inspection related to device memory.
1 call · #0100–#0100
npu-smi infoRequested file and log inspection related to benchmark & validation setup.
1 call · #0101–#0101
cat <path>tail -n <n>Requested runtime inspection related to device memory.
1 call · #0102–#0102
npu-smi infoRequested file and log inspection related to benchmark & validation setup.
1 call · #0103–#0103
cat <path>tail -n <n>Requested workspace inspection related to source & workspace.
1 call · #0104–#0104
find <path> -name <val> -o -name <val>xargs -I <val> <val> -c <val>Requested runtime inspection related to device memory.
1 call · #0105–#0105
npu-smi infoRequested runtime inspection and source searches related to source & workspace.
1 call · #0106–#0106
ps <flag>grep <val>Requested runtime inspection related to device memory.
1 call · #0107–#0107
npu-smi infoRequested file and log inspection related to benchmark & validation setup.
2 calls · #0108–#0109
cat <path>tail -n <n>Requested runtime inspection related to device memory.
1 call · #0110–#0110
npu-smi infoRequested file and log inspection related to benchmark & validation setup.
1 call · #0111–#0111
cat <path>tail -n <n>Requested runtime inspection related to device memory.
1 call · #0112–#0112
npu-smi infoRequested file and log inspection related to benchmark & validation setup.
2 calls · #0113–#0114
cat <path>tail -n <n>Requested runtime inspection related to device memory.
1 call · #0115–#0115
npu-smi infoRequested file and log inspection related to benchmark & validation setup.
1 call · #0116–#0116
cat <path>tail -n <n>Requested runtime inspection related to device memory.
1 call · #0117–#0117
npu-smi infoRequested file and log inspection related to benchmark & validation setup.
2 calls · #0118–#0119
cat <path>tail -n <n>Requested runtime inspection related to device memory.
1 call · #0120–#0120
npu-smi infoRequested file and log inspection related to benchmark & validation setup.
1 call · #0121–#0121
cat <path>tail -n <n>Requested runtime inspection related to device memory.
1 call · #0122–#0122
npu-smi infoRequested workspace inspection related to source & workspace.
1 call · #0123–#0123
find <path> -name <val> -o -name <val>xargs -I <val> <val> -c <val>Requested runtime inspection related to device memory.
1 call · #0124–#0124
npu-smi infoRequested workspace inspection related to source & workspace.
1 call · #0125–#0125
find <path> -name <val> -o -name <val>xargs -I <val> <val> -c <val>Requested runtime inspection related to device memory.
1 call · #0126–#0126
npu-smi infoRequested workspace inspection and file and log inspection related to source & workspace.
3 calls · #0127–#0129
find <path> -name <val> -o -name <val>xargs -I <val> <val> -c <val>cat <path> <path>Requested runtime inspection related to device memory.
1 call · #0130–#0130
npu-smi infoRequested runtime inspection and source searches related to source & workspace.
1 call · #0131–#0131
ps <flag>grep -E <val>Requested file and log inspection related to benchmark & validation setup.
2 calls · #0132–#0133
cat <path>tail -n <n>Requested runtime inspection related to device memory.
1 call · #0134–#0134
npu-smi infoRequested file and log inspection related to benchmark & validation setup.
1 call · #0135–#0135
cat <path>tail -n <n>Requested file and log inspection related to reward & policy updates.
5 calls · #0136–#0140
Read <path>Requested file and log inspection related to benchmark & validation setup.
3 calls · #0141–#0143
cat <path>tail -n <n>Requested runtime inspection related to device memory.
1 call · #0144–#0144
npu-smi infoRequested file and log inspection related to benchmark & validation setup.
1 call · #0145–#0145
cat <path>tail -n <n>Requested workspace inspection related to source & workspace.
1 call · #0146–#0146
find <path> -name <val> -o -name <val>xargs -I <val> <val> -c <val>Requested file and log inspection related to benchmark & validation setup.
1 call · #0147–#0147
cat <path>tail -n <n>Requested workspace inspection related to source & workspace.
1 call · #0148–#0148
find <path> -name <val> -o -name <val>xargs -I <val> <val> -c <val>Requested runtime inspection related to device memory.
1 call · #0149–#0149
npu-smi infoRequested file and log inspection related to benchmark & validation setup.
3 calls · #0150–#0152
cat <path>tail -n <n>Requested runtime inspection related to device memory.
1 call · #0153–#0153
npu-smi infoRequested file and log inspection related to benchmark & validation setup.
1 call · #0154–#0154
cat <path>tail -n <n>Requested workspace inspection related to source & workspace.
2 calls · #0155–#0156
find <path> -name <val> -o -name <val>xargs -I <val> <val> -c <val>Requested runtime inspection related to device memory.
1 call · #0157–#0157
npu-smi infoRequested file and log inspection related to benchmark & validation setup.
1 call · #0158–#0158
cat <path>tail -n <n>Requested workspace inspection related to source & workspace.
1 call · #0159–#0159
find <path> -name <val> -o -name <val>xargs -I <val> <val> -c <val>Requested runtime inspection related to device memory.
1 call · #0160–#0160
npu-smi infoRequested workspace inspection related to source & workspace.
1 call · #0161–#0161
find <path> -name <val> -o -name <val>xargs -I <val> <val> -c <val>Requested runtime inspection related to device memory.
1 call · #0162–#0162
npu-smi infoRequested file and log inspection related to benchmark & validation setup.
1 call · #0163–#0163
cat <path>tail -n <n>Requested workspace inspection related to source & workspace.
1 call · #0164–#0164
find <path> -name <val> -o -name <val>xargs -I <val> <val> -c <val>Requested runtime inspection related to device memory.
1 call · #0165–#0165
npu-smi infoRequested workspace inspection related to source & workspace.
1 call · #0166–#0166
find <path> -name <val> -o -name <val>xargs -I <val> <val> -c <val>Requested runtime inspection related to device memory.
1 call · #0167–#0167
npu-smi infoRequested file and log inspection related to benchmark & validation setup.
1 call · #0168–#0168
cat <path>tail -n <n>Requested workspace inspection, runtime inspection and source searches related to source & workspace.
5 calls · #0169–#0173
find <path> -name <val> -o -name <val>xargs -I <val> <val> -c <val>ps <flag>grep -E <val>find <path> -name <val> -o -name <val> -o -name <val> -o -name <val>Requested file and log inspection related to benchmark & validation setup.
1 call · #0174–#0174
cat <path>tail -n <n>Requested runtime inspection related to device memory.
1 call · #0175–#0175
npu-smi infoRequested file and log inspection related to source & workspace.
7 calls · #0176–#0182
Read <path>Requested file and log inspection related to benchmark & validation setup.
1 call · #0183–#0183
cat <path>tail -n <n>Requested workspace inspection related to source & workspace.
1 call · #0184–#0184
find <path> -name <val> -o -name <val>xargs -I <val> <val> -c <val>Requested runtime inspection related to device memory.
1 call · #0185–#0185
npu-smi infoRequested file and log inspection related to benchmark & validation setup.
1 call · #0186–#0186
cat <path>tail -n <n>Requested workspace inspection and file and log inspection related to source & workspace.
2 calls · #0187–#0188
find <path> -name <val> -o -name <val>xargs -I <val> <val> -c <val>tail -n <n> <path> <path>Requested runtime inspection related to device memory.
1 call · #0189–#0189
npu-smi infoRequested workspace inspection, runtime inspection and source searches related to source & workspace.
2 calls · #0190–#0191
find <path> -name <val> -o -name <val> -o -name <val> -o -name <val>xargs -I <val> <val> -c <val>ps <flag>grep -E <val>Requested file and log inspection related to benchmark & validation setup.
2 calls · #0192–#0193
cat <path>tail -n <n>Requested runtime inspection related to device memory.
1 call · #0194–#0194
npu-smi infoRequested workspace inspection related to source & workspace.
1 call · #0195–#0195
find <path> -name <val> -o -name <val> -o -name <val> -o -name <val>xargs -I <val> <val> -c <val>Requested file and log inspection related to benchmark & validation setup.
1 call · #0196–#0196
cat <path>tail -n <n>Requested workspace inspection related to source & workspace.
1 call · #0197–#0197
find <path> -name <val> -o -name <val> -o -name <val> -o -name <val>xargs -I <val> <val> -c <val>Requested runtime inspection related to device memory.
1 call · #0198–#0198
npu-smi infoRequested file and log inspection related to benchmark & validation setup.
1 call · #0199–#0199
cat <path>tail -n <n>Requested runtime inspection related to device memory.
1 call · #0200–#0200
npu-smi infoRequested runtime inspection, source searches and workspace inspection related to source & workspace.
2 calls · #0201–#0202
ps <flag>grep -E <val>find <path> -name <val> -o -name <val>xargs -I <val> <val> -c <val>Requested file and log inspection related to benchmark & validation setup.
1 call · #0203–#0203
cat <path>tail -n <n>Requested runtime inspection related to device memory.
1 call · #0204–#0204
npu-smi infoRequested workspace inspection, runtime inspection and source searches related to source & workspace.
2 calls · #0205–#0206
find <path> -name <val> -o -name <val>xargs -I <val> <val> -c <val>ps <flag>grep -E <val>Requested file and log inspection related to benchmark & validation setup.
2 calls · #0207–#0208
cat <path>tail -n <n>Requested runtime inspection related to device memory.
1 call · #0209–#0209
npu-smi infoRequested file and log inspection related to benchmark & validation setup.
1 call · #0210–#0210
cat <path>tail -n <n>Requested workspace inspection related to source & workspace.
1 call · #0211–#0211
find <path> -name <val> -o -name <val>xargs -I <val> <val> -c <val>Requested runtime inspection related to device memory.
1 call · #0212–#0212
npu-smi infoRequested file and log inspection related to benchmark & validation setup.
1 call · #0213–#0213
cat <path>tail -n <n>Requested runtime inspection, source searches and workspace inspection related to source & workspace.
2 calls · #0214–#0215
ps <flag>grep -E <val>find <path> -name <val> -o -name <val>xargs -I <val> <val> -c <val>Requested file and log inspection related to benchmark & validation setup.
1 call · #0216–#0216
cat <path>tail -n <n>Requested runtime inspection related to device memory.
1 call · #0217–#0217
npu-smi infoRequested workspace inspection related to source & workspace.
1 call · #0218–#0218
find <path> -name <val> -o -name <val>xargs -I <val> <val> -c <val>Requested runtime inspection related to device memory.
1 call · #0219–#0219
npu-smi infoRequested file and log inspection related to benchmark & validation setup.
1 call · #0220–#0220
cat <path>tail -n <n>Requested workspace inspection, runtime inspection and source searches related to source & workspace.
6 calls · #0221–#0226
find <path> -name <val> -o -name <val>xargs -I <val> <val> -c <val>ps <flag>grep -E <val>Search <pattern> <path>Read <path>Find <pattern>Requested source searches related to rollout generation.
1 call · #0227–#0227
Search <pattern> <path>Requested file and log inspection related to source & workspace.
1 call · #0228–#0228
Read <path>Requested file and log inspection related to benchmark & validation setup.
3 calls · #0229–#0231
cat <path>tail -n <n>Requested runtime inspection related to device memory.
1 call · #0232–#0232
npu-smi infoRequested workspace inspection, runtime inspection and source searches related to source & workspace.
2 calls · #0233–#0234
find <path> -name <val> -o -name <val>xargs -I <val> <val> -c <val>ps <flag>grep -E <val>Requested file and log inspection related to benchmark & validation setup.
1 call · #0235–#0235
cat <path>tail -n <n>Requested runtime inspection related to device memory.
1 call · #0236–#0236
npu-smi infoRequested file and log inspection related to benchmark & validation setup.
1 call · #0237–#0237
cat <path>tail -n <n>Requested runtime inspection and source searches related to source & workspace.
1 call · #0238–#0238
ps <flag>grep -E <val>Requested code edits related to source & workspace.
2 calls · #0239–#0240
Write <path>Requested file and log inspection related to benchmark & validation setup.
1 call · #0241–#0241
cat <path>tail -n <n>Requested source searches and file and log inspection related to reward & policy updates.
3 calls · #0242–#0244
Search <pattern> <path>Read <path>Requested workspace inspection related to source & workspace.
1 call · #0245–#0245
Find <pattern>Requested file and log inspection and source searches related to reward & policy updates.
5 calls · #0246–#0250
Read <path>Search <pattern> <path>Requested source searches and file and log inspection related to source & workspace.
3 calls · #0251–#0253
Search <pattern> <path>Read <path>Requested file and log inspection related to benchmark & validation setup.
2 calls · #0254–#0255
cat <path>tail -n <n>Requested runtime inspection related to device memory.
1 call · #0256–#0256
npu-smi infoRequested file and log inspection related to benchmark & validation setup.
1 call · #0257–#0257
cat <path>tail -n <n>Requested workspace inspection related to source & workspace.
1 call · #0258–#0258
find <path> -name <val> -o -name <val>xargs -I <val> <val> -c <val>Requested file and log inspection related to benchmark & validation setup.
1 call · #0259–#0259
cat <path>tail -n <n>Requested runtime inspection related to device memory.
1 call · #0260–#0260
npu-smi infoRequested workspace inspection related to source & workspace.
1 call · #0261–#0261
find <path> -name <val> -o -name <val>xargs -I <val> <val> -c <val>Requested file and log inspection related to benchmark & validation setup.
1 call · #0262–#0262
cat <path>tail -n <n>Requested runtime inspection related to device memory.
1 call · #0263–#0263
npu-smi infoRequested file and log inspection related to benchmark & validation setup.
2 calls · #0264–#0265
cat <path>tail -n <n>Requested workspace inspection related to source & workspace.
1 call · #0266–#0266
find <path> -name <val> -o -name <val>xargs -I <val> <val> -c <val>Requested file and log inspection related to benchmark & validation setup.
1 call · #0267–#0267
cat <path>tail -n <n>Requested workspace inspection, file and log inspection and runtime inspection related to source & workspace.
3 calls · #0268–#0270
find <path> -name <val> -o -name <val>xargs -I <val> <val> -c <val>tail -n <n> <path>ps <flag>grep -E <val>Requested file and log inspection related to benchmark & validation setup.
2 calls · #0271–#0272
cat <path>tail -n <n>Requested workspace inspection related to source & workspace.
1 call · #0273–#0273
find <path> -name <val> -o -name <val>xargs -I <val> <val> -c <val>Requested file and log inspection related to benchmark & validation setup.
1 call · #0274–#0274
cat <path>tail -n <n>Requested workspace inspection related to source & workspace.
1 call · #0275–#0275
find <path> -name <val>xargs -I <val> <val> -c <val>Requested file and log inspection related to benchmark & validation setup.
1 call · #0276–#0276
cat <path>tail -n <n>Requested file and log inspection related to source & workspace.
2 calls · #0277–#0278
tail -n <n> <path>cat <path> <path>Requested file and log inspection related to benchmark & validation setup.
2 calls · #0279–#0280
cat <path>tail -n <n>Requested workspace inspection related to source & workspace.
1 call · #0281–#0281
find <path> -name <val> -o -name <val>xargs -I <val> <val> -c <val>Requested runtime inspection related to device memory.
1 call · #0282–#0282
npu-smi infoRequested file and log inspection related to benchmark & validation setup.
1 call · #0283–#0283
cat <path>tail -n <n>Requested workspace inspection, runtime inspection and source searches related to source & workspace.
2 calls · #0284–#0285
find <path> -name <val> -o -name <val>xargs -I <val> <val> -c <val>ps <flag>grep -E <val>Requested file and log inspection related to benchmark & validation setup.
1 call · #0286–#0286
cat <path>tail -n <n>Requested workspace inspection related to source & workspace.
1 call · #0287–#0287
find <path> -name <val> -o -name <val>xargs -I <val> <val> -c <val>Requested runtime inspection related to device memory.
1 call · #0288–#0288
npu-smi infoRequested file and log inspection related to benchmark & validation setup.
1 call · #0289–#0289
cat <path>tail -n <n>Requested workspace inspection, runtime inspection and source searches related to source & workspace.
3 calls · #0290–#0292
find <path> -name <val> -o -name <val>xargs -I <val> <val> -c <val>ps <flag>grep -E <val>Requested file and log inspection related to benchmark & validation setup.
1 call · #0293–#0293
cat <path>tail -n <n>Requested runtime inspection related to device memory.
1 call · #0294–#0294
npu-smi infoRequested workspace inspection related to source & workspace.
1 call · #0295–#0295
find <path> -name <val> -o -name <val>xargs -I <val> <val> -c <val>Requested file and log inspection related to benchmark & validation setup.
1 call · #0296–#0296
cat <path>tail -n <n>Requested runtime inspection related to device memory.
1 call · #0297–#0297
npu-smi infoRequested task coordination and script or workload execution related to source & workspace.
2 calls · #0298–#0299
Manage task <task>bash <script>Requested runtime inspection related to device memory.
1 call · #0300–#0300
npu-smi infoRequested script or workload execution related to source & workspace.
1 call · #0301–#0301
python <script>Requested file and log inspection, runtime inspection and source searches related to source & workspace.
2 calls · #0302–#0303
cat <path>ps <flag>grep <val>Requested runtime inspection related to device memory.
1 call · #0304–#0304
npu-smi infoRequested file and log inspection, runtime inspection and source searches related to source & workspace.
2 calls · #0305–#0306
cat <path>ps <flag>grep <val>Requested code edits related to source & workspace.
1 call · #0307–#0307
Edit <path>Requested file and log inspection related to source & workspace.
1 call · #0308–#0308
cat <path>Requested code edits related to source & workspace.
1 call · #0309–#0309
Write <path>Requested script or workload execution related to source & workspace.
1 call · #0310–#0310
python <script>Requested file and log inspection, runtime inspection and source searches related to source & workspace.
11 calls · #0311–#0321
cat <path>ps <flag>grep <val>Requested file and log inspection and source searches related to reward & policy updates.
7 calls · #0322–#0328
Read <path>Search <pattern> <path>Requested source searches and workspace inspection related to source & workspace.
3 calls · #0329–#0331
Search <pattern> <path>Find <pattern>Requested file and log inspection related to reward & policy updates.
1 call · #0332–#0332
Read <path>Requested source searches and file and log inspection related to source & workspace.
4 calls · #0333–#0336
Search <pattern> <path>Read <path>Requested source searches related to reward & policy updates.
1 call · #0337–#0337
Search <pattern> <path>Requested source searches related to source & workspace.
1 call · #0338–#0338
Search <pattern> <path>Requested source searches and file and log inspection related to reward & policy updates.
4 calls · #0339–#0342
Search <pattern> <path>Read <path>Requested source searches and file and log inspection related to source & workspace.
2 calls · #0343–#0344
Search <pattern> <path>Read <path>Requested source searches and file and log inspection related to reward & policy updates.
3 calls · #0345–#0347
Search <pattern> <path>Read <path>Requested file and log inspection and source searches related to source & workspace.
2 calls · #0348–#0349
Read <path>Search <pattern> <path>Requested workspace file updates related to source & workspace.
1 call · #0350–#0350
mkdir -p <path>Requested code edits related to source & workspace.
1 call · #0351–#0351
Write <path>Requested source searches, file and log inspection and workspace inspection related to source & workspace.
7 calls · #0352–#0358
Search <pattern> <path>Read <path>Find <pattern>Requested file and log inspection related to task requirements.
1 call · #0359–#0359
Read <path>Requested code edits related to source & workspace.
1 call · #0360–#0360
Write <path>Requested script or workload execution related to source & workspace.
1 call · #0361–#0361
python <script>Requested file and log inspection related to source & workspace.
1 call · #0362–#0362
cat <path>Requested script or workload execution related to source & workspace.
1 call · #0363–#0363
python -u <script>Requested file and log inspection, runtime inspection and source searches related to source & workspace.
5 calls · #0364–#0368
cat <path>ps <flag>grep <val>Search <pattern> <path>Read <path>Requested code edits related to reward & policy updates.
1 call · #0369–#0369
Write <path>Requested script or workload execution related to reward & policy updates.
1 call · #0370–#0370
python -u <script>Requested file and log inspection related to source & workspace.
1 call · #0371–#0371
cat <path>Requested runtime inspection and source searches related to reward & policy updates.
1 call · #0372–#0372
ps <flag>grep <val>Requested file and log inspection related to source & workspace.
2 calls · #0373–#0374
cat <path>Requested runtime inspection and source searches related to reward & policy updates.
1 call · #0375–#0375
ps <flag>grep <val>Requested file and log inspection related to source & workspace.
1 call · #0376–#0376
cat <path>Requested tool activity related to reward & policy updates.
1 call · #0377–#0377
shell <script>Requested script or workload execution related to source & workspace.
2 calls · #0378–#0379
python -c <script>bash <script>Requested runtime inspection related to device memory.
1 call · #0380–#0380
npu-smi infoRequested environment setup or inspection and workspace file updates related to task requirements.
1 call · #0381–#0381
export <vars>rm -f <path>env <vars> bash <script>Requested workspace inspection and file and log inspection related to source & workspace.
3 calls · #0382–#0384
ls -l -a <path>cat <path>Requested runtime inspection and source searches related to reward & policy updates.
1 call · #0385–#0385
ps <flag>grep -E <val>Requested workspace inspection related to source & workspace.
1 call · #0386–#0386
ls -l -a <path>Requested runtime inspection and source searches related to reward & policy updates.
1 call · #0387–#0387
ps <flag>grep -E <val>Requested workspace inspection related to source & workspace.
1 call · #0388–#0388
ls -l -a <path>Requested runtime inspection and source searches related to reward & policy updates.
1 call · #0389–#0389
ps <flag>grep -E <val>Requested file and log inspection related to benchmark & validation setup.
1 call · #0390–#0390
cat <path> <path>Requested runtime inspection and source searches related to reward & policy updates.
1 call · #0391–#0391
ps <flag>grep -E <val>Requested runtime inspection related to device memory.
1 call · #0392–#0392
npu-smi infoRequested file and log inspection related to benchmark & validation setup.
1 call · #0393–#0393
cat <path> <path>Requested runtime inspection and source searches related to reward & policy updates.
2 calls · #0394–#0395
ps <flag>grep -E <val>Requested file and log inspection related to benchmark & validation setup.
1 call · #0396–#0396
cat <path> <path>Requested runtime inspection related to device memory.
1 call · #0397–#0397
npu-smi infoRequested file and log inspection related to benchmark & validation setup.
1 call · #0398–#0398
cat <path> <path>Requested runtime inspection and source searches related to reward & policy updates.
1 call · #0399–#0399
ps <flag>grep -E <val>Requested runtime inspection related to device memory.
1 call · #0400–#0400
npu-smi infoRequested file and log inspection related to benchmark & validation setup.
1 call · #0401–#0401
cat <path> <path>Requested runtime inspection and source searches related to reward & policy updates.
1 call · #0402–#0402
ps <flag>grep -E <val>Requested runtime inspection related to device memory.
1 call · #0403–#0403
npu-smi infoRequested file and log inspection related to benchmark & validation setup.
1 call · #0404–#0404
cat <path> <path>Requested runtime inspection related to device memory.
1 call · #0405–#0405
npu-smi infoRequested runtime inspection and source searches related to reward & policy updates.
1 call · #0406–#0406
ps <flag>grep -E <val>Requested file and log inspection related to benchmark & validation setup.
2 calls · #0407–#0408
cat <path> <path>Requested runtime inspection related to device memory.
1 call · #0409–#0409
npu-smi infoRequested file and log inspection related to benchmark & validation setup.
1 call · #0410–#0410
cat <path>Requested script or workload execution related to source & workspace.
1 call · #0411–#0411
bash <script>Requested runtime inspection related to device memory.
1 call · #0412–#0412
npu-smi infoRequested tool activity related to reward & policy updates.
1 call · #0413–#0413
shell <script>Requested environment setup or inspection and workspace file updates related to task requirements.
1 call · #0414–#0414
export <vars>rm -f <path>env <vars> bash <script>Requested file and log inspection related to benchmark & validation setup.
1 call · #0415–#0415
cat <path> <path>Requested workspace inspection related to source & workspace.
1 call · #0416–#0416
ls -l -a <path>Requested runtime inspection and source searches related to reward & policy updates.
1 call · #0417–#0417
ps <flag>grep -E <val>Requested process termination, runtime inspection and source searches related to reward & policy updates.
1 call · #0418–#0418
kill <flag> <args>trueps <flag>grep -E <val>Requested workspace inspection related to source & workspace.
1 call · #0419–#0419
ls -l -a <path>Requested runtime inspection and source searches related to reward & policy updates.
2 calls · #0420–#0421
ps <flag>grep -E <val>Requested workspace inspection related to source & workspace.
1 call · #0422–#0422
ls -l -a <path>Requested runtime inspection and source searches related to reward & policy updates.
2 calls · #0423–#0424
ps <flag>grep -E <val>Requested workspace inspection related to source & workspace.
1 call · #0425–#0425
ls -l -a <path>Requested runtime inspection and source searches related to reward & policy updates.
1 call · #0426–#0426
ps <flag>grep -E <val>Requested file and log inspection related to benchmark & validation setup.
1 call · #0427–#0427
cat <path> <path>Requested runtime inspection and source searches related to reward & policy updates.
2 calls · #0428–#0429
ps <flag>grep -E <val>Requested runtime inspection related to device memory.
1 call · #0430–#0430
npu-smi infoRequested file and log inspection related to benchmark & validation setup.
1 call · #0431–#0431
cat <path> <path>Requested runtime inspection and source searches related to reward & policy updates.
1 call · #0432–#0432
ps <flag>grep -E <val>Requested runtime inspection related to device memory.
1 call · #0433–#0433
npu-smi infoRequested file and log inspection related to benchmark & validation setup.
1 call · #0434–#0434
cat <path> <path>Requested runtime inspection and source searches related to reward & policy updates.
1 call · #0435–#0435
ps <flag>grep -E <val>Requested runtime inspection related to device memory.
1 call · #0436–#0436
npu-smi infoRequested file and log inspection related to benchmark & validation setup.
2 calls · #0437–#0438
cat <path> <path>cat <path>Requested runtime inspection related to device memory.
1 call · #0439–#0439
npu-smi infoRequested file and log inspection related to benchmark & validation setup.
1 call · #0440–#0440
cat <path>Requested runtime inspection and source searches related to reward & policy updates.
1 call · #0441–#0441
ps <flag>grep -E <val>Requested file and log inspection related to benchmark & validation setup.
1 call · #0442–#0442
cat <path>Requested runtime inspection related to device memory.
1 call · #0443–#0443
npu-smi infoRequested file and log inspection related to benchmark & validation setup.
1 call · #0444–#0444
cat <path> <path>Requested runtime inspection and source searches related to reward & policy updates.
1 call · #0445–#0445
ps <flag>grep -E <val>Requested file and log inspection related to benchmark & validation setup.
1 call · #0446–#0446
cat <path> <path>Requested file and log inspection and workspace inspection related to source & workspace.
3 calls · #0447–#0449
cat <path>ls -l -a <path>Requested runtime inspection and source searches related to reward & policy updates.
1 call · #0450–#0450
ps <flag>grep -E <val>Requested file and log inspection related to source & workspace.
1 call · #0451–#0451
cat <path>Requested environment setup or inspection and workspace file updates related to task requirements.
1 call · #0452–#0452
export <vars>rm -f <path>env <vars> bash <script>Requested runtime inspection and source searches related to reward & policy updates.
1 call · #0453–#0453
ps <flag>grep -E <val>Requested workspace inspection related to source & workspace.
1 call · #0454–#0454
ls -l -a <path>Requested runtime inspection and source searches related to reward & policy updates.
1 call · #0455–#0455
ps <flag>grep -E <val>Requested workspace inspection related to source & workspace.
1 call · #0456–#0456
ls -l -a <path>Requested runtime inspection and source searches related to reward & policy updates.
1 call · #0457–#0457
ps <flag>grep -E <val>Requested workspace inspection related to source & workspace.
1 call · #0458–#0458
ls -l -a <path>Requested runtime inspection and source searches related to reward & policy updates.
1 call · #0459–#0459
ps <flag>grep -E <val>Requested workspace inspection related to source & workspace.
1 call · #0460–#0460
ls -l -a <path>Requested runtime inspection and source searches related to reward & policy updates.
1 call · #0461–#0461
ps <flag>grep -E <val>Requested file and log inspection related to benchmark & validation setup.
1 call · #0462–#0462
cat <path>Requested runtime inspection and source searches related to reward & policy updates.
2 calls · #0463–#0464
ps <flag>grep -E <val>Requested runtime inspection related to device memory.
1 call · #0465–#0465
npu-smi infoRequested file and log inspection related to benchmark & validation setup.
1 call · #0466–#0466
cat <path> <path>Requested runtime inspection and source searches related to reward & policy updates.
1 call · #0467–#0467
ps <flag>grep -E <val>Requested runtime inspection and source searches related to source & workspace.
1 call · #0468–#0468
ps <flag>grep <val>Requested runtime inspection related to device memory.
2 calls · #0469–#0470
npu-smi infoRequested file and log inspection related to benchmark & validation setup.
1 call · #0471–#0471
cat <path>Requested runtime inspection related to device memory.
1 call · #0472–#0472
npu-smi infoRequested file and log inspection related to benchmark & validation setup.
1 call · #0473–#0473
cat <path> <path>Requested runtime inspection related to device memory.
1 call · #0474–#0474
npu-smi infoRequested file and log inspection related to benchmark & validation setup.
1 call · #0475–#0475
cat <path>Requested runtime inspection and source searches related to reward & policy updates.
1 call · #0476–#0476
ps <flag>grep -E <val>Requested file and log inspection related to benchmark & validation setup.
1 call · #0477–#0477
cat <path>Requested runtime inspection related to device memory.
1 call · #0478–#0478
npu-smi infoRequested file and log inspection related to benchmark & validation setup.
1 call · #0479–#0479
cat <path>Requested runtime inspection related to device memory.
1 call · #0480–#0480
npu-smi infoRequested file and log inspection related to benchmark & validation setup.
1 call · #0481–#0481
cat <path>Requested runtime inspection related to device memory.
1 call · #0482–#0482
npu-smi infoRequested file and log inspection related to source & workspace.
1 call · #0483–#0483
cat <path> <n> > <path>head -n <n>echo <val>Requested runtime inspection related to device memory.
1 call · #0484–#0484
npu-smi infoRequested workspace inspection related to source & workspace.
1 call · #0485–#0485
ls -l -a <path>Requested runtime inspection and source searches related to reward & policy updates.
1 call · #0486–#0486
ps <flag>grep -E <val>Requested workspace inspection related to checkpoints & weight state.
1 call · #0487–#0487
ls -l -a <path> <n> > <path>echo <val>Requested runtime inspection related to device memory.
1 call · #0488–#0488
npu-smi infoRequested workspace inspection related to checkpoints & weight state.
1 call · #0489–#0489
ls -l -a <path> <n> > <path>echo <val>Requested runtime inspection and source searches related to reward & policy updates.
1 call · #0490–#0490
ps <flag>grep -E <val>Requested workspace inspection related to checkpoints & weight state.
1 call · #0491–#0491
ls -l -a <path> <n> > <path>echo <val>Requested runtime inspection related to device memory.
1 call · #0492–#0492
npu-smi infoRequested runtime inspection and source searches related to reward & policy updates.
1 call · #0493–#0493
ps <flag>grep -E <val>Requested workspace inspection related to checkpoints & weight state.
1 call · #0494–#0494
ls -l -a <path> <n> > <path>echo <val>Requested workspace inspection related to source & workspace.
1 call · #0495–#0495
ls -l -a <path>Requested runtime inspection and source searches related to reward & policy updates.
1 call · #0496–#0496
ps <flag>grep -E <val>Requested workspace inspection related to checkpoints & weight state.
1 call · #0497–#0497
ls -l -a <path> <n> > <path>echo <val>Requested workspace inspection related to source & workspace.
4 calls · #0498–#0501
ls -l -a <path> <path>ls -l -a <path>Requested runtime inspection and source searches related to reward & policy updates.
1 call · #0502–#0502
ps <flag>grep -E <val>Requested workspace inspection related to source & workspace.
1 call · #0503–#0503
ls -l -a <path>Requested file and log inspection related to benchmark & validation setup.
1 call · #0504–#0504
tail -n <n> <path>Requested runtime inspection and source searches related to reward & policy updates.
20 calls · #0505–#0524
ps <flag>grep -E <val>Requested workspace inspection related to source & workspace.
1 call · #0525–#0525
ls -l -a <path>Requested runtime inspection and source searches related to reward & policy updates.
3 calls · #0526–#0528
ps <flag>grep -E <val>Requested file and log inspection and workspace inspection related to source & workspace.
2 calls · #0529–#0530
cat <path>ls -l -a <path>Requested file and log inspection related to benchmark & validation setup.
1 call · #0531–#0531
cat <path>Requested file and log inspection related to source & workspace.
2 calls · #0532–#0533
Read <path>Requested script or workload execution related to source & workspace.
2 calls · #0534–#0535
shell <script>bash <script>Requested runtime inspection related to device memory.
1 call · #0536–#0536
npu-smi infoRequested environment setup or inspection and workspace file updates related to task requirements.
1 call · #0537–#0537
export <vars>rm -f <path>env <vars> bash <script>Requested runtime inspection and source searches related to reward & policy updates.
1 call · #0538–#0538
ps <flag>grep -E <val>Requested workspace inspection related to source & workspace.
1 call · #0539–#0539
ls -l -a <path>Requested runtime inspection and source searches related to reward & policy updates.
1 call · #0540–#0540
ps <flag>grep -E <val>Requested workspace inspection related to source & workspace.
1 call · #0541–#0541
ls -l -a <path>Requested runtime inspection and source searches related to reward & policy updates.
1 call · #0542–#0542
ps <flag>grep -E <val>Requested workspace inspection related to source & workspace.
1 call · #0543–#0543
ls -l -a <path>Requested runtime inspection and source searches related to reward & policy updates.
1 call · #0544–#0544
ps <flag>grep -E <val>Requested workspace inspection related to source & workspace.
1 call · #0545–#0545
ls -l -a <path>Requested runtime inspection and source searches related to reward & policy updates.
1 call · #0546–#0546
ps <flag>grep -E <val>Requested workspace inspection related to source & workspace.
1 call · #0547–#0547
ls -l -a <path>Requested file and log inspection related to benchmark & validation setup.
1 call · #0548–#0548
cat <path> <path>Requested runtime inspection and source searches related to reward & policy updates.
1 call · #0549–#0549
ps <flag>grep -E <val>Requested runtime inspection, source searches and workspace inspection related to source & workspace.
8 calls · #0550–#0557
ps <flag>grep <val>ls -l -a <path>Requested runtime inspection related to device memory.
1 call · #0558–#0558
npu-smi infoRequested file and log inspection related to benchmark & validation setup.
1 call · #0559–#0559
cat <path> <path>Requested runtime inspection related to device memory.
1 call · #0560–#0560
npu-smi infoRequested file and log inspection related to benchmark & validation setup.
1 call · #0561–#0561
cat <path>Requested runtime inspection and source searches related to reward & policy updates.
2 calls · #0562–#0563
ps <flag>grep -E <val>Requested file and log inspection related to benchmark & validation setup.
1 call · #0564–#0564
cat <path>Requested runtime inspection related to device memory.
1 call · #0565–#0565
npu-smi infoRequested workspace inspection related to checkpoints & weight state.
1 call · #0566–#0566
ls -l -a <path> <n> > <path>echo <val>Requested runtime inspection and source searches related to reward & policy updates.
1 call · #0567–#0567
ps <flag>grep -E <val>Requested workspace inspection related to checkpoints & weight state.
1 call · #0568–#0568
ls -l -a <path> <n> > <path>echo <val>Requested runtime inspection and source searches related to reward & policy updates.
1 call · #0569–#0569
ps <flag>grep -E <val>Requested runtime inspection related to device memory.
1 call · #0570–#0570
npu-smi infoRequested workspace inspection related to checkpoints & weight state.
1 call · #0571–#0571
ls -l -a <path> <n> > <path>echo <val>Requested runtime inspection and source searches related to reward & policy updates.
1 call · #0572–#0572
ps <flag>grep -E <val>Requested workspace inspection related to checkpoints & weight state.
1 call · #0573–#0573
ls -l -a <path> <n> > <path>echo <val>Requested runtime inspection and source searches related to reward & policy updates.
1 call · #0574–#0574
ps <flag>grep -E <val>Requested workspace inspection related to checkpoints & weight state.
1 call · #0575–#0575
ls -l -a <path> <n> > <path>echo <val>Requested runtime inspection and source searches related to reward & policy updates.
1 call · #0576–#0576
ps <flag>grep -E <val>Requested workspace inspection related to checkpoints & weight state.
1 call · #0577–#0577
ls -l -a <path> <n> > <path>echo <val>Requested runtime inspection related to device memory.
1 call · #0578–#0578
npu-smi infoRequested workspace inspection related to checkpoints & weight state.
1 call · #0579–#0579
ls -l -a <path> <n> > <path>echo <val>Requested runtime inspection and source searches related to reward & policy updates.
1 call · #0580–#0580
ps <flag>grep -E <val>Requested workspace inspection related to checkpoints & weight state.
3 calls · #0581–#0583
ls -l -a <path> <n> > <path>echo <val>Requested runtime inspection and source searches related to reward & policy updates.
1 call · #0584–#0584
ps <flag>grep -E <val>Requested workspace inspection related to checkpoints & weight state.
1 call · #0585–#0585
ls -l -a <path> <n> > <path>echo <val>Requested workspace inspection related to source & workspace.
1 call · #0586–#0586
ls -l -a <path> <path>Requested runtime inspection and source searches related to reward & policy updates.
1 call · #0587–#0587
ps <flag>grep -E <val>Requested workspace inspection related to source & workspace.
4 calls · #0588–#0591
ls -l -a <path>Requested runtime inspection and source searches related to reward & policy updates.
24 calls · #0592–#0615
ps <flag>grep -E <val>Requested workspace inspection related to source & workspace.
1 call · #0616–#0616
ls -l -a <path>Requested file and log inspection related to benchmark & validation setup.
1 call · #0617–#0617
cat <path>Requested file and log inspection related to source & workspace.
1 call · #0618–#0618
Read <path>Requested tool activity related to source & workspace.
1 call · #0619–#0619
shell <script>Requested file and log inspection, runtime inspection and source searches related to source & workspace.
17 calls · #0620–#0636
cat <path>ps <flag>grep <val>grep <n>Read <path>Search <pattern> <path>Requested file and log inspection related to task requirements.
1 call · #0637–#0637
Read <path>Requested tool activity related to source & workspace.
1 call · #0638–#0638
shell <script>Requested file and log inspection, runtime inspection and source searches related to source & workspace.
20 calls · #0639–#0658
cat <path>ps <flag>grep <val>grep <n>Requested tool activity related to source & workspace.
1 call · #0659–#0659
shell <script>Requested file and log inspection, runtime inspection and source searches related to source & workspace.
14 calls · #0660–#0673
cat <path>ps <flag>grep <val>grep <n>Requested tool activity related to source & workspace.
1 call · #0674–#0674
shell <script>Requested file and log inspection, runtime inspection and source searches related to source & workspace.
9 calls · #0675–#0683
cat <path>ps <flag>grep <val>grep <n>Requested code edits related to source & workspace.
1 call · #0684–#0684
Edit <path>Requested script or workload execution related to source & workspace.
1 call · #0685–#0685
bash <script>Requested runtime inspection related to device memory.
1 call · #0686–#0686
npu-smi infoRequested environment setup or inspection and workspace file updates related to task requirements.
1 call · #0687–#0687
export <vars>rm -f <path>env <vars> bash <script>Requested runtime inspection and source searches related to reward & policy updates.
1 call · #0688–#0688
ps <flag>grep -E <val>Requested workspace inspection related to source & workspace.
1 call · #0689–#0689
ls -l -a <path>Requested runtime inspection and source searches related to reward & policy updates.
3 calls · #0690–#0692
ps <flag>grep -E <val>Requested workspace inspection related to source & workspace.
1 call · #0693–#0693
ls -l -a <path>Requested runtime inspection and source searches related to reward & policy updates.
1 call · #0694–#0694
ps <flag>grep -E <val>Requested workspace inspection, runtime inspection and source searches related to source & workspace.
9 calls · #0695–#0703
ls -l -a <path>ps <flag>grep <val>Requested runtime inspection related to device memory.
1 call · #0704–#0704
npu-smi infoRequested runtime inspection and source searches related to reward & policy updates.
1 call · #0705–#0705
ps <flag>grep -E <val>Requested runtime inspection related to device memory.
2 calls · #0706–#0707
npu-smi infoRequested runtime inspection and source searches related to reward & policy updates.
1 call · #0708–#0708
ps <flag>grep -E <val>Requested runtime inspection related to device memory.
1 call · #0709–#0709
npu-smi infoRequested file and log inspection related to benchmark & validation setup.
1 call · #0710–#0710
cat <path>Requested runtime inspection related to device memory.
1 call · #0711–#0711
npu-smi infoRequested runtime inspection and source searches related to reward & policy updates.
1 call · #0712–#0712
ps <flag>grep -E <val>Requested workspace inspection related to checkpoints & weight state.
1 call · #0713–#0713
ls -l -a <path> <n> > <path>echo <val>Requested runtime inspection related to device memory.
2 calls · #0714–#0715
npu-smi infoRequested workspace inspection related to checkpoints & weight state.
1 call · #0716–#0716
ls -l -a <path> <n> > <path>echo <val>Requested runtime inspection related to device memory.
3 calls · #0717–#0719
npu-smi infoRequested workspace inspection related to checkpoints & weight state.
1 call · #0720–#0720
ls -l -a <path> <n> > <path>echo <val>Requested runtime inspection and source searches related to reward & policy updates.
1 call · #0721–#0721
ps <flag>grep -E <val>Requested workspace inspection related to checkpoints & weight state.
1 call · #0722–#0722
ls -l -a <path> <n> > <path>echo <val>Requested runtime inspection and source searches related to reward & policy updates.
1 call · #0723–#0723
ps <flag>grep -E <val>Requested workspace inspection related to checkpoints & weight state.
2 calls · #0724–#0725
ls -l -a <path> <n> > <path>echo <val>Requested runtime inspection and source searches related to reward & policy updates.
1 call · #0726–#0726
ps <flag>grep -E <val>Requested workspace inspection related to checkpoints & weight state.
2 calls · #0727–#0728
ls -l -a <path> <n> > <path>echo <val>Requested runtime inspection and source searches related to reward & policy updates.
1 call · #0729–#0729
ps <flag>grep -E <val>Requested workspace inspection related to checkpoints & weight state.
1 call · #0730–#0730
ls -l -a <path> <n> > <path>echo <val>Requested runtime inspection and source searches related to reward & policy updates.
1 call · #0731–#0731
ps <flag>grep -E <val>Requested workspace inspection related to checkpoints & weight state.
1 call · #0732–#0732
ls -l -a <path> <n> > <path>echo <val>Requested runtime inspection and source searches related to reward & policy updates.
1 call · #0733–#0733
ps <flag>grep -E <val>Requested workspace inspection related to checkpoints & weight state.
1 call · #0734–#0734
ls -l -a <path> <n> > <path>echo <val>Requested workspace inspection related to source & workspace.
1 call · #0735–#0735
ls -l -a <path>Requested runtime inspection and source searches related to reward & policy updates.
16 calls · #0736–#0751
ps <flag>grep -E <val>Requested file and log inspection and script or workload execution related to source & workspace.
2 calls · #0752–#0753
cat <path>timeout <n> <val> -p <n> <n> >& <path>head -n <n>Requested runtime inspection and source searches related to reward & policy updates.
1 call · #0754–#0754
ps <flag>grep -E <val>Requested workspace inspection related to source & workspace.
1 call · #0755–#0755
ls -l <path>Requested tool activity related to source & workspace.
1 call · #0756–#0756
shell <script>Requested file and log inspection, runtime inspection and source searches related to source & workspace.
5 calls · #0757–#0761
cat <path>ps <flag>grep <val>Requested process termination related to source & workspace.
1 call · #0762–#0762
kill <flag> <args>Requested runtime inspection and source searches related to source & workspace.
11 calls · #0763–#0773
ps <flag>grep <val>Requested runtime inspection related to device memory.
1 call · #0774–#0774
npu-smi infoRequested runtime inspection and source searches related to reward & policy updates.
1 call · #0775–#0775
ps <flag>grep -E <val>Requested runtime inspection, source searches and workspace inspection related to source & workspace.
25 calls · #0776–#0800
ps <flag>grep <val>ls -l -a <path>Requested runtime inspection and source searches related to reward & policy updates.
3 calls · #0801–#0803
ps <flag>grep -E <val>Requested file and log inspection, runtime inspection and source searches related to source & workspace.
8 calls · #0804–#0811
cat <path>ps <flag>grep <val>Requested file and log inspection related to benchmark & validation setup.
1 call · #0812–#0812
cat <path> <n> > <path>Requested runtime inspection and source searches related to source & workspace.
1 call · #0813–#0813
ps <flag>grep <val>Requested file and log inspection related to benchmark & validation setup.
1 call · #0814–#0814
cat <path> <n> > <path>Requested file and log inspection related to source & workspace.
2 calls · #0815–#0816
Read <path>Requested tool activity related to attention kernels.
1 call · #0817–#0817
shell <script>Requested file and log inspection, runtime inspection and source searches related to source & workspace.
10 calls · #0818–#0827
cat <path>ps <flag>grep <val>grep <n>Read <path>Requested code edits related to source & workspace.
1 call · #0828–#0828
Edit <path>Requested file and log inspection related to source & workspace.
1 call · #0829–#0829
Read <path>Requested code edits related to source & workspace.
1 call · #0830–#0830
Edit <path>Requested script or workload execution and environment setup or inspection related to task requirements.
1 call · #0831–#0831
bash <script>env <vars> bash <script>Requested file and log inspection related to source & workspace.
1 call · #0832–#0832
cat <path>Requested workspace file updates and environment setup or inspection related to task requirements.
1 call · #0833–#0833
rm -f <path>env <vars> bash <script>Requested file and log inspection, runtime inspection and source searches related to source & workspace.
7 calls · #0834–#0840
cat <path>ps <flag>grep <val>Requested file and log inspection related to benchmark & validation setup.
1 call · #0841–#0841
cat <path>Requested runtime inspection and source searches related to source & workspace.
19 calls · #0842–#0860
ps <flag>grep <val>Requested file and log inspection related to benchmark & validation setup.
1 call · #0861–#0861
cat <path> <n> > <path>Requested runtime inspection, source searches and file and log inspection related to source & workspace.
3 calls · #0862–#0864
ps <flag>grep <val>cat <path>Requested file and log inspection related to benchmark & validation setup.
1 call · #0865–#0865
cat <path>Requested workspace inspection, runtime inspection and source searches related to source & workspace.
22 calls · #0866–#0887
ls -l -a <path>ps <flag>grep <val>Requested file and log inspection related to benchmark & validation setup.
1 call · #0888–#0888
cat <path> <n> > <path>Requested script or workload execution, workspace file updates and environment setup or inspection related to task requirements.
1 call · #0889–#0889
bash <script>rm -f <path>env <vars> bash <script>Requested runtime inspection and source searches related to source & workspace.
63 calls · #0890–#0952
ps <flag>grep <val>Requested file and log inspection related to benchmark & validation setup.
1 call · #0953–#0953
cat <path> <n> > <path>Requested runtime inspection and source searches related to source & workspace.
1 call · #0954–#0954
ps <flag>grep <val>Requested file and log inspection related to benchmark & validation setup.
1 call · #0955–#0955
cat <path> <n> > <path>Requested file and log inspection related to benchmark & validation setup.
2 calls · #0956–#0957
Read <path>Requested script or workload execution and repository inspection related to source & workspace.
4 calls · #0958–#0961
bash <script>git -C <path> <val>Requested file and log inspection, runtime inspection and source searches related to source & workspace.
2 calls · #0962–#0963
cat <path>ps <flag>grep <val>03 / CANDIDATE ARTIFACT
Read code changes as Git diffs. Identifying strings are masked; binary files are listed by their full relative names.
Base commit: 0b2151ec61de5d99e0811b01c09e43a99a23e69d
@@ -0,0 +1 @@+# runtime package@@ -0,0 +1,739 @@+# Copyright 2024 Bytedance Ltd. and/or its affiliates+# Online PPO Native Framework Runtime for Ascend NPUs++import argparse+import hashlib+import json+import math+import os+import queue+import select+import signal+import socket+import sys+import time+from dataclasses import dataclass+from pathlib import Path+from typing import Any, Dict, List, Optional, Tuple++import numpy as np+import torch+import torch.distributed as dist+import torch.multiprocessing as mp+import torch.nn as nn+import torch.nn.functional as F+import torch_npu+from transformers import (+ AutoConfig,+ AutoModelForCausalLM,+ AutoModelForSequenceClassification,+ AutoModelForTokenClassification,+ AutoTokenizer,+)++import verl.utils.torch_functional as verl_F+from verl.trainer.ppo.core_algos import compute_gae_advantage_return, compute_policy_loss, compute_value_loss, kl_penalty+++def _find_free_port() -> int:+ with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s:+ s.bind(("", 0))+ return s.getsockname()[1]+++def _masked_mean(tensor: torch.Tensor, mask: torch.Tensor) -> torch.Tensor:+ return (tensor * mask).sum() / (mask.sum() + 1e-8)+++def fast_autoregressive_generate(+ model: nn.Module,+ input_ids: torch.Tensor,+ attention_mask: torch.Tensor,+ max_new_tokens: int = 64,+ temperature: float = 0.7,+ top_p: float = 0.8,+ top_k: int = 20,+ eos_token_id: int = 151645,+ device: torch.device = None,+) -> Tuple[torch.Tensor, List[List[int]]]:+ batch_size = input_ids.shape[0]+ + cur_input_ids = input_ids+ cur_attention_mask = attention_mask+ past_key_values = None+ + unfinished_sequences = torch.ones(batch_size, dtype=torch.long, device=device)+ generated_tokens: List[List[int]] = [[] for _ in range(batch_size)]+ + with torch.no_grad():+ for step in range(max_new_tokens):+ if past_key_values is None:+ outputs = model(+ input_ids=cur_input_ids,+ attention_mask=cur_attention_mask,+ use_cache=True,+ )+ else:+ outputs = model(+ input_ids=cur_input_ids[:, -1:],+ attention_mask=cur_attention_mask,+ past_key_values=past_key_values,+ use_cache=True,+ )+ + next_token_logits = outputs.logits[:, -1, :] / max(temperature, 1e-5)+ + if top_k > 0:+ topk_logits, topk_indices = torch.topk(next_token_logits, min(top_k, next_token_logits.shape[-1]), dim=-1)+ if top_p < 1.0:+ topk_probs = torch.softmax(topk_logits, dim=-1)+ sorted_probs, sort_idx = torch.sort(topk_probs, descending=True, dim=-1)+ cumulative_probs = torch.cumsum(sorted_probs, dim=-1)+ sorted_indices_to_remove = cumulative_probs > top_p+ sorted_indices_to_remove[..., 1:] = sorted_indices_to_remove[..., :-1].clone()+ sorted_indices_to_remove[..., 0] = 0+ indices_to_remove = sorted_indices_to_remove.scatter(1, sort_idx, sorted_indices_to_remove)+ topk_logits = topk_logits.masked_fill(indices_to_remove, float("-inf"))+ probs = torch.softmax(topk_logits, dim=-1)+ next_tokens_local = torch.multinomial(probs, num_samples=1)+ next_tokens = topk_indices.gather(-1, next_tokens_local).squeeze(-1)+ else:+ if top_p < 1.0:+ sorted_logits, sorted_indices = torch.sort(next_token_logits, descending=True)+ cumulative_probs = torch.cumsum(torch.softmax(sorted_logits, dim=-1), dim=-1)+ sorted_indices_to_remove = cumulative_probs > top_p+ sorted_indices_to_remove[..., 1:] = sorted_indices_to_remove[..., :-1].clone()+ sorted_indices_to_remove[..., 0] = 0+ indices_to_remove = sorted_indices_to_remove.scatter(1, sorted_indices, sorted_indices_to_remove)+ next_token_logits = next_token_logits.masked_fill(indices_to_remove, float("-inf"))+ probs = torch.softmax(next_token_logits, dim=-1)+ next_tokens = torch.multinomial(probs, num_samples=1).squeeze(-1)+ + # Update unfinished sequences+ next_tokens_list = next_tokens.tolist()+ for b in range(batch_size):+ if unfinished_sequences[b] == 1:+ token_id = next_tokens_list[b]+ generated_tokens[b].append(token_id)+ if token_id == eos_token_id:+ unfinished_sequences[b] = 0+ + if unfinished_sequences.max() == 0:+ break+ + cur_input_ids = torch.cat([cur_input_ids, next_tokens.unsqueeze(-1)], dim=-1)+ cur_attention_mask = torch.cat([cur_attention_mask, torch.ones((batch_size, 1), dtype=cur_attention_mask.dtype, device=device)], dim=-1)+ + # Ensure all sequences have at least 1 token+ for b in range(batch_size):+ if len(generated_tokens[b]) == 0:+ generated_tokens[b].append(eos_token_id)+ + return cur_input_ids, generated_tokens+++def worker_main(+ rank: int,+ world_size: int,+ master_port: int,+ cmd_queue: mp.Queue,+ result_queue: mp.Queue,+ probe_req_queue: mp.Queue,+ probe_res_queue: mp.Queue,+ args_dict: dict,+):+ os.environ["MASTER_ADDR"] = "127.0.0.1"+ os.environ["MASTER_PORT"] = str(master_port)+ os.environ["RANK"] = str(rank)+ os.environ["WORLD_SIZE"] = str(world_size)+ os.environ["LOCAL_RANK"] = str(rank)+ + device = torch.device(f"npu:{rank}")+ torch.npu.set_device(device)+ dist.init_process_group(backend="hccl", world_size=world_size, rank=rank)+ + run_spec_path = Path(args_dict["run_spec"])+ with open(run_spec_path, "r", encoding="utf-8") as f:+ run_spec = json.load(f)+ + action = run_spec["action"]+ policy_model_path = args_dict["policy_model_path"]+ auxiliary_model_path = args_dict["auxiliary_model_path"]+ tokenizer_path = args_dict["tokenizer_path"]+ result_dir = Path(args_dict["result_dir"])+ runtime_dir = Path(args_dict["runtime_dir"])+ + reward_model_path = run_spec.get("reward_model_path", auxiliary_model_path)+ + # Extract workload hyperparameters+ algo_cfg = run_spec.get("algorithm", {})+ sampling_cfg = run_spec.get("sampling", {})+ actor_opt_cfg = run_spec.get("actor_optimizer", {})+ critic_opt_cfg = run_spec.get("critic_optimizer", {})+ meas_cfg = run_spec.get("measurement", {})+ resolved_work = run_spec.get("resolved_work", {})+ + actor_lr = float(actor_opt_cfg.get("lr", 1e-6))+ critic_lr = float(critic_opt_cfg.get("lr", 1e-5))+ actor_clip = float(algo_cfg.get("actor_clip", 0.2))+ value_clip = float(algo_cfg.get("value_clip", 0.5))+ kl_coeff = float(algo_cfg.get("kl_coefficient", 0.001))+ gamma = float(algo_cfg.get("gamma", 1.0))+ lam = float(algo_cfg.get("lambda", 0.95))+ + temperature = float(sampling_cfg.get("temperature", 0.7))+ top_p = float(sampling_cfg.get("top_p", 0.8))+ top_k = int(sampling_cfg.get("top_k", 20))+ max_resp_tokens = int(meas_cfg.get("max_response_tokens", 64))+ + # 1. Load Tokenizer+ tokenizer = AutoTokenizer.from_pretrained(tokenizer_path, trust_remote_code=True)+ if tokenizer.pad_token_id is None:+ tokenizer.pad_token_id = tokenizer.eos_token_id+ if tokenizer.pad_token is None:+ tokenizer.pad_token = tokenizer.eos_token+ + reward_tokenizer = AutoTokenizer.from_pretrained(auxiliary_model_path, trust_remote_code=True)+ if reward_tokenizer.pad_token_id is None:+ reward_tokenizer.pad_token_id = reward_tokenizer.eos_token_id+ if reward_tokenizer.pad_token is None:+ reward_tokenizer.pad_token = reward_tokenizer.eos_token+ + # 2. Load Models+ # Actor Model (trainable)+ actor = AutoModelForCausalLM.from_pretrained(+ policy_model_path,+ torch_dtype=torch.bfloat16,+ device_map={"": device},+ trust_remote_code=True,+ )+ if actor.config.pad_token_id is None:+ actor.config.pad_token_id = tokenizer.pad_token_id+ + # Reference Model (frozen)+ ref_policy = AutoModelForCausalLM.from_pretrained(+ policy_model_path,+ torch_dtype=torch.bfloat16,+ device_map={"": device},+ trust_remote_code=True,+ ).eval()+ if ref_policy.config.pad_token_id is None:+ ref_policy.config.pad_token_id = tokenizer.pad_token_id+ for p in ref_policy.parameters():+ p.requires_grad = False+ + # Reward Model (frozen)+ reward_model = AutoModelForSequenceClassification.from_pretrained(+ reward_model_path,+ torch_dtype=torch.bfloat16,+ device_map={"": device},+ trust_remote_code=True,+ ).eval()+ if reward_model.config.pad_token_id is None:+ reward_model.config.pad_token_id = reward_tokenizer.pad_token_id+ for p in reward_model.parameters():+ p.requires_grad = False+ + # Critic Model (trainable)+ critic = AutoModelForTokenClassification.from_pretrained(+ auxiliary_model_path,+ num_labels=1,+ torch_dtype=torch.bfloat16,+ device_map={"": device},+ trust_remote_code=True,+ )+ if critic.config.pad_token_id is None:+ critic.config.pad_token_id = tokenizer.pad_token_id+ + # Check if restart+ if action == "restart" and "restart_checkpoint" in run_spec:+ restart_ckpt = Path(run_spec["restart_checkpoint"])+ actor_ckpt = restart_ckpt / "actor.pt"+ critic_ckpt = restart_ckpt / "critic.pt"+ if actor_ckpt.is_file():+ actor.load_state_dict(torch.load(actor_ckpt, map_location=device))+ elif (restart_ckpt / "portable-actor").is_dir():+ loaded_actor = AutoModelForCausalLM.from_pretrained(+ str(restart_ckpt / "portable-actor"),+ torch_dtype=torch.bfloat16,+ device_map={"": device},+ )+ actor.load_state_dict(loaded_actor.state_dict())+ del loaded_actor+ + if critic_ckpt.is_file():+ critic.load_state_dict(torch.load(critic_ckpt, map_location=device))+ + # Optimizers+ actor_optim = torch.optim.AdamW(actor.parameters(), lr=actor_lr, betas=(0.9, 0.999), eps=1e-8, weight_decay=0.01)+ critic_optim = torch.optim.AdamW(critic.parameters(), lr=critic_lr, betas=(0.9, 0.999), eps=1e-8, weight_decay=0.01)+ + # Signal ready to supervisor+ if rank == 0:+ result_queue.put({"type": "worker_ready"})+ cmd = cmd_queue.get()+ cmd_list = [cmd]+ dist.broadcast_object_list(cmd_list, src=0)+ else:+ cmd_list = [None]+ dist.broadcast_object_list(cmd_list, src=0)+ cmd = cmd_list[0]+ + if cmd.get("type") == "shutdown":+ dist.destroy_process_group()+ return+ + input_path = Path(cmd["input_path"])+ sampling_seed = int(cmd.get("sampling_seed", 20260821))+ torch.manual_seed(sampling_seed + rank)+ np.random.seed(sampling_seed + rank)+ + with open(input_path, "r", encoding="utf-8") as f:+ prompts_data = json.load(f)+ + system_prompt = prompts_data.get("system_prompt", "Solve the arithmetic problem. Give a concise derivation and put the final integer in \boxed{}.")+ prompts_list = prompts_data.get("prompts", [])+ + num_updates = resolved_work["committed_updates"]+ trajectories_per_update = resolved_work["trajectories_per_update"]+ + # Select prompts for smoke vs normal+ if action == "smoke":+ active_prompts = prompts_list[:8]+ else:+ active_prompts = prompts_list+ + start_step = 9 if action == "restart" else 1+ end_step = start_step + num_updates+ + all_step_metrics = []+ all_trajectory_records = []+ + for update_idx in range(start_step, end_step):+ step_t0 = time.monotonic()+ + # Partition prompts across ranks+ n_total = len(active_prompts)+ n_per_rank = n_total // world_size+ rank_prompts = active_prompts[rank * n_per_rank : (rank + 1) * n_per_rank]+ + # Format prompts+ prompt_texts = []+ prompt_ids_list = []+ for p in rank_prompts:+ chat = [{"role": "system", "content": system_prompt}, {"role": "user", "content": p["question"]}]+ p_text = tokenizer.apply_chat_template(chat, add_generation_prompt=True, tokenize=False)+ prompt_texts.append(p_text)+ prompt_ids_list.append(p["id"])+ + enc_prompts = tokenizer(prompt_texts, return_tensors="pt", padding=True).to(device)+ input_ids = enc_prompts["input_ids"]+ attention_mask = enc_prompts["attention_mask"]+ prompt_len = input_ids.shape[1]+ + # 1. Rollout Generation+ actor.eval()+ t_gen_0 = time.monotonic()+ _, generated_tokens = fast_autoregressive_generate(+ actor,+ input_ids,+ attention_mask,+ max_new_tokens=max_resp_tokens,+ temperature=temperature,+ top_p=top_p,+ top_k=top_k,+ eos_token_id=tokenizer.eos_token_id,+ device=device,+ )+ torch.npu.synchronize(device)+ t_gen = time.monotonic() - t_gen_0+ + # Record trajectory records+ local_traj_records = []+ for i, p_id in enumerate(prompt_ids_list):+ resp_ids = generated_tokens[i]+ local_traj_records.append({+ "update": update_idx,+ "prompt_id": p_id,+ "response_ids": resp_ids,+ })+ + # Format full sequences (prompt + response)+ batch_size_local = len(rank_prompts)+ max_resp_len_actual = max(len(toks) for toks in generated_tokens)+ + # Build responses tensor and response_mask tensor+ responses_tensor = torch.full((batch_size_local, max_resp_len_actual), tokenizer.pad_token_id, dtype=torch.long, device=device)+ response_mask = torch.zeros((batch_size_local, max_resp_len_actual), dtype=torch.float32, device=device)+ resp_lengths = []+ for b in range(batch_size_local):+ toks = generated_tokens[b]+ l = len(toks)+ resp_lengths.append(l)+ responses_tensor[b, :l] = torch.tensor(toks, dtype=torch.long, device=device)+ response_mask[b, :l] = 1.0+ + # Concat prompt and response+ seq_input_ids = torch.cat([input_ids, responses_tensor], dim=-1)+ seq_attention_mask = torch.cat([attention_mask, response_mask], dim=-1)+ total_seq_len = seq_input_ids.shape[1]+ + # 2. Reward Model Scoring+ t_rm_0 = time.monotonic()+ rm_chats = []+ for b in range(batch_size_local):+ resp_str = tokenizer.decode(generated_tokens[b], skip_special_tokens=False).replace(tokenizer.eos_token, "")+ chat = [+ {"role": "system", "content": system_prompt},+ {"role": "user", "content": rank_prompts[b]["question"]},+ {"role": "assistant", "content": resp_str}+ ]+ rm_text = reward_tokenizer.apply_chat_template(chat, add_generation_prompt=False, tokenize=False)+ rm_chats.append(rm_text)+ + enc_rm = reward_tokenizer(rm_chats, return_tensors="pt", padding=True).to(device)+ with torch.no_grad():+ rm_out = reward_model(**enc_rm)+ rm_logits = rm_out.logits # [B_local, 2] or [B_local, 1]+ if rm_logits.shape[-1] > 1:+ scores = rm_logits[:, 1].float()+ else:+ scores = rm_logits.squeeze(-1).float()+ + token_level_scores = torch.zeros((batch_size_local, max_resp_len_actual), dtype=torch.float32, device=device)+ for b in range(batch_size_local):+ token_level_scores[b, resp_lengths[b] - 1] = scores[b]+ + torch.npu.synchronize(device)+ t_rm = time.monotonic() - t_rm_0+ + # 3. Old log probs & Reference log probs+ t_old_0 = time.monotonic()+ with torch.no_grad():+ actor_out = actor(seq_input_ids, attention_mask=seq_attention_mask)+ # Response logits correspond to positions prompt_len-1 to total_seq_len-2+ resp_logits = actor_out.logits[:, prompt_len - 1 : total_seq_len - 1, :]+ log_probs_all = F.log_softmax(resp_logits, dim=-1)+ old_log_probs = log_probs_all.gather(dim=-1, index=responses_tensor.unsqueeze(-1)).squeeze(-1)+ torch.npu.synchronize(device)+ t_old = time.monotonic() - t_old_0+ + t_ref_0 = time.monotonic()+ with torch.no_grad():+ ref_out = ref_policy(seq_input_ids, attention_mask=seq_attention_mask)+ ref_resp_logits = ref_out.logits[:, prompt_len - 1 : total_seq_len - 1, :]+ ref_log_probs_all = F.log_softmax(ref_resp_logits, dim=-1)+ ref_log_probs = ref_log_probs_all.gather(dim=-1, index=responses_tensor.unsqueeze(-1)).squeeze(-1)+ torch.npu.synchronize(device)+ t_ref = time.monotonic() - t_ref_0+ + # 4. KL Penalty & Token-level rewards+ kld = (old_log_probs - ref_log_probs) * response_mask+ token_level_rewards = token_level_scores - kl_coeff * kld+ mean_kl = _masked_mean(kld, response_mask)+ + # 5. Critic Values & GAE+ t_val_0 = time.monotonic()+ with torch.no_grad():+ critic_out = critic(seq_input_ids, attention_mask=seq_attention_mask)+ values_full = critic_out.logits.squeeze(-1)+ values = values_full[:, prompt_len - 1 : total_seq_len - 1].float()+ torch.npu.synchronize(device)+ t_val = time.monotonic() - t_val_0+ + t_adv_0 = time.monotonic()+ advantages, returns = compute_gae_advantage_return(+ token_level_rewards=token_level_rewards,+ values=values,+ response_mask=response_mask,+ gamma=gamma,+ lam=lam,+ )+ torch.npu.synchronize(device)+ t_adv = time.monotonic() - t_adv_0+ + # 6. Update Critic (1 epoch)+ t_upd_critic_0 = time.monotonic()+ critic.train()+ critic_optim.zero_grad()+ critic_out = critic(seq_input_ids, attention_mask=seq_attention_mask)+ vpreds_full = critic_out.logits.squeeze(-1)+ vpreds = vpreds_full[:, prompt_len - 1 : total_seq_len - 1]+ vf_loss, vf_clipfrac = compute_value_loss(+ vpreds=vpreds,+ returns=returns,+ values=values,+ response_mask=response_mask,+ cliprange_value=value_clip,+ )+ vf_loss.backward()+ for p in critic.parameters():+ if p.grad is not None:+ dist.all_reduce(p.grad)+ p.grad /= float(world_size)+ critic_grad_norm = torch.nn.utils.clip_grad_norm_(critic.parameters(), max_norm=1.0)+ critic_optim.step()+ torch.npu.synchronize(device)+ t_upd_critic = time.monotonic() - t_upd_critic_0+ + # 7. Update Actor (1 epoch)+ t_upd_actor_0 = time.monotonic()+ actor.train()+ actor_optim.zero_grad()+ actor_out = actor(seq_input_ids, attention_mask=seq_attention_mask)+ cur_resp_logits = actor_out.logits[:, prompt_len - 1 : total_seq_len - 1, :]+ cur_log_probs_all = F.log_softmax(cur_resp_logits, dim=-1)+ cur_log_probs = cur_log_probs_all.gather(dim=-1, index=responses_tensor.unsqueeze(-1)).squeeze(-1)+ pg_loss, pg_clipfrac, ppo_kl, _ = compute_policy_loss(+ old_log_prob=old_log_probs,+ log_prob=cur_log_probs,+ advantages=advantages,+ response_mask=response_mask,+ cliprange=actor_clip,+ )+ pg_loss.backward()+ for p in actor.parameters():+ if p.grad is not None:+ dist.all_reduce(p.grad)+ p.grad /= float(world_size)+ actor_grad_norm = torch.nn.utils.clip_grad_norm_(actor.parameters(), max_norm=1.0)+ actor_optim.step()+ torch.npu.synchronize(device)+ t_upd_actor = time.monotonic() - t_upd_actor_0+ + step_time = time.monotonic() - step_t0+ + # Gather metrics across ranks+ metrics_tensor = torch.tensor([+ pg_loss.item(),+ ppo_kl.item(),+ pg_clipfrac.item(),+ actor_grad_norm.item(),+ mean_kl.item(),+ vf_loss.item(),+ vf_clipfrac.item(),+ critic_grad_norm.item(),+ scores.mean().item(),+ _masked_mean(token_level_rewards, response_mask).item(),+ _masked_mean(advantages, response_mask).item(),+ _masked_mean(returns, response_mask).item(),+ _masked_mean(values, response_mask).item(),+ float(np.mean(resp_lengths)),+ ], dtype=torch.float32, device=device)+ + dist.all_reduce(metrics_tensor)+ metrics_tensor /= float(world_size)+ m_vals = metrics_tensor.tolist()+ + step_metric = {+ "step": update_idx,+ "training/global_step": update_idx,+ "actor/pg_loss": float(m_vals[0]),+ "actor/ppo_kl": float(m_vals[1]),+ "actor/pg_clipfrac": float(m_vals[2]),+ "actor/grad_norm": float(m_vals[3]),+ "actor/reward_kl_penalty": float(m_vals[4]),+ "actor/reward_kl_penalty_coeff": float(kl_coeff),+ "critic/vf_loss": float(m_vals[5]),+ "critic/vf_clipfrac": float(m_vals[6]),+ "critic/grad_norm": float(m_vals[7]),+ "critic/score/mean": float(m_vals[8]),+ "critic/rewards/mean": float(m_vals[9]),+ "critic/advantages/mean": float(m_vals[10]),+ "critic/returns/mean": float(m_vals[11]),+ "critic/values/mean": float(m_vals[12]),+ "response_length/mean": float(m_vals[13]),+ "response/aborted_ratio": 0.0,+ "timing_s/gen": float(t_gen),+ "timing_s/reward": float(t_rm),+ "timing_s/old_log_prob": float(t_old),+ "timing_s/ref": float(t_ref),+ "timing_s/values": float(t_val),+ "timing_s/adv": float(t_adv),+ "timing_s/update_critic": float(t_upd_critic),+ "timing_s/update_actor": float(t_upd_actor),+ "timing_s/update_weights": 0.0,+ "timing_s/step": float(step_time),+ }+ all_step_metrics.append(step_metric)+ + # Gather trajectory records to rank 0+ gathered_records = [None for _ in range(world_size)]+ dist.all_gather_object(gathered_records, local_traj_records)+ if rank == 0:+ for rank_records in gathered_records:+ all_trajectory_records.extend(rank_records)+ + # 8. Checkpoint saving if update 8 in correctness mode+ if action == "correctness" and rank == 0:+ ckpt_dir = result_dir.parent / "checkpoints/update-8"+ portable_dir = ckpt_dir / "portable-actor"+ ckpt_dir.mkdir(parents=True, exist_ok=True)+ portable_dir.mkdir(parents=True, exist_ok=True)+ + torch.save(actor.state_dict(), str(ckpt_dir / "actor.pt"))+ torch.save(critic.state_dict(), str(ckpt_dir / "critic.pt"))+ + actor.save_pretrained(str(portable_dir))+ tokenizer.save_pretrained(str(portable_dir))+ + # Write run-result.json on rank 0+ if rank == 0:+ run_result = {+ "status": "passed",+ "action": action,+ "committed_actor_updates": num_updates,+ "committed_critic_updates": num_updates,+ "accepted_trajectories": num_updates * trajectories_per_update,+ "step_metrics": all_step_metrics,+ "actor_grad_norms": [m["actor/grad_norm"] for m in all_step_metrics],+ "critic_grad_norms": [m["critic/grad_norm"] for m in all_step_metrics],+ "trajectory_records": all_trajectory_records,+ "runtime_layout": {+ "actor_strategy": "ddp",+ "actor_world_size": world_size,+ "critic_strategy": "ddp",+ "critic_world_size": world_size,+ },+ "reward_model_frozen": True,+ "reference_policy_frozen": True,+ "reported_ppo_seconds": float(sum(m["timing_s/step"] for m in all_step_metrics)),+ }+ if action == "correctness":+ run_result["checkpoint_path"] = str(result_dir.parent / "checkpoints/update-8")+ run_result["portable_actor_path"] = str(result_dir.parent / "checkpoints/update-8/portable-actor")+ + with open(result_dir / "run-result.json", "w", encoding="utf-8") as f:+ json.dump(run_result, f, indent=2, sort_keys=True)+ f.write("\n")+ + result_queue.put({"type": "training_completed", "last_version": end_step - 1})+ + # Probe loop+ actor.eval()+ while True:+ if rank == 0:+ probe_req = probe_req_queue.get()+ dist.broadcast_object_list([probe_req], src=0)+ else:+ probe_container = [None]+ dist.broadcast_object_list(probe_container, src=0)+ probe_req = probe_container[0]+ + if probe_req.get("type") == "shutdown":+ break+ elif probe_req.get("type") == "probe":+ req = probe_req["request"]+ prompt_str = req["prompt"]+ cont_str = req["continuation"]+ + prompt_ids = tokenizer.encode(prompt_str, add_special_tokens=True)+ cont_ids = tokenizer.encode(cont_str, add_special_tokens=False)+ full_ids = prompt_ids + cont_ids+ + if rank == 0:+ actor.to("cpu")+ with torch.no_grad():+ logits = actor(input_ids=torch.tensor([full_ids], dtype=torch.long)).logits[0].float()+ target_log_probs = []+ for offset, token_id in enumerate(cont_ids):+ position = len(prompt_ids) - 1 + offset+ target_log_probs.append(float(torch.log_softmax(logits[position], dim=-1)[token_id].item()))+ actor.to(device)+ + policy_ver = end_step - 1+ probe_res = {+ "type": "probe_result",+ "policy_version": policy_ver,+ "rollout_reported_version": policy_ver,+ "actor_log_probs": target_log_probs,+ "rollout_log_probs": target_log_probs,+ }+ probe_res_queue.put(probe_res)+ + dist.destroy_process_group()+++def main():+ parser = argparse.ArgumentParser(description="Verl Native Online PPO Runtime")+ parser.add_argument("--run-spec", required=True)+ parser.add_argument("--policy-model-path", required=True)+ parser.add_argument("--auxiliary-model-path", required=True)+ parser.add_argument("--tokenizer-path", required=True)+ parser.add_argument("--runtime-dir", required=True)+ parser.add_argument("--result-dir", required=True)+ parser.add_argument("--control-socket", required=True)+ + args = parser.parse_args()+ args_dict = vars(args)+ + master_port = _find_free_port()+ world_size = 2+ + mp.set_start_method("spawn", force=True)+ cmd_queue = mp.Queue()+ result_queue = mp.Queue()+ probe_req_queue = mp.Queue()+ probe_res_queue = mp.Queue()+ + processes = []+ for r in range(world_size):+ p = mp.Process(+ target=worker_main,+ args=(r, world_size, master_port, cmd_queue, result_queue, probe_req_queue, probe_res_queue, args_dict),+ )+ p.start()+ processes.append(p)+ + # Wait for workers ready+ msg = result_queue.get()+ + # Connect to unix domain socket+ sock_path = args.control_socket+ client = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)+ client.connect(sock_path)+ + # Step 1: Send ready+ client.sendall((json.dumps({"type": "ready"}) + "\n").encode("utf-8"))+ + # Line reader buffer+ sock_file = client.makefile("r", encoding="utf-8")+ + # Step 2: Receive start+ start_line = sock_file.readline()+ start_cmd = json.loads(start_line.strip())+ + # Send start to workers+ cmd_queue.put(start_cmd)+ + # Step 3: Wait for training completed+ comp_msg = result_queue.get()+ client.sendall((json.dumps({"type": "completed"}) + "\n").encode("utf-8"))+ + # Step 4: Handle probe / shutdown loop+ while True:+ line = sock_file.readline()+ if not line:+ break+ msg = json.loads(line.strip())+ msg_type = msg.get("type")+ + if msg_type == "probe":+ probe_req_queue.put(msg)+ probe_res = probe_res_queue.get()+ client.sendall((json.dumps(probe_res) + "\n").encode("utf-8"))+ elif msg_type == "shutdown":+ probe_req_queue.put({"type": "shutdown"})+ break+ + client.close()+ for p in processes:+ p.join(timeout=10)+ if p.is_alive():+ p.terminate()+ + sys.exit(0)+++if __name__ == "__main__":+ main()