lm-sys / lm-sys/FastChat

ConnectionError when I finetune the model.

Open
#1,951 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
39.5k
Forks
4.8k
PR merge metrics
No merged PRs in 30d

Description

ConnectionError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
WARNING:torch.distributed.elastic.multiprocessing.api:Sending process 15087 closing signal SIGTERM
WARNING:torch.distributed.elastic.multiprocessing.api:Sending process 15088 closing signal SIGTERM
WARNING:torch.distributed.elastic.multiprocessing.api:Sending process 15089 closing signal SIGTERM
WARNING:torch.distributed.elastic.multiprocessing.api:Sending process 15090 closing signal SIGTERM
WARNING:torch.distributed.elastic.multiprocessing.api:Sending process 15091 closing signal SIGTERM
WARNING:torch.distributed.elastic.multiprocessing.api:Sending process 15093 closing signal SIGTERM
WARNING:torch.distributed.elastic.multiprocessing.api:Sending process 15094 closing signal SIGTERM
ERROR:torch.distributed.elastic.multiprocessing.api:failed (exitcode: 1) local_rank: 5 (pid: 15092) of binary: /opt/conda/bin/python3.9
Traceback (most recent call last):
File "/opt/conda/bin/torchrun", line 8, in
sys.exit(main())
File "/opt/conda/lib/python3.9/site-packages/torch/distributed/elastic/multiprocessing/errors/__init__.py", line 346, in wrapper
return f(*args, **kwargs)
File "/opt/conda/lib/python3.9/site-packages/torch/distributed/run.py", line 794, in main
run(args)
File "/opt/conda/lib/python3.9/site-packages/torch/distributed/run.py", line 785, in run
elastic_launch(
File "/opt/conda/lib/python3.9/site-packages/torch/distributed/launcher/api.py", line 134, in __call__
return launch_agent(self._config, self._entrypoint, list(args))
File "/opt/conda/lib/python3.9/site-packages/torch/distributed/launcher/api.py", line 250, in launch_agent
raise ChildFailedError(
torch.distributed.elastic.multiprocessing.errors.ChildFailedError:
============================================================
fastchat/train/train_mem.py FAILED
------------------------------------------------------------
Failures:

------------------------------------------------------------
Root Cause (first observed failure):
[0]:
time : 2023-07-14_07:43:00
host : node36
rank : 5 (local_rank: 5)
exitcode : 1 (pid: 15092)
error_file:
traceback : To enable traceback see: https://pytorch.org/docs/stable/elastic/errors.html
============================================================

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with fastchat/train/train_mem.py and the reported torchrun failure, then inspect the PyTorch distributed elastic error documentation linked in the traceback. Reproduce the finetuning command and identify why rank 5 receives the connection reset; done means the finetuning run completes without the ConnectionError.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, pytorch
Domain
distributed-systems, machine-learning
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.