# Trainer with Google Colab TPU?

**URL:** <https://discuss.huggingface.co/t/trainer-with-google-colab-tpu/17140>\
**Category:** Beginners\
**Created:** [April 25, 2022, 2:01am UTC](https://discuss.huggingface.co/t/trainer-with-google-colab-tpu/17140 "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](https://discuss.huggingface.co/u/bengul)\
**Post date:** [April 25, 2022, 2:01am UTC](https://discuss.huggingface.co/t/trainer-with-google-colab-tpu/17140/1 "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.
