---
title: TPU
description: >-
  - Prepare your code (Optional) — Prepare your code to run on any hardware -
  Basic — Learn the basics of single and multi-TPU core training. -
  Intermediate...
canonical: 'https://lightning.ai/docs/pytorch/stable/reference/accelerators/tpu'
---
# TPU {#tpu}

- [Prepare your code (Optional)](/docs/pytorch/2.6.6/reference/accelerators/accelerator_prepare.md) — Prepare your code to run on any hardware

- [Basic](/docs/pytorch/2.6.6/reference/accelerators/tpu_basic.md) — Learn the basics of single and multi-TPU core training.

- [Intermediate](/docs/pytorch/2.6.6/reference/accelerators/tpu_intermediate.md) — Scale massive models using cloud TPUs.

- [Advanced](/docs/pytorch/2.6.6/reference/accelerators/tpu_advanced.md) — Dive into XLA and advanced techniques to optimize TPU-powered models.

- [FAQ](/docs/pytorch/2.6.6/reference/accelerators/tpu_faq.md) — Frequently asked questions about TPU training.

---

**Navigation**

- Parent: [Accelerators](/docs/pytorch/2.6.6/reference/accelerators.md)
