Skip to content

Commit

Permalink
Note about warm-up steps
Browse files Browse the repository at this point in the history
  • Loading branch information
rasbt committed Nov 1, 2024
1 parent 81eed9a commit f03f545
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions appendix-D/01_main-chapter-code/appendix-D.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@
"id": "5bf3a8da-abc4-4b80-a5d8-f1cc1c7cc5f3",
"metadata": {},
"source": [
"- Typically, the number of warmup steps is between 0.1% to 10% of the total number of steps\n",
"- Typically, the number of warmup steps is between 0.1% to 20% of the total number of steps\n",
"- We can compute the increment as the difference between the `peak_lr` and `initial_lr` divided by the number of warmup steps"
]
},
Expand All @@ -227,6 +227,14 @@
"print(warmup_steps)"
]
},
{
"cell_type": "markdown",
"id": "4b6bbdc8-0104-459e-a7ed-b08be8578709",
"metadata": {},
"source": [
"- Note that the print book accidentally includes a leftover code line, `warmup_steps = 20`, which is not used and can be safely ignored"
]
},
{
"cell_type": "code",
"execution_count": 6,
Expand Down Expand Up @@ -809,7 +817,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.4"
"version": "3.10.6"
}
},
"nbformat": 4,
Expand Down

0 comments on commit f03f545

Please sign in to comment.