{ "cells": [ { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": false }, "outputs": [], "source": [ "# For tips on running notebooks in Google Colab, see\n# https://codelin.vip/beginner/colab\n%matplotlib inline" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "(beta) Running the compiled optimizer with an LR Scheduler\n==========================================================\n\n**Author:** [Michael Lazos](https://github.com/mlazos)\n" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "The optimizer is a key algorithm for training any deep learning model.\nIn this example, we will show how to pair the optimizer, which has been\ncompiled using `torch.compile`, with the LR schedulers to accelerate\ntraining convergence.\n\n```{=html}\n
This tutorial requires PyTorch 2.3.0 or later.
\n```\n```{=html}\ntorch.compile
is only supported on CUDA devices that have a compute capability of 7.0 or higher.