You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: checkpoint_engine/ps.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -969,7 +969,7 @@ def register_checkpoint(
969
969
) ->None:
970
970
"""
971
971
Register a checkpoint to the parameter server. Both files and named_tensors will be registered together.
972
-
Warning: .safetensors files in /dev/shm/ will be pinned in-place, and the files will be REMOVED after pinning.
972
+
Warning: if `use_inplace_pin_memory` is True, .safetensors files in /dev/shm/ will be pinned in-place, and the files will be REMOVED after pinning.
973
973
Please make sure to copy the files to disks if you need to keep them.
974
974
975
975
Args:
@@ -981,7 +981,7 @@ def register_checkpoint(
981
981
cannot accommodate checkpoints with different memory requirements.
982
982
To free the actual memory of the shared pool or to modify its shape,
983
983
please unregister the current user of the shared memory pool using `unregister_checkpoint` with `force=True`.
984
-
use_inplace_pin_memory: If True, allows inplace pin memory for /dev/shm/ safetensors files.
984
+
use_inplace_pin_memory: If True, allows inplace pin memory for /dev/shm/ safetensors files. This option is ignored when ``use_shared_memory_pool`` is True.
985
985
Currently, this feature is experimental and may crash.
0 commit comments