File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -110,7 +110,6 @@ def main():
110110 # message to termination log.
111111 logging .error (traceback .format_exc ())
112112 # The exit code that sft_trainer.py threw is captured in e.returncode
113-
114113 return_code = e .returncode
115114 if return_code not in [INTERNAL_ERROR_EXIT_CODE , USER_ERROR_EXIT_CODE ]:
116115 return_code = INTERNAL_ERROR_EXIT_CODE
@@ -126,10 +125,6 @@ def main():
126125 sys .exit (USER_ERROR_EXIT_CODE )
127126 write_termination_log (f"Unhandled exception during training. { e } " )
128127 sys .exit (INTERNAL_ERROR_EXIT_CODE )
129- except Exception as e : # pylint: disable=broad-except
130- logging .error (traceback .format_exc ())
131- write_termination_log (f"Unhandled exception during training. { e } " )
132- sys .exit (INTERNAL_ERROR_EXIT_CODE )
133128
134129 peft_method = job_config .get ("peft_method" )
135130
You can’t perform that action at this time.
0 commit comments