{
  "id": 254301,
  "title": "Loading model weights without publishing them?",
  "url": "/competitions/siim-covid19-detection/discussion/254301",
  "author_name": "",
  "post_date": "2021-07-21T06:21:05.266226400Z",
  "votes": null,
  "comment_count": 3,
  "views": 0,
  "content": "<p>Hi, I am currently trying to understand how the Kagglers at the top lb are able to load their model weights into their inference notebooks without publishing them, as I want to use my own. I assume that they are not training their models in their submissions, meaning their weights are external. </p>\n<p>This discussion (<a href=\"https://www.kaggle.com/c/connectx/discussion/126678\" target=\"_blank\">https://www.kaggle.com/c/connectx/discussion/126678</a>) explains a way to hard code the weights in. I tried this method but my model is large and I'm not sure that I can just copy paste the encoded weights in.</p>\n<p>I was also thinking that they might just submit a notebook with a copy pasted csv file for the public validation data set, and then at the last minute publish their weights so it can run on the private data set. However, this method seems like it could be unreliable, as the weights might take some time to upload.</p>\n<p>Thank you for your help!</p>",
  "messages": [
    {
      "id": "1395324",
      "postDate": "07/21/2021 06:21:05",
      "content": "<p>Hi, I am currently trying to understand how the Kagglers at the top lb are able to load their model weights into their inference notebooks without publishing them, as I want to use my own. I assume that they are not training their models in their submissions, meaning their weights are external. </p>\n<p>This discussion (<a href=\"https://www.kaggle.com/c/connectx/discussion/126678\" target=\"_blank\">https://www.kaggle.com/c/connectx/discussion/126678</a>) explains a way to hard code the weights in. I tried this method but my model is large and I'm not sure that I can just copy paste the encoded weights in.</p>\n<p>I was also thinking that they might just submit a notebook with a copy pasted csv file for the public validation data set, and then at the last minute publish their weights so it can run on the private data set. However, this method seems like it could be unreliable, as the weights might take some time to upload.</p>\n<p>Thank you for your help!</p>",
      "rawMarkdown": "Hi, I am currently trying to understand how the Kagglers at the top lb are able to load their model weights into their inference notebooks without publishing them, as I want to use my own. I assume that they are not training their models in their submissions, meaning their weights are external. \n\nThis discussion (https://www.kaggle.com/c/connectx/discussion/126678) explains a way to hard code the weights in. I tried this method but my model is large and I'm not sure that I can just copy paste the encoded weights in.\n\nI was also thinking that they might just submit a notebook with a copy pasted csv file for the public validation data set, and then at the last minute publish their weights so it can run on the private data set. However, this method seems like it could be unreliable, as the weights might take some time to upload.\n\nThank you for your help!",
      "votes": null
    },
    {
      "id": "1395771",
      "postDate": "07/21/2021 14:22:20",
      "content": "<p>You can load your model weights as a dataset and include them in your notebook.</p>",
      "rawMarkdown": "You can load your model weights as a dataset and include them in your notebook.",
      "votes": null
    },
    {
      "id": "1396073",
      "postDate": "07/21/2021 18:25:45",
      "content": "<p>Yes, I understand that you can load your model weights from a dataset. However, as I have interpreted it, this dataset must be public. If you look at the profiles of Kagglers at the top lb, they have not posted their weights, yet have high scores. My question is how do they do this.</p>",
      "rawMarkdown": "Yes, I understand that you can load your model weights from a dataset. However, as I have interpreted it, this dataset must be public. If you look at the profiles of Kagglers at the top lb, they have not posted their weights, yet have high scores. My question is how do they do this.",
      "votes": null
    },
    {
      "id": "1396605",
      "postDate": "07/22/2021 09:10:07",
      "content": "<p>The dataset doesn't need to be public only external data meaning images need to be public</p>",
      "rawMarkdown": "The dataset doesn't need to be public only external data meaning images need to be public",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 1395771,
      "author_name": "davidbroberts",
      "author_url": "",
      "post_date": "07/21/2021 14:22:20",
      "content": "<p>You can load your model weights as a dataset and include them in your notebook.</p>",
      "votes": null,
      "replies": [
        {
          "id": 1396073,
          "author_name": "soondubu",
          "author_url": "",
          "post_date": "07/21/2021 18:25:45",
          "content": "<p>Yes, I understand that you can load your model weights from a dataset. However, as I have interpreted it, this dataset must be public. If you look at the profiles of Kagglers at the top lb, they have not posted their weights, yet have high scores. My question is how do they do this.</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1396605,
          "author_name": "simon111",
          "author_url": "",
          "post_date": "07/22/2021 09:10:07",
          "content": "<p>The dataset doesn't need to be public only external data meaning images need to be public</p>",
          "votes": null,
          "replies": []
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "1395324": "Hi, I am currently trying to understand how the Kagglers at the top lb are able to load their model weights into their inference notebooks without publishing them, as I want to use my own. I assume that they are not training their models in their submissions, meaning their weights are external. \n\nThis discussion (https://www.kaggle.com/c/connectx/discussion/126678) explains a way to hard code the weights in. I tried this method but my model is large and I'm not sure that I can just copy paste the encoded weights in.\n\nI was also thinking that they might just submit a notebook with a copy pasted csv file for the public validation data set, and then at the last minute publish their weights so it can run on the private data set. However, this method seems like it could be unreliable, as the weights might take some time to upload.\n\nThank you for your help!",
    "1395771": "You can load your model weights as a dataset and include them in your notebook.",
    "1396073": "Yes, I understand that you can load your model weights from a dataset. However, as I have interpreted it, this dataset must be public. If you look at the profiles of Kagglers at the top lb, they have not posted their weights, yet have high scores. My question is how do they do this.",
    "1396605": "The dataset doesn't need to be public only external data meaning images need to be public"
  },
  "source": "meta"
}