generated from amazon-archives/__template_Custom
-
Notifications
You must be signed in to change notification settings - Fork 26
Open
Labels
bugSomething isn't workingSomething isn't working
Description
s3torchconnector version
s3torchconnector-1.4.3
s3torchconnectorclient version
s3torchconnectorclient-1.4.3
AWS Region
No response
Describe the running environment
Across all environments (CI Github Runners).
What happened?
Lightning-AI/pytorch-lightning#21072 change causes TypeError: S3LightningCheckpoint.load_checkpoint() got an unexpected keyword argument 'weights_only'.
This is due to lacking weights_only parameter in S3LightningCheckpoint.load_checkpoint().
Relevant log output
def load_checkpoint(self, checkpoint_path: _PATH, weights_only: Optional[bool] = None) -> dict[str, Any]:
torch.cuda.empty_cache()
> return self.checkpoint_io.load_checkpoint(checkpoint_path, weights_only=weights_only)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E TypeError: S3LightningCheckpoint.load_checkpoint() got an unexpected keyword argument 'weights_only'
/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/lightning/pytorch/strategies/strategy.py:368: TypeErrorCode of Conduct
- I agree to follow this project's Code of Conduct
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working