Skip to content

Commit d3a8f29

Browse files
committed
prevent mem issues?
1 parent 02602cb commit d3a8f29

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

elk/utils/gpu_utils.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,6 @@ def select_usable_devices(
168168

169169
def get_available_memory_for_devices() -> dict[str, int]:
170170
# Edited from get_max_memory of the accelerate library
171-
for i in range(torch.cuda.device_count()):
172-
_ = torch.tensor([0], device=i)
173171
max_memory = {
174172
f"cuda:{i}": torch.cuda.mem_get_info(i)[0]
175173
for i in range(torch.cuda.device_count())

0 commit comments

Comments
 (0)