{
  "id": 430967,
  "title": "Using TPU with Pytorch",
  "url": "/competitions/rsna-2023-abdominal-trauma-detection/discussion/430967",
  "author_name": "Hemanth Harikrishnan",
  "post_date": "2023-08-11T13:59:03.218000",
  "votes": 0,
  "comment_count": 2,
  "views": 0,
  "content": "<p>Hello Kagglers,<br>\nI am trying to use TPU using Pytorch but I am unable to use torch_xla as it is continuously throwing error as it is unable to import it.<br>\nI would be really glad if anyone drops a snippet on the way to use TPU with Pytorch code.</p>",
  "messages": [
    {
      "id": 2406915,
      "postDate": "2023-08-24T17:49:05.690Z",
      "content": "<p><a href=\"https://www.kaggle.com/discussions/product-feedback/369338\" target=\"_blank\">https://www.kaggle.com/discussions/product-feedback/369338</a><br>\n[Notebooks update] A new way to use TPUs on Kaggle!</p>\n<p><a href=\"https://www.kaggle.com/code/herbison/pytorch-on-cloud-tpus-multicore-example/notebook\" target=\"_blank\">https://www.kaggle.com/code/herbison/pytorch-on-cloud-tpus-multicore-example/notebook</a><br>\nExample Pytorch notebook</p>\n<p><a href=\"https://www.kaggle.com/discussions/product-feedback/402237\" target=\"_blank\">https://www.kaggle.com/discussions/product-feedback/402237</a><br>\n[Notebooks update] TPU v3-8 =&gt; TPU v3-8 VM Migration</p>\n<p>Above was the latest update on TPUs in Product Feedback.  You could post any issues there or add a new post under Product Feedback.  Have not tried torch_xla in awhile but always tricky in the past.  Will update if decide to try here and let you know. </p>",
      "rawMarkdown": "https://www.kaggle.com/discussions/product-feedback/369338\n[Notebooks update] A new way to use TPUs on Kaggle!\n\nhttps://www.kaggle.com/code/herbison/pytorch-on-cloud-tpus-multicore-example/notebook\nExample Pytorch notebook\n\nhttps://www.kaggle.com/discussions/product-feedback/402237\n[Notebooks update] TPU v3-8 => TPU v3-8 VM Migration\n\nAbove was the latest update on TPUs in Product Feedback.  You could post any issues there or add a new post under Product Feedback.  Have not tried torch_xla in awhile but always tricky in the past.  Will update if decide to try here and let you know. ",
      "votes": 1,
      "replies": [
        {
          "id": 2407067,
          "postDate": "2023-08-24T19:28:22.037Z",
          "content": "<p>Thanks a lot for the info</p>",
          "rawMarkdown": "Thanks a lot for the info",
          "votes": 1
        }
      ]
    },
    {
      "id": 2385691,
      "postDate": "2023-08-11T13:59:03.217Z",
      "content": "<p>Hello Kagglers,<br>\nI am trying to use TPU using Pytorch but I am unable to use torch_xla as it is continuously throwing error as it is unable to import it.<br>\nI would be really glad if anyone drops a snippet on the way to use TPU with Pytorch code.</p>",
      "rawMarkdown": "Hello Kagglers,\nI am trying to use TPU using Pytorch but I am unable to use torch_xla as it is continuously throwing error as it is unable to import it.\nI would be really glad if anyone drops a snippet on the way to use TPU with Pytorch code."
    }
  ],
  "comments": [
    {
      "id": 2406915,
      "author_name": "something4kag",
      "author_url": "",
      "post_date": "2023-08-24T17:49:05.690000",
      "content": "<p><a href=\"https://www.kaggle.com/discussions/product-feedback/369338\" target=\"_blank\">https://www.kaggle.com/discussions/product-feedback/369338</a><br>\n[Notebooks update] A new way to use TPUs on Kaggle!</p>\n<p><a href=\"https://www.kaggle.com/code/herbison/pytorch-on-cloud-tpus-multicore-example/notebook\" target=\"_blank\">https://www.kaggle.com/code/herbison/pytorch-on-cloud-tpus-multicore-example/notebook</a><br>\nExample Pytorch notebook</p>\n<p><a href=\"https://www.kaggle.com/discussions/product-feedback/402237\" target=\"_blank\">https://www.kaggle.com/discussions/product-feedback/402237</a><br>\n[Notebooks update] TPU v3-8 =&gt; TPU v3-8 VM Migration</p>\n<p>Above was the latest update on TPUs in Product Feedback.  You could post any issues there or add a new post under Product Feedback.  Have not tried torch_xla in awhile but always tricky in the past.  Will update if decide to try here and let you know. </p>",
      "votes": 1,
      "replies": [
        {
          "id": 2407067,
          "author_name": "Hemanth Harikrishnan",
          "author_url": "",
          "post_date": "2023-08-24T19:28:22.037000",
          "content": "<p>Thanks a lot for the info</p>",
          "votes": 1,
          "replies": []
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "2406915": "https://www.kaggle.com/discussions/product-feedback/369338\n[Notebooks update] A new way to use TPUs on Kaggle!\n\nhttps://www.kaggle.com/code/herbison/pytorch-on-cloud-tpus-multicore-example/notebook\nExample Pytorch notebook\n\nhttps://www.kaggle.com/discussions/product-feedback/402237\n[Notebooks update] TPU v3-8 => TPU v3-8 VM Migration\n\nAbove was the latest update on TPUs in Product Feedback.  You could post any issues there or add a new post under Product Feedback.  Have not tried torch_xla in awhile but always tricky in the past.  Will update if decide to try here and let you know. ",
    "2385691": "Hello Kagglers,\nI am trying to use TPU using Pytorch but I am unable to use torch_xla as it is continuously throwing error as it is unable to import it.\nI would be really glad if anyone drops a snippet on the way to use TPU with Pytorch code."
  }
}