Skip to content

Commit

Permalink
mypy wandb ignore (#572)
Browse files Browse the repository at this point in the history
* mypy wandb ignore

* fix isort for wandb
  • Loading branch information
winglian authored Sep 14, 2023
1 parent 1157950 commit c6d870b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/axolotl/utils/callbacks.py
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ def find_ranges(lst):
return ranges

def log_table_from_dataloader(name: str, table_dataloader):
table = wandb.Table(
table = wandb.Table( # type: ignore[attr-defined]
columns=[
"id",
"Prompt",
Expand Down Expand Up @@ -506,7 +506,7 @@ def log_table_from_dataloader(name: str, table_dataloader):
)
row_index += 1

wandb.run.log({f"{name} - Predictions vs Ground Truth": table})
wandb.run.log({f"{name} - Predictions vs Ground Truth": table}) # type: ignore[attr-defined]

if is_main_process():
log_table_from_dataloader("Eval", eval_dataloader)
Expand Down

0 comments on commit c6d870b

Please sign in to comment.