mosaicml / llm-foundry

LLM training code for Databricks foundation models
https://www.databricks.com/blog/introducing-dbrx-new-state-art-open-llm
Apache License 2.0
3.99k stars 525 forks source link

Add user error superclass #1225

Closed milocress closed 4 months ago

milocress commented 4 months ago

Adds a UserError superclass to distinguish network/internal errors from user-actionable errors.

jjanezhang commented 4 months ago

ooc: why this and not adding is_user_error as a field to the contextual error and default true?

jjanezhang commented 4 months ago

ooc: why this and not adding is_user_error as a field to the contextual error and default true?

addressed offline, added error attribution to contextual error class