{
  "id": 384327,
  "title": "RAM is not enough for this competition...is there anyway to upgrade it?",
  "url": "/competitions/predict-student-performance-from-game-play/discussion/384327",
  "author_name": "",
  "post_date": "2023-02-07T14:18:14.334977900Z",
  "votes": 4,
  "comment_count": 7,
  "views": 0,
  "content": "<p>When I run my code on kaggle notebook, the kernel dies due to exceed of RAM.<br>\nis there anyway to do it locally and upload jupyter file only? (for public)</p>\n<p>or is there anyway to interact with google cloud instance?</p>",
  "messages": [
    {
      "id": "2133611",
      "postDate": "02/07/2023 14:18:14",
      "content": "<p>When I run my code on kaggle notebook, the kernel dies due to exceed of RAM.<br>\nis there anyway to do it locally and upload jupyter file only? (for public)</p>\n<p>or is there anyway to interact with google cloud instance?</p>",
      "rawMarkdown": "When I run my code on kaggle notebook, the kernel dies due to exceed of RAM.\nis there anyway to do it locally and upload jupyter file only? (for public)\n\nor is there anyway to interact with google cloud instance?",
      "votes": null
    },
    {
      "id": "2133704",
      "postDate": "02/07/2023 15:04:01",
      "content": "<p>For example, you can train your model locally and then upload the trained model file to a Kaggle Dataset.</p>",
      "rawMarkdown": "For example, you can train your model locally and then upload the trained model file to a Kaggle Dataset.",
      "votes": null
    },
    {
      "id": "2133737",
      "postDate": "02/07/2023 15:18:27",
      "content": "<p>You can try use the GPU and instead of pandas use CuDF which works on the GPU memory and is much faster than Pandas.</p>",
      "rawMarkdown": "You can try use the GPU and instead of pandas use CuDF which works on the GPU memory and is much faster than Pandas.",
      "votes": null
    },
    {
      "id": "2133756",
      "postDate": "02/07/2023 15:27:21",
      "content": "<p>You can not use GPU in this competition: </p>\n<blockquote>\n  <p>Note: this competition is aimed at producing models that are small and lightweight. We have introduced compute constraints to match - your VMs will have only 2 CPUs, 8GB of RAM, and no GPU available. </p>\n</blockquote>",
      "rawMarkdown": "You can not use GPU in this competition: \n>Note: this competition is aimed at producing models that are small and lightweight. We have introduced compute constraints to match - your VMs will have only 2 CPUs, 8GB of RAM, and no GPU available.",
      "votes": null
    },
    {
      "id": "2133769",
      "postDate": "02/07/2023 15:33:32",
      "content": "<p>You can do EDA or model training on other environment such as GCP instance or google colab notebook, but you should run your code on kaggle notebook when you submit your \"submission.csv\" because this is code competition. And you cannot interact with other environments when submitting your prediction because internet-off setting is needed. </p>\n<p>If you want to save RAM, there are some solutions. If you use <a href=\"https://pandas.pydata.org/docs/reference/api/pandas.read_csv.html\" target=\"_blank\"><code>pandas.read_csv</code></a>, you can save RAM usage by limiting number of rows to be loaded on memory by setting <code>nrows</code> , setting appropriate (more memory saving) <code>dtype</code> explicitly, or selecting columns to be loaded on memory by <code>usecols</code>, for example. Using other dataframe library, such as <a href=\"https://www.dask.org/or\" target=\"_blank\"><code>dask</code></a>,  <a href=\"https://www.pola.rs/\" target=\"_blank\"><code>polars</code></a>, sometimes save more RAM  than pandas.</p>",
      "rawMarkdown": "You can do EDA or model training on other environment such as GCP instance or google colab notebook, but you should run your code on kaggle notebook when you submit your \"submission.csv\" because this is code competition. And you cannot interact with other environments when submitting your prediction because internet-off setting is needed. \n\nIf you want to save RAM, there are some solutions. If you use [`pandas.read_csv`](https://pandas.pydata.org/docs/reference/api/pandas.read_csv.html), you can save RAM usage by limiting number of rows to be loaded on memory by setting `nrows` , setting appropriate (more memory saving) `dtype` explicitly, or selecting columns to be loaded on memory by `usecols`, for example. Using other dataframe library, such as [`dask`](https://www.dask.org/or),  [`polars`](https://www.pola.rs/), sometimes save more RAM  than pandas.",
      "votes": null
    },
    {
      "id": "2133785",
      "postDate": "02/07/2023 15:44:08",
      "content": "<p>Sorry, I thought this was for only the efficiency prize.</p>",
      "rawMarkdown": "Sorry, I thought this was for only the efficiency prize.",
      "votes": null
    },
    {
      "id": "2135505",
      "postDate": "02/08/2023 17:15:17",
      "content": "<p>understood. thanks!</p>",
      "rawMarkdown": "understood. thanks!",
      "votes": null
    },
    {
      "id": "2135507",
      "postDate": "02/08/2023 17:15:39",
      "content": "<p>yes, I will try that…thank for the help.</p>",
      "rawMarkdown": "yes, I will try that...thank for the help.",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 2133704,
      "author_name": "allvor",
      "author_url": "",
      "post_date": "02/07/2023 15:04:01",
      "content": "<p>For example, you can train your model locally and then upload the trained model file to a Kaggle Dataset.</p>",
      "votes": null,
      "replies": [
        {
          "id": 2135507,
          "author_name": "kimtaehun",
          "author_url": "",
          "post_date": "02/08/2023 17:15:39",
          "content": "<p>yes, I will try that…thank for the help.</p>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 2133737,
      "author_name": "mohammad2012191",
      "author_url": "",
      "post_date": "02/07/2023 15:18:27",
      "content": "<p>You can try use the GPU and instead of pandas use CuDF which works on the GPU memory and is much faster than Pandas.</p>",
      "votes": null,
      "replies": [
        {
          "id": 2133756,
          "author_name": "allvor",
          "author_url": "",
          "post_date": "02/07/2023 15:27:21",
          "content": "<p>You can not use GPU in this competition: </p>\n<blockquote>\n  <p>Note: this competition is aimed at producing models that are small and lightweight. We have introduced compute constraints to match - your VMs will have only 2 CPUs, 8GB of RAM, and no GPU available. </p>\n</blockquote>",
          "votes": null,
          "replies": [
            {
              "id": 2133785,
              "author_name": "mohammad2012191",
              "author_url": "",
              "post_date": "02/07/2023 15:44:08",
              "content": "<p>Sorry, I thought this was for only the efficiency prize.</p>",
              "votes": null,
              "replies": []
            }
          ]
        }
      ]
    },
    {
      "id": 2133769,
      "author_name": "tomokikmogura",
      "author_url": "",
      "post_date": "02/07/2023 15:33:32",
      "content": "<p>You can do EDA or model training on other environment such as GCP instance or google colab notebook, but you should run your code on kaggle notebook when you submit your \"submission.csv\" because this is code competition. And you cannot interact with other environments when submitting your prediction because internet-off setting is needed. </p>\n<p>If you want to save RAM, there are some solutions. If you use <a href=\"https://pandas.pydata.org/docs/reference/api/pandas.read_csv.html\" target=\"_blank\"><code>pandas.read_csv</code></a>, you can save RAM usage by limiting number of rows to be loaded on memory by setting <code>nrows</code> , setting appropriate (more memory saving) <code>dtype</code> explicitly, or selecting columns to be loaded on memory by <code>usecols</code>, for example. Using other dataframe library, such as <a href=\"https://www.dask.org/or\" target=\"_blank\"><code>dask</code></a>,  <a href=\"https://www.pola.rs/\" target=\"_blank\"><code>polars</code></a>, sometimes save more RAM  than pandas.</p>",
      "votes": null,
      "replies": [
        {
          "id": 2135505,
          "author_name": "kimtaehun",
          "author_url": "",
          "post_date": "02/08/2023 17:15:17",
          "content": "<p>understood. thanks!</p>",
          "votes": null,
          "replies": []
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "2133611": "When I run my code on kaggle notebook, the kernel dies due to exceed of RAM.\nis there anyway to do it locally and upload jupyter file only? (for public)\n\nor is there anyway to interact with google cloud instance?",
    "2133704": "For example, you can train your model locally and then upload the trained model file to a Kaggle Dataset.",
    "2133737": "You can try use the GPU and instead of pandas use CuDF which works on the GPU memory and is much faster than Pandas.",
    "2133756": "You can not use GPU in this competition: \n>Note: this competition is aimed at producing models that are small and lightweight. We have introduced compute constraints to match - your VMs will have only 2 CPUs, 8GB of RAM, and no GPU available.",
    "2133769": "You can do EDA or model training on other environment such as GCP instance or google colab notebook, but you should run your code on kaggle notebook when you submit your \"submission.csv\" because this is code competition. And you cannot interact with other environments when submitting your prediction because internet-off setting is needed. \n\nIf you want to save RAM, there are some solutions. If you use [`pandas.read_csv`](https://pandas.pydata.org/docs/reference/api/pandas.read_csv.html), you can save RAM usage by limiting number of rows to be loaded on memory by setting `nrows` , setting appropriate (more memory saving) `dtype` explicitly, or selecting columns to be loaded on memory by `usecols`, for example. Using other dataframe library, such as [`dask`](https://www.dask.org/or),  [`polars`](https://www.pola.rs/), sometimes save more RAM  than pandas.",
    "2133785": "Sorry, I thought this was for only the efficiency prize.",
    "2135505": "understood. thanks!",
    "2135507": "yes, I will try that...thank for the help."
  },
  "source": "meta"
}