(self, path: str, map_location=None)
| 297 | from deepspeed.utils import logger # noqa: PLC0415 |
| 298 | |
| 299 | def load(self, path: str, map_location=None): |
| 300 | logger.info(f"[Torch] Loading checkpoint from {path}...") |
| 301 | partition = torch.load(path, map_location=map_location, weights_only=False) |
| 302 | logger.info(f"[Torch] Loaded checkpoint from {path}.") |
| 303 | return partition |
| 304 | |
| 305 | torch_checkpoint_engine.TorchCheckpointEngine.load = load |
| 306 |
no outgoing calls