{
  "id": 297908,
  "title": "An easy way saving GPU time when submitting",
  "url": "/competitions/sartorius-cell-instance-segmentation/discussion/297908",
  "author_name": "",
  "post_date": "2021-12-30T12:36:18.916720300Z",
  "votes": 8,
  "comment_count": 5,
  "views": 0,
  "content": "<pre><code>import pandas as pd\n\nsubmission_df = pd.read_csv(\"../input/sartorius-cell-instance-segmentation/sample_submission.csv\")\n\nif len(submission_df)==3:\n\n    submission_df.to_csv(\"submission.csv\", index=False)\n\nelse:\n\n   code..........\n</code></pre>",
  "messages": [
    {
      "id": "1633114",
      "postDate": "12/30/2021 12:36:18",
      "content": "<pre><code>import pandas as pd\n\nsubmission_df = pd.read_csv(\"../input/sartorius-cell-instance-segmentation/sample_submission.csv\")\n\nif len(submission_df)==3:\n\n    submission_df.to_csv(\"submission.csv\", index=False)\n\nelse:\n\n   code..........\n</code></pre>",
      "rawMarkdown": "```\nimport pandas as pd\n\nsubmission_df = pd.read_csv(\"../input/sartorius-cell-instance-segmentation/sample_submission.csv\")\n\nif len(submission_df)==3:\n\n    submission_df.to_csv(\"submission.csv\", index=False)\n\nelse:\n\n   code..........\n```",
      "votes": null
    },
    {
      "id": "1633125",
      "postDate": "12/30/2021 12:42:05",
      "content": "<p>Also, start the kernel in CPU mode, test your code, when submit use the option with submitting in GPU mode, all in all it only reduce a few seconds from the GPU quota.</p>",
      "rawMarkdown": "Also, start the kernel in CPU mode, test your code, when submit use the option with submitting in GPU mode, all in all it only reduce a few seconds from the GPU quota.",
      "votes": null
    },
    {
      "id": "1633136",
      "postDate": "12/30/2021 12:55:06",
      "content": "<p>Save an extra minute if you will use the above code and have miles of code: Use the script mode, ctrl-A + ctrl-X -&gt; back to notebook mode, paste your code below the code section…</p>",
      "rawMarkdown": "Save an extra minute if you will use the above code and have miles of code: Use the script mode, ctrl-A + ctrl-X -> back to notebook mode, paste your code below the code section...",
      "votes": null
    },
    {
      "id": "1633148",
      "postDate": "12/30/2021 13:04:13",
      "content": "<p>I was not aware there is an option to change it at submit time. Where do I find it?</p>",
      "rawMarkdown": "I was not aware there is an option to change it at submit time. Where do I find it?",
      "votes": null
    },
    {
      "id": "1633157",
      "postDate": "12/30/2021 13:09:01",
      "content": "<p>Save version-&gt;Advanced settings-&gt;Run with GPU</p>",
      "rawMarkdown": "Save version->Advanced settings->Run with GPU",
      "votes": null
    },
    {
      "id": "1634041",
      "postDate": "12/31/2021 09:58:30",
      "content": "<p>Very cool trick! Thank you <a href=\"https://www.kaggle.com/kirderf\" target=\"_blank\">@kirderf</a> I didn't know about it!</p>",
      "rawMarkdown": "Very cool trick! Thank you @kirderf I didn't know about it!",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 1633125,
      "author_name": "kirderf",
      "author_url": "",
      "post_date": "12/30/2021 12:42:05",
      "content": "<p>Also, start the kernel in CPU mode, test your code, when submit use the option with submitting in GPU mode, all in all it only reduce a few seconds from the GPU quota.</p>",
      "votes": null,
      "replies": [
        {
          "id": 1633148,
          "author_name": "slawekbiel",
          "author_url": "",
          "post_date": "12/30/2021 13:04:13",
          "content": "<p>I was not aware there is an option to change it at submit time. Where do I find it?</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1633157,
          "author_name": "kirderf",
          "author_url": "",
          "post_date": "12/30/2021 13:09:01",
          "content": "<p>Save version-&gt;Advanced settings-&gt;Run with GPU</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1634041,
          "author_name": "lucamassaron",
          "author_url": "",
          "post_date": "12/31/2021 09:58:30",
          "content": "<p>Very cool trick! Thank you <a href=\"https://www.kaggle.com/kirderf\" target=\"_blank\">@kirderf</a> I didn't know about it!</p>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 1633136,
      "author_name": "kirderf",
      "author_url": "",
      "post_date": "12/30/2021 12:55:06",
      "content": "<p>Save an extra minute if you will use the above code and have miles of code: Use the script mode, ctrl-A + ctrl-X -&gt; back to notebook mode, paste your code below the code section…</p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "1633114": "```\nimport pandas as pd\n\nsubmission_df = pd.read_csv(\"../input/sartorius-cell-instance-segmentation/sample_submission.csv\")\n\nif len(submission_df)==3:\n\n    submission_df.to_csv(\"submission.csv\", index=False)\n\nelse:\n\n   code..........\n```",
    "1633125": "Also, start the kernel in CPU mode, test your code, when submit use the option with submitting in GPU mode, all in all it only reduce a few seconds from the GPU quota.",
    "1633136": "Save an extra minute if you will use the above code and have miles of code: Use the script mode, ctrl-A + ctrl-X -> back to notebook mode, paste your code below the code section...",
    "1633148": "I was not aware there is an option to change it at submit time. Where do I find it?",
    "1633157": "Save version->Advanced settings->Run with GPU",
    "1634041": "Very cool trick! Thank you @kirderf I didn't know about it!"
  },
  "source": "meta"
}