{
  "id": 122459,
  "title": "TPU access received. Now what?",
  "url": "/competitions/tensorflow2-question-answering/discussion/122459",
  "author_name": "",
  "post_date": "2019-12-20T10:21:32.173100900Z",
  "votes": 2,
  "comment_count": 2,
  "views": 0,
  "content": "<p>Yesterday, I got access to run 5 regular cloud TPU's and 10 preermptible cloud TPU's for free for the next 60 days. </p>\n\n<p>I am currently working on a slightly modified version of @mmmarchetti 's <a href=\"https://www.kaggle.com/mmmarchetti/tensorflow-2-0-bert-yes-no-answers\">code</a>. Not sure of steps to be able to do the fine-tuning on TPU's. The code is based on TF2.0 so not sure about it's compatibility with TPU's either. Should I switch to TF1.0? I guess TF2.1 works with TPU but it's still a bit rough around the edges. I'm new to all this and wouldn't like to spend most of my time debugging.</p>\n\n<p>@guozhiyu0914 @dynamicwebpaige @seesee @xincuimath </p>",
  "messages": [
    {
      "id": "699336",
      "postDate": "12/20/2019 10:21:32",
      "content": "<p>Yesterday, I got access to run 5 regular cloud TPU's and 10 preermptible cloud TPU's for free for the next 60 days. </p>\n\n<p>I am currently working on a slightly modified version of @mmmarchetti 's <a href=\"https://www.kaggle.com/mmmarchetti/tensorflow-2-0-bert-yes-no-answers\">code</a>. Not sure of steps to be able to do the fine-tuning on TPU's. The code is based on TF2.0 so not sure about it's compatibility with TPU's either. Should I switch to TF1.0? I guess TF2.1 works with TPU but it's still a bit rough around the edges. I'm new to all this and wouldn't like to spend most of my time debugging.</p>\n\n<p>@guozhiyu0914 @dynamicwebpaige @seesee @xincuimath </p>",
      "rawMarkdown": "Yesterday, I got access to run 5 regular cloud TPU's and 10 preermptible cloud TPU's for free for the next 60 days. \n\nI am currently working on a slightly modified version of @mmmarchetti 's [code](https://www.kaggle.com/mmmarchetti/tensorflow-2-0-bert-yes-no-answers). Not sure of steps to be able to do the fine-tuning on TPU's. The code is based on TF2.0 so not sure about it's compatibility with TPU's either. Should I switch to TF1.0? I guess TF2.1 works with TPU but it's still a bit rough around the edges. I'm new to all this and wouldn't like to spend most of my time debugging.\n\n@guozhiyu0914 @dynamicwebpaige @seesee @xincuimath",
      "votes": null
    },
    {
      "id": "699638",
      "postDate": "12/20/2019 17:30:03",
      "content": "<p>Hi, Rohit! Thank you for the question.</p>\n\n<p>If you're just getting started with TPUs and TensorFlow, I strongly suggest taking a look at TF 2.1 rather than <code>TPUEstimator</code> in TF 1.x. Details can be found in <a href=\"https://github.com/GoogleCloudPlatform/training-data-analyst/blob/master/courses/fast-and-lean-data-science/README-TF2.1.md\">this installation guide</a> from the Kaggle and Google Cloud teams. We have also released an example of <a href=\"https://github.com/tensorflow/models/blob/master/official/nlp/bert/bert_cloud_tpu.md\">BERT fine-tuning with Cloud TPUs</a>, using TensorFlow. </p>\n\n<p>The <a href=\"https://www.tensorflow.org/api_docs/python/tf/distribute/experimental/TPUStrategy?hl=en&amp;version=stable\">API docs for <code>tf.distribute.experimental.TPUStrategy</code></a> might also be useful, as well as the discussion on our <a href=\"https://www.kaggle.com/c/tensorflow2-question-answering/discussion/121572\">TPU post</a>. Let us know if you have any questions!</p>",
      "rawMarkdown": "Hi, Rohit! Thank you for the question.\n\nIf you're just getting started with TPUs and TensorFlow, I strongly suggest taking a look at TF 2.1 rather than `TPUEstimator` in TF 1.x. Details can be found in [this installation guide](https://github.com/GoogleCloudPlatform/training-data-analyst/blob/master/courses/fast-and-lean-data-science/README-TF2.1.md) from the Kaggle and Google Cloud teams. We have also released an example of [BERT fine-tuning with Cloud TPUs](https://github.com/tensorflow/models/blob/master/official/nlp/bert/bert_cloud_tpu.md), using TensorFlow. \n\nThe [API docs for `tf.distribute.experimental.TPUStrategy`](https://www.tensorflow.org/api_docs/python/tf/distribute/experimental/TPUStrategy?hl=en&amp;version=stable) might also be useful, as well as the discussion on our [TPU post](https://www.kaggle.com/c/tensorflow2-question-answering/discussion/121572). Let us know if you have any questions!",
      "votes": null
    },
    {
      "id": "699820",
      "postDate": "12/21/2019 02:05:12",
      "content": "<p>Thanks a ton <a href=\"/dynamicwebpaige\">@dynamicwebpaige</a> , you've always been very helpful.</p>",
      "rawMarkdown": "Thanks a ton @dynamicwebpaige , you've always been very helpful.",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 699638,
      "author_name": "dynamicwebpaige",
      "author_url": "",
      "post_date": "12/20/2019 17:30:03",
      "content": "<p>Hi, Rohit! Thank you for the question.</p>\n\n<p>If you're just getting started with TPUs and TensorFlow, I strongly suggest taking a look at TF 2.1 rather than <code>TPUEstimator</code> in TF 1.x. Details can be found in <a href=\"https://github.com/GoogleCloudPlatform/training-data-analyst/blob/master/courses/fast-and-lean-data-science/README-TF2.1.md\">this installation guide</a> from the Kaggle and Google Cloud teams. We have also released an example of <a href=\"https://github.com/tensorflow/models/blob/master/official/nlp/bert/bert_cloud_tpu.md\">BERT fine-tuning with Cloud TPUs</a>, using TensorFlow. </p>\n\n<p>The <a href=\"https://www.tensorflow.org/api_docs/python/tf/distribute/experimental/TPUStrategy?hl=en&amp;version=stable\">API docs for <code>tf.distribute.experimental.TPUStrategy</code></a> might also be useful, as well as the discussion on our <a href=\"https://www.kaggle.com/c/tensorflow2-question-answering/discussion/121572\">TPU post</a>. Let us know if you have any questions!</p>",
      "votes": null,
      "replies": [
        {
          "id": 699820,
          "author_name": "rohitagarwal",
          "author_url": "",
          "post_date": "12/21/2019 02:05:12",
          "content": "<p>Thanks a ton <a href=\"/dynamicwebpaige\">@dynamicwebpaige</a> , you've always been very helpful.</p>",
          "votes": null,
          "replies": []
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "699336": "Yesterday, I got access to run 5 regular cloud TPU's and 10 preermptible cloud TPU's for free for the next 60 days. \n\nI am currently working on a slightly modified version of @mmmarchetti 's [code](https://www.kaggle.com/mmmarchetti/tensorflow-2-0-bert-yes-no-answers). Not sure of steps to be able to do the fine-tuning on TPU's. The code is based on TF2.0 so not sure about it's compatibility with TPU's either. Should I switch to TF1.0? I guess TF2.1 works with TPU but it's still a bit rough around the edges. I'm new to all this and wouldn't like to spend most of my time debugging.\n\n@guozhiyu0914 @dynamicwebpaige @seesee @xincuimath",
    "699638": "Hi, Rohit! Thank you for the question.\n\nIf you're just getting started with TPUs and TensorFlow, I strongly suggest taking a look at TF 2.1 rather than `TPUEstimator` in TF 1.x. Details can be found in [this installation guide](https://github.com/GoogleCloudPlatform/training-data-analyst/blob/master/courses/fast-and-lean-data-science/README-TF2.1.md) from the Kaggle and Google Cloud teams. We have also released an example of [BERT fine-tuning with Cloud TPUs](https://github.com/tensorflow/models/blob/master/official/nlp/bert/bert_cloud_tpu.md), using TensorFlow. \n\nThe [API docs for `tf.distribute.experimental.TPUStrategy`](https://www.tensorflow.org/api_docs/python/tf/distribute/experimental/TPUStrategy?hl=en&amp;version=stable) might also be useful, as well as the discussion on our [TPU post](https://www.kaggle.com/c/tensorflow2-question-answering/discussion/121572). Let us know if you have any questions!",
    "699820": "Thanks a ton @dynamicwebpaige , you've always been very helpful."
  },
  "source": "meta"
}