---
title: 'Level 16: Own the training loop'
description: Learn all the ways of owning your raw PyTorch loops with Lightning.
canonical: 'https://lightning.ai/docs/pytorch/stable/level-up/advanced/advanced_level_17'
---
# Level 16: Own the training loop {#level-16-own-the-training-loop}

Learn all the ways of owning your raw PyTorch loops with Lightning.

- [Enable manual optimization](/docs/pytorch/2.6.6/reference/model/build_model_advanced.md) — Gain control of the training loop with manual optimization and LightningModule methods.

- [Use Lightning Fabric](/docs/fabric/stable) — Write your own training loops using lightning Fabric.

---

**Navigation**

- Parent: [Advanced skills](/docs/pytorch/2.6.6/level-up/advanced.md)
