diff --git a/examples/train_4gb_vram.py b/examples/train_4gb_vram.py index 61a2c446da..35307f87cf 100644 --- a/examples/train_4gb_vram.py +++ b/examples/train_4gb_vram.py @@ -94,6 +94,8 @@ def main(): max_length = max_seq_length, dataset_num_proc = 2, packing = False, # True can spike VRAM on variable-length samples + padding_free = False, # Unsloth auto-enables this when unset, which conflicts + # with an explicit max_length + packing=False (trl 1.6+) ) # ── 5. Initialize trainer ─────────────────────────────────────────────────