torch.distributed.elastic.multiprocessing.errors.ChildFailedError:
作者: ghost创建于 2023年5月19日更新于 2025年10月29日
当我运行此命令时 : `torchrun-nproc-per-node 1-master port 25641 列车.py-cfg-path 列车 configs/minigpt4 stage2 finetune.yaml'
发生这个错误,我怎么修复它?
错误:torch.dispended.elastic.api:失败(出道码:1) 本地名:0 (pid:81571) 二进制:/home/tiger/miniconda3/envs/minigpt4/bin/Python
回溯( 最近最后一次通话) :
文件"/home/tiger/miniconda3/envs/minigpt4/bin/torchrun", 第8行,以"模块"为单位.
sys.exit(主要())
文件 "/home/tiger/miniconda3/envs/minigpt4/lib/python3.9/site-packages/torch/分布/弹性/多处理/errors/ init .py",第346行,以包装.
返回 f(*args,**kwargs)
档案 "/home/tiger/miniconda3/envs/minigpt4/lib/python3.9 site-packages/torch/dispend/run.py", 第794行,主要内容为:
运行( 参数)
文件"/home/tiger/miniconda3/envs/minigpt4/lib/python3.9 site-packages/torch/dispend/run.py",785行,运行中.
弹性( L)
文件 "/home/tiger/miniconda3/envs/minigpt4/lib/python3.9 site-packages/torch/dispend/launger/api.py",134行,收录于 call .
返回启动 agent(self. config,自. enterpoint, list(args))
file "/home/tiger/miniconda3/envs/minigpt4/lib/python3.9 site-packages/torch/dispend/launger/api.py",第250行,在发射 代理
抚养失败的孩子( R)
火炬. 分布. 有弹性. 多处理. error. ChildFailed Error:
============================================================
火车,py故障
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
失败 :
< NO other FAILURES >
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
根因( 第一次观测失败 ) :
[0]:
时间: 2023-05-19 16:43:27
主机:n136-117-136.byted.org
军衔: 0 (当地语 排名: 0)
出站码: 1 (pid: 81571)
出错 文件: <N/A>
追踪:为了追踪,见https://pytorch.org/docs/stable/elastic/errors.html。
========================================================================================================================内容来源: Vision-CAIR/MiniGPT-4