---
title: Use a pure PyTorch training loop
description: >-
  - Enable manual optimization — Gain control of the training loop with manual
  optimization and LightningModule methods.
canonical: 'https://lightning.ai/docs/pytorch/stable/reference/model/own_your_loop'
---
# Use a pure PyTorch training loop {#use-a-pure-pytorch-training-loop}

- [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.

---

**Navigation**

- Parent: [Model](/docs/pytorch/2.6.6/reference/model.md)
