If you want to store a checkpoint for every epoch, you could add the epoch counter to the name:
torch.save(model_ft.state_dict(), 'C:\Users\Niharika\Desktop\CavitiesCNN\results6\model_epoch{}.pth'.format(epoch))