winglian commited on
Commit
c6d870b
1 Parent(s): 1157950

mypy wandb ignore (#572)

Browse files

* mypy wandb ignore

* fix isort for wandb

Files changed (1) hide show
  1. src/axolotl/utils/callbacks.py +2 -2
src/axolotl/utils/callbacks.py CHANGED
@@ -385,7 +385,7 @@ def log_prediction_callback_factory(trainer: Trainer, tokenizer):
385
  return ranges
386
 
387
  def log_table_from_dataloader(name: str, table_dataloader):
388
- table = wandb.Table(
389
  columns=[
390
  "id",
391
  "Prompt",
@@ -506,7 +506,7 @@ def log_prediction_callback_factory(trainer: Trainer, tokenizer):
506
  )
507
  row_index += 1
508
 
509
- wandb.run.log({f"{name} - Predictions vs Ground Truth": table})
510
 
511
  if is_main_process():
512
  log_table_from_dataloader("Eval", eval_dataloader)
 
385
  return ranges
386
 
387
  def log_table_from_dataloader(name: str, table_dataloader):
388
+ table = wandb.Table( # type: ignore[attr-defined]
389
  columns=[
390
  "id",
391
  "Prompt",
 
506
  )
507
  row_index += 1
508
 
509
+ wandb.run.log({f"{name} - Predictions vs Ground Truth": table}) # type: ignore[attr-defined]
510
 
511
  if is_main_process():
512
  log_table_from_dataloader("Eval", eval_dataloader)