Skip to content

Commit

Permalink
Remove get_lr() from logs which refers to nonexistent function
Browse files Browse the repository at this point in the history
`get_lr()` is called as part of this function, but the function is not declared anywhere in the script. This change removes this portion of the code since it is non-necessary.
  • Loading branch information
bwindsor22 authored Oct 3, 2023
1 parent df6be57 commit adf9b1a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions chapters/en/chapter7/6.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -870,7 +870,6 @@ for epoch in range(num_train_epochs):
if step % 100 == 0:
accelerator.print(
{
"lr": get_lr(),
"samples": step * samples_per_step,
"steps": completed_steps,
"loss/train": loss.item() * gradient_accumulation_steps,
Expand Down Expand Up @@ -912,4 +911,4 @@ And that's it -- you now have your own custom training loop for causal language

</Tip>

{/if}
{/if}

0 comments on commit adf9b1a

Please sign in to comment.