TorchCheckpointIO¶
- class lightning.fabric.plugins.io.torch_io.TorchCheckpointIO[source]¶
- Bases: - CheckpointIO- CheckpointIO that utilizes - torch.save()and- torch.load()to save and load checkpoints respectively, common for most use cases.- Warning - This is an experimental feature. - load_checkpoint(path, map_location=<function TorchCheckpointIO.<lambda>>)[source]¶
- Loads checkpoint using - torch.load(), with additional handling for- fsspecremote loading of files.- Parameters:
- Return type:
 - Returns: The loaded checkpoint. - Raises:
- FileNotFoundError – If - pathis not found by the- fsspecfilesystem