使用 mpirun 时出错
=================================================
Initializing tensor and pipeline parallel... Traceback (most recent call last): File "../examples/pytorch/gpt/multi_gpu_gpt_example.py", line 364, in main() File "/home/aiscuser/.local/lib/python3.8/site-packages/torch/autograd/grad_mode.py", line 27, in decorate_context return func(*args, **kwargs) File "../examples/pytorch/gpt/multi_gpu_gpt_example.py", line 219, in main comm.initialize_model_parallel(args.tensor_para_size, args.pipeline_para_size) File "/home/aiscuser/FasterTransformer/examples/pytorch/gpt/../../../examples/pytorch/gpt/utils/comm.py", line 86, in initialize_model_parallel dist.init_process_group(backend=backend) File "/home/aiscuser/.local/lib/python3.8/site-packages/torch/distributed/distributed_c10d.py", line 744, in init_process_group default_pg = _new_process_group_helper( File "/home/aiscuser/.local/lib/python3.8/site-packages/torch/distributed/distributed_c10d.py", line 837, in _new_process_group_helper raise RuntimeError( RuntimeError: Distributed package doesn't have MPI built in. MPI is only included if you build PyTorch from source on a host that has MPI installed. Initializing tensor and pipeline parallel... Traceback (most recent call last): File "../examples/pytorch/gpt/multi_gpu_gpt_example.py", line 364, in main() File "/home/aiscuser/.local/lib/python3.8/site-packages/torch/autograd/grad_mode.py", line 27, in decorate_context return func(*args, **kwargs) File "../examples/pytorch/gpt/multi_gpu_gpt_example.py", line 219, in main comm.initialize_model_parallel(args.tensor_para_size, args.pipeline_para_size) File "/home/aiscuser/FasterTransformer/examples/pytorch/gpt/../../../examples/pytorch/gpt/utils/comm.py", line 86, in initialize_model_parallel dist.init_process_group(backend=backend) File "/home/aiscuser/.local/lib/python3.8/site-packages/torch/distributed/distributed_c10d.py", line 744, in init_process_group default_pg = _new_process_group_helper( File "/home/aiscuser/.local/lib/python3.8/site-packages/torch/distributed/distributed_c10d.py", line 837, in _new_process_group_helper raise RuntimeError(
内容来源: NVIDIA/FasterTransformer