Skip to content

Commit

Permalink
fix bug in run
Browse files Browse the repository at this point in the history
  • Loading branch information
derpyplops committed Aug 31, 2023
1 parent 4e00e48 commit 8126b4a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions elk/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ def execute(
)

devices = select_usable_devices(self.num_gpus, min_memory=self.min_gpu_mem)
if devices == ['mps']:
devices = ['cpu']
num_devices = len(devices)
func: Callable[[int], dict[str, pd.DataFrame]] = partial(
self.apply_to_layer, devices=devices, world_size=num_devices
Expand Down

0 comments on commit 8126b4a

Please sign in to comment.