Skip to content

Commit

Permalink
resolve 3060
Browse files Browse the repository at this point in the history
  • Loading branch information
wejoncy committed Nov 22, 2024
1 parent 08101b9 commit 9a9b0fa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/accelerate/hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,8 @@ def attach_execution_device_hook(
return

for child in module.children():
attach_execution_device_hook(child, execution_device, skip_keys=skip_keys, tied_params_map=tied_params_map)
attach_execution_device_hook(child, execution_device, skip_keys=skip_keys,
preload_module_classes=preload_module_classes, tied_params_map=tied_params_map)


def attach_align_device_hook(
Expand Down

0 comments on commit 9a9b0fa

Please sign in to comment.