{
  "id": 494257,
  "title": "When LightGBM is run on a GPU, the results are not reproducible.",
  "url": "/competitions/home-credit-credit-risk-model-stability/discussion/494257",
  "author_name": "",
  "post_date": "2024-04-16T14:58:26.835396500Z",
  "votes": 23,
  "comment_count": 1,
  "views": 0,
  "content": "<p>In the case of CPUs, if the random number seed is fixed , the same result can be obtained every time.<br>\nHowever, in the case of GPUs, even if the random number seed is fixed, the result will change each time it is run.</p>\n<p>I found this webpage.<br>\n<a href=\"https://github.com/microsoft/LightGBM/issues/2659\" target=\"_blank\">https://github.com/microsoft/LightGBM/issues/2659</a></p>\n<p>This issue is also discussed in an official LightGBM issue.</p>\n<p>If you refrain this random, Use DP (double precision = 64bit) instead of SP (single precision = 32bit) setting to reduce this variation like below.<br>\ngpu_use_dp=True</p>",
  "messages": [
    {
      "id": "2755517",
      "postDate": "04/16/2024 14:58:26",
      "content": "<p>In the case of CPUs, if the random number seed is fixed , the same result can be obtained every time.<br>\nHowever, in the case of GPUs, even if the random number seed is fixed, the result will change each time it is run.</p>\n<p>I found this webpage.<br>\n<a href=\"https://github.com/microsoft/LightGBM/issues/2659\" target=\"_blank\">https://github.com/microsoft/LightGBM/issues/2659</a></p>\n<p>This issue is also discussed in an official LightGBM issue.</p>\n<p>If you refrain this random, Use DP (double precision = 64bit) instead of SP (single precision = 32bit) setting to reduce this variation like below.<br>\ngpu_use_dp=True</p>",
      "rawMarkdown": "In the case of CPUs, if the random number seed is fixed , the same result can be obtained every time.\nHowever, in the case of GPUs, even if the random number seed is fixed, the result will change each time it is run.\n\nI found this webpage.\nhttps://github.com/microsoft/LightGBM/issues/2659\n\nThis issue is also discussed in an official LightGBM issue.\n\nIf you refrain this random, Use DP (double precision = 64bit) instead of SP (single precision = 32bit) setting to reduce this variation like below.\ngpu_use_dp=True",
      "votes": null
    },
    {
      "id": "2804382",
      "postDate": "05/10/2024 03:31:14",
      "content": "<p>Very informative <a href=\"https://www.kaggle.com/takumimukaiyama\" target=\"_blank\">@takumimukaiyama</a> <br>\nThanks!!</p>",
      "rawMarkdown": "Very informative @takumimukaiyama \nThanks!!",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 2804382,
      "author_name": "yutodennou",
      "author_url": "",
      "post_date": "05/10/2024 03:31:14",
      "content": "<p>Very informative <a href=\"https://www.kaggle.com/takumimukaiyama\" target=\"_blank\">@takumimukaiyama</a> <br>\nThanks!!</p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "2755517": "In the case of CPUs, if the random number seed is fixed , the same result can be obtained every time.\nHowever, in the case of GPUs, even if the random number seed is fixed, the result will change each time it is run.\n\nI found this webpage.\nhttps://github.com/microsoft/LightGBM/issues/2659\n\nThis issue is also discussed in an official LightGBM issue.\n\nIf you refrain this random, Use DP (double precision = 64bit) instead of SP (single precision = 32bit) setting to reduce this variation like below.\ngpu_use_dp=True",
    "2804382": "Very informative @takumimukaiyama \nThanks!!"
  },
  "source": "meta"
}