hiyouga / LLaMA-Factory

Unify Efficient Fine-Tuning of 100+ LLMs
Apache License 2.0
25.52k stars 3.16k forks source link

Exit the process with the subprocess's return code when utilizing the CLI #4589

Closed injet-zhou closed 6 days ago

injet-zhou commented 6 days ago

What does this PR do?

Associate the exit status of the parent process with that of its subprocesses. When training across multiple GPUs using the CLI, the parent process always exits with code 0, regardless of whether subprocesses encounter errors.

Before submitting