Skip to content

Commit

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

* fix isort for wandb
  • Loading branch information
winglian committed Sep 14, 2023
1 parent 01d2e0e commit 51d3b69
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 51d3b69

Please sign in to comment.