Skip to content

Commit 39ee4e3

Browse files
committed
feat: add entrypoint in ps.py for compatibility
1 parent dd05eae commit 39ee4e3

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

checkpoint_engine/ps.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -852,3 +852,10 @@ def _update_per_bucket(
852852
self._p2p_store.unregister_named_tensors([h2d_buffer_name])
853853

854854
self.device_manager.device_module.empty_cache()
855+
856+
857+
# we need this CLI entry point for compatibility with former versions
858+
if __name__ == "__main__":
859+
from .__main__ import run_from_cli
860+
861+
run_from_cli()

0 commit comments

Comments
 (0)