Skip to content

Commit

Permalink
Update model loading exception message
Browse files Browse the repository at this point in the history
Signed-off-by: Kelly A <[email protected]>
  • Loading branch information
kellyaa committed May 14, 2024
1 parent cd260a3 commit 90b98f3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build/launch_training.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,9 @@ def main():
sys.exit(USER_ERROR_EXIT_CODE)
except HFValidationError as e:
logging.error(traceback.format_exc())
write_termination_log(f"Specified base model not found. Exception: {e}")
write_termination_log(
f"There may be a problem with loading the model. Exception: {e}"
)
sys.exit(USER_ERROR_EXIT_CODE)
except (TypeError, ValueError, EnvironmentError) as e:
logging.error(traceback.format_exc())
Expand Down

0 comments on commit 90b98f3

Please sign in to comment.