/usr/local/lib/python3.12/dist-packages/torch/cuda/__init__.py:61: FutureWarning: The pynvml package is deprecated. Please install nvidia-ml-py instead. If you did not install pynvml directly, please report this to the maintainers of the package that installed pynvml for you. import pynvml # type: ignore[import] W1117 20:59:54.046000 1368778 torch/distributed/run.py:851] W1117 20:59:54.046000 1368778 torch/distributed/run.py:851] ***************************************** W1117 20:59:54.046000 1368778 torch/distributed/run.py:851] Setting OMP_NUM_THREADS environment variable for each process to be 1 in default, to avoid your system being overloaded, please further tune the variable for optimal performance in your application as needed. W1117 20:59:54.046000 1368778 torch/distributed/run.py:851] ***************************************** /usr/local/lib/python3.12/dist-packages/torch/cuda/__init__.py:61: FutureWarning: The pynvml package is deprecated. Please install nvidia-ml-py instead. If you did not install pynvml directly, please report this to the maintainers of the package that installed pynvml for you. import pynvml # type: ignore[import] /usr/local/lib/python3.12/dist-packages/torch/cuda/__init__.py:61: FutureWarning: The pynvml package is deprecated. Please install nvidia-ml-py instead. If you did not install pynvml directly, please report this to the maintainers of the package that installed pynvml for you. import pynvml # type: ignore[import] /usr/local/lib/python3.12/dist-packages/torch/cuda/__init__.py:61: FutureWarning: The pynvml package is deprecated. Please install nvidia-ml-py instead. If you did not install pynvml directly, please report this to the maintainers of the package that installed pynvml for you. import pynvml # type: ignore[import] /usr/local/lib/python3.12/dist-packages/torch/cuda/__init__.py:61: FutureWarning: The pynvml package is deprecated. Please install nvidia-ml-py instead. If you did not install pynvml directly, please report this to the maintainers of the package that installed pynvml for you. import pynvml # type: ignore[import] /usr/local/lib/python3.12/dist-packages/torch/cuda/__init__.py:61: FutureWarning: The pynvml package is deprecated. Please install nvidia-ml-py instead. If you did not install pynvml directly, please report this to the maintainers of the package that installed pynvml for you. import pynvml # type: ignore[import] /usr/local/lib/python3.12/dist-packages/torch/cuda/__init__.py:61: FutureWarning: The pynvml package is deprecated. Please install nvidia-ml-py instead. If you did not install pynvml directly, please report this to the maintainers of the package that installed pynvml for you. import pynvml # type: ignore[import] /usr/local/lib/python3.12/dist-packages/torch/cuda/__init__.py:61: FutureWarning: The pynvml package is deprecated. Please install nvidia-ml-py instead. If you did not install pynvml directly, please report this to the maintainers of the package that installed pynvml for you. import pynvml # type: ignore[import] /usr/local/lib/python3.12/dist-packages/torch/cuda/__init__.py:61: FutureWarning: The pynvml package is deprecated. Please install nvidia-ml-py instead. If you did not install pynvml directly, please report this to the maintainers of the package that installed pynvml for you. import pynvml # type: ignore[import] Traceback (most recent call last): File "/root/paddlejob/amfp-public/weiziyang/moe_dispatcher/bench/scripts/bench_dispatcher.py", line 463, in main() File "/root/paddlejob/amfp-public/weiziyang/moe_dispatcher/bench/scripts/bench_dispatcher.py", line 302, in main torch.cuda.set_device(local_rank) File "/usr/local/lib/python3.12/dist-packages/torch/cuda/__init__.py", line 638, in set_device torch._C._cuda_setDevice(device) torch.AcceleratorError: CUDA error: out of memory Search for `cudaErrorMemoryAllocation' in https://docs.nvidia.com/cuda/cuda-runtime-api/group__CUDART__TYPES.html for more information. CUDA kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect. For debugging consider passing CUDA_LAUNCH_BLOCKING=1 Compile with `TORCH_USE_CUDA_DSA` to enable device-side assertions. W1117 21:00:39.803000 1368778 torch/distributed/elastic/multiprocessing/api.py:1012] Sending process 1368869 closing signal SIGTERM W1117 21:00:39.804000 1368778 torch/distributed/elastic/multiprocessing/api.py:1012] Sending process 1368870 closing signal SIGTERM W1117 21:00:39.804000 1368778 torch/distributed/elastic/multiprocessing/api.py:1012] Sending process 1368872 closing signal SIGTERM W1117 21:00:39.804000 1368778 torch/distributed/elastic/multiprocessing/api.py:1012] Sending process 1368873 closing signal SIGTERM W1117 21:00:39.804000 1368778 torch/distributed/elastic/multiprocessing/api.py:1012] Sending process 1368874 closing signal SIGTERM W1117 21:00:39.804000 1368778 torch/distributed/elastic/multiprocessing/api.py:1012] Sending process 1368875 closing signal SIGTERM W1117 21:00:39.804000 1368778 torch/distributed/elastic/multiprocessing/api.py:1012] Sending process 1368876 closing signal SIGTERM E1117 21:00:46.309000 1368778 torch/distributed/elastic/multiprocessing/api.py:986] failed (exitcode: 1) local_rank: 2 (pid: 1368871) of binary: /usr/bin/python3.12 Traceback (most recent call last): File "/usr/local/bin/torchrun", line 6, in sys.exit(main()) ^^^^^^ File "/usr/local/lib/python3.12/dist-packages/torch/distributed/elastic/multiprocessing/errors/__init__.py", line 362, in wrapper return f(*args, **kwargs) ^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/dist-packages/torch/distributed/run.py", line 990, in main run(args) File "/usr/local/lib/python3.12/dist-packages/torch/distributed/run.py", line 981, in run elastic_launch( File "/usr/local/lib/python3.12/dist-packages/torch/distributed/launcher/api.py", line 170, in __call__ return launch_agent(self._config, self._entrypoint, list(args)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/dist-packages/torch/distributed/launcher/api.py", line 317, in launch_agent raise ChildFailedError( torch.distributed.elastic.multiprocessing.errors.ChildFailedError: ============================================================ /root/paddlejob/amfp-public/weiziyang/moe_dispatcher/bench/scripts/bench_dispatcher.py FAILED ------------------------------------------------------------ Failures: [1]: time : 2026-11-17_21:00:46 host : tjzj-inf-sci-k8s-hzz1-h62ni7-2072.tjzj.baidu.com rank : 0 (local_rank: 0) exitcode : -15 (pid: 1368869) error_file: traceback : Signal 15 (SIGTERM) received by PID 1368869 [2]: time : 2026-11-17_21:00:46 host : tjzj-inf-sci-k8s-hzz1-h62ni7-2072.tjzj.baidu.com rank : 1 (local_rank: 1) exitcode : -15 (pid: 1368870) error_file: traceback : Signal 15 (SIGTERM) received by PID 1368870 [3]: time : 2026-11-17_21:00:46 host : tjzj-inf-sci-k8s-hzz1-h62ni7-2072.tjzj.baidu.com rank : 3 (local_rank: 3) exitcode : -15 (pid: 1368872) error_file: traceback : Signal 15 (SIGTERM) received by PID 1368872 [4]: time : 2026-11-17_21:00:46 host : tjzj-inf-sci-k8s-hzz1-h62ni7-2072.tjzj.baidu.com rank : 4 (local_rank: 4) exitcode : -15 (pid: 1368873) error_file: traceback : Signal 15 (SIGTERM) received by PID 1368873 [5]: time : 2026-11-17_21:00:46 host : tjzj-inf-sci-k8s-hzz1-h62ni7-2072.tjzj.baidu.com rank : 5 (local_rank: 5) exitcode : -15 (pid: 1368874) error_file: traceback : Signal 15 (SIGTERM) received by PID 1368874 [6]: time : 2026-11-17_21:00:46 host : tjzj-inf-sci-k8s-hzz1-h62ni7-2072.tjzj.baidu.com rank : 6 (local_rank: 6) exitcode : -15 (pid: 1368875) error_file: traceback : Signal 15 (SIGTERM) received by PID 1368875 [7]: time : 2026-11-17_21:00:46 host : tjzj-inf-sci-k8s-hzz1-h62ni7-2072.tjzj.baidu.com rank : 7 (local_rank: 7) exitcode : -15 (pid: 1368876) error_file: traceback : Signal 15 (SIGTERM) received by PID 1368876 ------------------------------------------------------------ Root Cause (first observed failure): [0]: time : 2026-11-17_21:00:39 host : tjzj-inf-sci-k8s-hzz1-h62ni7-2072.tjzj.baidu.com rank : 2 (local_rank: 2) exitcode : 1 (pid: 1368871) error_file: traceback : To enable traceback see: https://pytorch.org/docs/stable/elastic/errors.html ============================================================