vllm-project / vllm

A high-throughput and memory-efficient inference and serving engine for LLMs
https://docs.vllm.ai
Apache License 2.0
30.97k stars 4.71k forks source link

[Usage]: VLLM + RAY encountered an error while executing the integrity check script. #6650

Closed jueming0312 closed 4 days ago

jueming0312 commented 4 months ago

Your current environment

The output of `python collect_env.py`
Collecting environment information...
PyTorch version: 2.3.1+cu121
Is debug build: False
CUDA used to build PyTorch: 12.1
ROCM used to build PyTorch: N/A

OS: Ubuntu 22.04.3 LTS (x86_64)
GCC version: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
Clang version: Could not collect
CMake version: version 3.30.0
Libc version: glibc-2.35

Python version: 3.10.12 (main, Mar 22 2024, 16:50:05) [GCC 11.4.0] (64-bit runtime)
Python platform: Linux-5.15.0-116-generic-x86_64-with-glibc2.35
Is CUDA available: True
CUDA runtime version: 12.2.140
CUDA_MODULE_LOADING set to: LAZY
GPU models and configuration:
GPU 0: NVIDIA GeForce RTX 3090
GPU 1: NVIDIA GeForce RTX 3090
GPU 2: NVIDIA GeForce RTX 3090
GPU 3: NVIDIA GeForce RTX 3090

Nvidia driver version: 550.90.07
cuDNN version: Probably one of the following:
/usr/lib/x86_64-linux-gnu/libcudnn.so.8.9.6
/usr/lib/x86_64-linux-gnu/libcudnn_adv_infer.so.8.9.6
/usr/lib/x86_64-linux-gnu/libcudnn_adv_train.so.8.9.6
/usr/lib/x86_64-linux-gnu/libcudnn_cnn_infer.so.8.9.6
/usr/lib/x86_64-linux-gnu/libcudnn_cnn_train.so.8.9.6
/usr/lib/x86_64-linux-gnu/libcudnn_ops_infer.so.8.9.6
/usr/lib/x86_64-linux-gnu/libcudnn_ops_train.so.8.9.6
HIP runtime version: N/A
MIOpen runtime version: N/A
Is XNNPACK available: True

CPU:
Architecture:                         x86_64
CPU op-mode(s):                       32-bit, 64-bit
Address sizes:                        46 bits physical, 48 bits virtual
Byte Order:                           Little Endian
CPU(s):                               56
On-line CPU(s) list:                  0-55
Vendor ID:                            GenuineIntel
Model name:                           Intel(R) Xeon(R) CPU E5-2680 v4 @ 2.40GHz
CPU family:                           6
Model:                                79
Thread(s) per core:                   2
Core(s) per socket:                   14
Socket(s):                            2
Stepping:                             1
CPU max MHz:                          3300.0000
CPU min MHz:                          1200.0000
BogoMIPS:                             4800.30
Flags:                                fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb cat_l3 cdp_l3 invpcid_single pti intel_ppin ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm cqm rdt_a rdseed adx smap intel_pt xsaveopt cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local dtherm ida arat pln pts md_clear flush_l1d
Virtualization:                       VT-x
L1d cache:                            896 KiB (28 instances)
L1i cache:                            896 KiB (28 instances)
L2 cache:                             7 MiB (28 instances)
L3 cache:                             70 MiB (2 instances)
NUMA node(s):                         2
NUMA node0 CPU(s):                    0-13,28-41
NUMA node1 CPU(s):                    14-27,42-55
Vulnerability Gather data sampling:   Not affected
Vulnerability Itlb multihit:          KVM: Mitigation: VMX disabled
Vulnerability L1tf:                   Mitigation; PTE Inversion; VMX conditional cache flushes, SMT vulnerable
Vulnerability Mds:                    Mitigation; Clear CPU buffers; SMT vulnerable
Vulnerability Meltdown:               Mitigation; PTI
Vulnerability Mmio stale data:        Mitigation; Clear CPU buffers; SMT vulnerable
Vulnerability Reg file data sampling: Not affected
Vulnerability Retbleed:               Not affected
Vulnerability Spec rstack overflow:   Not affected
Vulnerability Spec store bypass:      Mitigation; Speculative Store Bypass disabled via prctl and seccomp
Vulnerability Spectre v1:             Mitigation; usercopy/swapgs barriers and __user pointer sanitization
Vulnerability Spectre v2:             Mitigation; Retpolines; IBPB conditional; IBRS_FW; STIBP conditional; RSB filling; PBRSB-eIBRS Not affected; BHI Not affected
Vulnerability Srbds:                  Not affected
Vulnerability Tsx async abort:        Mitigation; Clear CPU buffers; SMT vulnerable

Versions of relevant libraries:
[pip3] numpy==1.26.4
[pip3] nvidia-nccl-cu12==2.20.5
[pip3] torch==2.3.1
[pip3] torchvision==0.18.1
[pip3] transformers==4.42.4
[pip3] triton==2.3.1
[conda] Could not collect
ROCM Version: Could not collect
Neuron SDK Version: N/A
vLLM Version: 0.5.2
vLLM Build Flags:
CUDA Archs: Not Set; ROCm: Disabled; Neuron: Disabled
GPU Topology:
GPU0    GPU1    GPU2    GPU3    CPU Affinity    NUMA Affinity   GPU NUMA ID
GPU0     X  PHB SYS SYS 0-13,28-41  0       N/A
GPU1    PHB  X  SYS SYS 0-13,28-41  0       N/A
GPU2    SYS SYS  X  PHB 14-27,42-55 1       N/A
GPU3    SYS SYS PHB  X  14-27,42-55 1       N/A

Legend:

  X    = Self
  SYS  = Connection traversing PCIe as well as the SMP interconnect between NUMA nodes (e.g., QPI/UPI)
  NODE = Connection traversing PCIe as well as the interconnect between PCIe Host Bridges within a NUMA node
  PHB  = Connection traversing PCIe as well as a PCIe Host Bridge (typically the CPU)
  PXB  = Connection traversing multiple PCIe bridges (without traversing the PCIe Host Bridge)
  PIX  = Connection traversing at most a single PCIe bridge
  NV#  = Connection traversing a bonded set of # NVLinks

How would you like to use vllm

The integrity check script returned normal when run on a single node.

# NCCL_DEBUG=TRACE torchrun --nproc-per-node=4 test.py
W0722 15:05:15.072000 140660237549568 torch/distributed/run.py:757]
W0722 15:05:15.072000 140660237549568 torch/distributed/run.py:757] *****************************************
W0722 15:05:15.072000 140660237549568 torch/distributed/run.py:757] 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.
W0722 15:05:15.072000 140660237549568 torch/distributed/run.py:757] *****************************************
10-1-16-226:1024:1024 [0] NCCL INFO Bootstrap : Using eno1:10.1.16.226<0>
10-1-16-226:1024:1024 [0] NCCL INFO NET/Plugin : dlerror=libnccl-net.so: cannot open shared object file: No such file or directory No plugin found (libnccl-net.so), using internal implementation
10-1-16-226:1024:1024 [0] NCCL INFO cudaDriverVersion 12040
NCCL version 2.20.5+cuda12.4
10-1-16-226:1026:1026 [2] NCCL INFO cudaDriverVersion 12040
10-1-16-226:1026:1026 [2] NCCL INFO Bootstrap : Using eno1:10.1.16.226<0>
10-1-16-226:1026:1026 [2] NCCL INFO NET/Plugin : dlerror=libnccl-net.so: cannot open shared object file: No such file or directory No plugin found (libnccl-net.so), using internal implementation
10-1-16-226:1027:1027 [3] NCCL INFO cudaDriverVersion 12040
10-1-16-226:1027:1027 [3] NCCL INFO Bootstrap : Using eno1:10.1.16.226<0>
10-1-16-226:1027:1027 [3] NCCL INFO NET/Plugin : dlerror=libnccl-net.so: cannot open shared object file: No such file or directory No plugin found (libnccl-net.so), using internal implementation
10-1-16-226:1024:1052 [0] NCCL INFO Failed to open libibverbs.so[.1]
10-1-16-226:1024:1052 [0] NCCL INFO NET/Socket : Using [0]eno1:10.1.16.226<0>
10-1-16-226:1024:1052 [0] NCCL INFO Using non-device net plugin version 0
10-1-16-226:1024:1052 [0] NCCL INFO Using network Socket
10-1-16-226:1025:1025 [1] NCCL INFO cudaDriverVersion 12040
10-1-16-226:1025:1025 [1] NCCL INFO Bootstrap : Using eno1:10.1.16.226<0>
10-1-16-226:1025:1025 [1] NCCL INFO NET/Plugin : dlerror=libnccl-net.so: cannot open shared object file: No such file or directory No plugin found (libnccl-net.so), using internal implementation
10-1-16-226:1026:1055 [2] NCCL INFO Failed to open libibverbs.so[.1]
10-1-16-226:1026:1055 [2] NCCL INFO NET/Socket : Using [0]eno1:10.1.16.226<0>
10-1-16-226:1026:1055 [2] NCCL INFO Using non-device net plugin version 0
10-1-16-226:1026:1055 [2] NCCL INFO Using network Socket
10-1-16-226:1027:1056 [3] NCCL INFO Failed to open libibverbs.so[.1]
10-1-16-226:1027:1056 [3] NCCL INFO NET/Socket : Using [0]eno1:10.1.16.226<0>
10-1-16-226:1027:1056 [3] NCCL INFO Using non-device net plugin version 0
10-1-16-226:1027:1056 [3] NCCL INFO Using network Socket
10-1-16-226:1025:1058 [1] NCCL INFO Failed to open libibverbs.so[.1]
10-1-16-226:1025:1058 [1] NCCL INFO NET/Socket : Using [0]eno1:10.1.16.226<0>
10-1-16-226:1025:1058 [1] NCCL INFO Using non-device net plugin version 0
10-1-16-226:1025:1058 [1] NCCL INFO Using network Socket
10-1-16-226:1025:1058 [1] NCCL INFO comm 0x557c60b3e430 rank 1 nranks 4 cudaDev 1 nvmlDev 1 busId 3000 commId 0xbf275d58c6b24787 - Init START
10-1-16-226:1024:1052 [0] NCCL INFO comm 0x55cd8a690840 rank 0 nranks 4 cudaDev 0 nvmlDev 0 busId 2000 commId 0xbf275d58c6b24787 - Init START
10-1-16-226:1026:1055 [2] NCCL INFO comm 0x5574223c6050 rank 2 nranks 4 cudaDev 2 nvmlDev 2 busId 83000 commId 0xbf275d58c6b24787 - Init START
10-1-16-226:1027:1056 [3] NCCL INFO comm 0x55b1dc3eb7d0 rank 3 nranks 4 cudaDev 3 nvmlDev 3 busId 84000 commId 0xbf275d58c6b24787 - Init START
10-1-16-226:1025:1058 [1] NCCL INFO Setting affinity for GPU 1 to 03ff,f0003fff
10-1-16-226:1025:1058 [1] NCCL INFO NVLS multicast support is not available on dev 1
10-1-16-226:1024:1052 [0] NCCL INFO Setting affinity for GPU 0 to 03ff,f0003fff
10-1-16-226:1024:1052 [0] NCCL INFO NVLS multicast support is not available on dev 0
10-1-16-226:1026:1055 [2] NCCL INFO Setting affinity for GPU 2 to fffc00,0fffc000
10-1-16-226:1026:1055 [2] NCCL INFO NVLS multicast support is not available on dev 2
10-1-16-226:1027:1056 [3] NCCL INFO Setting affinity for GPU 3 to fffc00,0fffc000
10-1-16-226:1027:1056 [3] NCCL INFO NVLS multicast support is not available on dev 3
10-1-16-226:1027:1056 [3] NCCL INFO comm 0x55b1dc3eb7d0 rank 3 nRanks 4 nNodes 1 localRanks 4 localRank 3 MNNVL 0
10-1-16-226:1027:1056 [3] NCCL INFO Trees [0] -1/-1/-1->3->2 [1] -1/-1/-1->3->2
10-1-16-226:1027:1056 [3] NCCL INFO P2P Chunksize set to 131072
10-1-16-226:1026:1055 [2] NCCL INFO comm 0x5574223c6050 rank 2 nRanks 4 nNodes 1 localRanks 4 localRank 2 MNNVL 0
10-1-16-226:1024:1052 [0] NCCL INFO comm 0x55cd8a690840 rank 0 nRanks 4 nNodes 1 localRanks 4 localRank 0 MNNVL 0
10-1-16-226:1026:1055 [2] NCCL INFO Trees [0] 3/-1/-1->2->1 [1] 3/-1/-1->2->1
10-1-16-226:1025:1058 [1] NCCL INFO comm 0x557c60b3e430 rank 1 nRanks 4 nNodes 1 localRanks 4 localRank 1 MNNVL 0
10-1-16-226:1026:1055 [2] NCCL INFO P2P Chunksize set to 131072
10-1-16-226:1024:1052 [0] NCCL INFO Channel 00/02 :    0   1   2   3
10-1-16-226:1025:1058 [1] NCCL INFO Trees [0] 2/-1/-1->1->0 [1] 2/-1/-1->1->0
10-1-16-226:1025:1058 [1] NCCL INFO P2P Chunksize set to 131072
10-1-16-226:1024:1052 [0] NCCL INFO Channel 01/02 :    0   1   2   3
10-1-16-226:1024:1052 [0] NCCL INFO Trees [0] 1/-1/-1->0->-1 [1] 1/-1/-1->0->-1
10-1-16-226:1024:1052 [0] NCCL INFO P2P Chunksize set to 131072
10-1-16-226:1027:1056 [3] NCCL INFO Channel 00 : 3[3] -> 0[0] via SHM/direct/direct
10-1-16-226:1026:1055 [2] NCCL INFO Channel 00 : 2[2] -> 3[3] via SHM/direct/direct
10-1-16-226:1027:1056 [3] NCCL INFO Channel 01 : 3[3] -> 0[0] via SHM/direct/direct
10-1-16-226:1026:1055 [2] NCCL INFO Channel 01 : 2[2] -> 3[3] via SHM/direct/direct
10-1-16-226:1024:1052 [0] NCCL INFO Channel 00 : 0[0] -> 1[1] via SHM/direct/direct
10-1-16-226:1024:1052 [0] NCCL INFO Channel 01 : 0[0] -> 1[1] via SHM/direct/direct
10-1-16-226:1025:1058 [1] NCCL INFO Channel 00 : 1[1] -> 2[2] via SHM/direct/direct
10-1-16-226:1025:1058 [1] NCCL INFO Channel 01 : 1[1] -> 2[2] via SHM/direct/direct
10-1-16-226:1027:1056 [3] NCCL INFO Connected all rings
10-1-16-226:1026:1055 [2] NCCL INFO Connected all rings
10-1-16-226:1024:1052 [0] NCCL INFO Connected all rings
10-1-16-226:1025:1058 [1] NCCL INFO Connected all rings
10-1-16-226:1027:1056 [3] NCCL INFO Channel 00 : 3[3] -> 2[2] via SHM/direct/direct
10-1-16-226:1027:1056 [3] NCCL INFO Channel 01 : 3[3] -> 2[2] via SHM/direct/direct
10-1-16-226:1026:1055 [2] NCCL INFO Channel 00 : 2[2] -> 1[1] via SHM/direct/direct
10-1-16-226:1026:1055 [2] NCCL INFO Channel 01 : 2[2] -> 1[1] via SHM/direct/direct
10-1-16-226:1025:1058 [1] NCCL INFO Channel 00 : 1[1] -> 0[0] via SHM/direct/direct
10-1-16-226:1025:1058 [1] NCCL INFO Channel 01 : 1[1] -> 0[0] via SHM/direct/direct
10-1-16-226:1024:1052 [0] NCCL INFO Connected all trees
10-1-16-226:1024:1052 [0] NCCL INFO threadThresholds 8/8/64 | 32/8/64 | 512 | 512
10-1-16-226:1024:1052 [0] NCCL INFO 2 coll channels, 0 collnet channels, 0 nvls channels, 2 p2p channels, 2 p2p channels per peer
10-1-16-226:1027:1056 [3] NCCL INFO Connected all trees
10-1-16-226:1025:1058 [1] NCCL INFO Connected all trees
10-1-16-226:1027:1056 [3] NCCL INFO threadThresholds 8/8/64 | 32/8/64 | 512 | 512
10-1-16-226:1027:1056 [3] NCCL INFO 2 coll channels, 0 collnet channels, 0 nvls channels, 2 p2p channels, 2 p2p channels per peer
10-1-16-226:1025:1058 [1] NCCL INFO threadThresholds 8/8/64 | 32/8/64 | 512 | 512
10-1-16-226:1026:1055 [2] NCCL INFO Connected all trees
10-1-16-226:1025:1058 [1] NCCL INFO 2 coll channels, 0 collnet channels, 0 nvls channels, 2 p2p channels, 2 p2p channels per peer
10-1-16-226:1026:1055 [2] NCCL INFO threadThresholds 8/8/64 | 32/8/64 | 512 | 512
10-1-16-226:1026:1055 [2] NCCL INFO 2 coll channels, 0 collnet channels, 0 nvls channels, 2 p2p channels, 2 p2p channels per peer
10-1-16-226:1026:1055 [2] NCCL INFO comm 0x5574223c6050 rank 2 nranks 4 cudaDev 2 nvmlDev 2 busId 83000 commId 0xbf275d58c6b24787 - Init COMPLETE
10-1-16-226:1024:1052 [0] NCCL INFO comm 0x55cd8a690840 rank 0 nranks 4 cudaDev 0 nvmlDev 0 busId 2000 commId 0xbf275d58c6b24787 - Init COMPLETE
10-1-16-226:1025:1058 [1] NCCL INFO comm 0x557c60b3e430 rank 1 nranks 4 cudaDev 1 nvmlDev 1 busId 3000 commId 0xbf275d58c6b24787 - Init COMPLETE
10-1-16-226:1027:1056 [3] NCCL INFO comm 0x55b1dc3eb7d0 rank 3 nranks 4 cudaDev 3 nvmlDev 3 busId 84000 commId 0xbf275d58c6b24787 - Init COMPLETE
sanity check is successful!
sanity check is successful!
sanity check is successful!
sanity check is successful!
10-1-16-226:1024:1063 [0] NCCL INFO [Service thread] Connection closed by localRank 0
10-1-16-226:1026:1061 [2] NCCL INFO [Service thread] Connection closed by localRank 2
10-1-16-226:1027:1059 [3] NCCL INFO [Service thread] Connection closed by localRank 3
10-1-16-226:1025:1062 [1] NCCL INFO [Service thread] Connection closed by localRank 1
10-1-16-226:1024:1083 [0] NCCL INFO comm 0x55cd8a690840 rank 0 nranks 4 cudaDev 0 busId 2000 - Abort COMPLETE
10-1-16-226:1026:1084 [0] NCCL INFO comm 0x5574223c6050 rank 2 nranks 4 cudaDev 2 busId 83000 - Abort COMPLETE
10-1-16-226:1027:1085 [0] NCCL INFO comm 0x55b1dc3eb7d0 rank 3 nranks 4 cudaDev 3 busId 84000 - Abort COMPLETE
10-1-16-226:1025:1086 [0] NCCL INFO comm 0x557c60b3e430 rank 1 nranks 4 cudaDev 1 busId 3000 - Abort COMPLETE

The following error is returned when running on multiple nodes:

# NCCL_DEBUG=TRACE torchrun --nnodes 2 --nproc-per-node=4 --rdzv_backend=c10d --rdzv_endpoint=$MASTER_ADDR test.py
W0722 15:17:50.704000 140269336518656 torch/distributed/run.py:757]
W0722 15:17:50.704000 140269336518656 torch/distributed/run.py:757] *****************************************
W0722 15:17:50.704000 140269336518656 torch/distributed/run.py:757] 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.
W0722 15:17:50.704000 140269336518656 torch/distributed/run.py:757] *****************************************
[E socket.cpp:957] [c10d] The client socket has timed out after 60s while trying to connect to (10.1.16.222, 29400).
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/dist-packages/torch/distributed/elastic/rendezvous/c10d_rendezvous_backend.py", line 157, in _create_tcp_store
    store = TCPStore(
torch.distributed.DistNetworkError: The client socket has timed out after 60s while trying to connect to (10.1.16.222, 29400).

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/local/bin/torchrun", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.10/dist-packages/torch/distributed/elastic/multiprocessing/errors/__init__.py", line 347, in wrapper
    return f(*args, **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/torch/distributed/run.py", line 879, in main
    run(args)
  File "/usr/local/lib/python3.10/dist-packages/torch/distributed/run.py", line 870, in run
    elastic_launch(
  File "/usr/local/lib/python3.10/dist-packages/torch/distributed/launcher/api.py", line 132, in __call__
    return launch_agent(self._config, self._entrypoint, list(args))
  File "/usr/local/lib/python3.10/dist-packages/torch/distributed/launcher/api.py", line 235, in launch_agent
    rdzv_handler=rdzv_registry.get_rendezvous_handler(rdzv_parameters),
  File "/usr/local/lib/python3.10/dist-packages/torch/distributed/elastic/rendezvous/registry.py", line 66, in get_rendezvous_handler
    return handler_registry.create_handler(params)
  File "/usr/local/lib/python3.10/dist-packages/torch/distributed/elastic/rendezvous/api.py", line 263, in create_handler
    handler = creator(params)
  File "/usr/local/lib/python3.10/dist-packages/torch/distributed/elastic/rendezvous/registry.py", line 36, in _create_c10d_handler
    backend, store = create_backend(params)
  File "/usr/local/lib/python3.10/dist-packages/torch/distributed/elastic/rendezvous/c10d_rendezvous_backend.py", line 255, in create_backend
    store = _create_tcp_store(params)
  File "/usr/local/lib/python3.10/dist-packages/torch/distributed/elastic/rendezvous/c10d_rendezvous_backend.py", line 181, in _create_tcp_store
    raise RendezvousConnectionError(
torch.distributed.elastic.rendezvous.api.RendezvousConnectionError: The connection to the C10d store has failed. See inner exception for details.
youkaichao commented 4 months ago

torch.distributed.DistNetworkError: The client socket has timed out after 60s while trying to connect to (10.1.16.222, 29400).

You need to check the network connection between two nodes.

jueming0312 commented 4 months ago

torch.distributed.DistNetworkError: The client socket has timed out after 60s while trying to connect to (10.1.16.222, 29400).

You need to check the network connection between two nodes.

I added --network=host during the container runtime, and the communication with other ports via telnet is normal. Is the master address defined by this script the ray head node?

jueming0312 commented 4 months ago

Which service is the port 29400 being connected to here?

jueming0312 commented 4 months ago

Thank you, it indeed seems to be an internet issue. I have switched the running environment to Kubernetes and now the distributed inference is functioning normally.

github-actions[bot] commented 1 month ago

This issue has been automatically marked as stale because it has not had any activity within 90 days. It will be automatically closed if no further activity occurs within 30 days. Leave a comment if you feel this issue should remain open. Thank you!

github-actions[bot] commented 4 days ago

This issue has been automatically closed due to inactivity. Please feel free to reopen if you feel it is still relevant. Thank you!