Skip to content

Commit 4a21b4f

Browse files
committed
doc
1 parent afd880d commit 4a21b4f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

checkpoint_engine/ps.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -969,7 +969,7 @@ def register_checkpoint(
969969
) -> None:
970970
"""
971971
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.
973973
Please make sure to copy the files to disks if you need to keep them.
974974
975975
Args:
@@ -981,7 +981,7 @@ def register_checkpoint(
981981
cannot accommodate checkpoints with different memory requirements.
982982
To free the actual memory of the shared pool or to modify its shape,
983983
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.
985985
Currently, this feature is experimental and may crash.
986986
"""
987987
try:

0 commit comments

Comments
 (0)