Closed AnnaYanami-8 closed 2 months ago
偶发性!!! 偶发性!!! 偶发性!!! 在多次运行有发现偶发性的出现模型正常保存,保存的模型经过测试可以正常推理,合并。就是不能在上面流程中评估。
后面吧多机多卡的训练中修改llamafactory-cli train examples/train_lora/llama3_lora_sft_ds3.yaml中的参数deepspeed: examples/deepspeed/ds_z3_config.json,原ds_z2_config.json。ds_z2数据并行不可评测,ds_z3模型并行可以正常训练评估
ds_z2数据并行不可评测,ds_z3模型并行可以正常训练评估。是否是评测代码出现问题?求回答
{'train_runtime': 23.5066, 'train_samples_per_second': 10.338, 'train_steps_per_second': 1.659, 'train_loss': 1.0768448389493501, 'epoch': 2.89}
sys.exit(main())
^^^^^^
File "/home/cyber-sec-011/anaconda3/envs/llama_factory_cs2/lib/python3.11/site-packages/torch/distributed/elastic/multiprocessing/errors/init.py", line 347, in wrapper
return f(*args, **kwargs)
^^^^^^^^^^^^^^^^^^
File "/home/cyber-sec-011/anaconda3/envs/llama_factory_cs2/lib/python3.11/site-packages/torch/distributed/run.py", line 879, in main
run(args)
File "/home/cyber-sec-011/anaconda3/envs/llama_factory_cs2/lib/python3.11/site-packages/torch/distributed/run.py", line 870, in run
elastic_launch(
File "/home/cyber-sec-011/anaconda3/envs/llama_factory_cs2/lib/python3.11/site-packages/torch/distributed/launcher/api.py", line 132, in call
return launch_agent(self._config, self._entrypoint, list(args))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/cyber-sec-011/anaconda3/envs/llama_factory_cs2/lib/python3.11/site-packages/torch/distributed/launcher/api.py", line 263, in launch_agent
raise ChildFailedError(
torch.distributed.elastic.multiprocessing.errors.ChildFailedError:
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 39/39 [00:23<00:00, 1.66it/s] [INFO|trainer.py:3410] 2024-08-23 12:22:35,576 >> Saving model checkpoint to saves/glm4_9b/lora/sft W0823 12:22:35.615000 140348747958080 torch/distributed/elastic/multiprocessing/api.py:851] Sending process 273712 closing signal SIGTERM E0823 12:22:36.795000 140348747958080 torch/distributed/elastic/multiprocessing/api.py:826] failed (exitcode: -9) local_rank: 1 (pid: 273713) of binary: /home/cyber-sec-011/anaconda3/envs/llama_factory_cs2/bin/python Traceback (most recent call last): File "/home/cyber-sec-011/anaconda3/envs/llama_factory_cs2/bin/torchrun", line 8, in
/home/cyber-sec-011/anaconda3/envs/llama_factory_cs2/lib/python3.11/site-packages/llamafactory/launcher.py FAILED
Failures: