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
Register a checkpoint to the parameter server. Both files and named_tensors will be registered together.
979
-
Warning: .safetensors files in /dev/shm/ will be pinned in-place, and the files will be REMOVED after pinning.
986
+
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.
980
987
Please make sure to copy the files to disks if you need to keep them.
981
988
982
989
Args:
@@ -988,6 +995,8 @@ def register_checkpoint(
988
995
cannot accommodate checkpoints with different memory requirements.
989
996
To free the actual memory of the shared pool or to modify its shape,
990
997
please unregister the current user of the shared memory pool using `unregister_checkpoint` with `force=True`.
998
+
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.
999
+
Currently, this feature is experimental and may crash.
0 commit comments