Skip to content

Allow users to provide custom exception handling #8992

@daniellepintz

Description

@daniellepintz

🚀 Feature

Allow users to provide custom exception handling via a new callback hook, similar to on_keyboard_interrupt.

Motivation

Users should be able to implement their own error handling if they want.

Pitch

Create a new callback hook here:
https://github.com/PyTorchLightning/pytorch-lightning/blob/master/pytorch_lightning/trainer/trainer.py#L507-L515

Alternatives

Additional context


If you enjoy Lightning, check out our other projects! ⚡

  • Metrics: Machine learning metrics for distributed, scalable PyTorch applications.

  • Flash: The fastest way to get a Lightning baseline! A collection of tasks for fast prototyping, baselining, finetuning and solving problems with deep learning

  • Bolts: Pretrained SOTA Deep Learning models, callbacks and more for research and production with PyTorch Lightning and PyTorch

  • Lightning Transformers: Flexible interface for high performance research using SOTA Transformers leveraging Pytorch Lightning, Transformers, and Hydra.

Metadata

Metadata

Assignees

Labels

callbackdesignIncludes a design discussiondiscussionIn a discussion stagefeatureIs an improvement or enhancementlet's do it!approved to implement

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions