Commit 9774858
committed
Fix Gemma3N audio notebooks to use reentrant checkpointing
Non-reentrant gradient checkpointing (use_reentrant=False) causes
AOT autograd stride assertion failures during backward pass with
Gemma3N audio conformer due to variable-length audio tensors:
AssertionError: expected size 2==2, stride 1928==1936 at dim=0
Switch to use_reentrant=True which avoids AOT autograd compilation
of the backward pass entirely.
Companion to unslothai/unsloth#4629 which adds a server-side guard.1 parent 7b8ebad commit 9774858
2 files changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
646 | 646 | | |
647 | 647 | | |
648 | 648 | | |
649 | | - | |
650 | | - | |
| 649 | + | |
| 650 | + | |
651 | 651 | | |
652 | 652 | | |
653 | 653 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
646 | 646 | | |
647 | 647 | | |
648 | 648 | | |
649 | | - | |
650 | | - | |
| 649 | + | |
| 650 | + | |
651 | 651 | | |
652 | 652 | | |
653 | 653 | | |
| |||
0 commit comments