Inspect · Source & workspace
Requested workspace inspection related to source & workspace.
1 call · #0001–#0001
echo <val>ls -l -a <val> <n> > <path>Claude Fable 5.1 · RL
LFM2-1.2B model adapt GRPO 2dev · Model Adaptation
01 / PROCESS MAP
Compare agents on one time axis; overlapping spans line up vertically. Select an agent or bar to inspect its events.
Time starts at the first recorded activity. Select a bar or agent to open its events. Bars span the first and last recorded observation, including gaps; colored ticks mark tool calls. A hollow diamond marks a delegation whose child timing is unavailable.
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>. Each branch belongs to its named agent. Expand a delegation to inspect its child; branches can run concurrently. Call numbers preserve source order, not a serial schedule. Times are relative to the first recorded activity.
Requested workspace inspection related to source & workspace.
1 call · #0001–#0001
echo <val>ls -l -a <val> <n> > <path>Requested file and log inspection and workspace inspection related to task requirements.
2 calls · #0002–#0003
echo <val>cat <path>echocd <val><command> <args>find <val> -maxdepth <n>head -n <n>Requested repository inspection, file and log inspection and workspace inspection related to source & workspace.
1 call · #0004–#0004
<command> <args>git log --oneline <flag> <args>git status <flag> <args>head -n <n>echo <flag>lshead <flag>Requested environment setup or inspection, workspace inspection and file and log inspection related to device memory.
1 call · #0005–#0005
env <vars>echo <val>ls -l -a <val> <n> > <path>cat <path> <n> > <path>Requested file and log inspection related to task requirements.
1 call · #0006–#0006
cd <val>wc -l <path> <path> <path> <path> <path> <path>sort <flag> <args>Requested file and log inspection related to reward & policy updates.
1 call · #0007–#0007
cd <val>echo <path>cat <path><command> <args>cat <val>Requested file and log inspection related to benchmark & validation setup.
1 call · #0008–#0008
cd <val><command> <args>cat <val>Requested file and log inspection and script or workload execution related to task requirements.
1 call · #0009–#0009
cd <val>echo <val>cat <path>python3 -c <script>Requested script or workload execution, dependency and build commands and source searches related to device memory.
1 call · #0010–#0010
echo <val>which <val> <val>python3 -Vpip list <n> > <path>grep -E -i <val>python3 -c <script> <n> >& <path>tail -n <n><command> <args>head <flag>Requested source searches, file and log inspection and environment setup or inspection related to source & workspace.
7 calls · #0011–#0017
<command> <args>grep <flag> <args>head <flag>echo <val>envgrep -E -i <val>sortfind <val> -maxdepth <n> -iname <val> <n> > <path>head -n <n>env <vars>ls -l -a <val>cat <path>cat <path> <n> > <path>head -c <n> <path> <n> > <path>sed -n <val> <path>Requested task coordination related to source & workspace.
1 call · #0018–#0018
Delegate <task>Delegated by Main agent at call #0018. Runs in the background. Observed activity +02:04–+04:07. Overlapping activity: Subagent 2, Subagent 3, Subagent 4, Main agent.
Requested file and log inspection, workspace inspection and source searches related to source & workspace.
2 calls · #0020–#0021
Read <path>ls -l -a <path>grep -i <val>echo <flag>find <path> -type <val>sortfind <path> -type <val> -name <path> -exec <val> -l <val>sort <flag>find <path> -type <val> -name <val> -o -type <val> -name <val>Requested source searches related to source & workspace.
1 call · #0023–#0023
echo <val>grep -n <val> <path>echo <path>Requested source searches and file and log inspection related to source & workspace.
1 call · #0025–#0025
echo <val>grep -r -n <val> <path>sortgrep -n -i <val> <path>head -n <n>Requested file and log inspection and source searches related to source & workspace.
2 calls · #0031–#0032
Read <path>echo <val>grep -n -i <val> <path>echo <path>grep -n <val> <path>sed -n <val> <path>cat <path>Requested file and log inspection related to source & workspace.
2 calls · #0034–#0035
Read <path>Requested source searches, file and log inspection and workspace inspection related to source & workspace.
1 call · #0045–#0045
echo <val>grep -n <val> <path>echosed -n <val> <path>tail -n <n> <path>find <val> -iname <val>sortgrep -n -i <val> <path>head -n <n>ls -l -a <path>grep -o <val> <path> <n> > <path>echo <path>Requested task coordination related to source & workspace.
1 call · #0019–#0019
Delegate <task>Delegated by Main agent at call #0019. Runs in the background. Observed activity +02:06–+10:47. Overlapping activity: Subagent 1, Subagent 3, Subagent 4, Main agent.
Requested workspace inspection and file and log inspection related to source & workspace.
1 call · #0022–#0022
ls -l -a <path> <n> >& <path>head -n <n>echo <flag>Requested file and log inspection, repository inspection and workspace inspection related to source & workspace.
3 calls · #0028–#0030
Read <path>cat <path> <n> > <path>echo <flag>head -n <n>git -C <path> <val> --oneline <flag> <args>git -C <path> <val> <flag> <args>ls -l -a <path>grep -r -l -E <val> <path> --include <path> <n> > <path>wc -lRequested workspace inspection, source searches and file and log inspection related to source & workspace.
3 calls · #0117–#0119
echo <val>find <path> -iname <val> <flag> <args>echo <path>grep <flag> <args>grep -v <val>grep -n -i <val> <path>grep -r -n <val> <path> --include <path> --include <val> --include <val> -l <args>head -n <n>cat <path>ls -l -a <path>Read <path>Requested file and log inspection and source searches related to source & workspace.
1 call · #0121–#0121
echo <val>sed -n <val> <path>cat -nawk <val>awk <val> <path>grep -n -i <val> <path>echo <path>grep -n <val> <path>head -n <n>Requested file and log inspection related to convolution & sequence boundaries.
1 call · #0125–#0125
Read <path>Requested source searches and file and log inspection related to convolution & sequence boundaries.
1 call · #0127–#0127
echo <val>grep -n <val> <path>echoawk <path> <path>head -n <n>grep -n <val> -A <n> <path>Requested script or workload execution, file and log inspection and workspace inspection related to attention kernels.
1 call · #0129–#0129
echo <val>python -c <script> <n> >& <path>headtail -n <n>ls <path> <n> > <path>grep -i <val>Requested environment setup or inspection, workspace inspection and file and log inspection related to convolution & sequence boundaries.
1 call · #0138–#0138
env <vars>echo <val>ls <path>awk <val> <val>echo <path>grep -n <val> <val>head -n <n>wc -l <val>Requested workspace inspection and source searches related to attention kernels.
1 call · #0139–#0139
echo <path>ls <path>echo <val>grep -r -n <val> <path> --include <path>grep -v <path>Requested file and log inspection and source searches related to attention kernels.
1 call · #0141–#0141
echo <val>awk <val> <path>grep -n <val> <path>Requested file and log inspection and source searches related to kv-cache management.
1 call · #0143–#0143
echo <val>awk <val> <path>grep -r -n <val> <path> --include <path>Requested file and log inspection and source searches related to source & workspace.
1 call · #0144–#0144
echo <path>awk <val> <path>grep -n <val> <path>head -n <n>Requested source searches and file and log inspection related to source & workspace.
1 call · #0146–#0146
echo <path>grep -n <val> <path>head -n <n>echoecho <val>Requested source searches and file and log inspection related to attention kernels.
1 call · #0149–#0149
echo <path>grep -n <val> <path>awk <path> <path>echo <val>grep -n <val> -A <n> <path>awk <val> <path>Requested source searches and file and log inspection related to kv-cache management.
1 call · #0150–#0150
echo <val>grep -n <val> <path>grep -r -n <val> <path> --include <path>head -n <n>Requested source searches and file and log inspection related to attention kernels.
1 call · #0154–#0154
echo <val>grep -r -n <val> <path> --include <path>echoecho <path>grep -r -n <val> <path> <path> <path> <n> > <path>grep -i <val>head -n <n>grep -r -n <val> <path>Requested file and log inspection related to convolution & sequence boundaries.
1 call · #0155–#0155
echo <val>awk <val> <path>Requested file and log inspection related to source & workspace.
1 call · #0157–#0157
echo <path>awk <val> <path>echoecho <val>Requested source searches and file and log inspection related to source & workspace.
1 call · #0159–#0159
echo <val>grep -n <val> <path>echo <path>awk <val> <path>grep -n -i <val> <path>Requested file and log inspection related to source & workspace.
1 call · #0165–#0165
echo <val>awk <val> <path>Requested file and log inspection and source searches related to prefix caching.
1 call · #0166–#0166
echo <val>awk <val> <path>grep -r -n <val> <path> --include <path>echo <path>grep -r -n <val> <path>head -n <n>Requested file and log inspection and source searches related to source & workspace.
1 call · #0168–#0168
echo <path>awk <val> <path>grep -r -n -i <val> <path> --include <path> --include <val> <n> > <path>headecho <val>grep -n -i <val> <path>grep -n <val> <path>head -n <n>Requested workspace inspection, source searches and file and log inspection related to convolution & sequence boundaries.
1 call · #0170–#0170
echo <val>ls <path>grep -n <val> <path> <n> > <path>head -n <n>echo <path>cat <path>grep -r -n <val> <path>Requested script or workload execution and source searches related to attention kernels.
1 call · #0177–#0177
cd <path>python -c <script> <n> >& <path>grep -v <val>Requested file and log inspection and source searches related to source & workspace.
1 call · #0182–#0182
echo <val>awk <val> <path>grep -r -n <val> <path> --include <path>head -n <n>Requested file and log inspection related to attention kernels.
1 call · #0183–#0183
echo <val>awk <val> <path>Requested task coordination related to source & workspace.
1 call · #0024–#0024
Delegate <task>Delegated by Main agent at call #0024. Runs in the background. Observed activity +02:19–+06:41. Overlapping activity: Subagent 1, Subagent 2, Subagent 4, Main agent.
Requested workspace inspection, file and log inspection and script or workload execution related to source & workspace.
2 calls · #0026–#0027
ls -l -a <path> <n> > <path>head -n <n>echo <flag>ls -l -a <path> <n> >& <path>find <path> -maxdepth <n> -iname <val> <n> > <path>python -c <script> <n> >& <path>tail -n <n>Requested file and log inspection related to source & workspace.
1 call · #0036–#0036
Read <path>Requested source searches related to dependencies & build setup.
1 call · #0037–#0037
grep -n <val> <path>Requested workspace inspection and file and log inspection related to source & workspace.
2 calls · #0038–#0039
cd <path>find <val> -maxdepth <n> -type <val>sortecho <val>ls -l -a <path>Read <path>Requested file and log inspection related to dependencies & build setup.
1 call · #0041–#0041
sed -n <val> <path>Requested source searches and file and log inspection related to attention kernels.
1 call · #0042–#0042
cd <path>grep -r -n -i -E <val> --include <path> --include <val> --include <val> <args>sorthead -n <n>Requested workspace inspection related to attention kernels.
1 call · #0044–#0044
cd <path>echo <val>ls -l -a <path> <path>ls -l -a <path> <path> <path>find <path> -type <val>sortRequested workspace inspection related to source & workspace.
1 call · #0046–#0046
cd <path>find <val> -maxdepth <n>sortRequested source searches and file and log inspection related to source & workspace.
4 calls · #0048–#0051
cd <path>grep -n <val> <path>head -n <n><command> <args>cat -n <val>Read <path>Requested source searches and file and log inspection related to source & workspace.
2 calls · #0053–#0054
cd <path>grep -n <val> <path>head -n <n>echo <path>echoRequested file and log inspection related to source & workspace.
1 call · #0056–#0056
cd <path>sed -n <val> <path>cat -nawk <val>head -n <n>Requested file and log inspection related to source & workspace.
2 calls · #0061–#0062
cd <path>sed -n <val> <path>Read <path>Requested workspace inspection related to source & workspace.
1 call · #0064–#0064
cd <path>ls -l -a <path> <path> <path> <path>Requested file and log inspection and source searches related to convolution & sequence boundaries.
1 call · #0068–#0068
cd <path>echo <path>cat -n <path>head -n <n>echoecho <val>grep -n <val> <val>Requested source searches, file and log inspection and workspace inspection related to source & workspace.
1 call · #0072–#0072
cd <path>echo <path>grep -r -n <val> --include <path> <path>head -n <n>echoecho <val>find <val> -iname <val> -o -iname <val>Requested source searches and file and log inspection related to convolution & sequence boundaries.
2 calls · #0073–#0074
cd <path>echo <val>grep -n <val> <path>echogrep -r -n -E <val> --include <path> <path>grep -v <path>head -n <n>Requested file and log inspection related to source & workspace.
2 calls · #0075–#0076
Read <path>cd <path>sed -n <val> <path>cat -nawk -v <val> <val>Requested file and log inspection related to convolution & sequence boundaries.
1 call · #0077–#0077
cd <path>sed -n <val> <path>cat -nawk -v <val> <val>echo <val>Requested source searches and file and log inspection related to source & workspace.
2 calls · #0078–#0079
cd <path>grep -r -n <val> --include <path> <path>head -n <n>sed -n <val> <path>cat -nawk -v <val> <val>Requested source searches and file and log inspection related to convolution & sequence boundaries.
1 call · #0080–#0080
cd <path>grep -n <val> <path>head -n <n>Requested source searches related to source & workspace.
1 call · #0081–#0081
cd <path>grep -n <val> -A <n> <path>Requested file and log inspection related to convolution & sequence boundaries.
1 call · #0082–#0082
cd <path>echo <path>cat -n <path>echo <val>head -n <n> <path>cat -nRequested file and log inspection related to source & workspace.
1 call · #0083–#0083
cd <path>sed -n <val> <path>cat -necho <val>awk <val> <path>Requested file and log inspection related to source & workspace.
1 call · #0084–#0084
cd <path>awk <val> <path>Requested source searches, file and log inspection and workspace inspection related to source & workspace.
2 calls · #0085–#0086
cd <path>grep -n <val> <path>head -n <n>grep -r -n -i -E <val> <path> <n> > <path>echo <val>ls <path> <n> > <path>find <val> -iname <val>headRequested source searches and file and log inspection related to convolution & sequence boundaries.
1 call · #0089–#0089
cd <path>echo <val>grep -r -n <val> --include <path> <path>head -n <n>echogrep -n <val> <path>Requested source searches and file and log inspection related to source & workspace.
1 call · #0090–#0090
cd <path>grep -n -E <val> <path>head -n <n>Requested file and log inspection related to source & workspace.
2 calls · #0091–#0092
cd <path>awk <val> <path>Requested file and log inspection related to convolution & sequence boundaries.
1 call · #0095–#0095
cd <path>awk <val> <path>Requested source searches and file and log inspection related to dependencies & build setup.
1 call · #0097–#0097
cd <path>grep -n <val> <path>head -n <n>echo <path>Requested source searches and file and log inspection related to attention kernels.
1 call · #0098–#0098
cd <path>echo <val>grep -r -n <val> --include <path> <path>echohead -n <n> <path>cat -nhead -n <n>Requested source searches and file and log inspection related to attention kernels.
1 call · #0100–#0100
cd <path>echo <path>grep -n <val> <path>head -n <n>echoecho <val>grep -r -n <val> --include <path> <path>Requested file and log inspection, workspace inspection and source searches related to attention kernels.
1 call · #0103–#0103
cd <path>awk <val> <path>echo <val>ls <path>grep -r -n <val> --include <path> <path>head -n <n>Requested task coordination related to rollout generation.
1 call · #0033–#0033
Delegate <task>Delegated by Main agent at call #0033. Runs in the background. Observed activity +02:32–+10:43. Overlapping activity: Subagent 1, Subagent 2, Subagent 3, Main agent.
Requested workspace inspection and file and log inspection related to source & workspace.
1 call · #0040–#0040
ls -d <path> <n> >& <path>echo <flag>ls <path> <n> >& <path>head -n <n>Requested file and log inspection, repository inspection and workspace inspection related to source & workspace.
1 call · #0043–#0043
cd <path>echo <val>cat <path> <n> > <path>head -n <n>git log --oneline <flag> <args>find <path> -type <val> -name <path>sortRequested workspace inspection, file and log inspection and source searches related to source & workspace.
1 call · #0047–#0047
cd <path>echo <path>find <path> -path <path> <flag> <args>head -n <n>echo <val>grep -r -n <val> <path> --include <path> --include <val> --include <val> -l <args>Requested file and log inspection and workspace inspection related to checkpoints & weight state.
1 call · #0052–#0052
cd <path>wc -l <path> <path> <path> <path> <path> <path> <path> <path> <path> <path> <args>echo <path>find <path> -name <path>xargs <val> -lsort <flag>head -n <n>Requested file and log inspection related to source & workspace.
1 call · #0055–#0055
Read <path>Requested file and log inspection related to source & workspace.
1 call · #0057–#0057
Read <path>Requested source searches and file and log inspection related to source & workspace.
1 call · #0067–#0067
cd <path>grep -n <val> <path>head -n <n>Requested file and log inspection related to source & workspace.
1 call · #0069–#0069
Read <path>Requested file and log inspection and source searches related to source & workspace.
2 calls · #0087–#0088
Read <path>cd <path>echo <path>grep -r -n <val> <path> --include <path>grep -v <val>head -n <n>Requested file and log inspection and source searches related to source & workspace.
2 calls · #0093–#0094
Read <path>cd <path>grep -r -n <val> <path> --include <path>head -n <n>Requested file and log inspection related to source & workspace.
1 call · #0096–#0096
Read <path>Requested file and log inspection related to rollout generation.
1 call · #0099–#0099
Read <path>Requested file and log inspection and source searches related to rollout generation.
2 calls · #0101–#0102
Read <path>cd <path>grep -n <val> <path>head -n <n>Requested file and log inspection related to rollout generation.
3 calls · #0105–#0107
Read <path>Requested file and log inspection and source searches related to rollout generation.
1 call · #0110–#0110
cd <path>echo <val>sed -n <val> <path>echoecho <path>grep -n <val> <path>Requested file and log inspection and source searches related to source & workspace.
5 calls · #0112–#0116
cd <path>sed -n <val> <path>echo <val>grep -n <val> -A <n> <path>head -n <n>echoecho <path>cat <path>grep -n <val> <path>Read <path>Requested source searches and file and log inspection related to attention kernels.
1 call · #0120–#0120
cd <path>echo <path>grep -r -n -i <val> <path> --include <path>grep -v <path>head -n <n>echogrep -r -n <val> <path> --include <path>grep -v <val>Requested source searches and file and log inspection related to attention kernels.
1 call · #0124–#0124
cd <path>echo <val>grep -n <val> <path>head -n <n>Requested source searches and file and log inspection related to source & workspace.
1 call · #0126–#0126
cd <path>grep -n <val> <path>sed -n <val>Requested file and log inspection related to source & workspace.
1 call · #0128–#0128
Read <path>Requested file and log inspection and source searches related to source & workspace.
3 calls · #0130–#0132
Read <path>cd <path>echo <path>grep -n <val> <path>echohead -n <n>Requested source searches and file and log inspection related to checkpoints & weight state.
3 calls · #0133–#0135
cd <path>grep -n <val> <path>head -n <n>Read <path>echo <val>sed -n <val> <path>echoecho <path>grep -r -n -i <val> <path> --include <val> <n> > <path>Requested source searches and file and log inspection related to benchmark & validation setup.
1 call · #0136–#0136
cd <path>echo <val>grep -r -n -i -I <val> <path> <n> > <path>wc -lgrep -r -n <val> <path>echogrep -n <val> <path>grep -i <val>head -n <n>grep -n <val> -A <n> <path>Requested source searches and file and log inspection related to rollout generation.
1 call · #0137–#0137
cd <path>echo <val>grep -n <val> <path>sed -n <path> <path>head -n <n>Requested source searches and file and log inspection related to reward & policy updates.
1 call · #0140–#0140
cd <path>echo <val>grep -r -n <val> <path> --include <path>echogrep -r -n <val> -A <n> <path> <n> > <path>head -n <n>echo <path>grep -r -n <val> <path>Requested source searches and file and log inspection related to source & workspace.
1 call · #0142–#0142
cd <path>echo <val>grep -r -n <val> <path>echogrep -r -n <val> -A <n> <path> <path> <n> > <path>head -n <n>Requested file and log inspection and source searches related to checkpoints & weight state.
1 call · #0145–#0145
cd <path>echo <val>sed -n <val> <path>grep -n <val> -A <n>head -n <n>echogrep -r -n <val> <path> -rgrep -r -n <val> <path> --include <path>grep -v <val>Requested source searches and file and log inspection related to checkpoints & weight state.
1 call · #0148–#0148
cd <path>echo <val>grep -r -n <val> <path> <path>headechoecho <path>grep -r -n <val> -A <n> <path> <n> > <path>head -n <n>grep -r -n <val> <path>Requested source searches and file and log inspection related to checkpoints & weight state.
3 calls · #0151–#0153
cd <path>grep -n <val> <path>headecho <val>grep -r -n <val> <path> <path> <n> > <path>grep -r -n <val> <path> --include <path>sed -n <val>sed -n <val> <path>echoRequested file and log inspection related to checkpoints & weight state.
1 call · #0156–#0156
cd <path>echo <val>sed -n <val> <path>echoRequested source searches and file and log inspection related to source & workspace.
1 call · #0162–#0162
cd <path>echo <path>grep -n <val> -A <n> <path>grep -n <val>echoecho <val>cat <path>sed -n <val>Requested source searches and file and log inspection related to attention kernels.
1 call · #0164–#0164
cd <path>echo <val>grep -n <val> -A <n> <path>head -n <n>echogrep -n <val> <path>Requested file and log inspection and source searches related to rollout generation.
1 call · #0167–#0167
cd <path>echo <val>sed -n <val> <path>echoecho <path>grep -n <val> <path>head -n <n>Requested source searches and file and log inspection related to source & workspace.
1 call · #0169–#0169
cd <path>echo <path>grep -r -n <val> <path> --include <path>grep -v <val>head -n <n>echoecho <val>grep -r -n <val> -A <n> <path> --include <path>Requested file and log inspection related to source & workspace.
1 call · #0171–#0171
cd <path>echo <val>sed -n <val> <path>echoecho <path>Requested source searches and file and log inspection related to rollout generation.
1 call · #0174–#0174
cd <path>echo <val>grep -n <val> <path>head -n <n>echoecho <path>sed -n <val> <path>grep -r -n <val> -A <n> <path>Requested source searches and file and log inspection related to rollout generation.
1 call · #0179–#0179
cd <path>echo <val>grep -r -n <val> -A <n> <path> --include <path>head -n <n>echogrep -r -n <val> <path> --include <path>headcat <path>tail -n <n>grep -r -n <val> -A <n> <path>Requested source searches and file and log inspection related to rollout generation.
1 call · #0181–#0181
cd <path>echo <val>grep -r -n <val> -A <n> <path>head -n <n>echogrep -n <val> <path> <path>sed -n <val> <path>Requested script or workload execution, environment setup or inspection and source searches related to source & workspace.
3 calls · #0058–#0060
echo <val>date -upython3 -c <script>envgrep -E <val>sort<command> <args>cat <val> <n> >& <path>head -n <n>ls -l -a <path> <n> >& <path>sed -n <val> <path>Requested file and log inspection related to source & workspace.
1 call · #0063–#0063
sed -n <val> <path>Requested file and log inspection related to source & workspace.
2 calls · #0065–#0066
sed -n <val> <path>Requested script or workload execution and file and log inspection related to checkpoints & weight state.
1 call · #0070–#0070
cd <path>timeout <n> <val> -c <path> <n> >& <path>tail -n <n>Requested source searches and file and log inspection related to runtime processes.
1 call · #0071–#0071
cd <val>echo <path>grep -n <val> <path>head -n <n>Requested workspace file updates related to benchmark & validation setup.
1 call · #0104–#0104
rm -f <path><command> <args>echo <val> >> <path>Requested environment setup or inspection, file and log inspection and workspace inspection related to checkpoints & weight state.
1 call · #0108–#0108
env <vars>cat > <path> <script>echo <val>ls -l -a <val>Requested script or workload execution, source searches and file and log inspection related to source & workspace.
1 call · #0109–#0109
timeout <n> <val> -c <path> <n> >& <path>grep -v <val>tail -n <n>Requested dependency and build commands, source searches and file and log inspection related to convolution & sequence boundaries.
1 call · #0111–#0111
echo <path>pip list <n> > <path>grep -E -i <val>echo <val>sed -n <val> <path>Requested execution waits, file and log inspection and source searches related to benchmark & validation setup.
1 call · #0122–#0122
sleep <n>echo <val>tail -n <n> <path> <n> > <path>echogrep -v <val>Requested script or workload execution and source searches related to convolution & sequence boundaries.
1 call · #0123–#0123
timeout <n> <val> -c <val> <n> >& <path>grep -v <val>Requested file and log inspection, workspace inspection and source searches related to benchmark & validation setup.
1 call · #0147–#0147
echo <val>tail -n <n> <path> <n> > <path>echols -l -a <val> <n> > <path>grep -n -E <val> <path> <n> > <path>grep -v -i -E <val>tail -n <n>Requested file and log inspection, source searches and runtime inspection related to device memory.
1 call · #0158–#0158
echo <val>date -u <val>tail -n <n> <path>tail -n <n> <path> <n> > <path>sed -n <val> <path> <n> > <path>grep -v -i -E <val>tail -n <n>npu-smi info <n> > <path>grep -E <val>head -n <n>Requested source searches, workspace inspection and file and log inspection related to convolution & sequence boundaries.
2 calls · #0160–#0161
echo <val>grep -n <val> <path>echols -l -a <path> <n> >& <path>head -n <n>headsed -n <val> <path>Requested source searches, file and log inspection and workspace inspection related to rollout generation.
1 call · #0163–#0163
cd <path>echo <val>grep -r -n <val> <path>headechols <path> <n> > <path>grep -r -n <val> <path> <path> <n> > <path>echo <path>grep -r -l -n <val> <path> <path> <n> > <path>head -n <n>Requested file and log inspection and source searches related to benchmark & validation setup.
1 call · #0172–#0172
echo <val>date -u <val>tail -n <n> <path>grep -v -E <val> <path> <n> > <path>tail -n <n>echo <path>grep -n -E <val> <path> <path> <n> > <path>grep -v -i -E <val>Requested file and log inspection related to convolution & sequence boundaries.
1 call · #0173–#0173
sed -n <val> <path>Requested file and log inspection and source searches related to source & workspace.
1 call · #0175–#0175
echo <val>cat <path>grep -r -n <val> <path> <path>headRequested file and log inspection related to convolution & sequence boundaries.
1 call · #0176–#0176
cat -n <path>Requested source searches and file and log inspection related to source & workspace.
1 call · #0178–#0178
echo <val>grep -n <val> <path>head -n <n>echosed -n <path> <path>Requested source searches and file and log inspection related to convolution & sequence boundaries.
1 call · #0180–#0180
echo <val>grep -n <val> <path>echosed -n <path> <path>echo <path>head -n <n>Requested execution waits, file and log inspection and source searches related to benchmark & validation setup.
1 call · #0184–#0184
sleep <n>echo <val>date -u <val>tail -n <n> <path>grep -n -E <val> <path> <path> <n> > <path>grep -v -i -E <val>tail -n <n>tail -n <n> <path> <n> > <path>Requested script or workload execution related to precision & numerical checks.
1 call · #0185–#0185
python3 -c <script>Requested file and log inspection and source searches related to source & workspace.
1 call · #0186–#0186
sed -n <val> <path>echo <path>grep -n <val> <path>head -n <n>Requested file and log inspection, workspace inspection and source searches related to attention kernels.
1 call · #0187–#0187
echo <val>sed -n <val> <path>ls -l -a <path> <n> >& <path>grep -n <val> <path> <n> > <path>head -n <n>Requested source searches and file and log inspection related to source & workspace.
3 calls · #0188–#0190
cd <path>echo <val>grep -n <val> <path>head -n <n>grep -r -n <val> <path>headechocat <path>sed -n <val> <path>Requested file and log inspection related to kv-cache management.
1 call · #0191–#0191
sed -n <val> <path>Requested file and log inspection related to convolution & sequence boundaries.
2 calls · #0192–#0193
echo <val>sed -n <path> <path>sed -n <val> <path>Requested environment setup or inspection, workspace file updates and script or workload execution related to attention kernels.
1 call · #0194–#0194
<command> <args>env <vars>cp <val> <path>python3 - <val> <script>python3 -c <script>grep -n <val> <val>headrm -f <path>nohup <val> -c <path> > <path> <n> >& <path>echo <val>Requested file and log inspection related to source & workspace.
2 calls · #0195–#0196
sed -n <val> <path>echo <val>Requested file and log inspection and source searches related to convolution & sequence boundaries.
1 call · #0197–#0197
echo <val>sed -n <val> <path>grep -n <val> <path>head -n <n>Requested source searches and file and log inspection related to benchmark & validation setup.
1 call · #0198–#0198
echo <val>date -u <val><command> <args>grep -n -E <val> <path> <n> > <path>tail -n <n>tail -n <n> <path> <n> > <path>cut <flag>Requested file and log inspection and workspace inspection related to source & workspace.
3 calls · #0199–#0201
sed -n <val> <path>ls -l -a <path>echo <val>sed -n <path> <path>Requested source searches and file and log inspection related to reward & policy updates.
1 call · #0202–#0202
echo <val>date -u <val><command> <args>grep -n -E <val> <path> <n> > <path>tail -n <n>cut <flag>Requested source searches and file and log inspection related to attention kernels.
1 call · #0203–#0203
cd <path>echo <val>grep -r -n <val> <path> <path> <path> <n> > <path>head -n <n>echogrep -n <val> <path>grep -r -n <val> <path>headRequested environment setup or inspection and file and log inspection related to reward & policy updates.
1 call · #0204–#0204
env <vars>cat > <path> <script>echo <val>Requested file and log inspection related to attention kernels.
1 call · #0205–#0205
cd <path>echo <val>sed -n <path> <path>cat <path>Requested source searches and file and log inspection related to benchmark & validation setup.
1 call · #0206–#0206
echo <val>date -u <val><command> <args>grep -n -E <val> <path> <n> > <path>grep -v -i -E <val>tail -n <n>cut <flag>Requested file and log inspection and script or workload execution related to attention kernels.
1 call · #0207–#0207
cat > <path> <script>python3 -c <script>Requested file and log inspection related to source & workspace.
1 call · #0208–#0208
sed -n <val> <path>echo <val>Requested script or workload execution related to attention kernels.
1 call · #0209–#0209
<command> <args>python3 - <script>python3 -c <script>cd <path>timeout <n> <val> <val> <script>Requested source searches, file and log inspection and execution waits related to benchmark & validation setup.
2 calls · #0210–#0211
echo <val>date -u <val><command> <args>grep -n -E <val> <path> <n> > <path>grep -v -i -E <val>tail -n <n>cut <flag>sleep <n>python3 - <script>Requested script or workload execution related to convolution & sequence boundaries.
1 call · #0212–#0212
cd <path>timeout <n> <val> <val> <script>Requested environment setup or inspection and file and log inspection related to reward & policy updates.
1 call · #0213–#0213
env <vars>cat > <path> <script>echo <val>Requested execution waits, runtime inspection and file and log inspection related to benchmark & validation setup.
1 call · #0214–#0214
<command> <args>sleep <n>echo <val>date -u <val>pgrep <flag> <args>head -n <n>python3 - <script>Requested file and log inspection related to source & workspace.
1 call · #0215–#0215
sed -n <val> <path>Requested source searches and file and log inspection related to convolution & sequence boundaries.
1 call · #0216–#0216
echo <path>grep -n -i -E <val> <path> <path> <n> > <path>grep -v -i -E <val>tail -n <n>cut <flag>echo <val>grep -n -E <val> <path> <n> > <path>Requested script or workload execution, file and log inspection and source searches related to benchmark & validation setup.
1 call · #0217–#0217
echo <val>python3 - <script>echoawk <val> <path> <n> > <path>grep -v -i -E <val>tail -n <n>cut <flag>Requested script or workload execution, runtime inspection and source searches related to device memory.
1 call · #0218–#0218
python3 -c <script>echo <val>npu-smi info <n> > <path>grep -E <path>head -n <n>pgrep <flag> <args>grep -v <val>Requested file and log inspection related to convolution & sequence boundaries.
1 call · #0219–#0219
echo <val>sed -n <path> <path>sed -n <val>echo <path>cat <path> <n> > <path>head -n <n>Requested script or workload execution related to reward & policy updates.
1 call · #0220–#0220
python3 - <script>Requested workspace file updates, script or workload execution and execution waits related to benchmark & validation setup.
1 call · #0221–#0221
rm -f <path>nohup <val> -c <path> > <path> <n> >& <path>sleep <n>echo <val>pgrep <flag> <args>head -n <n>Requested script or workload execution related to checkpoints & weight state.
1 call · #0222–#0222
python3 - <script>Requested file and log inspection related to optimizer & gradients.
1 call · #0223–#0223
cd <path>echo <val>sed -n <val> <path>Requested workspace file updates, repository inspection and file and log inspection related to benchmark & validation setup.
1 call · #0224–#0224
mkdir -p <path>cp <path> <path> <n> > <path>echo <val>cd <path>git diff --stattail -n <n>git status <flag>head -n <n><command> <args>git diff > <path>wc -l <path>Requested environment setup or inspection, file and log inspection and workspace inspection related to reward & policy updates.
1 call · #0225–#0225
env <vars>cat > <path> <script>echo <val>ls <val>Requested file and log inspection and script or workload execution related to convolution & sequence boundaries.
1 call · #0226–#0226
cat > <path> <script>echo <val>python3 -c <script>Requested execution waits, script or workload execution and source searches related to benchmark & validation setup.
2 calls · #0227–#0228
<command> <args>sleep <n>echo <val>date -u <val>python3 - <script>grep <flag> <args>truetail -n <n> <path> <n> > <path>cut <flag>mkdir -p <path>cp <path> <path>cp <path> <path> <n> > <path>python3 -c <script>ls -l -a <path>Requested workspace file updates, script or workload execution and execution waits related to benchmark & validation setup.
1 call · #0229–#0229
rm -f <path>nohup <val> -c <path> > <path> <n> >& <path>sleep <n>echo <val>pgrep -f <val>head -n <n>Requested script or workload execution related to checkpoints & weight state.
1 call · #0230–#0230
python3 - <script>Requested source searches and file and log inspection related to convolution & sequence boundaries.
1 call · #0231–#0231
echo <path>grep -n <val> <path>head -n <n>echoecho <val>sed -n <val> <path>grep -n -E <val>sed -n <path> <path>Requested environment setup or inspection, workspace inspection and file and log inspection related to rollout generation.
1 call · #0232–#0232
env <vars>echo <val>ls -l -a <val> <val> <n> > <path>awk <val>echoecho <path>grep <flag> <args>tail -n <n>grep -n -E <val> <val> <n> > <path>head -n <n>cut <flag>sortuniq -csort <flag>Requested environment setup or inspection, workspace inspection and file and log inspection related to source & workspace.
1 call · #0233–#0233
env <vars>echo <val>ls -l -a <val> <n> > <path>head -n <n>echodu <flag> <args>find <val> -maxdepth <n> -type <val> -name <val> <n> > <path>head <flag> <args>ls -d <path> <path> <path> <n> > <path>grep -n -E <val> <path>grep -i -E <val>headRequested execution waits, script or workload execution and file and log inspection related to checkpoints & weight state.
1 call · #0234–#0234
<command> <args>sleep <n>echo <val>date -u <val>python3 - <script>tail -n <n> <path> <n> > <path>cut <flag>Requested environment setup or inspection, source searches and file and log inspection related to benchmark & validation setup.
1 call · #0235–#0235
env <vars>echo <val>grep <flag> <args>sed <path>awk <val>head -n <n>echoecho <path>echo <flag>sortuniq -csort <flag>Requested source searches and file and log inspection related to convolution & sequence boundaries.
1 call · #0236–#0236
cd <path>echo <path>grep -r -n <val> <path> <n> > <path>head -n <n>echoecho <val>Requested script or workload execution, source searches and environment setup or inspection related to prefix caching.
1 call · #0237–#0237
echo <val>date -u <val>python3 -c <script>grep -q <val> <path> <n> > <path>echo <path><command> <args>env <vars>echo <flag>ls -l -a <path> <n> > <path>awk <val>Requested script or workload execution related to rollout generation.
1 call · #0238–#0238
python3 - <script>echo <val>Requested script or workload execution related to reward & policy updates.
1 call · #0239–#0239
python3 - <script>Requested file and log inspection and source searches related to reward & policy updates.
1 call · #0240–#0240
cd <path>echo <val>sed -n <path> <path>echoecho <path>grep -r -n <val> <path>head -n <n>Requested script or workload execution, source searches and file and log inspection related to batching & scheduling.
1 call · #0241–#0241
date -u <val>python3 -c <script>echo <val>cd <path>grep -r -n <val> <path>head -n <n>Requested script or workload execution related to reward & policy updates.
1 call · #0242–#0242
python3 - <script>Requested workspace file updates, workspace inspection and file and log inspection related to checkpoints & weight state.
2 calls · #0243–#0244
mkdir -p <path><command> <args>cp <path> <path>echo <val>cp <path> <path> <n> > <path>ls -l -a <path>awk <val>python3 - <script>date -u <val>python3 -c <script>grep -c <path> <path> <n> > <path>npu-smi info <n> > <path>grep -E <path>head -n <n>pgrep -f <val>ls -l -a <path> <n> > <path>git diff --stattail <flag>git status <flag>grep -v <val>head <flag>Requested source searches and file and log inspection related to prefix caching.
1 call · #0245–#0245
cd <path>echo <val>grep -r -n <val> <path> <path> <path> <path> <n> > <path>head -n <n>echosed -n <val> <path>grep -r -n <val> <path> <path> <path> <n> > <path>Requested source searches and file and log inspection related to prefix caching.
1 call · #0246–#0246
cd <path>echo <path>grep -r -n <val> <path> <path> <path> <n> > <path>head -n <n>echoecho <val>sed -n <val> <path>grep -n -E <val>Requested source searches and file and log inspection related to prefix caching.
1 call · #0247–#0247
cd <path>echo <val>grep -n <val> <flag> <args>echogrep -r -l -n <val> <path>head -n <n>sed -n <path> <path>Requested environment setup or inspection, file and log inspection and script or workload execution related to prefix caching.
1 call · #0248–#0248
env <vars>cat > <path> <script>python3 - <script>Requested script or workload execution related to rollout generation.
1 call · #0249–#0249
python3 - <script>Requested script or workload execution related to benchmark & validation setup.
1 call · #0250–#0250
python3 - <script>Requested file and log inspection and source searches related to prefix caching.
1 call · #0251–#0251
cd <path>echo <val>sed -n <val> <path>echogrep -n <val> <path>head -n <n>Requested source searches and file and log inspection related to prefix caching.
1 call · #0252–#0252
echo <val>grep -n <val> <path>sed -n <val>echogrep -c <val> <path> <n> > <path>grep -n -E <val> <path> <n> > <path>head -n <n>cut <flag>Requested workspace file updates, script or workload execution and execution waits related to benchmark & validation setup.
1 call · #0253–#0253
rm -f <path>nohup <val> -c <path> > <path> <n> >& <path>sleep <n>echo <val>pgrep -f <val>head -n <n>Requested script or workload execution related to reward & policy updates.
1 call · #0254–#0254
python3 - <script>Requested script or workload execution related to batching & scheduling.
1 call · #0255–#0255
python3 - <script>Requested script or workload execution related to reward & policy updates.
2 calls · #0256–#0257
python3 - <script>Requested file and log inspection and source searches related to rollout generation.
1 call · #0258–#0258
cd <path>echo <path>sed -n <val> <path>grep -n -E <val>headechogrep -r -n <val> <path>grep -i -E <val>echo <val>grep -n <val> <path>head -n <n>grep -n -E <val> <path>sed -n <val>Requested execution waits and script or workload execution related to checkpoints & weight state.
1 call · #0259–#0259
<command> <args>sleep <n>echo <val>date -u <val>python3 -c <script>python3 - <script>Requested source searches and file and log inspection related to source & workspace.
1 call · #0260–#0260
echo <path>grep -r -n <val> <path> <path> <n> > <path>sed <path>head -n <n>echoecho <val>grep -r -n -i -E <val> <path>grep -n <val> <path>Requested file and log inspection and source searches related to batching & scheduling.
1 call · #0261–#0261
cd <path>echo <val>sed -n <val> <path>echogrep -r -n <val> <path> <path> <n> > <path>grep -v <val>head -n <n>Requested source searches and file and log inspection related to attention kernels.
1 call · #0262–#0262
cd <path>echo <val>grep -n <val> <path>head -n <n>echosed -n <val> <path>headRequested script or workload execution related to reward & policy updates.
1 call · #0263–#0263
date -u <val>python3 -c <script>python3 - <script>Requested source searches and file and log inspection related to kv-cache management.
1 call · #0264–#0264
echo <val>grep -r -n <val> <path> <n> > <path>headechosed -n <val> <path>echo <path>grep -n <val> <path>Requested file and log inspection and source searches related to source & workspace.
1 call · #0265–#0265
echo <val>sed -n <val> <path>echogrep -n <val> <path>head -n <n>Requested source searches and file and log inspection related to kv-cache management.
1 call · #0266–#0266
cd <path>echo <val>grep -r -n <val> <path>head -n <n>echosed -n <path> <path> <n> > <path>sed -n <val> <path>Requested script or workload execution, workspace file updates and workspace inspection related to device memory.
2 calls · #0267–#0268
echo <val>python3 -c <script>echo<command> <args>cp <path> <path> <n> > <path>ls <val>head -n <n>npu-smi info <n> > <path>grep <flag> <args>env <vars>cp <val> <path>python3 - <val> <script>grep -n <val> <val>rm -f <path>nohup <val> -c <path> > <path> <n> >& <path>sleep <n>Requested source searches and file and log inspection related to kv-cache management.
1 call · #0269–#0269
cd <path>echo <val><command> <args>echo <flag>grep -r -n <val> <path>head -n <n>echoRequested environment setup or inspection, file and log inspection and script or workload execution related to rollout generation.
1 call · #0270–#0270
env <vars>cat > <path> <script>python3 - <script>Requested repository inspection, source searches and file and log inspection related to source & workspace.
1 call · #0271–#0271
<command> <args>echo <val>git status <flag> <args>grep -v <val>head <flag>git diff --stat <n> > <path>tail <flag>echowc -l <path> <n> > <path>git diff > <path>wc -l <path>cp <path> <path> <n> > <path>echo <path>Requested execution waits, source searches and file and log inspection related to benchmark & validation setup.
1 call · #0272–#0272
sleep <n>echo <val>date -u <val>grep -n <val> <path> <path> <n> > <path>head -n <n>echo <path>grep -n -E <val> <path> <n> > <path>tail -n <n>cut <flag>grep -v -i -E <val>grep -q <val> <path> <n> > <path>grep <val> <path>Requested script or workload execution, repository inspection and file and log inspection related to source & workspace.
1 call · #0273–#0273
echo <path><command> <args>python3 -m <module> <val> <n> >& <path>echo <val>echogit status <flag>head -n <n>grep -n <flag> <args>Requested execution waits, source searches and file and log inspection related to checkpoints & weight state.
1 call · #0274–#0274
<command> <args>sleep <n>echo <val>date -u <val>grep <flag> <args>sort -uhead -n <n>python3 - <script>cp <path> <path> <n> > <path>rm -f <path>nohup <val> -c <path> > <path> <n> >& <path>Requested source searches and file and log inspection related to kv-cache management.
1 call · #0275–#0275
echo <path>grep -n <val> <path>head -n <n>echoecho <val>grep -r -n <val> <path> <path>Requested file and log inspection related to source & workspace.
1 call · #0276–#0276
cd <path>echo <val>sed -n <val> <path>echoRequested script or workload execution, runtime inspection and source searches related to device memory.
1 call · #0277–#0277
date -u <val>python3 -c <script>echo <val>npu-smi info <n> > <path>grep -c <val>pgrep -f <val>head -n <n>Requested workspace file updates, repository inspection and source searches related to benchmark & validation setup.
1 call · #0278–#0278
cp <path> <path>cd <path>git diff --statecho <val><command> <args>git diff <flag>echogit status <flag> <args>grep -v <val>wc <flag>echo <flag>python3 -m <module> <val>python3 -c <script>Requested file and log inspection and source searches related to attention kernels.
1 call · #0279–#0279
cd <path>echo <val>sed -n <val> <path>grep -n -E <val>echogrep -n <val> <flag> <args>head -n <n>Requested environment setup or inspection, file and log inspection and script or workload execution related to rollout generation.
1 call · #0280–#0280
env <vars>cat > <path> <script>python3 - <script>Requested repository inspection and script or workload execution related to benchmark & validation setup.
1 call · #0281–#0281
echo <val><command> <args>printf <val> <path> <val>sortechogit diff --quiet <path>python3 - <script>Requested script or workload execution related to attention kernels.
1 call · #0282–#0282
cd <path>timeout <n> <val> <val> <script>Requested script or workload execution, file and log inspection and runtime inspection related to device memory.
1 call · #0283–#0283
cd <path>bash <script> <n> >& <path>tail -n <n>echo <val>echopython3 -c <script>npu-smi info <n> > <path>grep -c <val>Requested repository inspection related to source & workspace.
1 call · #0284–#0284
echo <val><command> <args>git <val>echogit diff <path>Requested workspace inspection, file and log inspection and script or workload execution related to device memory.
1 call · #0285–#0285
date -u <val>echo <val>ls -l -a <val>awk <val>echopython3 - <script><command> <args>echo <flag>git status <flag> <args>grep -v <val>npu-smi info <n> > <path>grep -c <val>Requested environment setup or inspection, file and log inspection and script or workload execution related to checkpoints & weight state.
1 call · #0286–#0286
env <vars>cat > <path> <script>python3 - <script>Requested script or workload execution and file and log inspection related to benchmark & validation setup.
1 call · #0287–#0287
timeout <n> <val> -m <val> <path> -q <flag> <args>tail -n <n>Requested repository inspection and script or workload execution related to source & workspace.
1 call · #0288–#0288
echo <path><command> <args>git diff <flag>echoecho <val>cd <path>git show <path> > <path>python3 - <script>Requested script or workload execution, runtime inspection and source searches related to device memory.
1 call · #0289–#0289
date -u <val>python3 -c <script>echo <val>npu-smi info <n> > <path>grep -c <val>Requested script or workload execution, source searches and file and log inspection related to benchmark & validation setup.
2 calls · #0290–#0291
timeout <n> <val> -m <val> <path> <flag> <args>grep -v -E <path>head -n <n><command> <args>echo <val>timeout <n> <val> -m <val> <val> <flag> <args>tail -n <n>grep -v -E <val>Requested script or workload execution related to source & workspace.
1 call · #0292–#0292
cd <path>timeout <n> <val> <val> <script>Requested script or workload execution, file and log inspection and dependency and build commands related to device memory.
1 call · #0293–#0293
echo <val>python3 -c <script> <n> >& <path>tail -n <n>pip show <val> <n> >& <path>head -n <n>echotimeout <n> <val> -m <val> <path> <flag> <args>grep <flag> <args>echo <path>date -u <val>python3 -c <script><command> <args>npu-smi info <n> > <path>grep -c <val>03 / CANDIDATE ARTIFACT
Read code changes as Git diffs. Identifying strings are masked; binary files are listed by their full relative names.
Base commit: 0b2151ec61de5d99e0811b01c09e43a99a23e69d
@@ -0,0 +1,153 @@+# Copyright 2024 Bytedance Ltd. and/or its affiliates+#+# Licensed under the Apache License, Version 2.0 (the "License");+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an "AS IS" BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+"""Sequence-boundary aware short convolution for LFM2-style hybrid models.++verl's remove-padding path concatenates every sequence of a micro batch into a+single row of shape ``(1, total_nnz)`` and passes ``attention_mask=None``,+relying on ``position_ids`` to describe the packed layout. Attention handles+that through flash-attention varlen, but LFM2's depthwise causal convolution+does not: a single convolution over the packed row lets the first+``conv_L_cache - 1`` tokens of each sequence read tokens belonging to the+previous sequence in the pack.++The patch below rewrites the convolution as an explicit sum over kernel taps+and drops the taps that would reach across a sequence boundary. Boundaries come+from ``position_ids``, which restarts at zero for every packed sequence. For a+single sequence starting at position zero the masked form is identical to the+zero-padded convolution, so the patched path stays exact in the unpacked case+as well.+"""++import torch+import torch.nn.functional as F++__all__ = ["apply_lfm2_packed_conv_monkey_patch"]+++def _packed_conv_taps(+ conv_input: torch.Tensor,+ weight: torch.Tensor,+ position_ids: torch.Tensor,+ kernel_size: int,+) -> torch.Tensor:+ """Depthwise causal convolution that never crosses a sequence boundary.++ Args:+ conv_input: ``(batch, channels, seq_len)`` gated convolution input.+ weight: ``(channels, kernel_size)`` depthwise convolution weight.+ position_ids: ``(batch, seq_len)`` per-sequence token positions.+ kernel_size: convolution width (``config.conv_L_cache``).++ Returns:+ ``(batch, channels, seq_len)`` convolution output.+ """+ positions = position_ids.reshape(conv_input.shape[0], 1, -1)+ output = None+ for distance in range(kernel_size):+ # nn.Conv1d with padding=kernel_size-1 computes+ # out[t] = sum_k w[k] * x[t + k - (kernel_size - 1)]+ # so the tap at `distance` tokens back carries weight index+ # kernel_size - 1 - distance.+ tap = weight[:, kernel_size - 1 - distance].reshape(1, -1, 1)+ if distance == 0:+ shifted = conv_input+ else:+ shifted = F.pad(conv_input, (distance, 0))[..., :-distance]+ # A tap reaching back past the start of its own sequence is exactly+ # the zero padding of an unpacked convolution.+ shifted = shifted * (positions >= distance).to(conv_input.dtype)+ term = tap * shifted+ output = term if output is None else output + term+ return output+++def lfm2_short_conv_forward(+ self,+ hidden_states: torch.Tensor,+ past_key_values=None,+ attention_mask: torch.Tensor | None = None,+ position_ids: torch.Tensor | None = None,+):+ """`Lfm2ShortConv.forward` that respects packed sequence boundaries."""+ cached = past_key_values is not None and past_key_values.get_seq_length() > 0+ if position_ids is None or attention_mask is not None or cached:+ # Only verl's packed micro batches (no attention mask, position_ids+ # describing the pack) need boundary handling. Anything else - padded+ # batches, or decoding against a populated cache - keeps the upstream+ # implementation verbatim.+ return self._verl_original_forward(hidden_states, past_key_values, attention_mask)++ BCx = self.in_proj(hidden_states).transpose(-1, -2)+ B, C, x = BCx.chunk(3, dim=-2)+ Bx = B * x++ conv_out = _packed_conv_taps(+ Bx,+ self.conv.weight[:, 0, :],+ position_ids,+ self.L_cache,+ )+ if self.bias:+ conv_out = conv_out + self.conv.bias.reshape(1, -1, 1)++ if past_key_values is not None:+ conv_state = F.pad(Bx, (self.L_cache - Bx.shape[-1], 0))+ past_key_values.conv_cache[self.layer_idx].copy_(conv_state)++ y = C * conv_out+ return self.out_proj(y.transpose(-1, -2).contiguous())+++def lfm2_decoder_layer_forward(+ self,+ hidden_states: torch.Tensor,+ position_embeddings: tuple[torch.Tensor, torch.Tensor] | None = None,+ attention_mask: torch.Tensor | None = None,+ position_ids: torch.LongTensor | None = None,+ past_key_values=None,+ **kwargs,+) -> torch.Tensor:+ """`Lfm2DecoderLayer.forward` that also hands `position_ids` to the conv."""+ residual = hidden_states+ if self.is_attention_layer:+ hidden_states, _ = self.self_attn(+ hidden_states=self.operator_norm(hidden_states),+ position_embeddings=position_embeddings,+ attention_mask=attention_mask,+ position_ids=position_ids,+ past_key_values=past_key_values,+ **kwargs,+ )+ else:+ hidden_states = self.conv(+ hidden_states=self.operator_norm(hidden_states),+ past_key_values=past_key_values,+ attention_mask=attention_mask,+ position_ids=position_ids,+ )+ hidden_states = hidden_states + residual+ hidden_states = hidden_states + self.feed_forward(self.ffn_norm(hidden_states))+ return hidden_states+++def apply_lfm2_packed_conv_monkey_patch() -> None:+ """Make LFM2's short convolution safe for verl's packed micro batches."""+ from transformers.models.lfm2.modeling_lfm2 import Lfm2DecoderLayer, Lfm2ShortConv++ if getattr(Lfm2ShortConv, "_verl_packed_conv_patched", False):+ return+ Lfm2ShortConv._verl_original_forward = Lfm2ShortConv.forward+ Lfm2ShortConv.forward = lfm2_short_conv_forward+ Lfm2ShortConv._verl_packed_conv_patched = True+ Lfm2DecoderLayer.forward = lfm2_decoder_layer_forward@@ -526,6 +526,15 @@ def apply_monkey_patch( patch_vlm_for_ulysses_input_slicing(Qwen3_5TextModel) patch_vlm_for_ulysses_input_slicing(Qwen3_5MoeTextModel) + if model.config.model_type in ["lfm2", "lfm2_moe"] and use_remove_padding:+ # LFM2's short convolution mixes neighbouring tokens, so a packed micro+ # batch would convolve across sequence boundaries. Patch it to respect+ # the boundaries described by position_ids.+ from verl.models.transformers.lfm2 import apply_lfm2_packed_conv_monkey_patch++ apply_lfm2_packed_conv_monkey_patch()+ print(f"Monkey patch packed short convolution in {model.__class__.__name__}")+ if use_remove_padding or ulysses_sp_size > 1: if hasattr(module, "_flash_attention_forward"): # transformers <= 4.47.1 or legacy models module._flash_attention_forward = _ulysses_flash_attention_forwardBase commit: f649187194c44d86415d1ddfa49359e824932c9a
@@ -9,6 +9,34 @@ from vllm.utils.math_utils import cdiv from vllm.utils.torch_utils import STR_DTYPE_TO_TORCH_DTYPE, get_dtype_size +# Handle on the upstream implementation. Hybrid models whose only recurrent+# state is a short convolution (e.g. Lfm2ForCausalLM) expose a single mamba+# state, so there is no separate SSM page to align the attention block size+# against. Upstream already pads the mamba page up to a whole attention page,+# which keeps every cache tensor contiguous as Ascend requires.+_UPSTREAM_VERIFY_AND_UPDATE_CONFIG = (+ vllm.model_executor.models.config.HybridAttentionMambaModelConfig.verify_and_update_config+)++# Ascend attention kernels operate on 128-token blocks.+_ASCEND_KERNEL_BLOCK_SIZE = 128+++def _mamba_state_page_sizes(vllm_config) -> list[int]:+ """Byte size of each recurrent state page declared by the model."""+ model_config = vllm_config.model_config+ model_cls, _ = ModelRegistry.resolve_model_cls(+ model_config.architecture,+ model_config=model_config,+ )+ mamba_shapes = model_cls.get_mamba_state_shape_from_config(vllm_config)+ mamba_dtypes = model_cls.get_mamba_state_dtype_from_config(vllm_config)+ return [+ math.prod(shape) * get_dtype_size(dtype)+ for shape, dtype in zip(mamba_shapes, mamba_dtypes)+ ]++ @classmethod def verify_and_update_config(cls, vllm_config) -> None: """@@ -21,6 +49,17 @@ def verify_and_update_config(cls, vllm_config) -> None: Args: vllm_config: vLLM Config """+ if len(_mamba_state_page_sizes(vllm_config)) < 2:+ # Convolution-only hybrid model: keep the Ascend kernel block size and+ # let upstream pad the (much smaller) conv page up to the attention+ # page. The ssm/attn alignment below cannot be satisfied without an+ # SSM state, so it must not run here.+ cache_config = vllm_config.cache_config+ if cache_config.block_size is None or cache_config.block_size < _ASCEND_KERNEL_BLOCK_SIZE:+ cache_config.block_size = _ASCEND_KERNEL_BLOCK_SIZE+ _UPSTREAM_VERIFY_AND_UPDATE_CONFIG(vllm_config)+ return+ # Enable FULL_AND_PIECEWISE by default MambaModelConfig.verify_and_update_config(vllm_config)