Skip to content

Commit

Permalink
add comment on future improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
thejaminator committed May 3, 2023
1 parent 051e2fd commit 8c6386c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions elk/utils/multi_gpu.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ def instantiate_model_with_devices(
else:
torch_dtype = "auto"

# TODO: Maybe we should ensure the device map is the same
# for all the extract processes? This is because the device map
# can affect performance highly and its annoying if one process
# is using a different device map than the others.
device_map = (
{"": first_device}
if device_config.is_single_gpu
Expand Down

0 comments on commit 8c6386c

Please sign in to comment.