Setting ckpt_path='last' in Trainer.fit does not work with cloud checkpoints #18261
Closed as not planned
ckpt_path='last' in Trainer.fit does not work with cloud checkpoints #18261
Bug description
Setting
ckpt_path='last'inTrainer.fitwill not work with cloud checkpoints (GCS, S3). This is because the current logic for finding checkpoint paths callsos.path.normpathwhich drops thegs://ands3://path prefixes for cloud paths, causing them to be treated as local paths later on.https://github.com/Lightning-AI/lightning/blob/8f81dafd9512af8b4e42eeb30badc604883a92c4/src/lightning/pytorch/callbacks/model_checkpoint.py#L611-L620
What version are you seeing the problem on?
master
How to reproduce the bug
No response
Error messages and logs
Environment
Current environment
More info
No response