Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removing logging exception through update run metadata #1292

Merged
merged 12 commits into from
Jul 9, 2024
8 changes: 2 additions & 6 deletions scripts/train/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -394,9 +394,7 @@ def main(cfg: DictConfig) -> Trainer:
train_cfg.device_train_batch_size,
)
except BaseContextualError as e:
if mosaicml_logger is not None:
e.location = TrainDataLoaderLocation
mosaicml_logger.log_exception(e)
e.location = TrainDataLoaderLocation
raise e

if mosaicml_logger is not None:
Expand Down Expand Up @@ -427,9 +425,7 @@ def main(cfg: DictConfig) -> Trainer:
if eval_gauntlet_callback is not None:
callbacks.append(eval_gauntlet_callback)
except BaseContextualError as e:
if mosaicml_logger is not None:
e.location = EvalDataLoaderLocation
mosaicml_logger.log_exception(e)
e.location = EvalDataLoaderLocation
jjanezhang marked this conversation as resolved.
Show resolved Hide resolved
raise e

if mosaicml_logger is not None:
Expand Down
Loading