Skip to content

Commit b65ea50

Browse files
jomayeriUbuntu
and
Ubuntu
authored
GDS Swapping Fix (#6386)
Fixing gds api call Co-authored-by: Ubuntu <deepspeed@H100-VM2.shlnn55tgwve1eacvp21ie45dg.jx.internal.cloudapp.net>
1 parent 96393f5 commit b65ea50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

deepspeed/runtime/swap_tensor/partitioned_param_swapper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def _configure_aio(self, ds_config):
121121
dtype=self.dtype,
122122
device=get_accelerator().device_name(),
123123
requires_grad=False)
124-
self.aio_read_handle.new_device_locked_tensor(self.buffers)
124+
self.aio_read_handle.pin_device_tensor(self.buffers)
125125
else:
126126
self.buffers = get_accelerator().pin_memory(torch.empty(int(self.aligned_elements_per_buffer *
127127
self.param_buffer_count),

0 commit comments

Comments
 (0)