Inspect · Source & workspace
Requested workspace inspection and file and log inspection related to source & workspace.
2 calls · #0001–#0002
echo <val>ls -l -a <path> <n> > <path>head -n <n>ls -l -a <path>Claude Opus 5 · Serving
Online TTFT 1dev · Implementation Optimization
01 / PROCESS MAP
Each row shows one agent’s tool events in its own recorded order. Colors show broad activities; bar widths do not represent duration.
Main agentClaude Opus 5 · 215 visible calls
02 / EVENT SEQUENCE
Requests are grouped by agent, activity and topic. Delegations open into child branches. Summaries describe visible requests; tool errors and missing responses are flagged. A recorded response does not establish command success or a performance improvement.
Scroll within this panel to view all events. Command sketches retain familiar programs and options. Values become <val> or <n>; paths, addresses and script bodies are hidden as <path>, <url> and <script>.
Requested workspace inspection and file and log inspection related to source & workspace.
2 calls · #0001–#0002
echo <val>ls -l -a <path> <n> > <path>head -n <n>ls -l -a <path>Requested file and log inspection and workspace inspection related to task requirements.
3 calls · #0003–#0005
Read <path>cd <path>ls -l -a <val> <val> <val> <val> <val> <path> <path>Requested file and log inspection related to benchmark & validation setup.
1 call · #0006–#0006
cd <path><command> <args>cat <val>Requested file and log inspection related to task requirements.
1 call · #0007–#0007
cd <path>echo <val>cat <path>echoRequested repository inspection, file and log inspection and script or workload execution related to device memory.
1 call · #0008–#0008
git log --oneline <flag>echo <flag><command> <args>head <flag>python3 -c <script> <n> >& <path>tail -n <n>Requested file and log inspection and source searches related to source & workspace.
7 calls · #0009–#0015
cd <path>wc -l <path>grep -n <val> <path>head -n <n>Read <path>Requested script or workload execution, file and log inspection and dependency and build commands related to dependencies & build setup.
1 call · #0016–#0016
python3 -c <script> <n> >& <path>tail -n <n>pip show <val> <n> > <path>head -n <n>echo <flag>python3 -c <script>ls <path> <n> > <path>grep -i -E <val>Requested environment setup or inspection and source searches related to source & workspace.
1 call · #0017–#0017
envgrep -i -E <val>sortRequested file and log inspection and source searches related to source & workspace.
5 calls · #0018–#0022
cat <path>Read <path>cd <path>grep -n <val> <path>head -n <n>Requested workspace file updates and environment setup or inspection related to task requirements.
1 call · #0023–#0023
mkdir -p <path>env <vars> bash <script> > <path> <n> >& <path>echo <val>Requested workspace inspection and file and log inspection related to source & workspace.
2 calls · #0024–#0025
ls <path>echo <flag>find <path> -iname <val> -o -iname <val>sortls -l -a <path> <n> > <path>tail -n <n> <path> <n> > <path>Requested file and log inspection related to attention kernels.
1 call · #0026–#0026
wc -l <path>sed -n <val> <path>Requested workspace inspection and file and log inspection related to source & workspace.
1 call · #0027–#0027
ls -l -a <path>echo <flag>tail -c <n> <path> <n> > <path>Requested file and log inspection and source searches related to device memory.
1 call · #0028–#0028
wc -l <path>grep -n <val> <path>head -n <n>Requested file and log inspection related to batching & scheduling.
1 call · #0029–#0029
Read <path>Requested workspace inspection, source searches and file and log inspection related to runtime processes.
2 calls · #0030–#0031
ls -l -a <path>echo <val>grep -a -n -E <val> <path> <n> > <path>tail -n <n>grep -a -v <val> <path>Requested source searches related to attention kernels.
1 call · #0032–#0032
grep -n <val> <path>Requested workspace inspection, source searches and file and log inspection related to runtime processes.
1 call · #0033–#0033
ls -l -a <path>echo <val>grep -a -v <val> <path>grep -a -v <val>tail -n <n>Requested file and log inspection, runtime inspection and source searches related to device memory.
1 call · #0034–#0034
datewc -c <path>ps <val>grep -c <val>npu-smi info <n> > <path>sed -n <val>Requested source searches related to batching & scheduling.
1 call · #0035–#0035
grep -n <val> -A <n> <path>Requested source searches and file and log inspection related to source & workspace.
1 call · #0036–#0036
grep -r -n <val> <path>headecho <flag><command> <args>echo <val>grep -n <val> -A <n> <val>Requested workspace inspection, file and log inspection and source searches related to batching & scheduling.
1 call · #0037–#0037
ls -l -a <path>tail -n <n>echo <val><command> <args>head <flag>grep -n <val> -A <n> <path> <n> > <path>head -n <n>Requested source searches, file and log inspection and workspace inspection related to runtime processes.
2 calls · #0038–#0039
dategrep -a -v <val> <path>tail -n <n>echo <val>ls <path>grep -a -o <val> <path>Requested workspace inspection, source searches and file and log inspection related to runtime processes.
2 calls · #0040–#0041
datels <path>echo <val>grep -a -v <val> <path>tail -n <n>grep -a -c <path> <path> <n> > <path>Requested file and log inspection related to batching & scheduling.
1 call · #0042–#0042
Read <path>Requested workspace inspection and source searches related to source & workspace.
1 call · #0043–#0043
datels -l -a <path>echo <val>grep -a -c <path> <path>Requested file and log inspection, workspace inspection and workspace file updates related to benchmark & validation setup.
2 calls · #0044–#0045
cat <path>echodatels <path>mkdir -p <path>cp <path> <path>echo <val>grep -c <val>Requested file and log inspection related to attention kernels.
1 call · #0046–#0046
Read <path>Requested workspace inspection, source searches and file and log inspection related to source & workspace.
3 calls · #0047–#0049
datels <path>echo <val>grep -a -c <path> <path>tail -c <n> <path> <n> > <path>tail -c <n> <path>grep -E <val>command -v <val>Requested script or workload execution related to latency & request handling.
1 call · #0050–#0050
cd <path>python3 -c <script>echo <val>Requested script or workload execution related to source & workspace.
1 call · #0051–#0051
cd <path>python3 -c <script>Requested source searches and file and log inspection related to source & workspace.
1 call · #0052–#0052
grep -r -n <val> --include <path> <path> <path> <n> > <path>head -n <n>Requested file and log inspection related to device memory.
1 call · #0053–#0053
cat <path>echo <val>Requested workspace inspection, source searches and script or workload execution related to benchmark & validation setup.
1 call · #0054–#0054
datels <path>grep -E <val>echo <val>python3 -c <script>Requested script or workload execution related to latency & request handling.
2 calls · #0055–#0056
cd <path>python3 -c <script>Requested script or workload execution, workspace inspection and source searches related to latency & request handling.
1 call · #0057–#0057
datecd <path>python3 -c <script>ls <path>grep -E <val>Requested workspace inspection, source searches and file and log inspection related to benchmark & validation setup.
2 calls · #0058–#0059
datels <path>grep -E <val>tail -n <n> <path>echo <val>cd <path>python3 -c <script>Requested source searches and file and log inspection related to source & workspace.
1 call · #0060–#0060
grep -r -n <val> --include <path> <path>headecho <val>grep -r -n <val> -A <n> <path> <n> > <path>head -n <n>grep -r -l -n <val> <path>Requested file and log inspection and source searches related to batching & scheduling.
1 call · #0061–#0061
sed -n <val> <path>echo <val>grep -r -n <val> <path>headRequested workspace inspection, source searches and file and log inspection related to benchmark & validation setup.
3 calls · #0062–#0064
datels <path>grep -E <val>tail -n <n> <path>grep -r -n <val> -A <n> <path>head -n <n>python3 -c <script>cd <path>cp <val> <path>echo <val>Requested workspace file updates and file and log inspection related to batching & scheduling.
1 call · #0065–#0065
mkdir -p <path>cat > <path> <script>chmod <val> <path>echo <val>Requested script or workload execution, execution waits and file and log inspection related to runtime processes.
1 call · #0066–#0066
nohup <path> > <path> <n> >& <path>echo <val>sleep <n>tail -n <n> <path>Requested file and log inspection related to batching & scheduling.
1 call · #0067–#0067
sed -n <val> <path>Requested source searches, file and log inspection and service requests related to runtime processes.
3 calls · #0068–#0070
dategrep -a -c <path> <path>grep -a -o <val> <path>tail -n <n>tail -c <n> <path>echocurl -s -m <n> <url> > <path>echo <val><command> <args>sleep <n>Requested service requests, script or workload execution and file and log inspection related to source & workspace.
1 call · #0071–#0071
cd <path>curl -s -m <n> -X <val> <url> > <path><script> <args>tail -n <n>dateRequested workspace inspection and file and log inspection related to source & workspace.
1 call · #0072–#0072
datels <path> <n> > <path>tail -n <n> <path> <n> > <path>Requested workspace inspection, file and log inspection and script or workload execution related to benchmark & validation setup.
1 call · #0073–#0073
ls <path> <n> >& <path>headecho <val>cd <path>python3 -c <script> <n> >& <path>tail -n <n>Requested file and log inspection related to source & workspace.
1 call · #0074–#0074
cat <path>Requested environment setup or inspection and source searches related to benchmark & validation setup.
1 call · #0075–#0075
cd <path>env <vars> python3 -c <script> <n> >& <path>grep -v <val>Requested script or workload execution and source searches related to source & workspace.
1 call · #0076–#0076
cd <path>python3 - <script>grep -n <path> <path>Requested service requests, script or workload execution and file and log inspection related to source & workspace.
2 calls · #0077–#0078
curl -s -m <n> -X <val> <url> > <path>bash <script> <val> <val> <n> >& <path>tail -n <n>date<command> <args>Requested runtime inspection, source searches and file and log inspection related to batching & scheduling.
1 call · #0079–#0079
ps <flag> <args>grep -E <val>awk <val>head -n <n>Requested execution waits, script or workload execution and file and log inspection related to batching & scheduling.
1 call · #0080–#0080
cd <path><command> <args>sleep <n>bash <script> <val> <val> <n> >& <path>tail -n <n>tail -n <n> <path>ls -l -a <path> <n> > <path>Requested script or workload execution related to source & workspace.
2 calls · #0081–#0082
cd <path>python3 - <script>Requested environment setup or inspection related to latency & request handling.
1 call · #0083–#0083
cd <path>env <vars> python3 - <script>Requested source searches related to batching & scheduling.
1 call · #0084–#0084
grep -n <val> -A <n> <path>Requested file and log inspection related to source & workspace.
1 call · #0085–#0085
sed -n <val> <path>Requested source searches and file and log inspection related to batching & scheduling.
1 call · #0086–#0086
grep -n <val> -A <n> <path>echo <val>sed -n <val> <path>Requested environment setup or inspection and file and log inspection related to source & workspace.
1 call · #0087–#0087
env <vars> python -name <val>echo <val>sed -n <val> <val>Requested environment setup or inspection related to rollout generation.
1 call · #0088–#0088
cd <path>env <vars> python3 - <script>Requested file and log inspection related to batching & scheduling.
1 call · #0089–#0089
sed -n <val> <path>Requested execution waits, environment setup or inspection and file and log inspection related to rollout generation.
1 call · #0090–#0090
cd <path><command> <args>sleep <n>env <vars> python3 - <script>tail -n <n> <path>Requested script or workload execution related to runtime processes.
1 call · #0091–#0091
cd <path>python3 - <script>Requested execution waits, environment setup or inspection and file and log inspection related to rollout generation.
1 call · #0092–#0092
cd <path><command> <args>sleep <n>env <vars> python3 - <script>tail -n <n> <path>Requested script or workload execution related to device memory.
1 call · #0093–#0093
cd <path>python3 - <script>Requested source searches and file and log inspection related to source & workspace.
3 calls · #0094–#0096
echo <val>grep -r -n <val> --include <path> <path>headechosed -n <val> <path>Requested repository inspection, file and log inspection and runtime inspection related to runtime processes.
1 call · #0097–#0097
date -udateecho <flag>git status <flag>headps -o <val> -p <n> <n> > <path>tail -n <n>Requested source searches and file and log inspection related to source & workspace.
3 calls · #0098–#0100
cd <path>grep -r -n <val> --include <path> <path>echo <val>wc -lhead -n <n>sed -n <val> <path><command> <args>sed -n <val> <val>Requested file and log inspection related to attention kernels.
1 call · #0101–#0101
cd <path>sed -n <val> <path>Requested workspace inspection related to source & workspace.
1 call · #0102–#0102
cd <path>ls -l -a <val> <val> <n> > <path>Requested script or workload execution related to attention kernels.
1 call · #0103–#0103
cd <path>python3 - <script>Requested script or workload execution related to attention kernels.
1 call · #0104–#0104
cd <path>python3 - <script>Requested script or workload execution related to source & workspace.
1 call · #0105–#0105
cd <path>python3 - <script>Requested script or workload execution related to attention kernels.
1 call · #0106–#0106
cd <path>python3 - <script>Requested script or workload execution related to source & workspace.
1 call · #0107–#0107
cd <path>python3 - <script>Requested file and log inspection related to device memory.
1 call · #0108–#0108
cd <path>echo <val>sed -n <val> <path>Requested file and log inspection and source searches related to batching & scheduling.
2 calls · #0109–#0110
cd <path>sed -n <val> <path>echo <val>grep -r -n <val> --include <path> <path>Requested file and log inspection related to source & workspace.
1 call · #0111–#0111
cd <path>sed -n <val> <path>Requested code edits related to source & workspace.
2 calls · #0112–#0113
Edit <path>Requested code edits related to batching & scheduling.
2 calls · #0114–#0115
Edit <path>Requested file and log inspection related to batching & scheduling.
1 call · #0116–#0116
cd <path>sed -n <val> <path>Requested source searches and file and log inspection related to source & workspace.
1 call · #0117–#0117
cd <path>grep -r -n <val> -A <n> --include <path> <path>head -n <n>Requested workspace inspection, file and log inspection and process termination related to runtime processes.
5 calls · #0118–#0122
ls -l -a <path> <path> <n> > <path>echo <path>cat <path>cd <path>kill <n> <n> > <path>sleep <n>pkill -f <val> <n> > <path><command> <args>grep -c <n>nohup <path> > <path> <n> >& <path>echo <val>tail -n <n> <path>ls -l -a <path>echo <flag>grep <n>head -n <n>pgrep -f <val>grep -i -E <val> <path>tail -n <n>Requested script or workload execution and file and log inspection related to benchmark & validation setup.
1 call · #0123–#0123
cd <path><script> <args>tail -n <n>Requested source searches and file and log inspection related to batching & scheduling.
1 call · #0124–#0124
cd <path>grep -i -E <val> <val>tail -n <n>echo <path>grep -E <val> <val>Requested runtime inspection, source searches and file and log inspection related to device memory.
1 call · #0125–#0125
ps <flag> <args>grep -E <val>grep -v <val>awk <val>echo <val>npu-smi info <n> > <path>head -n <n>Requested file and log inspection related to source & workspace.
1 call · #0126–#0126
cd <path><command> <args>tail -n <n>date <val>Requested script or workload execution related to rollout generation.
1 call · #0127–#0127
cd <path>python3 - <script>Requested source searches and file and log inspection related to batching & scheduling.
1 call · #0128–#0128
cd <path>grep -r -n <val> --include <path> <path> <path> <path> <path> <path> <n> <args>grep -v <val>head -n <n>Requested script or workload execution, execution waits and file and log inspection related to rollout generation.
1 call · #0129–#0129
cd <path><command> <args>echo <val>date <val>python3 - <script>sleep <n>waitcat <path>Requested script or workload execution related to batching & scheduling.
1 call · #0130–#0130
cd <path>python3 - <script>Requested file and log inspection, workspace inspection and script or workload execution related to attention kernels.
2 calls · #0131–#0132
cd <path>echo <val>sed -n <val> <path> <n> > <path>find <val> -name <path>sed -n <val> <path>find <val> -name <path> <n> > <path>python3 -c <script> <n> >& <path>grep -v <val>tail -n <n>Requested script or workload execution related to source & workspace.
1 call · #0133–#0133
cd <path>python3 - <n> > <path> <script>Requested workspace inspection, file and log inspection and source searches related to attention kernels.
1 call · #0134–#0134
cd <path>find <path> -name <path> <n> > <path>head -n <n>echo <val>grep -r -n <val> --include <path> <path> <n> > <path>echo <path>sed -n <val> <path>Requested code edits related to source & workspace.
1 call · #0135–#0135
Write <path>Requested file and log inspection and source searches related to attention kernels.
1 call · #0136–#0136
cd <path>echo <val>sed -n <val> <path>grep -n <val>Requested code edits related to device memory.
2 calls · #0137–#0138
Edit <path>Requested source searches and file and log inspection related to attention kernels.
2 calls · #0139–#0140
cd <path>grep -n <val> <path>awk <flag> <args>sed -n <val> <path>Requested code edits related to attention kernels.
2 calls · #0141–#0142
Edit <path>Requested script or workload execution related to attention kernels.
1 call · #0143–#0143
cd <path>python3 - <n> > <path> <script>Requested environment setup or inspection and file and log inspection related to source & workspace.
1 call · #0144–#0144
env <vars>awk <val> <val>Requested script or workload execution and repository inspection related to attention kernels.
1 call · #0145–#0145
python3 -m <module> <script> <script> <script> <script> <script>echo <val>git status <flag>Requested process termination, execution waits and runtime inspection related to runtime processes.
2 calls · #0146–#0147
cd <path>pkill -f <val> <n> > <path>sleep <n>pgrep -f <val>head<command> <args>echo <val>date <val>pgrep <flag> <args>head -n <n>echo <flag>ls -l -a <flag> <args>Requested code edits related to attention kernels.
1 call · #0148–#0148
Edit <path>Requested file and log inspection related to attention kernels.
1 call · #0149–#0149
cd <path>sed -n <val> <path>Requested code edits related to attention kernels.
1 call · #0150–#0150
Edit <path>Requested script or workload execution, source searches and file and log inspection related to runtime processes.
3 calls · #0151–#0153
cd <path>python3 -c <script> <n> >& <path>grep -v -i <val>tail -n <n>kill <n> <n> > <path>sleep <n>pgrep -f <val>head -n <n>echo <val>pgrep <flag> <args>echo <flag><command> <args>date <val>grep <flag> <args>Requested script or workload execution and file and log inspection related to benchmark & validation setup.
1 call · #0154–#0154
cd <path>python3 -m <module> <val>head -n <n>Requested source searches and file and log inspection related to benchmark & validation setup.
2 calls · #0155–#0156
cd <path>grep -n <val> <path>head -n <n>sed -n <val> <path>Requested source searches and script or workload execution related to task requirements.
1 call · #0157–#0157
cd <path>grep -n <val> -A <n> <path>echo <val>python3 -c <script>Requested script or workload execution related to rollout generation.
1 call · #0158–#0158
cd <path>python3 - <script>Requested script or workload execution, file and log inspection and source searches related to source & workspace.
3 calls · #0159–#0161
cd <path><script> <args>tail -n <n>date <val>grep -n <val> -A <n> <path>head -n <n>echo <val>grep -n <val> <path>headsed -n <val> <path>grep -r -n <val> -A <n> --include <path> <path>Requested script or workload execution related to rollout generation.
1 call · #0162–#0162
cd <path>python3 - <script>Requested script or workload execution related to task requirements.
1 call · #0163–#0163
cd <path>python3 -c <script>date <val>Requested file and log inspection related to source & workspace.
1 call · #0164–#0164
cd <path>sed -n <val> <path>Requested process termination, execution waits and runtime inspection related to runtime processes.
3 calls · #0165–#0167
pkill -f <val> <n> > <path>sleep <n>pgrep <flag> <args>grep -v <val>head -n <n>echo <flag><command> <args>grep -c <n>ls <path> <n> > <path>headdate <val>kill <n> <n> > <path>pgrep -c -f <val> <n> > <path>echo <n>Requested execution waits, runtime inspection and source searches related to device memory.
2 calls · #0168–#0169
sleep <n>pgrep <flag> <args>grep -v <val>head -n <n>echo <path><command> <args>grep -E <val>headecho <val>npu-smi info <n> > <path>sed -n <val>ps <flag> <args>Requested file and log inspection related to dependencies & build setup.
1 call · #0170–#0170
cd <path>cat <path>echo <path>Requested environment setup or inspection, script or workload execution and file and log inspection related to benchmark & validation setup.
10 calls · #0171–#0180
cd <path>env <vars>bash <script> <n> >& <path>tail -n <n>echo <val>date <val>export <vars>mkdir -p <val>nohup <val> <path> > <path> <n> >& <path>tail -n <n> <path> <n> > <path>ls <path> <n> > <path>sleep <n>ps <flag> <args>grep -E <val>grep -v <val>head -n <n>echo <path>ls -l -a <path> <n> > <path>headgrep <val>tail -n <n> <val>python3 -c <script> <n> >& <path>Requested script or workload execution, workspace inspection and file and log inspection related to task requirements.
1 call · #0181–#0181
cd <path>python3 -c <script>echo <val>find <path> <path> -name <val> <flag> <args>headRequested workspace inspection, file and log inspection and script or workload execution related to task requirements.
1 call · #0182–#0182
cd <path>ls -l -a <flag> <args>head -n <n>echo <val>python3 -c <script>Requested source searches, file and log inspection and environment setup or inspection related to source & workspace.
2 calls · #0183–#0184
cd <path>grep -n <val> <path>head -n <n>echo <path>cat <path>sed -n <val> <path>envgrep -i -E <val>Requested source searches, workspace inspection and file and log inspection related to benchmark & validation setup.
1 call · #0185–#0185
cd <path>grep -n <val> <path>echo <val>ls -l -a <flag> <args>headRequested environment setup or inspection, workspace file updates and workspace inspection related to task requirements.
1 call · #0186–#0186
cd <path>env <vars>cp <path> <path> <n> > <path>echo <val>ls <path>bash <script> > <path> <n> >& <path>export <vars>nohup <val> <path> > <path> <n> >& <path>date <val>Requested file and log inspection related to source & workspace.
1 call · #0187–#0187
date <val>tail -c <n> <path> <n> > <path>Requested workspace inspection, runtime inspection and source searches related to benchmark & validation setup.
1 call · #0188–#0188
date <val>echo <flag>ls -l -a <path> <n> > <path>ps <flag> <args>grep -E <val>grep -v <val>head -n <n>tail -c <n> <path> <n> > <path>Requested execution waits, runtime inspection and source searches related to source & workspace.
1 call · #0189–#0189
sleep <n>date <val>ps <flag> <args>grep -E <val>grep -v <val>head -n <n>echo <flag>ls -l -a <flag> <args>tail -n <n>Requested script or workload execution related to task requirements.
1 call · #0190–#0190
cd <path>python3 -c <script>Requested environment setup or inspection, workspace file updates and script or workload execution related to task requirements.
1 call · #0191–#0191
cd <path>env <vars>cp <path> <path>echo <val>bash <script> > <path> <n> >& <path>export <vars>nohup <val> <path> > <path> <n> >& <path><command> <args>date <val>Requested file and log inspection and source searches related to source & workspace.
2 calls · #0192–#0193
cd <path>echo <val>sed -n <val> <path>echogrep -n <val> <path>head -n <n>grep -n <val> -A <n> <path>Requested runtime inspection, source searches and file and log inspection related to benchmark & validation setup.
2 calls · #0194–#0195
date <val>ps <flag> <args>grep -E <val>grep -v <val>head -n <n>echo <flag>ls -l -a <flag> <args><command> <args>sleep <n>grep <val>Requested script or workload execution and workspace file updates related to latency & request handling.
1 call · #0196–#0196
cd <path>python3 -c <script>cp <val> <path>echo <val>Requested environment setup or inspection, workspace file updates and script or workload execution related to task requirements.
1 call · #0197–#0197
cd <path>env <vars>cp <path> <path>echo <val>bash <script> > <path> <n> >& <path>export <vars>nohup <val> <path> > <path> <n> >& <path><command> <args>date <val>Requested workspace inspection and script or workload execution related to benchmark & validation setup.
1 call · #0198–#0198
cd <path>ls -l -a <flag> <args>echo <val>python3 -c <script>Requested repository inspection related to source & workspace.
1 call · #0199–#0199
cd <path>git status <flag>echo <val>git diff --statechodate <val>Requested execution waits, runtime inspection and source searches related to benchmark & validation setup.
1 call · #0200–#0200
<command> <args>sleep <n>date <val>ps <flag> <args>grep <val>grep -v <val>head -n <n>Requested workspace file updates and script or workload execution related to latency & request handling.
1 call · #0201–#0201
cd <path>cp <val> <path>python3 -c <script>date <val>Requested environment setup or inspection, script or workload execution and file and log inspection related to runtime processes.
1 call · #0202–#0202
cd <path>env <vars>bash <script> <n> >& <path>tail -n <n>echo <val>ps <flag> <args>grep -E -i <val>grep -v <val>head -n <n>git <val> <val><command> <args>grep -E <val>Requested workspace inspection, runtime inspection and source searches related to device memory.
1 call · #0203–#0203
echo <path>ls -l -a <path> <n> > <path>echo <val>npu-smi info <n> > <path>grep -i -E <val>head -n <n>Requested workspace file updates, workspace inspection and file and log inspection related to source & workspace.
2 calls · #0204–#0205
rm -rf <path> <path>echo <path>ls -l -a <path>head -n <n>echo <val>git status <flag>cd <path>git diffcat -n <path>Requested environment setup or inspection, workspace inspection and file and log inspection related to device memory.
1 call · #0206–#0206
env <vars>ls -l -a <val> <n> > <path>echo <flag>cat <path> <n> > <path>echo <val>Requested code edits related to device memory.
3 calls · #0207–#0209
Write <path>Requested repository inspection, runtime inspection and source searches related to attention kernels.
1 call · #0210–#0210
date <val>cd <path>echo <val>git status <flag>ps <flag> <args>grep -E -i <val>grep -v <val>npu-smi info <n> > <path>grep -i -E <val>head -n <n>git <val> <val>ls <path>python3 -m <module> <script> <script> <script> <script> <script>find <val> -name <val> <flag> <args>Requested environment setup or inspection, workspace file updates and script or workload execution related to task requirements.
1 call · #0211–#0211
cd <path>env <vars>mkdir -p <path>export <vars>nohup <val> <path> > <path> <n> >& <path><command> <args>echo <val>date <val>git <val> -v <path> <n> > <path>ls <path> <n> > <path>Requested workspace inspection, file and log inspection and source searches related to source & workspace.
1 call · #0212–#0212
cd <path>echo <val>ls -l -a <path> <n> > <path>head -n <n>grep -n -E <val> <path> <n> > <path>git status <flag> <args>grep -i <val>Requested execution waits, runtime inspection and source searches related to benchmark & validation setup.
1 call · #0213–#0213
<command> <args>sleep <n>date <val>ps <flag> <args>grep <val>grep -v <val>head -n <n>Requested script or workload execution related to latency & request handling.
1 call · #0214–#0214
cd <path>python3 -c <script>date <val>Requested environment setup or inspection, workspace file updates and script or workload execution related to device memory.
1 call · #0215–#0215
cd <path>env <vars>rm -rf <path>bash <script> <n> >& <path>tail -n <n>echo <val>ps <flag> <args>grep -E -i <val>grep -v <val><command> <args>grep -E <val>npu-smi info <n> > <path>grep -i -E <val>head -n <n>git <val> <val>echo <path>ls <path>git status <flag>date <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: 340db9201005fc64635bb25db1d2538f955761c3
@@ -19,6 +19,7 @@ from sglang.srt.hardware_backend.npu.attention.mla_preprocess import ( is_fia_nz, is_mla_preprocess_enabled, )+from sglang.srt.hardware_backend.npu.fast_factory import npu_empty from sglang.srt.layers.attention.base_attn_backend import AttentionBackend from sglang.srt.layers.attention.dsa.utils import is_dsa_enable_prefill_cp from sglang.srt.layers.radix_attention import AttentionType@@ -1521,7 +1522,10 @@ class AscendAttnBackend(AttentionBackend): ): if not self.use_alibi: query = q.reshape(-1, layer.tp_q_head_num * layer.qk_head_dim)- attn_output = torch.empty(+ # `query.device` is already an NPU device, so the+ # CUDA-alias rewrite in the wrapped factory has nothing+ # to do; skip it on this per-layer allocation.+ attn_output = npu_empty( (query.shape[0], layer.tp_q_head_num * layer.v_head_dim), dtype=query.dtype, device=query.device,@@ -0,0 +1,52 @@+"""Unwrapped tensor factories for NPU hot paths.++`torch_npu.contrib.transfer_to_npu` wraps every tensor factory and `Tensor.to`+so that CUDA device arguments are rewritten to NPU ones. That rewrite is what+lets the shared (CUDA-worded) model code run unchanged on Ascend, so the wrapper+has to stay installed globally.++The rewrite is pure overhead once the caller already holds a real NPU+`torch.device` (or passes no device at all): it roughly doubles the cost of a+factory call -- measured 5.9 us -> 10.7 us for `torch.empty` on this host. In a+0.6B eager prefill the host issues hundreds of such calls per forward, so the+wrapper shows up as a few milliseconds of pure dispatch on the scheduler thread+that also has to issue the next prefill.++This module exposes the *pre-wrap* callables for use at hot sites only, where+the device argument is known to be an NPU device object or absent. Everywhere+else keeps using the wrapped builtins and their CUDA-alias behaviour.+"""++from __future__ import annotations++import torch++__all__ = ["npu_empty", "npu_zeros", "npu_arange", "npu_tensor", "to_dtype"]+++def _unwrapped(fn):+ """Return the pre-wrap callable, or `fn` when it is not wrapped.++ `transfer_to_npu` decorates with `functools.wraps`, so the original is+ reachable via `__wrapped__`. If a future torch_npu drops the wrapper (or+ the attribute), this degrades to the public callable and stays correct.+ """+ return getattr(fn, "__wrapped__", fn)+++npu_empty = _unwrapped(torch.empty)+npu_zeros = _unwrapped(torch.zeros)+npu_arange = _unwrapped(torch.arange)+npu_tensor = _unwrapped(torch.tensor)+_tensor_to = _unwrapped(torch.Tensor.to)+++def to_dtype(tensor: torch.Tensor, dtype: torch.dtype) -> torch.Tensor:+ """`tensor.to(dtype)` without the CUDA-alias rewrite, skipped when the+ tensor already has `dtype`.++ A dtype-only `.to` never names a device, so the rewrite has nothing to do.+ """+ if tensor.dtype is dtype:+ return tensor+ return _tensor_to(tensor, dtype)@@ -3,6 +3,7 @@ from typing import TYPE_CHECKING, Optional import torch from sglang.srt.constants import GPU_MEMORY_TYPE_KV_CACHE+from sglang.srt.hardware_backend.npu.fast_factory import to_dtype from sglang.srt.mem_cache.memory_pool import ( MHATokenToKVPool, MLATokenToKVPool,@@ -213,7 +214,9 @@ class NPUMHATokenToKVPool(MHATokenToKVPool): cache_v.view(-1, 1, self.head_num, self.v_head_dim), ) else:- loc = loc.to(torch.int32)+ # Called once per layer with the same `loc`; a dtype-only cast needs+ # neither the CUDA-alias rewrite nor a copy when already int32.+ loc = to_dtype(loc, torch.int32) torch_npu._npu_reshape_and_cache( key=cache_k, value=cache_v,@@ -311,6 +311,10 @@ class ShmLoadSnapshotWriter: raise ValueError(f"invalid dp_rank={dp_rank} for dp_size={dp_size}") self.publish_interval = max(1, publish_interval) self.publish_counter = 0+ # Set once the current idle state has been published; cleared as soon as+ # the engine does work again. Lets the scheduler publish the idle+ # snapshot on the busy -> idle edge instead of on every idle pass.+ self.idle_published = False self.path = path self.dp_size = dp_size@@ -382,6 +386,8 @@ class ZmqLoadSnapshotWriter: raise ValueError(f"invalid dp_rank={dp_rank} for dp_size={dp_size}") self.publish_interval = max(1, publish_interval) self.publish_counter = 0+ # See ShmLoadSnapshotWriter.idle_published.+ self.idle_published = False self.dp_size = dp_size self.dp_rank = dp_rank @@ -773,14 +773,28 @@ class Scheduler( else: self.idle_sleeper = None - def publish_load_snapshot(self, force: bool = False):+ def publish_load_snapshot(self, force: bool = False, idle: bool = False):+ """Publish the current load to /get_loads readers and DP balancing.++ `force` bypasses the publish-interval gate. `idle` marks the publish as+ describing the fully-idle state: it is emitted once on the busy -> idle+ edge and then suppressed while the engine stays idle, since republishing+ an unchanged idle snapshot only costs a file lock and a slot rewrite on+ the thread that also dispatches the next prefill.+ """ writer = self.load_snapshot_writer if writer is None: return- if not force:- writer.publish_counter += 1- if writer.publish_counter < writer.publish_interval:+ if idle:+ if writer.idle_published: return+ writer.idle_published = True+ else:+ writer.idle_published = False+ if not force:+ writer.publish_counter += 1+ if writer.publish_counter < writer.publish_interval:+ return writer.publish_counter = 0 try: writer.write(self.load_inquirer.get_loads())@@ -3958,8 +3972,10 @@ class Scheduler( # reset token ratio self.new_token_ratio_tracker.reset() - # Publish the idle state so /get_loads and DP balancing do not see stale load.- self.publish_load_snapshot(force=True)+ # Publish the idle state so /get_loads and DP balancing do not see stale+ # load. Once per busy -> idle edge is enough: nothing changes the load+ # while we stay idle, and the next batch clears the edge flag.+ self.publish_load_snapshot(idle=True) # sleep until next event self.maybe_sleep_on_idle()