Skip to content

Commit

Permalink
fixes to data-collator patching for padding-free plugin
Browse files Browse the repository at this point in the history
Signed-off-by: 1000960000 user <[email protected]>
  • Loading branch information
achew010 committed Aug 6, 2024
1 parent 0e15e8c commit 8a3e8bf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ def prepare(self, *args, device_placement=None):
# Replace the collate_fn in dataloader
dataloader.collate_fn = DataCollatorWithFlattening()

return dataloader
return _old_prepare(dataloader)

accelerator.prepare = MethodType(prepare, accelerator)

Expand Down

0 comments on commit 8a3e8bf

Please sign in to comment.