How can i continue my script even with manual interruption?

Hello All :slight_smile:

What i am trying to achieve is basically interrupting my model training in-between without getting the script killed (obviously weights will be cached by default in the loop itself) (i.e. the lines/functions after the training loop etc should execute without failure).

What are few ways that we can do this in Pytorch?

My Current guess is that we can write a custom callback and do this but what would the key stroke to trigger the same and how to handle that etc is what i am wondering…

Thanks Folks :slight_smile: