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

train probe per prompt #271

Open
wants to merge 20 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
pyright
  • Loading branch information
derpyplops committed Jul 20, 2023
commit 785537b4882e9996e7c6b70aeb0e988d5c173acf
4 changes: 2 additions & 2 deletions elk/training/multi_reporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ def __init__(self, reporter: list[ReporterWithInfo]):
)

self.train_loss = (
sum(train_losses) / len(train_losses)
if train_losses is not None # type: ignore
sum(train_losses) / len(train_losses) # type: ignore
if train_losses is not None
else None
)

Expand Down