mirror of
https://github.com/rasbt/LLMs-from-scratch.git
synced 2026-04-10 12:33:42 +00:00
Fix: Typo in appendix_d.py comments. (#682)
* Fix: pkg/llms_from_scratch/appendix_d.py * minor language typo fix * fix 691 --------- Co-authored-by: PrinceSajjadHussain <PrinceSajjadHussain@users.noreply.github.com> Co-authored-by: rasbt <mail@sebastianraschka.com>
This commit is contained in:
@@ -615,7 +615,7 @@
|
||||
" if global_step > warmup_steps:\n",
|
||||
" torch.nn.utils.clip_grad_norm_(model.parameters(), max_norm=1.0) \n",
|
||||
" else:\n",
|
||||
" if global_step >= warmup_steps: # the book originally used global_step > warmup_steps, which lead to a skipped clipping step after warmup\n",
|
||||
" if global_step >= warmup_steps: # the book originally used global_step > warmup_steps, which led to a skipped clipping step after warmup\n",
|
||||
" torch.nn.utils.clip_grad_norm_(model.parameters(), max_norm=1.0)\n",
|
||||
" \n",
|
||||
" optimizer.step()\n",
|
||||
|
||||
Reference in New Issue
Block a user