Skip to content

Commit

Permalink
move wandb out of optimizer step (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelstanton authored Sep 23, 2024
1 parent e25d8bc commit f4918d8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cortex/optim/generative/_lambo.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import numpy as np
import pandas as pd
import torch
import wandb
from torch.distributions.kl import kl_divergence

from cortex.attribution import approximate_occlusion
Expand Down Expand Up @@ -218,7 +217,7 @@ def step(self) -> None:
"masked_obj_loss": obj_loss.item(),
"token_entropy": entropy.item(),
}
wandb.log(metrics)
return metrics

def _coordinate_selection(
self,
Expand Down

0 comments on commit f4918d8

Please sign in to comment.