Commit 14f14cd
authored
fix: AC silently skipped on all registered VLMs — flatten ModuleList (#1941)
fix: flatten ModuleList in _extract_model_layers so AC applies to individual layers
_reduce_attrs returns ModuleList objects as single items; extending layers
with them meant AC code never found self_attn/mlp on a ModuleList and
silently skipped all checkpointing. Flatten any ModuleList results so
layers contains individual decoder layers, matching the heuristic path.
Signed-off-by: khazic <khazzz1c@gmail.com>1 parent 388845e commit 14f14cd
1 file changed
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1307 | 1307 | | |
1308 | 1308 | | |
1309 | 1309 | | |
| 1310 | + | |
| 1311 | + | |
| 1312 | + | |
| 1313 | + | |
| 1314 | + | |
| 1315 | + | |
| 1316 | + | |
1310 | 1317 | | |
1311 | 1318 | | |
1312 | 1319 | | |
1313 | | - | |
| 1320 | + | |
1314 | 1321 | | |
1315 | | - | |
| 1322 | + | |
1316 | 1323 | | |
1317 | 1324 | | |
1318 | 1325 | | |
| |||
0 commit comments