{
  "id": 511995,
  "title": "Notebook stops training suddenly",
  "url": "/competitions/rsna-2024-lumbar-spine-degenerative-classification/discussion/511995",
  "author_name": "",
  "post_date": "2024-06-13T05:32:11.714283900Z",
  "votes": 1,
  "comment_count": 10,
  "views": 0,
  "content": "<p>Over the past one week or so, I have been facing the issue of models stopping training and then each time, I have to end the session and restart? How to fix this issue; here is my notebook for reference <a href=\"https://www.kaggle.com/code/samu2505/rsna-pytorchlightning-train\" target=\"_blank\">pytorch-lightning</a>. I have also tried with pytorch</p>",
  "messages": [
    {
      "id": "2869445",
      "postDate": "06/13/2024 05:32:11",
      "content": "<p>Over the past one week or so, I have been facing the issue of models stopping training and then each time, I have to end the session and restart? How to fix this issue; here is my notebook for reference <a href=\"https://www.kaggle.com/code/samu2505/rsna-pytorchlightning-train\" target=\"_blank\">pytorch-lightning</a>. I have also tried with pytorch</p>",
      "rawMarkdown": "Over the past one week or so, I have been facing the issue of models stopping training and then each time, I have to end the session and restart? How to fix this issue; here is my notebook for reference [pytorch-lightning](https://www.kaggle.com/code/samu2505/rsna-pytorchlightning-train). I have also tried with pytorch",
      "votes": null
    },
    {
      "id": "2869452",
      "postDate": "06/13/2024 05:35:09",
      "content": "<p>Is your Internet off? Check that once. </p>",
      "rawMarkdown": "Is your Internet off? Check that once.",
      "votes": null
    },
    {
      "id": "2869484",
      "postDate": "06/13/2024 05:59:10",
      "content": "<p>Yeah, I have been having some internet issues. </p>",
      "rawMarkdown": "Yeah, I have been having some internet issues.",
      "votes": null
    },
    {
      "id": "2870292",
      "postDate": "06/13/2024 13:53:35",
      "content": "<p>If you have intermittent internet outages, you can submit a version of the notebook with version type \"Save &amp; Run All (Commit)\". The result (such as best model) can be saved to output folder for later retrieval.</p>",
      "rawMarkdown": "If you have intermittent internet outages, you can submit a version of the notebook with version type \"Save & Run All (Commit)\". The result (such as best model) can be saved to output folder for later retrieval.",
      "votes": null
    },
    {
      "id": "2870396",
      "postDate": "06/13/2024 15:02:55",
      "content": "<p>Bro and bro, I meant there's a section on the right side, which has Internet settings, that should be off for this competition. <a href=\"https://www.kaggle.com/samu2505\" target=\"_blank\">@samu2505</a> <a href=\"https://www.kaggle.com/coderrkj\" target=\"_blank\">@coderrkj</a> </p>",
      "rawMarkdown": "Bro and bro, I meant there's a section on the right side, which has Internet settings, that should be off for this competition. @samu2505 @coderrkj",
      "votes": null
    },
    {
      "id": "2871060",
      "postDate": "06/14/2024 03:43:00",
      "content": "<p>Oh i understand :). But i have also been having real internet connection issues over this past week</p>",
      "rawMarkdown": "Oh i understand :). But i have also been having real internet connection issues over this past week",
      "votes": null
    },
    {
      "id": "2871061",
      "postDate": "06/14/2024 03:43:04",
      "content": "<p>I haven't tried this, i will try. According to some people, the issues can be solved by lowering the learning rate and changing the random seed. Currently experimenting with them.</p>",
      "rawMarkdown": "I haven't tried this, i will try. According to some people, the issues can be solved by lowering the learning rate and changing the random seed. Currently experimenting with them.",
      "votes": null
    },
    {
      "id": "2873608",
      "postDate": "06/15/2024 16:06:37",
      "content": "<p>Do the GPU/CPU still run? In that case the model would be running but progress won't be shown l. Faced it several times, you my setup wandb to track training even in such instances. </p>\n<p>Even if you don't setup wandb, the checkpoint will still be saved. You just need to turn on persistence tab and reload the kernel to access the checkpoint. </p>",
      "rawMarkdown": "Do the GPU/CPU still run? In that case the model would be running but progress won't be shown l. Faced it several times, you my setup wandb to track training even in such instances. \n\nEven if you don't setup wandb, the checkpoint will still be saved. You just need to turn on persistence tab and reload the kernel to access the checkpoint.",
      "votes": null
    },
    {
      "id": "2874168",
      "postDate": "06/16/2024 05:06:32",
      "content": "<p>That notebook is not meant to be submitted. The internet connection in that notebook is to upload the training losses, validation losses, and artefacts to wandb, to choose the best model.</p>",
      "rawMarkdown": "That notebook is not meant to be submitted. The internet connection in that notebook is to upload the training losses, validation losses, and artefacts to wandb, to choose the best model.",
      "votes": null
    },
    {
      "id": "2874170",
      "postDate": "06/16/2024 05:14:19",
      "content": "<p>Over the past one week or so, I have been facing the issue of models stopping training and then each time</p>\n<p>I had used your notebook for a long time, but I have not faced any issues related to model stopping training. </p>\n<p>Can you clarify, what you mean by \" models stopping training and then each time, I have to end the session and restart\"?<br>\nOptions:<br>\n1) Do you mean that the model is being auto-stopped even if the model seems to be improving on validation_epoch_loss ?<br>\n2) You are stopping the training at will and it is being stopped successfully but when you are trying to restart it with a different configuration, it freezes or fails and you have to restart the notebook.</p>",
      "rawMarkdown": "Over the past one week or so, I have been facing the issue of models stopping training and then each time\n\nI had used your notebook for a long time, but I have not faced any issues related to model stopping training. \n\nCan you clarify, what you mean by \" models stopping training and then each time, I have to end the session and restart\"?\nOptions:\n1) Do you mean that the model is being auto-stopped even if the model seems to be improving on validation_epoch_loss ?\n2) You are stopping the training at will and it is being stopped successfully but when you are trying to restart it with a different configuration, it freezes or fails and you have to restart the notebook.",
      "votes": null
    },
    {
      "id": "2875392",
      "postDate": "06/17/2024 05:33:05",
      "content": "<p>Yes, but running it on the background using save and run works </p>",
      "rawMarkdown": "Yes, but running it on the background using save and run works",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 2869452,
      "author_name": "shubhamcodez",
      "author_url": "",
      "post_date": "06/13/2024 05:35:09",
      "content": "<p>Is your Internet off? Check that once. </p>",
      "votes": null,
      "replies": [
        {
          "id": 2869484,
          "author_name": "samu2505",
          "author_url": "",
          "post_date": "06/13/2024 05:59:10",
          "content": "<p>Yeah, I have been having some internet issues. </p>",
          "votes": null,
          "replies": [
            {
              "id": 2870292,
              "author_name": "coderrkj",
              "author_url": "",
              "post_date": "06/13/2024 13:53:35",
              "content": "<p>If you have intermittent internet outages, you can submit a version of the notebook with version type \"Save &amp; Run All (Commit)\". The result (such as best model) can be saved to output folder for later retrieval.</p>",
              "votes": null,
              "replies": [
                {
                  "id": 2870396,
                  "author_name": "shubhamcodez",
                  "author_url": "",
                  "post_date": "06/13/2024 15:02:55",
                  "content": "<p>Bro and bro, I meant there's a section on the right side, which has Internet settings, that should be off for this competition. <a href=\"https://www.kaggle.com/samu2505\" target=\"_blank\">@samu2505</a> <a href=\"https://www.kaggle.com/coderrkj\" target=\"_blank\">@coderrkj</a> </p>",
                  "votes": null,
                  "replies": [
                    {
                      "id": 2871060,
                      "author_name": "samu2505",
                      "author_url": "",
                      "post_date": "06/14/2024 03:43:00",
                      "content": "<p>Oh i understand :). But i have also been having real internet connection issues over this past week</p>",
                      "votes": null,
                      "replies": []
                    },
                    {
                      "id": 2874168,
                      "author_name": "devsya",
                      "author_url": "",
                      "post_date": "06/16/2024 05:06:32",
                      "content": "<p>That notebook is not meant to be submitted. The internet connection in that notebook is to upload the training losses, validation losses, and artefacts to wandb, to choose the best model.</p>",
                      "votes": null,
                      "replies": []
                    }
                  ]
                },
                {
                  "id": 2871061,
                  "author_name": "samu2505",
                  "author_url": "",
                  "post_date": "06/14/2024 03:43:04",
                  "content": "<p>I haven't tried this, i will try. According to some people, the issues can be solved by lowering the learning rate and changing the random seed. Currently experimenting with them.</p>",
                  "votes": null,
                  "replies": []
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "id": 2873608,
      "author_name": "sandeepmnair",
      "author_url": "",
      "post_date": "06/15/2024 16:06:37",
      "content": "<p>Do the GPU/CPU still run? In that case the model would be running but progress won't be shown l. Faced it several times, you my setup wandb to track training even in such instances. </p>\n<p>Even if you don't setup wandb, the checkpoint will still be saved. You just need to turn on persistence tab and reload the kernel to access the checkpoint. </p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 2874170,
      "author_name": "devsya",
      "author_url": "",
      "post_date": "06/16/2024 05:14:19",
      "content": "<p>Over the past one week or so, I have been facing the issue of models stopping training and then each time</p>\n<p>I had used your notebook for a long time, but I have not faced any issues related to model stopping training. </p>\n<p>Can you clarify, what you mean by \" models stopping training and then each time, I have to end the session and restart\"?<br>\nOptions:<br>\n1) Do you mean that the model is being auto-stopped even if the model seems to be improving on validation_epoch_loss ?<br>\n2) You are stopping the training at will and it is being stopped successfully but when you are trying to restart it with a different configuration, it freezes or fails and you have to restart the notebook.</p>",
      "votes": null,
      "replies": [
        {
          "id": 2875392,
          "author_name": "samu2505",
          "author_url": "",
          "post_date": "06/17/2024 05:33:05",
          "content": "<p>Yes, but running it on the background using save and run works </p>",
          "votes": null,
          "replies": []
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "2869445": "Over the past one week or so, I have been facing the issue of models stopping training and then each time, I have to end the session and restart? How to fix this issue; here is my notebook for reference [pytorch-lightning](https://www.kaggle.com/code/samu2505/rsna-pytorchlightning-train). I have also tried with pytorch",
    "2869452": "Is your Internet off? Check that once.",
    "2869484": "Yeah, I have been having some internet issues.",
    "2870292": "If you have intermittent internet outages, you can submit a version of the notebook with version type \"Save & Run All (Commit)\". The result (such as best model) can be saved to output folder for later retrieval.",
    "2870396": "Bro and bro, I meant there's a section on the right side, which has Internet settings, that should be off for this competition. @samu2505 @coderrkj",
    "2871060": "Oh i understand :). But i have also been having real internet connection issues over this past week",
    "2871061": "I haven't tried this, i will try. According to some people, the issues can be solved by lowering the learning rate and changing the random seed. Currently experimenting with them.",
    "2873608": "Do the GPU/CPU still run? In that case the model would be running but progress won't be shown l. Faced it several times, you my setup wandb to track training even in such instances. \n\nEven if you don't setup wandb, the checkpoint will still be saved. You just need to turn on persistence tab and reload the kernel to access the checkpoint.",
    "2874168": "That notebook is not meant to be submitted. The internet connection in that notebook is to upload the training losses, validation losses, and artefacts to wandb, to choose the best model.",
    "2874170": "Over the past one week or so, I have been facing the issue of models stopping training and then each time\n\nI had used your notebook for a long time, but I have not faced any issues related to model stopping training. \n\nCan you clarify, what you mean by \" models stopping training and then each time, I have to end the session and restart\"?\nOptions:\n1) Do you mean that the model is being auto-stopped even if the model seems to be improving on validation_epoch_loss ?\n2) You are stopping the training at will and it is being stopped successfully but when you are trying to restart it with a different configuration, it freezes or fails and you have to restart the notebook.",
    "2875392": "Yes, but running it on the background using save and run works"
  },
  "source": "meta"
}