{
  "id": 122738,
  "title": "Notebook Timeout Error",
  "url": "/competitions/bengaliai-cv19/discussion/122738",
  "author_name": "",
  "post_date": "2019-12-22T14:42:05.154782100Z",
  "votes": 4,
  "comment_count": 8,
  "views": 0,
  "content": "<p>This is the third time today I've faced this issue. I was able to submit a kernel (used resnet50 model for training) at first. But later, I got a timeout error twice while submitting another resnet50 model with the same notebook. Even I tried with resnet34 model but that didn't help.  I am mostly using codes from Peter's inference notebook. Any sort of help would be appreciated. :)</p>\n\n<p><img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-user-content/o/inbox%2F1001530%2Fabae983fb7e0c3d745995afa1bada930%2FTimeOutError.PNG?generation=1577024554356653&amp;alt=media\" alt=\"Time Out Error\"></p>",
  "messages": [
    {
      "id": "700746",
      "postDate": "12/22/2019 14:42:05",
      "content": "<p>This is the third time today I've faced this issue. I was able to submit a kernel (used resnet50 model for training) at first. But later, I got a timeout error twice while submitting another resnet50 model with the same notebook. Even I tried with resnet34 model but that didn't help.  I am mostly using codes from Peter's inference notebook. Any sort of help would be appreciated. :)</p>\n\n<p><img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-user-content/o/inbox%2F1001530%2Fabae983fb7e0c3d745995afa1bada930%2FTimeOutError.PNG?generation=1577024554356653&amp;alt=media\" alt=\"Time Out Error\"></p>",
      "rawMarkdown": "This is the third time today I've faced this issue. I was able to submit a kernel (used resnet50 model for training) at first. But later, I got a timeout error twice while submitting another resnet50 model with the same notebook. Even I tried with resnet34 model but that didn't help.  I am mostly using codes from Peter's inference notebook. Any sort of help would be appreciated. :)\n\n![Time Out Error](https://www.googleapis.com/download/storage/v1/b/kaggle-user-content/o/inbox%2F1001530%2Fabae983fb7e0c3d745995afa1bada930%2FTimeOutError.PNG?generation=1577024554356653&amp;alt=media)",
      "votes": null
    },
    {
      "id": "700751",
      "postDate": "12/22/2019 14:52:07",
      "content": "<p>The limit (GPU enabled) is 2 hours. My inference notebook is running ~2 hours, so any modification could end up with timeout. Try a bigger batch size, it should improve the inference time.</p>",
      "rawMarkdown": "The limit (GPU enabled) is 2 hours. My inference notebook is running ~2 hours, so any modification could end up with timeout. Try a bigger batch size, it should improve the inference time.",
      "votes": null
    },
    {
      "id": "700758",
      "postDate": "12/22/2019 15:04:41",
      "content": "<p>I was able to submit my kernel at first. Also, I've been using 64 as my batch size. But now I can't even submit kernels with shallower models using the same notebook.</p>",
      "rawMarkdown": "I was able to submit my kernel at first. Also, I've been using 64 as my batch size. But now I can't even submit kernels with shallower models using the same notebook.",
      "votes": null
    },
    {
      "id": "700841",
      "postDate": "12/22/2019 17:41:19",
      "content": "<p>By the way, I increased my batch size from 64 to 96 and it worked. </p>",
      "rawMarkdown": "By the way, I increased my batch size from 64 to 96 and it worked.",
      "votes": null
    },
    {
      "id": "736415",
      "postDate": "02/04/2020 06:51:06",
      "content": "<p>Facing the same issue. I was able to make the submission earlier with the model trained on batch size 128 but now I'm facing the issue with same batch size. Any other suggestions?</p>",
      "rawMarkdown": "Facing the same issue. I was able to make the submission earlier with the model trained on batch size 128 but now I'm facing the issue with same batch size. Any other suggestions?",
      "votes": null
    },
    {
      "id": "736438",
      "postDate": "02/04/2020 07:19:58",
      "content": "<p>Try converting pandas dataframe to numpy. It will speed up the inference.</p>",
      "rawMarkdown": "Try converting pandas dataframe to numpy. It will speed up the inference.",
      "votes": null
    },
    {
      "id": "754476",
      "postDate": "02/23/2020 15:40:50",
      "content": "<p>Can you tell me how to do it？Thanks.</p>",
      "rawMarkdown": "Can you tell me how to do it？Thanks.",
      "votes": null
    },
    {
      "id": "754493",
      "postDate": "02/23/2020 16:20:49",
      "content": "<p>Hey <a href=\"/tahsin\">@tahsin</a> Since my previous reply, I created an optimized inference notebook: <a href=\"https://www.kaggle.com/pestipeti/fast-ensemble-5-folds-20-minutes\">https://www.kaggle.com/pestipeti/fast-ensemble-5-folds-20-minutes</a></p>\n\n<p>With this notebook, you can submit a 5-fold ensemble within 20 minutes. You can use it for one fold too if you update the configs at the beginning.</p>",
      "rawMarkdown": "Hey @tahsin Since my previous reply, I created an optimized inference notebook: https://www.kaggle.com/pestipeti/fast-ensemble-5-folds-20-minutes\n\nWith this notebook, you can submit a 5-fold ensemble within 20 minutes. You can use it for one fold too if you update the configs at the beginning.",
      "votes": null
    },
    {
      "id": "881579",
      "postDate": "06/11/2020 07:20:47",
      "content": "<p>Faced the same error for tweet sentiment extraction. I was using 5-fold-roberta and each fold was taking &gt; 20 minutes to compile. In total, when 2 hours got exhausted, I got this error. With using only one-fold, it ran faster without error. So I had to compromise.. I feel, by using 5-fold, I could have got a higher score.</p>",
      "rawMarkdown": "Faced the same error for tweet sentiment extraction. I was using 5-fold-roberta and each fold was taking &gt; 20 minutes to compile. In total, when 2 hours got exhausted, I got this error. With using only one-fold, it ran faster without error. So I had to compromise.. I feel, by using 5-fold, I could have got a higher score.",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 700751,
      "author_name": "pestipeti",
      "author_url": "",
      "post_date": "12/22/2019 14:52:07",
      "content": "<p>The limit (GPU enabled) is 2 hours. My inference notebook is running ~2 hours, so any modification could end up with timeout. Try a bigger batch size, it should improve the inference time.</p>",
      "votes": null,
      "replies": [
        {
          "id": 700758,
          "author_name": "tahsin",
          "author_url": "",
          "post_date": "12/22/2019 15:04:41",
          "content": "<p>I was able to submit my kernel at first. Also, I've been using 64 as my batch size. But now I can't even submit kernels with shallower models using the same notebook.</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 700841,
          "author_name": "tahsin",
          "author_url": "",
          "post_date": "12/22/2019 17:41:19",
          "content": "<p>By the way, I increased my batch size from 64 to 96 and it worked. </p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 736415,
          "author_name": "pawan28a95",
          "author_url": "",
          "post_date": "02/04/2020 06:51:06",
          "content": "<p>Facing the same issue. I was able to make the submission earlier with the model trained on batch size 128 but now I'm facing the issue with same batch size. Any other suggestions?</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 736438,
          "author_name": "tahsin",
          "author_url": "",
          "post_date": "02/04/2020 07:19:58",
          "content": "<p>Try converting pandas dataframe to numpy. It will speed up the inference.</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 754476,
          "author_name": "mnk812",
          "author_url": "",
          "post_date": "02/23/2020 15:40:50",
          "content": "<p>Can you tell me how to do it？Thanks.</p>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 754493,
      "author_name": "pestipeti",
      "author_url": "",
      "post_date": "02/23/2020 16:20:49",
      "content": "<p>Hey <a href=\"/tahsin\">@tahsin</a> Since my previous reply, I created an optimized inference notebook: <a href=\"https://www.kaggle.com/pestipeti/fast-ensemble-5-folds-20-minutes\">https://www.kaggle.com/pestipeti/fast-ensemble-5-folds-20-minutes</a></p>\n\n<p>With this notebook, you can submit a 5-fold ensemble within 20 minutes. You can use it for one fold too if you update the configs at the beginning.</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 881579,
      "author_name": "chandrimad31",
      "author_url": "",
      "post_date": "06/11/2020 07:20:47",
      "content": "<p>Faced the same error for tweet sentiment extraction. I was using 5-fold-roberta and each fold was taking &gt; 20 minutes to compile. In total, when 2 hours got exhausted, I got this error. With using only one-fold, it ran faster without error. So I had to compromise.. I feel, by using 5-fold, I could have got a higher score.</p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "700746": "This is the third time today I've faced this issue. I was able to submit a kernel (used resnet50 model for training) at first. But later, I got a timeout error twice while submitting another resnet50 model with the same notebook. Even I tried with resnet34 model but that didn't help.  I am mostly using codes from Peter's inference notebook. Any sort of help would be appreciated. :)\n\n![Time Out Error](https://www.googleapis.com/download/storage/v1/b/kaggle-user-content/o/inbox%2F1001530%2Fabae983fb7e0c3d745995afa1bada930%2FTimeOutError.PNG?generation=1577024554356653&amp;alt=media)",
    "700751": "The limit (GPU enabled) is 2 hours. My inference notebook is running ~2 hours, so any modification could end up with timeout. Try a bigger batch size, it should improve the inference time.",
    "700758": "I was able to submit my kernel at first. Also, I've been using 64 as my batch size. But now I can't even submit kernels with shallower models using the same notebook.",
    "700841": "By the way, I increased my batch size from 64 to 96 and it worked.",
    "736415": "Facing the same issue. I was able to make the submission earlier with the model trained on batch size 128 but now I'm facing the issue with same batch size. Any other suggestions?",
    "736438": "Try converting pandas dataframe to numpy. It will speed up the inference.",
    "754476": "Can you tell me how to do it？Thanks.",
    "754493": "Hey @tahsin Since my previous reply, I created an optimized inference notebook: https://www.kaggle.com/pestipeti/fast-ensemble-5-folds-20-minutes\n\nWith this notebook, you can submit a 5-fold ensemble within 20 minutes. You can use it for one fold too if you update the configs at the beginning.",
    "881579": "Faced the same error for tweet sentiment extraction. I was using 5-fold-roberta and each fold was taking &gt; 20 minutes to compile. In total, when 2 hours got exhausted, I got this error. With using only one-fold, it ran faster without error. So I had to compromise.. I feel, by using 5-fold, I could have got a higher score."
  },
  "source": "meta"
}