Skip to content

Commit

Permalink
Merge pull request #12 from lucyfarnik/add-run-name-to-config
Browse files Browse the repository at this point in the history
Added run name to config
  • Loading branch information
jbloomAus authored Feb 26, 2024
2 parents 37771ce + ab2aabd commit c2e05c4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sae_training/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ class LanguageModelSAERunnerConfig(RunnerConfig):
# WANDB
log_to_wandb: bool = True
wandb_project: str = "mats_sae_training_language_model"
run_name: Optional[str] = None
wandb_entity: str = None
wandb_log_frequency: int = 10

Expand All @@ -89,7 +90,8 @@ def __post_init__(self):
self.train_batch_size * self.context_size * self.n_batches_in_buffer
)

self.run_name = f"{self.d_sae}-L1-{self.l1_coefficient}-LR-{self.lr}-Tokens-{self.total_training_tokens:3.3e}"
if self.run_name is None:
self.run_name = f"{self.d_sae}-L1-{self.l1_coefficient}-LR-{self.lr}-Tokens-{self.total_training_tokens:3.3e}"

if self.b_dec_init_method not in ["geometric_median", "mean", "zeros"]:
raise ValueError(
Expand Down

0 comments on commit c2e05c4

Please sign in to comment.