{
  "id": 253668,
  "title": "\"Notebook Exceeded Allowed Compute\" - What to do?",
  "url": "/competitions/siim-covid19-detection/discussion/253668",
  "author_name": "",
  "post_date": "2021-07-17T21:37:15.573555900Z",
  "votes": null,
  "comment_count": 3,
  "views": 0,
  "content": "<p>Here is what happened:</p>\n<ol>\n<li>My notebook worked before. I had one model for classification and one for detection, each with a 70/30 train/valid split</li>\n<li>I upgraded to using 5-fold cross-validation (I use weighted box fusion to combine the detection predictions. Might this be a problem? Does it take a lot of ram?)</li>\n<li>It works when I run the notebook locally, but when I submit I get this error \"notebook exceeded allowed compute\"</li>\n</ol>\n<p>Does anyone know how to handle this? What sort of things can I do to reduce RAM or disk utilization?</p>",
  "messages": [
    {
      "id": "1391662",
      "postDate": "07/17/2021 21:37:15",
      "content": "<p>Here is what happened:</p>\n<ol>\n<li>My notebook worked before. I had one model for classification and one for detection, each with a 70/30 train/valid split</li>\n<li>I upgraded to using 5-fold cross-validation (I use weighted box fusion to combine the detection predictions. Might this be a problem? Does it take a lot of ram?)</li>\n<li>It works when I run the notebook locally, but when I submit I get this error \"notebook exceeded allowed compute\"</li>\n</ol>\n<p>Does anyone know how to handle this? What sort of things can I do to reduce RAM or disk utilization?</p>",
      "rawMarkdown": "Here is what happened:\n1. My notebook worked before. I had one model for classification and one for detection, each with a 70/30 train/valid split\n2. I upgraded to using 5-fold cross-validation (I use weighted box fusion to combine the detection predictions. Might this be a problem? Does it take a lot of ram?)\n3. It works when I run the notebook locally, but when I submit I get this error \"notebook exceeded allowed compute\"\n\nDoes anyone know how to handle this? What sort of things can I do to reduce RAM or disk utilization?",
      "votes": null
    },
    {
      "id": "1395789",
      "postDate": "07/21/2021 14:34:51",
      "content": "<p>there is run time limit.</p>",
      "rawMarkdown": "there is run time limit.",
      "votes": null
    },
    {
      "id": "1397070",
      "postDate": "07/22/2021 18:24:01",
      "content": "<p>What is the time limit?</p>",
      "rawMarkdown": "What is the time limit?",
      "votes": null
    },
    {
      "id": "1397580",
      "postDate": "07/23/2021 10:08:38",
      "content": "<p>Time limit only matters if you had to wait some hours before the submission error appeared. Time limit is given either by the competition rules or general resource limitations from the administration. For this competition the rules say:</p>\n<blockquote>\n  <p>CPU Notebook &lt;= 9 hours run-time<br>\n  GPU Notebook &lt;= 9 hours run-time</p>\n</blockquote>\n<p>I don't know how your code looks like, but usually your submitted code is run on a hidden data set. If you get the error notice after just a couple of minutes, it is likely that your method requires too much RAM. You can only avoid this by trial and error, try some of these general approaches:</p>\n<p>-delete unused variables<br>\n-check for loops that have exponential effect<br>\n-look for possible batch processing<br>\n-avoid inefficient techniques in general<br>\n-it's also possible that you have a constructional fault and your locally run code only worked by chance </p>\n<p>As you said it worked before (you mean also submitting ?), it is quite likely that you have to adjust the cross-validation process. I don't know which framework you use, but e.g. if it is <code>sklearn.cross_validate()</code> you may adjust the number of parallel jobs <code>...cross_validate(..., pre_dispatchint=n_jobs ,..)</code>.</p>\n<p><a href=\"https://www.kaggle.com/vdefont\" target=\"_blank\">@vdefont</a>, hope this will help, otherwise feel free to specify the code you used.</p>",
      "rawMarkdown": "Time limit only matters if you had to wait some hours before the submission error appeared. Time limit is given either by the competition rules or general resource limitations from the administration. For this competition the rules say:\n> CPU Notebook <= 9 hours run-time\nGPU Notebook <= 9 hours run-time\n\nI don't know how your code looks like, but usually your submitted code is run on a hidden data set. If you get the error notice after just a couple of minutes, it is likely that your method requires too much RAM. You can only avoid this by trial and error, try some of these general approaches:\n\n-delete unused variables\n-check for loops that have exponential effect\n-look for possible batch processing\n-avoid inefficient techniques in general\n-it's also possible that you have a constructional fault and your locally run code only worked by chance \n\nAs you said it worked before (you mean also submitting ?), it is quite likely that you have to adjust the cross-validation process. I don't know which framework you use, but e.g. if it is `sklearn.cross_validate()` you may adjust the number of parallel jobs `...cross_validate(..., pre_dispatchint=n_jobs ,..)`.\n\n@vdefont, hope this will help, otherwise feel free to specify the code you used.",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 1395789,
      "author_name": "dragonzhang",
      "author_url": "",
      "post_date": "07/21/2021 14:34:51",
      "content": "<p>there is run time limit.</p>",
      "votes": null,
      "replies": [
        {
          "id": 1397070,
          "author_name": "vdefont",
          "author_url": "",
          "post_date": "07/22/2021 18:24:01",
          "content": "<p>What is the time limit?</p>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 1397580,
      "author_name": "alexanderbader",
      "author_url": "",
      "post_date": "07/23/2021 10:08:38",
      "content": "<p>Time limit only matters if you had to wait some hours before the submission error appeared. Time limit is given either by the competition rules or general resource limitations from the administration. For this competition the rules say:</p>\n<blockquote>\n  <p>CPU Notebook &lt;= 9 hours run-time<br>\n  GPU Notebook &lt;= 9 hours run-time</p>\n</blockquote>\n<p>I don't know how your code looks like, but usually your submitted code is run on a hidden data set. If you get the error notice after just a couple of minutes, it is likely that your method requires too much RAM. You can only avoid this by trial and error, try some of these general approaches:</p>\n<p>-delete unused variables<br>\n-check for loops that have exponential effect<br>\n-look for possible batch processing<br>\n-avoid inefficient techniques in general<br>\n-it's also possible that you have a constructional fault and your locally run code only worked by chance </p>\n<p>As you said it worked before (you mean also submitting ?), it is quite likely that you have to adjust the cross-validation process. I don't know which framework you use, but e.g. if it is <code>sklearn.cross_validate()</code> you may adjust the number of parallel jobs <code>...cross_validate(..., pre_dispatchint=n_jobs ,..)</code>.</p>\n<p><a href=\"https://www.kaggle.com/vdefont\" target=\"_blank\">@vdefont</a>, hope this will help, otherwise feel free to specify the code you used.</p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "1391662": "Here is what happened:\n1. My notebook worked before. I had one model for classification and one for detection, each with a 70/30 train/valid split\n2. I upgraded to using 5-fold cross-validation (I use weighted box fusion to combine the detection predictions. Might this be a problem? Does it take a lot of ram?)\n3. It works when I run the notebook locally, but when I submit I get this error \"notebook exceeded allowed compute\"\n\nDoes anyone know how to handle this? What sort of things can I do to reduce RAM or disk utilization?",
    "1395789": "there is run time limit.",
    "1397070": "What is the time limit?",
    "1397580": "Time limit only matters if you had to wait some hours before the submission error appeared. Time limit is given either by the competition rules or general resource limitations from the administration. For this competition the rules say:\n> CPU Notebook <= 9 hours run-time\nGPU Notebook <= 9 hours run-time\n\nI don't know how your code looks like, but usually your submitted code is run on a hidden data set. If you get the error notice after just a couple of minutes, it is likely that your method requires too much RAM. You can only avoid this by trial and error, try some of these general approaches:\n\n-delete unused variables\n-check for loops that have exponential effect\n-look for possible batch processing\n-avoid inefficient techniques in general\n-it's also possible that you have a constructional fault and your locally run code only worked by chance \n\nAs you said it worked before (you mean also submitting ?), it is quite likely that you have to adjust the cross-validation process. I don't know which framework you use, but e.g. if it is `sklearn.cross_validate()` you may adjust the number of parallel jobs `...cross_validate(..., pre_dispatchint=n_jobs ,..)`.\n\n@vdefont, hope this will help, otherwise feel free to specify the code you used."
  },
  "source": "meta"
}