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

Reduce VINC reporter file size by >1000x #219

Merged
merged 6 commits into from
May 3, 2023
Merged
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
Merge branch 'main' into light-reporter-saving
  • Loading branch information
norabelrose committed May 3, 2023
commit e4650cf6ae6bebe2f78b34e929b562578c83a11e
3 changes: 3 additions & 0 deletions elk/training/eigen_reporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ class EigenReporterConfig(ReporterConfig):
"""Whether to save the reporter statistics to disk in EigenReporter.save(). This
is useful for debugging and analysis, but can take up a lot of disk space."""

use_centroids: bool = True
"""Whether to average hiddens within each cluster before computing covariance."""

def __post_init__(self):
if not (0 <= self.neg_cov_weight <= 1):
raise ValueError("neg_cov_weight must be in [0, 1]")
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.