Inspect · Source & workspace
Requested workspace inspection and environment setup or inspection related to source & workspace.
1 call · #0001–#0001
pwdprintenv <vars>ls -l -aGPT-6 Astra · RL
LFM2-1.2B model adapt GRPO 2dev · Model Adaptation
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 agentGPT-6 Astra · 353 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 environment setup or inspection related to source & workspace.
1 call · #0001–#0001
pwdprintenv <vars>ls -l -aRequested file and log inspection and source searches related to task requirements.
2 calls · #0002–#0003
cat <path> <path>cat <val>rg --files -g <val> -g <path> -g <path> <path> <path> <path> <path>Requested repository inspection related to source & workspace.
4 calls · #0004–#0007
git status --shortgit log <flag> <args>Requested file and log inspection related to reward & policy updates.
1 call · #0008–#0008
cat <path> <path> <path>Requested file and log inspection related to benchmark & validation setup.
1 call · #0009–#0009
cat <path> <path> <path> <path> <path> <path>Requested file and log inspection related to task requirements.
1 call · #0010–#0010
cat <path> <path> <path>Requested source searches, file and log inspection and workspace inspection related to source & workspace.
4 calls · #0011–#0014
rg -n <val> <path>sed -n <val> <path>cat <val>ls -l -a <val> <val>printenv <vars>Requested source searches related to convolution & sequence boundaries.
1 call · #0015–#0015
rg -n <val> <path> <path> <path> <path>Requested file and log inspection related to benchmark & validation setup.
1 call · #0016–#0016
tail -n <n> <path>Requested file and log inspection and source searches related to attention kernels.
1 call · #0017–#0017
cat <path> <path>rg -n <val> <path> <path> <path>Requested source searches and file and log inspection related to source & workspace.
1 call · #0018–#0018
rg -n <val> <path> <path>sed -n <val> <path>Requested source searches, file and log inspection and script or workload execution related to convolution & sequence boundaries.
1 call · #0019–#0019
rg --files <path>rg <val>sed -n <val> <path>python -c <script>Requested file and log inspection related to benchmark & validation setup.
1 call · #0020–#0020
cat <path>tail -n <n> <path>Requested file and log inspection and source searches related to attention kernels.
1 call · #0021–#0021
cat <path>rg -n <val> <path> <path> <path>Requested file and log inspection related to source & workspace.
3 calls · #0022–#0024
cat <path> <path> <path>sed -n <val> <path>Requested source searches and file and log inspection related to attention kernels.
1 call · #0025–#0025
rg -n <val> <path> <path> <path> <path>rg -n <val> <path>sed -n <val> <path>Requested source searches, file and log inspection and workspace inspection related to convolution & sequence boundaries.
2 calls · #0026–#0027
rg -n <val> <path>head -n <n>tail -n <n> <path>ls <val>sed -n <val> <path>cat <path>Requested file and log inspection and source searches related to attention kernels.
1 call · #0028–#0028
sed -n <val> <path>rg -n <val> <path> <path> <path>Requested file and log inspection related to benchmark & validation setup.
1 call · #0029–#0029
tail -n <n> <path>sed -n <val> <path>Requested file and log inspection and source searches related to source & workspace.
2 calls · #0030–#0031
cat <path>sed -n <val> <path>rg -n <val> <path> <path> <path>head -n <n>Requested file and log inspection related to benchmark & validation setup.
1 call · #0032–#0032
sed -n <val> <path>tail -n <n> <path>Requested source searches and file and log inspection related to attention kernels.
2 calls · #0033–#0034
rg -n <val> <path>head -n <n>sed -n <val> <path>cat <path>rg -n <val> <path> <path> <path>Requested file and log inspection related to benchmark & validation setup.
1 call · #0035–#0035
tail -n <n> <path>cut <flag>sed -n <val> <path>Requested workspace inspection and file and log inspection related to convolution & sequence boundaries.
1 call · #0036–#0036
ls -l <path>sed -n <val> <path>Requested source searches and file and log inspection related to attention kernels.
2 calls · #0037–#0038
rg -n <val> <path> <path>sed -n <val> <path>rg -n <val> <path>head -n <n>tail -n <n> <path>Requested code edits related to source & workspace.
1 call · #0039–#0039
Apply patch <patch>Requested script or workload execution related to source & workspace.
1 call · #0040–#0040
python <script> --helpRequested source searches and file and log inspection related to attention kernels.
1 call · #0041–#0041
rg -n <val> <path>tail -n <n> <path>cut <flag>Requested file and log inspection and source searches related to rollout generation.
1 call · #0042–#0042
sed -n <val> <path>rg -n <val> <path> <path>Requested script or workload execution related to source & workspace.
1 call · #0043–#0043
python3 <script> --helpRequested file and log inspection related to source & workspace.
1 call · #0044–#0044
command -v <val>sed -n <val> <path>Requested tool activity related to dependencies & build setup.
1 call · #0045–#0045
uv pip <val> <flag> <args>Requested file and log inspection related to source & workspace.
1 call · #0046–#0046
sed -n <val> <path>Requested script or workload execution related to dependencies & build setup.
1 call · #0047–#0047
python -m <module> <val> <flag> <args>Requested file and log inspection and source searches related to rollout generation.
1 call · #0048–#0048
sed -n <val> <path>rg -n <val> <path> <path> <path>tail -n <n> <path>cut <flag>Requested code edits related to source & workspace.
1 call · #0049–#0049
Apply patch <patch>Requested tool activity related to dependencies & build setup.
1 call · #0050–#0050
uv pip <val> <flag> <args>Requested code edits related to convolution & sequence boundaries.
1 call · #0051–#0051
Apply patch <patch>Requested file and log inspection related to benchmark & validation setup.
1 call · #0052–#0052
tail -n <n> <path>cut <flag>Requested file and log inspection related to source & workspace.
1 call · #0053–#0053
tail -n <n> <path>sed -n <val> <path>Requested tool activity related to convolution & sequence boundaries.
1 call · #0054–#0054
<command> <args>Requested environment setup or inspection related to source & workspace.
1 call · #0055–#0055
env <vars> python3 <script> --files <val> <flag> <args>Requested file and log inspection and workspace inspection related to benchmark & validation setup.
1 call · #0056–#0056
tail -n <n> <path>cut <flag>ls <val>Requested repository inspection and file and log inspection related to source & workspace.
1 call · #0057–#0057
git diff --statgit diff <flag> <args>head -n <n>sed -n <val> <path>Requested file and log inspection, source searches and workspace inspection related to convolution & sequence boundaries.
1 call · #0058–#0058
tail -n <n> <path>rg -n <val> <path>tail -n <n>ls <val>Requested source searches and file and log inspection related to source & workspace.
2 calls · #0059–#0060
rg -n <val> <path>sed -n <val> <path>Requested file and log inspection related to convolution & sequence boundaries.
1 call · #0061–#0061
tail -n <n> <path>cut <flag>Requested source searches related to rollout generation.
1 call · #0062–#0062
rg -n <val> <path> <path> <path> <path>Requested file and log inspection and script or workload execution related to convolution & sequence boundaries.
2 calls · #0063–#0064
tail -n <n> <path>cut <flag>cat > <path> <script>python3 <script> > <path> <n> >& <path>Requested file and log inspection related to rollout generation.
1 call · #0065–#0065
sed -n <val> <path>Requested source searches and file and log inspection related to convolution & sequence boundaries.
1 call · #0066–#0066
rg -n <val> <path>tail -n <n> <path>Requested repository inspection, source searches and file and log inspection related to benchmark & validation setup.
1 call · #0067–#0067
git diff --statrg -n <val> <path>tail -n <n>cut <flag>Requested environment setup or inspection related to optimizer & gradients.
1 call · #0068–#0068
env <vars> python3 -m <module> <script> -q -k <val> <flag> <args>Requested file and log inspection related to convolution & sequence boundaries.
1 call · #0069–#0069
head -n <n> <path>tail -n <n> <path>cut <flag>Requested code edits related to convolution & sequence boundaries.
1 call · #0070–#0070
Apply patch <patch>Requested tool activity related to dependencies & build setup.
1 call · #0071–#0071
uv pip <val> <flag> <args>Requested file and log inspection and environment setup or inspection related to checkpoints & weight state.
1 call · #0072–#0072
cat > <path> <script>env <vars> python3 <script> > <path> <n> >& <path>Requested file and log inspection and source searches related to convolution & sequence boundaries.
1 call · #0073–#0073
tail -n <n> <path>cut <flag>rg -n <val> <path> <path>Requested file and log inspection related to source & workspace.
1 call · #0074–#0074
sed -n <val> <path>Requested file and log inspection related to convolution & sequence boundaries.
1 call · #0075–#0075
tail -n <n> <path>cut <flag>Requested script or workload execution related to attention kernels.
1 call · #0076–#0076
python - <script>Requested file and log inspection and source searches related to convolution & sequence boundaries.
1 call · #0077–#0077
tail -n <n> <path>rg -n <val> <path>tail -n <n>cut <flag>Requested script or workload execution related to benchmark & validation setup.
1 call · #0078–#0078
bash <script>Requested file and log inspection related to benchmark & validation setup.
2 calls · #0079–#0080
sed -n <val> <path>cut <flag>tail -n <n> <path>Requested file and log inspection and repository inspection related to convolution & sequence boundaries.
1 call · #0081–#0081
tail -n <n> <path>git status --shortRequested environment setup or inspection related to source & workspace.
1 call · #0082–#0082
env <vars> make <val> > <path> <n> >& <path>Requested file and log inspection, source searches and repository inspection related to convolution & sequence boundaries.
1 call · #0083–#0083
cat <path>rg -n <val> <val> <path> <path>tail -n <n> <path>git diff --statRequested file and log inspection, source searches and script or workload execution related to runtime processes.
2 calls · #0084–#0085
sed -n <val> <path>rg -n <val> <path>python - <script>Requested file and log inspection related to convolution & sequence boundaries.
1 call · #0086–#0086
tail -n <n> <path>cut <flag>Requested environment setup or inspection and file and log inspection related to task requirements.
1 call · #0087–#0087
printenv <vars>cat <path>Requested file and log inspection and source searches related to attention kernels.
1 call · #0088–#0088
sed -n <val> <path>rg -n <val> <path>head -n <n>Requested tool activity related to dependencies & build setup.
1 call · #0089–#0089
uv pip <val> <flag> <args>Requested script or workload execution related to convolution & sequence boundaries.
1 call · #0090–#0090
python3 <script> > <path> <n> >& <path>Requested code edits related to convolution & sequence boundaries.
1 call · #0091–#0091
Apply patch <patch>Requested file and log inspection related to convolution & sequence boundaries.
1 call · #0092–#0092
tail -n <n> <path>cut <flag>Requested file and log inspection related to task requirements.
1 call · #0093–#0093
cat <path>sed -n <val> <path>Requested tool activity related to convolution & sequence boundaries.
1 call · #0094–#0094
<command> <args>Requested environment setup or inspection related to source & workspace.
1 call · #0095–#0095
env <vars> make <val> <path> > <path> <n> >& <path>Requested file and log inspection and repository inspection related to benchmark & validation setup.
1 call · #0096–#0096
tail -n <n> <path>git status --shortcut <flag>Requested environment setup or inspection related to optimizer & gradients.
1 call · #0097–#0097
env <vars> python3 -m <module> <script> -q -k <val> <flag> <args>Requested source searches and file and log inspection related to attention kernels.
1 call · #0098–#0098
rg -n <val> <path> -g <path>sed -n <val> <path>rg -n <val> <path>rg -n <val> <path> <path>Requested file and log inspection and source searches related to source & workspace.
1 call · #0099–#0099
sed -n <val> <path>rg -n <val> <path>head -n <n>Requested tool activity related to source & workspace.
1 call · #0100–#0100
<command> <args>Requested source searches and file and log inspection related to source & workspace.
1 call · #0101–#0101
rg -n <val> <val>tail -n <n> <path>sed -n <val> <path>Requested source searches and file and log inspection related to convolution & sequence boundaries.
1 call · #0102–#0102
rg -n <val> <path> <path> -g <val>head -n <n>rg --files <path>rg <val>Requested file and log inspection related to source & workspace.
1 call · #0103–#0103
cat <path>sed -n <val> <path>Requested file and log inspection and repository inspection related to benchmark & validation setup.
1 call · #0104–#0104
tail -n <n> <path>cut <flag>git diff --statRequested environment setup or inspection related to source & workspace.
1 call · #0105–#0105
env <vars> python3 <script> --files <val> <flag> <args>Requested file and log inspection and repository inspection related to benchmark & validation setup.
1 call · #0106–#0106
tail -n <n> <path>cut <flag>git status --shortRequested source searches and file and log inspection related to attention kernels.
1 call · #0107–#0107
rg -n <val> <path> <path> <path>tail -n <n>sed -n <val> <path>Requested file and log inspection related to benchmark & validation setup.
1 call · #0108–#0108
tail -n <n> <path>cut <flag>Requested file and log inspection and source searches related to attention kernels.
1 call · #0109–#0109
sed -n <val> <path>rg -n <val> <path>Requested file and log inspection and repository inspection related to source & workspace.
1 call · #0110–#0110
tail -n <n> <path>git diff --statRequested environment setup or inspection related to benchmark & validation setup.
1 call · #0111–#0111
env <vars> python3 -m <module> <script> -q > <path> <n> >& <path>Requested file and log inspection related to benchmark & validation setup.
1 call · #0112–#0112
tail -n <n> <path>cut <flag>Requested file and log inspection and source searches related to source & workspace.
1 call · #0113–#0113
sed -n <val> <path>rg -n <val> <path>head -n <n>Requested code edits related to source & workspace.
1 call · #0114–#0114
Apply patch <patch>Requested file and log inspection related to benchmark & validation setup.
1 call · #0115–#0115
tail -n <n> <path>cut <flag>Requested environment setup or inspection related to checkpoints & weight state.
1 call · #0116–#0116
env <vars> python3 -m <module> <script> -q -k <val> <flag> <args>Requested source searches and file and log inspection related to attention kernels.
1 call · #0117–#0117
rg -n <val> <path>sed -n <val> <path>tail -n <n> <path>Requested file and log inspection related to kv-cache management.
1 call · #0118–#0118
sed -n <val> <path>tail -n <n> <path>cut <flag>Requested file and log inspection related to benchmark & validation setup.
1 call · #0119–#0119
sed -n <val> <path>tail -n <n> <path>cut <flag>Requested file and log inspection and script or workload execution related to prefix caching.
1 call · #0120–#0120
cat > <path> <script>python3 <script> > <path> <n> >& <path>Requested file and log inspection related to source & workspace.
1 call · #0121–#0121
tail -n <n> <path>Requested script or workload execution related to benchmark & validation setup.
1 call · #0122–#0122
bash <script> > <path> <n> >& <path>Requested script or workload execution related to benchmark & validation setup.
1 call · #0123–#0123
bash <script> > <path> <n> >& <path>Requested file and log inspection and runtime inspection related to benchmark & validation setup.
1 call · #0124–#0124
tail -n <n> <path>ps <flag> <args>head -n <n>Requested script or workload execution and environment setup or inspection related to source & workspace.
1 call · #0125–#0125
python - <script>env <vars> python3 <script> --files <val> <val> <flag> <args>Requested repository inspection and file and log inspection related to source & workspace.
2 calls · #0126–#0127
git diff --checkgit diff --stattail -n <n> <path><command> <args>Requested file and log inspection and repository inspection related to benchmark & validation setup.
1 call · #0128–#0128
tail -n <n> <path>cut <flag>git diff --numstatRequested script or workload execution related to source & workspace.
2 calls · #0129–#0130
bash <script> > <path> <n> >& <path>Requested file and log inspection and source searches related to source & workspace.
1 call · #0131–#0131
cat <path>tail -n <n> <path>rg -n <val> <path>tail -n <n>Requested script or workload execution related to runtime processes.
1 call · #0132–#0132
python - <script>Requested tool activity related to dependencies & build setup.
1 call · #0133–#0133
uv pip <val> <flag> <args>Requested repository inspection related to source & workspace.
1 call · #0134–#0134
git diff <flag> <args>Requested file and log inspection related to benchmark & validation setup.
1 call · #0135–#0135
tail -n <n> <path>cut <flag>Requested repository inspection related to source & workspace.
2 calls · #0136–#0137
git diff <flag> <args>Requested file and log inspection related to benchmark & validation setup.
1 call · #0138–#0138
tail -n <n> <path>cut <flag>Requested environment setup or inspection related to source & workspace.
1 call · #0139–#0139
env <vars> python3 <script> > <path> <n> >& <path>Requested file and log inspection related to benchmark & validation setup.
1 call · #0140–#0140
tail -n <n> <path>cut <flag>Requested file and log inspection related to convolution & sequence boundaries.
1 call · #0141–#0141
tail -n <n> <path>cut <flag>Requested environment setup or inspection related to source & workspace.
1 call · #0142–#0142
env <vars> python3 <script> > <path> <n> >& <path>Requested file and log inspection and script or workload execution related to convolution & sequence boundaries.
2 calls · #0143–#0144
cat > <path> <script>python3 <script> > <path> <n> >& <path>tail -n <n> <path>cut <flag>Requested repository inspection related to source & workspace.
1 call · #0145–#0145
git diff --check<command> <args>Requested tool activity related to convolution & sequence boundaries.
1 call · #0146–#0146
<command> <args>Requested environment setup or inspection related to source & workspace.
1 call · #0147–#0147
env <vars> make <val> <path> > <path> <n> >& <path>Requested file and log inspection related to convolution & sequence boundaries.
1 call · #0148–#0148
cat <path>tail -n <n> <path>Requested repository inspection related to source & workspace.
1 call · #0149–#0149
git -c <val> <val> --check<command> <args>Requested file and log inspection, repository inspection and source searches related to convolution & sequence boundaries.
2 calls · #0150–#0151
tail -n <n> <path>cut <flag>git status --shortrg -n <val> <path>head -n <n>sed -n <val> <path>Requested script or workload execution related to convolution & sequence boundaries.
1 call · #0152–#0152
python - <script>python3 <script> > <path> <n> >& <path>Requested file and log inspection and source searches related to convolution & sequence boundaries.
1 call · #0153–#0153
sed -n <val> <path>head -n <n> <path>tail -n <n> <path>cut <flag>rg --files <path> -g <val> -g <val>Requested source searches, file and log inspection and repository inspection related to benchmark & validation setup.
1 call · #0154–#0154
rg -n <val> <path>tail -n <n> <path>cut <flag>git status --shortRequested script or workload execution related to convolution & sequence boundaries.
1 call · #0155–#0155
python - <script>python3 <script> > <path> <n> >& <path>Requested source searches and file and log inspection related to convolution & sequence boundaries.
1 call · #0156–#0156
rg -n <val> <path> <path> <path>head -n <n>sed -n <val> <path>tail -n <n> <path>cut <flag>Requested file and log inspection related to rollout generation.
1 call · #0157–#0157
sed -n <val> <path>tail -n <n> <path>cut <flag>Requested script or workload execution related to benchmark & validation setup.
1 call · #0158–#0158
bash <script> > <path> <n> >& <path>Requested script or workload execution related to convolution & sequence boundaries.
1 call · #0159–#0159
python - <script>python3 <script> > <path> <n> >& <path>Requested file and log inspection and source searches related to rollout generation.
1 call · #0160–#0160
sed -n <val> <path>rg -n <val> <path>tail -n <n> <path>cut <flag>Requested script or workload execution related to reward & policy updates.
1 call · #0161–#0161
python - <script>Requested file and log inspection related to benchmark & validation setup.
1 call · #0162–#0162
cat <path>Requested repository inspection related to source & workspace.
1 call · #0163–#0163
git status --shortRequested file and log inspection related to convolution & sequence boundaries.
1 call · #0164–#0164
sed -n <val> <path>Requested repository inspection related to source & workspace.
1 call · #0165–#0165
git status --shortRequested code edits related to convolution & sequence boundaries.
1 call · #0166–#0166
Apply patch <patch>Requested file and log inspection related to task requirements.
1 call · #0167–#0167
cat <path>Requested repository inspection related to source & workspace.
1 call · #0168–#0168
git diff <flag> <args>Requested file and log inspection related to task requirements.
1 call · #0169–#0169
cat <path>Requested repository inspection related to source & workspace.
1 call · #0170–#0170
git diff <flag> <args>Requested source searches related to reward & policy updates.
1 call · #0171–#0171
rg -n <val> <path>Requested file and log inspection related to task requirements.
1 call · #0172–#0172
cat <path>Requested file and log inspection related to benchmark & validation setup.
1 call · #0173–#0173
tail -n <n> <path>Requested file and log inspection related to rollout generation.
1 call · #0174–#0174
sed -n <val> <path>Requested file and log inspection related to convolution & sequence boundaries.
1 call · #0175–#0175
cat <path>Requested file and log inspection related to task requirements.
1 call · #0176–#0176
cat <path>Requested file and log inspection related to source & workspace.
1 call · #0177–#0177
sed -n <val> <path>Requested file and log inspection related to attention kernels.
1 call · #0178–#0178
sed -n <val> <path>Requested file and log inspection related to benchmark & validation setup.
1 call · #0179–#0179
tail -n <n> <path>Requested file and log inspection and source searches related to rollout generation.
2 calls · #0180–#0181
cat <path>sed -n <val> <path>rg -n <val> <val> <path> -g <path>Requested source searches related to source & workspace.
1 call · #0182–#0182
rg -n <val> <path>Requested file and log inspection related to rollout generation.
1 call · #0183–#0183
sed -n <val> <path>Requested file and log inspection related to convolution & sequence boundaries.
1 call · #0184–#0184
sed -n <val> <path>Requested source searches and file and log inspection related to reward & policy updates.
1 call · #0185–#0185
rg -n <val> <path> <path>tail -n <n>Requested file and log inspection related to attention kernels.
1 call · #0186–#0186
sed -n <val> <path>Requested file and log inspection and runtime inspection related to benchmark & validation setup.
1 call · #0187–#0187
tail -n <n> <path>ps <flag> <args>head -n <n>Requested script or workload execution related to runtime processes.
1 call · #0188–#0188
python - <script>Requested script or workload execution related to rollout generation.
1 call · #0189–#0189
python3 -X <val> -c <script> > <path> <n> > <path>Requested file and log inspection related to convolution & sequence boundaries.
1 call · #0190–#0190
cat <path>Requested file and log inspection related to rollout generation.
1 call · #0191–#0191
sed -n <val> <path>Requested script or workload execution related to runtime processes.
1 call · #0192–#0192
python - <script>Requested source searches and file and log inspection related to benchmark & validation setup.
1 call · #0193–#0193
rg -n <val> <path> <path>tail -n <n>Requested repository inspection related to source & workspace.
1 call · #0194–#0194
git status --shortgit -c <val> <val> --checkRequested source searches and file and log inspection related to attention kernels.
1 call · #0195–#0195
rg -n <val> <val> -g <val> -g <val> -g <val>head -n <n>Requested file and log inspection related to source & workspace.
1 call · #0196–#0196
sed -n <val> <path>Requested file and log inspection related to benchmark & validation setup.
1 call · #0197–#0197
tail -n <n> <path>Requested tool activity related to convolution & sequence boundaries.
1 call · #0198–#0198
<command> <args>Requested environment setup or inspection related to source & workspace.
1 call · #0199–#0199
env <vars> make <val> <path> > <path> <n> >& <path>Requested file and log inspection and source searches related to benchmark & validation setup.
1 call · #0200–#0200
tail -n <n> <path>rg -n <val> <path> <path>tail -n <n>Requested source searches and file and log inspection related to convolution & sequence boundaries.
1 call · #0201–#0201
rg --files <path>rg <val>head -n <n>Requested source searches related to checkpoints & weight state.
1 call · #0202–#0202
rg -n <val> <path> <path>Requested source searches and file and log inspection related to device memory.
1 call · #0203–#0203
rg -n <val> <path> <path> <val> -g <val> -g <path>head -n <n>Requested source searches and file and log inspection related to checkpoints & weight state.
2 calls · #0204–#0205
rg -n <val> <path> <path> -g <path>sed -n <val> <path>rg --files <val>rg <val>rg -n <val> <path> -g <path>Requested file and log inspection related to device memory.
1 call · #0206–#0206
sed -n <val> <path>Requested source searches related to reward & policy updates.
1 call · #0207–#0207
rg -n <val> <path> <path>rg -n <val> <path> <val> -g <val> -g <val>Requested file and log inspection related to task requirements.
1 call · #0208–#0208
cat <path>Requested file and log inspection and source searches related to source & workspace.
1 call · #0209–#0209
sed -n <val> <path>rg -n <val> <path>Requested file and log inspection and source searches related to checkpoints & weight state.
1 call · #0210–#0210
sed -n <val> <path>rg -n <val> <path>tail -n <n>Requested source searches and file and log inspection related to benchmark & validation setup.
1 call · #0211–#0211
rg -n <val> <path> <path>tail -n <n>Requested source searches related to source & workspace.
1 call · #0212–#0212
rg --files <val>sortRequested source searches and file and log inspection related to rollout generation.
1 call · #0213–#0213
rg -n <val> <path> -g <path>rg <val>head -n <n>Requested file and log inspection, repository inspection and source searches related to source & workspace.
3 calls · #0214–#0216
sed -n <val> <path>git diff --statgit diff --checkrg -n <val> <path>tail -n <n>Requested code edits related to rollout generation.
1 call · #0217–#0217
Apply patch <patch>Requested tool activity related to rollout generation.
1 call · #0218–#0218
<command> <args>Requested file and log inspection related to benchmark & validation setup.
1 call · #0219–#0219
tail -n <n> <path>Requested source searches related to device memory.
1 call · #0220–#0220
rg -n <val> <path> <path> -g <val> -g <val>Requested script or workload execution related to rollout generation.
1 call · #0221–#0221
python - <script>python <script>Requested file and log inspection related to task requirements.
1 call · #0222–#0222
cat <path>sed -n <val> <path>Requested file and log inspection related to source & workspace.
1 call · #0223–#0223
sed -n <val> <path>Requested script or workload execution related to convolution & sequence boundaries.
1 call · #0224–#0224
python - <script>Requested file and log inspection related to source & workspace.
1 call · #0225–#0225
cat <path>Requested source searches and file and log inspection related to checkpoints & weight state.
1 call · #0226–#0226
rg -n <val> <path>head -n <n>Requested file and log inspection related to benchmark & validation setup.
2 calls · #0227–#0228
tail -n <n> <path>Requested file and log inspection and script or workload execution related to rollout generation.
1 call · #0229–#0229
tail -n <n> <path>python - <script>Requested environment setup or inspection related to benchmark & validation setup.
1 call · #0230–#0230
env <vars> python3 -m <module> <script> -q -k <val> > <path> <n> <args>Requested source searches related to batching & scheduling.
1 call · #0231–#0231
rg -n <val> <path>rg -n <val> <path> <path> <path>Requested file and log inspection and source searches related to reward & policy updates.
2 calls · #0232–#0233
sed -n <val> <path>tail -n <n> <path>rg -n <val> <path>tail -n <n>Requested file and log inspection related to source & workspace.
1 call · #0234–#0234
sed -n <val> <path>Requested repository inspection related to source & workspace.
1 call · #0235–#0235
git -c <val> <val> --statgit -c <val> <val> --checkRequested source searches and file and log inspection related to checkpoints & weight state.
1 call · #0236–#0236
rg -n <val> <path>tail -n <n>Requested file and log inspection related to benchmark & validation setup.
1 call · #0237–#0237
tail -n <n> <path>Requested file and log inspection related to source & workspace.
1 call · #0238–#0238
tail -n <n> <path>sed -n <val> <path>Requested script or workload execution related to source & workspace.
1 call · #0239–#0239
python3 -c <script> > <path> <n> >& <path>Requested script or workload execution related to checkpoints & weight state.
1 call · #0240–#0240
python - <script>python <script> <val>Requested file and log inspection related to source & workspace.
1 call · #0241–#0241
sed -n <val> <path>Requested file and log inspection and source searches related to checkpoints & weight state.
1 call · #0242–#0242
tail -n <n> <path>rg -n <val> <path>tail -n <n>Requested script or workload execution and file and log inspection related to benchmark & validation setup.
1 call · #0243–#0243
python <script> <val> <val>tail -n <n> <path>Requested file and log inspection and script or workload execution related to attention kernels.
1 call · #0244–#0244
cat > <path> <script>python <script>Requested script or workload execution related to benchmark & validation setup.
1 call · #0245–#0245
python <script> <val> <val>Requested file and log inspection related to benchmark & validation setup.
1 call · #0246–#0246
tail -n <n> <path>Requested file and log inspection related to source & workspace.
1 call · #0247–#0247
cat <path>sed -n <val> <path>Requested script or workload execution related to reward & policy updates.
1 call · #0248–#0248
python <script> <val> <val>python - <script>Requested script or workload execution related to benchmark & validation setup.
1 call · #0249–#0249
python - <script>Requested file and log inspection and source searches related to device memory.
2 calls · #0250–#0251
sed -n <val> <path>rg -n <val> <path> -g <val> -g <val>head -n <n>Requested script or workload execution related to source & workspace.
1 call · #0252–#0252
python - <script>Requested environment setup or inspection related to benchmark & validation setup.
1 call · #0253–#0253
env <vars> python3 -m <module> <flag> <args>Requested script or workload execution and file and log inspection related to source & workspace.
1 call · #0254–#0254
python - <script>tail -n <n> <path>Requested file and log inspection related to source & workspace.
1 call · #0255–#0255
sed -n <val> <path>Requested script or workload execution related to checkpoints & weight state.
1 call · #0256–#0256
python - <script>Requested file and log inspection and script or workload execution related to source & workspace.
1 call · #0257–#0257
tail -n <n> <path>python - <script>Requested environment setup or inspection and script or workload execution related to source & workspace.
2 calls · #0258–#0259
env <vars> python3 -c <script> > <path> <n> >& <path>python - <script>Requested script or workload execution related to runtime processes.
1 call · #0260–#0260
python - <script>Requested environment setup or inspection related to benchmark & validation setup.
1 call · #0261–#0261
env <vars> python3 -m <module> <script> -q -k <val> > <path> <n> <args>Requested file and log inspection and script or workload execution related to runtime processes.
1 call · #0262–#0262
tail -n <n> <path>python - <script>Requested source searches and file and log inspection related to source & workspace.
1 call · #0263–#0263
rg -n <val> <path>head -n <n>tail -n <n>Requested script or workload execution related to source & workspace.
3 calls · #0264–#0266
python - <script>Requested file and log inspection related to convolution & sequence boundaries.
1 call · #0267–#0267
cat >> <path> <script>Requested script or workload execution related to source & workspace.
2 calls · #0268–#0269
python - <script>Requested script or workload execution related to benchmark & validation setup.
1 call · #0270–#0270
bash <script> > <path> <n> >& <path>Requested script or workload execution related to source & workspace.
1 call · #0271–#0271
python <script> <val>python - <script>Requested script or workload execution and file and log inspection related to benchmark & validation setup.
2 calls · #0272–#0273
python - <script>tail -n <n> <path>Requested file and log inspection and script or workload execution related to rollout generation.
1 call · #0274–#0274
cat > <path> <script>python3 <script> > <path> <n> >& <path>Requested file and log inspection related to convolution & sequence boundaries.
1 call · #0275–#0275
tail -n <n> <path>Requested script or workload execution related to convolution & sequence boundaries.
1 call · #0276–#0276
python3 <script> > <path> <n> >& <path>Requested file and log inspection related to convolution & sequence boundaries.
1 call · #0277–#0277
tail -n <n> <path>Requested file and log inspection and script or workload execution related to rollout generation.
1 call · #0278–#0278
cat > <path> <script>python3 <script> > <path> <n> >& <path>Requested file and log inspection and source searches related to rollout generation.
1 call · #0279–#0279
tail -n <n> <path>rg -n -C <n> <val> <path>head -n <n>Requested source searches and file and log inspection related to source & workspace.
1 call · #0280–#0280
rg -n <val> <path>tail -n <n>Requested script or workload execution related to source & workspace.
2 calls · #0281–#0282
python3 - <script>Requested file and log inspection and source searches related to source & workspace.
2 calls · #0283–#0284
sed -n <val> <path>rg -n <val> <path> <path> <path>tail -n <n>Requested file and log inspection and script or workload execution related to benchmark & validation setup.
1 call · #0285–#0285
tail -n <n> <path>python - <script>Requested file and log inspection, script or workload execution and source searches related to source & workspace.
2 calls · #0286–#0287
tail -n <n> <path>python - <script>rg -n <val> <val> -g <path>head -n <n>Requested file and log inspection related to benchmark & validation setup.
1 call · #0288–#0288
cat <path>Requested file and log inspection related to source & workspace.
1 call · #0289–#0289
tail -n <n> <path>Requested file and log inspection and script or workload execution related to rollout generation.
1 call · #0290–#0290
cat > <path> <script>python3 <script> > <path> <n> >& <path>Requested source searches and file and log inspection related to runtime processes.
1 call · #0291–#0291
rg -n <val> <val> -g <path>head -n <n>Requested source searches and file and log inspection related to source & workspace.
1 call · #0292–#0292
rg -n <val> <path>tail -n <n>sed -n <val> <path>Requested script or workload execution related to benchmark & validation setup.
6 calls · #0293–#0298
python - <script>Requested script or workload execution related to benchmark & validation setup.
1 call · #0299–#0299
bash <script> > <path> <n> >& <path>Requested file and log inspection related to rollout generation.
1 call · #0300–#0300
cat > <path> <script>Requested script or workload execution related to benchmark & validation setup.
2 calls · #0301–#0302
python - <script>Requested code edits related to rollout generation.
1 call · #0303–#0303
Apply patch <patch>Requested repository inspection related to rollout generation.
2 calls · #0304–#0305
<command> <args>git -c <val> <val> --checkRequested file and log inspection and script or workload execution related to benchmark & validation setup.
1 call · #0306–#0306
tail -n <n> <path>python - <script>Requested file and log inspection and repository inspection related to source & workspace.
2 calls · #0307–#0308
tail -n <n> <path>git diff --statgit diff --checkRequested repository inspection related to source & workspace.
1 call · #0309–#0309
git -c <val> <val> --statgit -c <val> <val> --checkRequested repository inspection related to convolution & sequence boundaries.
1 call · #0310–#0310
git diff --statgit diff --check<command> <args>Requested file and log inspection and script or workload execution related to benchmark & validation setup.
1 call · #0311–#0311
tail -n <n> <path>python - <script>Requested environment setup or inspection related to source & workspace.
1 call · #0312–#0312
env <vars> python3 <script> > <path> <n> >& <path>Requested source searches and file and log inspection related to attention kernels.
1 call · #0313–#0313
rg -n <val> <path> <path>head -n <n>sed -n <val> <path>Requested file and log inspection and script or workload execution related to benchmark & validation setup.
3 calls · #0314–#0316
sed -n <val> <path>python - <script>Requested script or workload execution related to runtime processes.
1 call · #0317–#0317
python - <script>Requested script or workload execution related to benchmark & validation setup.
2 calls · #0318–#0319
python - <script>Requested script or workload execution related to checkpoints & weight state.
1 call · #0320–#0320
python - <script>Requested script or workload execution related to benchmark & validation setup.
1 call · #0321–#0321
python - <script>Requested environment setup or inspection related to source & workspace.
1 call · #0322–#0322
env <vars> make <val> <path> > <path> <n> >& <path>Requested file and log inspection and script or workload execution related to source & workspace.
1 call · #0323–#0323
tail -n <n> <path>python - <script>Requested script or workload execution related to source & workspace.
1 call · #0324–#0324
python - <script>Requested script or workload execution related to batching & scheduling.
1 call · #0325–#0325
python - <script>Requested script or workload execution related to source & workspace.
1 call · #0326–#0326
python - <script>Requested source searches related to task requirements.
1 call · #0327–#0327
rg --files <path> <path> <path> <path> -g <val>Requested repository inspection related to source & workspace.
4 calls · #0328–#0331
git status --shortRequested script or workload execution related to source & workspace.
2 calls · #0332–#0333
python - <script>Requested script or workload execution related to checkpoints & weight state.
1 call · #0334–#0334
python - <script>Requested script or workload execution related to checkpoints & weight state.
1 call · #0335–#0335
python - <script>Requested script or workload execution related to benchmark & validation setup.
1 call · #0336–#0336
bash <script> > <path> <n> >& <path>Requested script or workload execution related to checkpoints & weight state.
1 call · #0337–#0337
python - <script>Requested script or workload execution related to benchmark & validation setup.
9 calls · #0338–#0346
python - <script>Requested script or workload execution related to benchmark & validation setup.
1 call · #0347–#0347
bash <script> > <path> <n> >& <path>Requested script or workload execution related to rollout generation.
1 call · #0348–#0348
python - <script>Requested script or workload execution related to source & workspace.
1 call · #0349–#0349
bash <script>Requested repository inspection related to source & workspace.
1 call · #0350–#0350
git diff --checkgit status --shortRequested repository inspection related to source & workspace.
1 call · #0351–#0351
git -c <val> <val> --checkgit status --shortRequested repository inspection related to source & workspace.
2 calls · #0352–#0353
git status --shortgit diff --check03 / CANDIDATE ARTIFACT
Read code changes as Git diffs. Identifying strings are masked; binary files are listed by their full relative names.
Base commit: 76b3bd40ca74d26f0c2bffaf42ed01f422fc70f6
@@ -458,6 +458,7 @@ class Lfm2ShortConv(nn.Module): x: torch.Tensor, past_key_values: Lfm2HybridConvCache | None = None, attention_mask: torch.Tensor | None = None,+ seq_idx: torch.Tensor | None = None, ): x = apply_mask_to_padding_states(x, attention_mask) BCx = self.in_proj(x).transpose(-1, -2)@@ -480,7 +481,7 @@ class Lfm2ShortConv(nn.Module): conv_state = nn.functional.pad(Bx, (self.L_cache - Bx.shape[-1], 0)) past_key_values.conv_cache[self.layer_idx].copy_(conv_state) - conv_out = causal_conv1d_fn(Bx, conv_weights, self.conv.bias, activation=None)+ conv_out = causal_conv1d_fn(Bx, conv_weights, self.conv.bias, activation=None, seq_idx=seq_idx) y = C * conv_out y = self.out_proj(y.transpose(-1, -2).contiguous())@@ -491,6 +492,7 @@ class Lfm2ShortConv(nn.Module): x: torch.Tensor, past_key_values: Lfm2HybridConvCache | None = None, attention_mask: torch.Tensor | None = None,+ seq_idx: torch.Tensor | None = None, ): seqlen = x.shape[1] @@ -524,7 +526,25 @@ class Lfm2ShortConv(nn.Module): conv_state = nn.functional.pad(Bx, (self.L_cache - Bx.shape[-1], 0)) past_key_values.conv_cache[self.layer_idx].copy_(conv_state) - conv_out = self.conv(Bx)[..., :seqlen]+ if seq_idx is not None or Bx.device.type == "npu":+ # A packed batch must not convolve across sequence boundaries. Short+ # depthwise convolutions also map poorly to NPU convolution kernels;+ # accumulate their few taps directly, in the convolution accumulator dtype.+ accumulator_dtype = torch.float32 if Bx.dtype in (torch.float16, torch.bfloat16) else Bx.dtype+ conv_weights = self.conv.weight[:, 0, :].to(accumulator_dtype)+ conv_out = Bx.to(accumulator_dtype) * conv_weights[:, -1, None]+ for lag in range(1, min(self.L_cache, seqlen)):+ shifted = Bx[..., :-lag].to(accumulator_dtype)+ if seq_idx is not None:+ same_sequence = seq_idx[:, lag:] == seq_idx[:, :-lag]+ shifted = shifted * same_sequence[:, None, :]+ contribution = shifted * conv_weights[:, -lag - 1, None]+ conv_out = conv_out + nn.functional.pad(contribution, (lag, 0))+ if self.conv.bias is not None:+ conv_out = conv_out + self.conv.bias.to(accumulator_dtype)[None, :, None]+ conv_out = conv_out.to(Bx.dtype)+ else:+ conv_out = self.conv(Bx)[..., :seqlen] y = C * conv_out y = y.transpose(-1, -2).contiguous()@@ -536,10 +556,11 @@ class Lfm2ShortConv(nn.Module): hidden_states: torch.Tensor, past_key_values: Lfm2HybridConvCache | None = None, attention_mask: torch.Tensor | None = None,+ seq_idx: torch.Tensor | None = None, ): if is_fast_path_available and "cuda" in hidden_states.device.type and not is_torchdynamo_compiling():- return self.cuda_kernels_forward(hidden_states, past_key_values, attention_mask)- return self.slow_forward(hidden_states, past_key_values, attention_mask)+ return self.cuda_kernels_forward(hidden_states, past_key_values, attention_mask, seq_idx)+ return self.slow_forward(hidden_states, past_key_values, attention_mask, seq_idx) class Lfm2DecoderLayer(GradientCheckpointingLayer):@@ -562,6 +583,7 @@ class Lfm2DecoderLayer(GradientCheckpointingLayer): attention_mask: torch.Tensor | None = None, position_ids: torch.LongTensor | None = None, past_key_values: Lfm2HybridConvCache | None = None,+ seq_idx: torch.Tensor | None = None, **kwargs, ) -> torch.Tensor: residual = hidden_states@@ -579,6 +601,7 @@ class Lfm2DecoderLayer(GradientCheckpointingLayer): hidden_states=self.operator_norm(hidden_states), past_key_values=past_key_values, attention_mask=attention_mask,+ seq_idx=seq_idx, ) hidden_states = hidden_states + residual hidden_states = hidden_states + self.feed_forward(self.ffn_norm(hidden_states))@@ -647,6 +670,13 @@ class Lfm2Model(Lfm2PreTrainedModel): config=self.config, max_batch_size=batch_size, dtype=self.dtype, device=self.device ) + # Position resets delimit sequences when padding has been removed. Compute+ # the segment ids once and share them with every short-convolution layer.+ seq_idx = None+ if position_ids is not None and past_key_values is None:+ seq_idx = nn.functional.pad((position_ids[:, 1:] != position_ids[:, :-1] + 1).int(), (1, 0))+ seq_idx = seq_idx.cumsum(-1).to(torch.int32)+ if position_ids is None: past_seen_tokens = past_key_values.get_seq_length() if past_key_values is not None else 0 position_ids = torch.arange(inputs_embeds.shape[1], device=inputs_embeds.device) + past_seen_tokens@@ -674,6 +704,7 @@ class Lfm2Model(Lfm2PreTrainedModel): position_embeddings=position_embeddings, position_ids=position_ids, past_key_values=past_key_values,+ seq_idx=seq_idx, **kwargs, ) @@ -293,6 +293,7 @@ class Lfm2ShortConv(nn.Module): x: torch.Tensor, past_key_values: Lfm2HybridConvCache | None = None, attention_mask: torch.Tensor | None = None,+ seq_idx: torch.Tensor | None = None, ): x = apply_mask_to_padding_states(x, attention_mask) BCx = self.in_proj(x).transpose(-1, -2)@@ -315,7 +316,7 @@ class Lfm2ShortConv(nn.Module): conv_state = nn.functional.pad(Bx, (self.L_cache - Bx.shape[-1], 0)) past_key_values.conv_cache[self.layer_idx].copy_(conv_state) - conv_out = causal_conv1d_fn(Bx, conv_weights, self.conv.bias, activation=None)+ conv_out = causal_conv1d_fn(Bx, conv_weights, self.conv.bias, activation=None, seq_idx=seq_idx) y = C * conv_out y = self.out_proj(y.transpose(-1, -2).contiguous())@@ -326,6 +327,7 @@ class Lfm2ShortConv(nn.Module): x: torch.Tensor, past_key_values: Lfm2HybridConvCache | None = None, attention_mask: torch.Tensor | None = None,+ seq_idx: torch.Tensor | None = None, ): seqlen = x.shape[1] @@ -359,7 +361,25 @@ class Lfm2ShortConv(nn.Module): conv_state = nn.functional.pad(Bx, (self.L_cache - Bx.shape[-1], 0)) past_key_values.conv_cache[self.layer_idx].copy_(conv_state) - conv_out = self.conv(Bx)[..., :seqlen]+ if seq_idx is not None or Bx.device.type == "npu":+ # A packed batch must not convolve across sequence boundaries. Short+ # depthwise convolutions also map poorly to NPU convolution kernels;+ # accumulate their few taps directly, in the convolution accumulator dtype.+ accumulator_dtype = torch.float32 if Bx.dtype in (torch.float16, torch.bfloat16) else Bx.dtype+ conv_weights = self.conv.weight[:, 0, :].to(accumulator_dtype)+ conv_out = Bx.to(accumulator_dtype) * conv_weights[:, -1, None]+ for lag in range(1, min(self.L_cache, seqlen)):+ shifted = Bx[..., :-lag].to(accumulator_dtype)+ if seq_idx is not None:+ same_sequence = seq_idx[:, lag:] == seq_idx[:, :-lag]+ shifted = shifted * same_sequence[:, None, :]+ contribution = shifted * conv_weights[:, -lag - 1, None]+ conv_out = conv_out + nn.functional.pad(contribution, (lag, 0))+ if self.conv.bias is not None:+ conv_out = conv_out + self.conv.bias.to(accumulator_dtype)[None, :, None]+ conv_out = conv_out.to(Bx.dtype)+ else:+ conv_out = self.conv(Bx)[..., :seqlen] y = C * conv_out y = y.transpose(-1, -2).contiguous()@@ -371,10 +391,11 @@ class Lfm2ShortConv(nn.Module): hidden_states: torch.Tensor, past_key_values: Lfm2HybridConvCache | None = None, attention_mask: torch.Tensor | None = None,+ seq_idx: torch.Tensor | None = None, ): if is_fast_path_available and "cuda" in hidden_states.device.type and not is_torchdynamo_compiling():- return self.cuda_kernels_forward(hidden_states, past_key_values, attention_mask)- return self.slow_forward(hidden_states, past_key_values, attention_mask)+ return self.cuda_kernels_forward(hidden_states, past_key_values, attention_mask, seq_idx)+ return self.slow_forward(hidden_states, past_key_values, attention_mask, seq_idx) class Lfm2DecoderLayer(GradientCheckpointingLayer):@@ -397,6 +418,7 @@ class Lfm2DecoderLayer(GradientCheckpointingLayer): attention_mask: torch.Tensor | None = None, position_ids: torch.LongTensor | None = None, past_key_values: Lfm2HybridConvCache | None = None,+ seq_idx: torch.Tensor | None = None, **kwargs, ) -> torch.Tensor: residual = hidden_states@@ -414,6 +436,7 @@ class Lfm2DecoderLayer(GradientCheckpointingLayer): hidden_states=self.operator_norm(hidden_states), past_key_values=past_key_values, attention_mask=attention_mask,+ seq_idx=seq_idx, ) hidden_states = hidden_states + residual hidden_states = hidden_states + self.feed_forward(self.ffn_norm(hidden_states))@@ -453,6 +476,13 @@ class Lfm2Model(LlamaModel): config=self.config, max_batch_size=batch_size, dtype=self.dtype, device=self.device ) + # Position resets delimit sequences when padding has been removed. Compute+ # the segment ids once and share them with every short-convolution layer.+ seq_idx = None+ if position_ids is not None and past_key_values is None:+ seq_idx = nn.functional.pad((position_ids[:, 1:] != position_ids[:, :-1] + 1).int(), (1, 0))+ seq_idx = seq_idx.cumsum(-1).to(torch.int32)+ if position_ids is None: past_seen_tokens = past_key_values.get_seq_length() if past_key_values is not None else 0 position_ids = torch.arange(inputs_embeds.shape[1], device=inputs_embeds.device) + past_seen_tokens@@ -480,6 +510,7 @@ class Lfm2Model(LlamaModel): position_embeddings=position_embeddings, position_ids=position_ids, past_key_values=past_key_values,+ seq_idx=seq_idx, **kwargs, ) @@ -534,6 +534,7 @@ class Lfm2MoeShortConv(nn.Module): x: torch.Tensor, past_key_values: Lfm2MoeHybridConvCache | None = None, attention_mask: torch.Tensor | None = None,+ seq_idx: torch.Tensor | None = None, ): x = apply_mask_to_padding_states(x, attention_mask) BCx = self.in_proj(x).transpose(-1, -2)@@ -556,7 +557,7 @@ class Lfm2MoeShortConv(nn.Module): conv_state = nn.functional.pad(Bx, (self.L_cache - Bx.shape[-1], 0)) past_key_values.conv_cache[self.layer_idx].copy_(conv_state) - conv_out = causal_conv1d_fn(Bx, conv_weights, self.conv.bias, activation=None)+ conv_out = causal_conv1d_fn(Bx, conv_weights, self.conv.bias, activation=None, seq_idx=seq_idx) y = C * conv_out y = self.out_proj(y.transpose(-1, -2).contiguous())@@ -567,6 +568,7 @@ class Lfm2MoeShortConv(nn.Module): x: torch.Tensor, past_key_values: Lfm2MoeHybridConvCache | None = None, attention_mask: torch.Tensor | None = None,+ seq_idx: torch.Tensor | None = None, ): seqlen = x.shape[1] @@ -600,7 +602,25 @@ class Lfm2MoeShortConv(nn.Module): conv_state = nn.functional.pad(Bx, (self.L_cache - Bx.shape[-1], 0)) past_key_values.conv_cache[self.layer_idx].copy_(conv_state) - conv_out = self.conv(Bx)[..., :seqlen]+ if seq_idx is not None or Bx.device.type == "npu":+ # A packed batch must not convolve across sequence boundaries. Short+ # depthwise convolutions also map poorly to NPU convolution kernels;+ # accumulate their few taps directly, in the convolution accumulator dtype.+ accumulator_dtype = torch.float32 if Bx.dtype in (torch.float16, torch.bfloat16) else Bx.dtype+ conv_weights = self.conv.weight[:, 0, :].to(accumulator_dtype)+ conv_out = Bx.to(accumulator_dtype) * conv_weights[:, -1, None]+ for lag in range(1, min(self.L_cache, seqlen)):+ shifted = Bx[..., :-lag].to(accumulator_dtype)+ if seq_idx is not None:+ same_sequence = seq_idx[:, lag:] == seq_idx[:, :-lag]+ shifted = shifted * same_sequence[:, None, :]+ contribution = shifted * conv_weights[:, -lag - 1, None]+ conv_out = conv_out + nn.functional.pad(contribution, (lag, 0))+ if self.conv.bias is not None:+ conv_out = conv_out + self.conv.bias.to(accumulator_dtype)[None, :, None]+ conv_out = conv_out.to(Bx.dtype)+ else:+ conv_out = self.conv(Bx)[..., :seqlen] y = C * conv_out y = y.transpose(-1, -2).contiguous()@@ -612,10 +632,11 @@ class Lfm2MoeShortConv(nn.Module): hidden_states: torch.Tensor, past_key_values: Lfm2MoeHybridConvCache | None = None, attention_mask: torch.Tensor | None = None,+ seq_idx: torch.Tensor | None = None, ): if is_fast_path_available and "cuda" in hidden_states.device.type and not is_torchdynamo_compiling():- return self.cuda_kernels_forward(hidden_states, past_key_values, attention_mask)- return self.slow_forward(hidden_states, past_key_values, attention_mask)+ return self.cuda_kernels_forward(hidden_states, past_key_values, attention_mask, seq_idx)+ return self.slow_forward(hidden_states, past_key_values, attention_mask, seq_idx) class Lfm2MoeDecoderLayer(GradientCheckpointingLayer):@@ -642,6 +663,7 @@ class Lfm2MoeDecoderLayer(GradientCheckpointingLayer): attention_mask: torch.Tensor | None = None, position_ids: torch.LongTensor | None = None, past_key_values: Lfm2MoeHybridConvCache | None = None,+ seq_idx: torch.Tensor | None = None, **kwargs, ) -> torch.Tensor: residual = hidden_states@@ -659,6 +681,7 @@ class Lfm2MoeDecoderLayer(GradientCheckpointingLayer): hidden_states=self.operator_norm(hidden_states), past_key_values=past_key_values, attention_mask=attention_mask,+ seq_idx=seq_idx, ) hidden_states = hidden_states + residual hidden_states = hidden_states + self.feed_forward(self.ffn_norm(hidden_states))Base commit: 0b2151ec61de5d99e0811b01c09e43a99a23e69d
@@ -20,6 +20,7 @@ import torch.nn.functional as F import torch_npu from torch import nn from transformers.activations import ACT2FN+from transformers.models.lfm2 import modeling_lfm2 from transformers.models.qwen2 import modeling_qwen2 from transformers.models.qwen2_5_vl import modeling_qwen2_5_vl from transformers.models.qwen3 import modeling_qwen3@@ -389,3 +390,7 @@ modeling_qwen3_5_moe.Qwen3_5MoeExperts.forward = qwen3_5_moe_experts_forward_npu modeling_qwen3_5_moe.Qwen3_5MoeRMSNormGated.forward = qwen3_next_rms_norm_forward_gated_npu modeling_qwen3_5_moe.Qwen3_5MoeRMSNorm.forward = qwen3_next_rms_norm_forward_npu modeling_qwen3_5_moe.apply_rotary_pos_emb = qwen3_next_apply_rotary_pos_emb_npu++# Patches for LFM2: preserve the model parameters and use differentiable NPU ops.+modeling_lfm2.Lfm2RMSNorm.forward = rms_norm_forward_npu+modeling_lfm2.apply_rotary_pos_emb = apply_rotary_pos_emb_npu@@ -57,19 +57,22 @@ class GlobalRequestLoadBalancer: for hybrid scaling. """ - def __init__(self, servers: dict[str, ray.actor.ActorHandle], max_cache_size: int = DEFAULT_ROUTING_CACHE_SIZE):+ def __init__(+ self, servers: dict[str, ray.actor.ActorHandle | bytes], max_cache_size: int = DEFAULT_ROUTING_CACHE_SIZE+ ): if not servers: raise ValueError("servers must be non-empty") - self._servers: dict[str, ray.actor.ActorHandle] = dict(servers)+ self._servers: dict[str, ray.actor.ActorHandle | bytes] = dict(servers) self._inflight_requests: dict[str, int] = {sid: 0 for sid in servers} self._request_id_to_server: LRUCache = LRUCache(maxsize=max_cache_size) - def acquire_server(self, request_id: str) -> tuple[str, ray.actor.ActorHandle]:+ def acquire_server(self, request_id: str) -> tuple[str, ray.actor.ActorHandle | bytes]: """Acquire a server for the given request (sticky + least-loaded). Returns: A tuple of ``(server_id, actor_handle)`` in a single atomic call.+ Serialized handles stay opaque here and are decoded by the client. """ # Try sticky session first if request_id in self._request_id_to_server:@@ -97,7 +100,7 @@ class GlobalRequestLoadBalancer: if self._inflight_requests[server_id] > 0: self._inflight_requests[server_id] -= 1 - def add_servers(self, servers: dict[str, ray.actor.ActorHandle]) -> None:+ def add_servers(self, servers: dict[str, ray.actor.ActorHandle | bytes]) -> None: """Atomically add multiple servers to the load balancer pool. This is more efficient than calling :meth:`add_server` in a loop@@ -169,7 +172,10 @@ class LLMServerClient: async def _acquire_server(self, request_id: str) -> tuple[str, ray.actor.ActorHandle]: # Atomic acquire: returns (server_id, handle) in one Ray RPC.- return await self._load_balancer.acquire_server.remote(request_id=request_id)+ server_id, handle = await self._load_balancer.acquire_server.remote(request_id=request_id)+ if isinstance(handle, bytes):+ handle = ray.cloudpickle.loads(handle)+ return server_id, handle def _release_server(self, server_id: str) -> None: # Fire-and-forget: release is just a counter decrement, no need to await.@@ -335,8 +341,14 @@ class LLMServerManager: update_prometheus_config(self.rollout_config.prometheus, self.server_addresses, self.rollout_config.name) async def _init_global_load_balancer(self) -> None:+ # Deserializing an actor handle loads the server class and its model+ # dependencies. Keep handles opaque in the routing worker; the clients+ # decode them when needed. self.server_handles retains their ownership. self.global_load_balancer = GlobalRequestLoadBalancer.remote(- servers=dict(zip(self.server_addresses, self.server_handles, strict=True)),+ servers={+ address: ray.cloudpickle.dumps(handle)+ for address, handle in zip(self.server_addresses, self.server_handles, strict=True)+ }, max_cache_size=DEFAULT_ROUTING_CACHE_SIZE, ) @@ -938,9 +938,14 @@ class vLLMHttpServer: leaving other DP shards' weights unreleased, which causes OOM during FSDP training backward when DP > 1. """- # lora only update adapter weights, so set sleep level to 1- # vllm_ascend not support sleep_level now. Enabling EP during training may lead to accuracy issues.- if self.lora_as_adapter or is_torch_npu_available(check_device=False):+ # Adapters retain their base weights. Ascend 0.18 supports level 2 with+ # buffer restoration, so a full TP weight refresh can discard the old+ # weights without a redundant CPU backup and reload. Keep level 1 for+ # older Ascend releases and EP, which needs additional layout handling.+ npu_requires_weight_backup = is_torch_npu_available(check_device=False) and (+ _VLLM_VERSION < version.parse("0.18.0") or self.config.expert_parallel_size > 1+ )+ if self.lora_as_adapter or npu_requires_weight_backup: sleep_level = 1 else: sleep_level = 2Base commit: f649187194c44d86415d1ddfa49359e824932c9a
@@ -0,0 +1,53 @@+# SPDX-License-Identifier: Apache-2.0+# SPDX-FileCopyrightText: Copyright contributors to the vLLM project++import torch+from vllm.forward_context import get_forward_context+from vllm.model_executor.layers.mamba.short_conv import ShortConv+from vllm.v1.attention.backends.short_conv_attn import ShortConvAttentionMetadata++from vllm_ascend.ops.triton.mamba.short_conv import short_conv+++class AscendShortConv(ShortConv):+ def forward_cuda(self, hidden_states: torch.Tensor, output: torch.Tensor):+ # The upstream opaque short_conv op calls this entry point directly.+ # Keeping the op boundary also allows ACL graph capture of decode.+ context = get_forward_context()+ metadata = context.attn_metadata+ projected, _ = self.in_proj(hidden_states)+ if metadata is None:+ # Profiling must initialize the caller's output buffer as well.+ b, c, x = projected.chunk(3, dim=-1)+ output[:], _ = self.out_proj(c * (b * x))+ return++ metadata = metadata[self.prefix]+ assert isinstance(metadata, ShortConvAttentionMetadata)+ if metadata.num_accepted_tokens is not None:+ raise NotImplementedError("Ascend short convolution does not support speculative decoding")+ state = self.kv_cache[context.virtual_engine][0]+ num_decodes = metadata.num_decode_tokens+ num_tokens = num_decodes + metadata.num_prefill_tokens+ convolved = torch.empty_like(projected[:num_tokens, : self.conv.weight.shape[0]])+ if num_decodes:+ short_conv(+ projected[:num_decodes],+ self.conv.weight,+ self.conv.bias,+ state,+ metadata.state_indices_tensor_d,+ output=convolved[:num_decodes],+ )+ if metadata.num_prefills:+ short_conv(+ projected[num_decodes:num_tokens],+ self.conv.weight,+ self.conv.bias,+ state,+ metadata.state_indices_tensor_p,+ metadata.query_start_loc_p,+ metadata.has_initial_states_p,+ output=convolved[num_decodes:],+ )+ output[:num_tokens], _ = self.out_proj(convolved)@@ -0,0 +1,140 @@+# SPDX-License-Identifier: Apache-2.0+# SPDX-FileCopyrightText: Copyright contributors to the vLLM project++import torch+from vllm.triton_utils import tl, triton+++@triton.jit+def _short_conv_kernel(+ projected,+ weight,+ bias,+ state,+ state_indices,+ query_start,+ has_initial_state,+ output,+ DIM: tl.constexpr,+ WIDTH: tl.constexpr,+ INPUT_STRIDE: tl.constexpr,+ STATE_STRIDE: tl.constexpr,+ STATE_TIME_STRIDE: tl.constexpr,+ STATE_CHANNEL_STRIDE: tl.constexpr,+ INDEX_STRIDE: tl.constexpr,+ HAS_BIAS: tl.constexpr,+ IS_DECODE: tl.constexpr,+ BLOCK_T: tl.constexpr,+ BLOCK_D: tl.constexpr,+):+ request = tl.program_id(0)+ channel = tl.program_id(1) * BLOCK_D + tl.arange(0, BLOCK_D)+ channel_mask = channel < DIM+ cache_index = tl.load(state_indices + request * INDEX_STRIDE)+ if IS_DECODE:+ start = request+ length = 1+ use_initial = True+ else:+ start = tl.load(query_start + request)+ length = tl.load(query_start + request + 1) - start+ use_initial = tl.load(has_initial_state + request) != 0++ if cache_index >= 0:+ state_base = state + cache_index * STATE_STRIDE + channel * STATE_CHANNEL_STRIDE+ # Each program owns a request and a disjoint channel tile. It reads the+ # old state before updating it, including for chunks shorter than WIDTH.+ for offset in range(0, length, BLOCK_T):+ token = offset + tl.arange(0, BLOCK_T)+ valid = (token[:, None] < length) & channel_mask[None, :]+ accumulator = tl.full((BLOCK_T, BLOCK_D), 0, tl.float32)+ for tap in tl.static_range(WIDTH):+ source = token + tap - WIDTH + 1+ input_offset = (start + source[:, None]) * INPUT_STRIDE + channel[None, :]+ input_mask = valid & (source[:, None] >= 0)+ b = tl.load(projected + input_offset, input_mask, other=0).to(tl.float32)+ x = tl.load(projected + input_offset + 2 * DIM, input_mask, other=0).to(tl.float32)+ # Match the BF16/FP16 rounding of B*x before convolution.+ bx = (b * x).to(projected.dtype.element_ty).to(tl.float32)+ previous = tl.load(+ state_base[None, :] + (source[:, None] + WIDTH - 1) * STATE_TIME_STRIDE,+ valid & (source[:, None] < 0) & use_initial,+ other=0,+ ).to(tl.float32)+ bx = tl.where(source[:, None] >= 0, bx, previous)+ w = tl.load(weight + channel * WIDTH + tap, channel_mask, other=0).to(tl.float32)+ accumulator += bx * w[None, :]+ if HAS_BIAS:+ accumulator += tl.load(bias + channel, channel_mask, other=0).to(tl.float32)[None, :]+ c = tl.load(+ projected + (start + token[:, None]) * INPUT_STRIDE + DIM + channel[None, :],+ valid,+ other=0,+ ).to(tl.float32)+ result = accumulator.to(projected.dtype.element_ty).to(tl.float32) * c+ tl.store(output + (start + token[:, None]) * DIM + channel[None, :], result, valid)++ # Load the entire tail before storing: when length < WIDTH-1 the new+ # tail includes part of the old state, and the slices can overlap.+ history = tl.arange(0, triton.next_power_of_2(WIDTH - 1))+ source = length - WIDTH + 1 + history+ input_offset = (start + source[:, None]) * INPUT_STRIDE + channel[None, :]+ tail_mask = (history[:, None] < WIDTH - 1) & channel_mask[None, :]+ b = tl.load(projected + input_offset, tail_mask & (source[:, None] >= 0), other=0).to(tl.float32)+ x = tl.load(projected + input_offset + 2 * DIM, tail_mask & (source[:, None] >= 0), other=0).to(tl.float32)+ previous = tl.load(+ state_base[None, :] + (source[:, None] + WIDTH - 1) * STATE_TIME_STRIDE,+ tail_mask & (source[:, None] < 0) & use_initial,+ other=0,+ )+ tail = tl.where(source[:, None] >= 0, (b * x).to(projected.dtype.element_ty), previous)+ tl.store(state_base[None, :] + history[:, None] * STATE_TIME_STRIDE, tail, tail_mask)+++def short_conv(+ projected: torch.Tensor,+ weight: torch.Tensor,+ bias: torch.Tensor | None,+ state: torch.Tensor,+ state_indices: torch.Tensor,+ query_start: torch.Tensor | None = None,+ has_initial_state: torch.Tensor | None = None,+ output: torch.Tensor | None = None,+) -> torch.Tensor:+ """Gated short convolution with a separate history for each scheduled request.++ ``projected`` is token-major [B, C, x], and ``state`` has shape+ [cache blocks, kernel width - 1, local channels]. Both fresh and resumed+ prefills use device metadata, with no host synchronization in the layer.+ """+ dim, _, width = weight.shape+ if width < 2:+ raise ValueError("Short-convolution cache requires a kernel width of at least two")+ if output is None:+ output = torch.empty((projected.shape[0], dim), dtype=projected.dtype, device=projected.device)+ is_decode = query_start is None+ block_d = 128+ block_t = 1 if is_decode else 64+ _short_conv_kernel[(state_indices.shape[0], triton.cdiv(dim, block_d))](+ projected,+ weight,+ bias,+ state,+ state_indices,+ query_start,+ has_initial_state,+ output,+ DIM=dim,+ WIDTH=width,+ INPUT_STRIDE=projected.stride(0),+ STATE_STRIDE=state.stride(0),+ STATE_TIME_STRIDE=state.stride(1),+ STATE_CHANNEL_STRIDE=state.stride(2),+ INDEX_STRIDE=state_indices.stride(0),+ HAS_BIAS=bias is not None,+ IS_DECODE=is_decode,+ BLOCK_T=block_t,+ BLOCK_D=block_d,+ enable_fp_fusion=False,+ )+ return output@@ -50,6 +50,24 @@ def verify_and_update_config(cls, vllm_config) -> None: mamba_sizes = [] for shape, dtype in zip(mamba_shapes, mamba_dtypes): mamba_sizes.append(math.prod(shape) * get_dtype_size(dtype))+ if len(mamba_sizes) == 1:+ # Short-convolution models have no SSM state to align with the K cache.+ # The runner stores all convolution histories contiguously before K/V.+ # Reserve that region even when the history is smaller than a K page:+ # otherwise a history can alias a different request's attention cache.+ attn_page_size_per_token = 2 * attn_single_token_k_page_size+ attn_block_size = kernel_block_size * cdiv(mamba_sizes[0], kernel_block_size * attn_page_size_per_token)+ requested_block_size = cache_config.block_size or kernel_block_size+ cache_config.block_size = kernel_block_size * cdiv(+ max(requested_block_size, attn_block_size), kernel_block_size+ )+ cache_config.mamba_page_size_padded = cache_config.block_size * attn_page_size_per_token + mamba_sizes[0]+ cache_config.mamba_block_size = (+ cache_config.block_size+ if cache_config.enable_prefix_caching and cache_config.mamba_cache_mode == "align"+ else model_config.max_model_len+ )+ return ssm_block_page_size, conv_block_page_size = max(mamba_sizes), min(mamba_sizes) # NOTE(zxr): because of the limit of Ascend Hardware, we need to keep@@ -624,6 +624,7 @@ def register_ascend_customop(vllm_config: VllmConfig | None = None): AscendRotaryEmbedding, AscendYaRNRotaryEmbedding, )+ from vllm_ascend.ops.short_conv import AscendShortConv from vllm_ascend.ops.vocab_parallel_embedding import ( AscendLogitsProcessor, AscendParallelLMHead,@@ -656,6 +657,7 @@ def register_ascend_customop(vllm_config: VllmConfig | None = None): "RMSNormGated": AscendRMSNormGated, "Conv3dLayer": AscendConv3dLayer, "RelPosAttention": AscendRelPosAttention,+ "ShortConv": AscendShortConv, } # 310P: override selected ops with 310P implementations (keep minimal changes outside _310p)@@ -2736,7 +2736,7 @@ class NPUModelRunner(GPUModelRunner): for idx in range(len(kv_cache_tensor.shared_by)): layer_name = kv_cache_tensor.shared_by[idx] if (- "linear_attn" in layer_name or self.hybrid_with_attn_and_mamba+ isinstance(layer_kv_cache_spec[layer_name], MambaSpec) or self.hybrid_with_attn_and_mamba ) and layer_name not in kv_cache_raw_tensors: # for mamba linear attention or attn-linear hybrid if self.vllm_config.kv_transfer_config is None: