Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

log training loss in pytorch trainer #673

Merged
merged 3 commits into from
May 23, 2024
Merged

log training loss in pytorch trainer #673

merged 3 commits into from
May 23, 2024

Conversation

bw4sz
Copy link
Collaborator

@bw4sz bw4sz commented May 22, 2024

With the updates to pytorch lightning 2.0, we appear to no longer to auto log the training loss! This is kinda a big deal, and took me by surprise.

We previously got the training loss every epoch automatically.

Simple fix is to add self.log within training_step.

@bw4sz bw4sz added the bug Something isn't working label May 22, 2024
@bw4sz bw4sz requested a review from ethanwhite May 22, 2024 21:23
@bw4sz bw4sz self-assigned this May 22, 2024
@ethanwhite
Copy link
Member

Looks like the style tests are flagging an issue. Once that's fixed this is ready to go.

@ethanwhite ethanwhite merged commit 7de55c1 into main May 23, 2024
5 checks passed
@bw4sz bw4sz deleted the log_train_loss branch June 4, 2024 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants