# Trainer with Google Colab TPU?

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ftrainer-with-google-colab-tpu%2F17140%3E%5C
**Category:** Beginners\
**Created:** [April 25, 2022, 2:01am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ftrainer-with-google-colab-tpu%2F17140 "2022-04-25T02:01:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bengul](https://avatars.discourse-cdn.com/v4/letter/b/838e76/32.png) [@bengul](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fbengul)%5C
**Post date:** [April 25, 2022, 2:01am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ftrainer-with-google-colab-tpu%2F17140%2F1 "2022-04-25T02:01:09Z")

</div>

The last time I faced a lot of trouble trying to train a model with Google Colab TPU with PyTorch-XLA. Eventually, I had to give up and force myself to use Tensorflow for their better integration with TPU. I would appreciate it if anyone can share some good resources/tutorials that work to run a Bert Pretraining on PyTorch with Trainer module on Google Colab TPU.
