Skip to content

Commit

Permalink
Minor fix to previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
FlyingPumba committed Sep 15, 2024
1 parent caf1ff6 commit 0f3369f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions iit/model_pairs/probed_sequential_pair.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ def train(
test_set: IITDataset,
epochs: int = 1000,
use_wandb: bool = False,
wandb_name_suffix: str = "",
wandb_project: str = "iit",
wandb_name: str = "",
optimizer_kwargs: dict = {},
) -> None:
training_args = self.training_args
Expand Down Expand Up @@ -111,7 +112,7 @@ def train(
loss_fn = t.nn.CrossEntropyLoss()

if use_wandb and not wandb.run:
wandb.init(project="iit")
wandb.init(project=wandb_project, name=wandb_name)

if use_wandb:
wandb.config.update(training_args)
Expand Down

0 comments on commit 0f3369f

Please sign in to comment.