vllm-project / vllm

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

[Bug]: when tensor-parallel-size>1,Stuck #8087

Open wiluen opened 3 months ago

wiluen commented 3 months ago

Your current environment

The output of `python collect_env.py` Collecting environment information... PyTorch version: 2.4.0 Is debug build: False CUDA used to build PyTorch: 12.4 ROCM used to build PyTorch: N/A OS: Ubuntu 24.04 LTS (x86_64) GCC version: (Ubuntu 13.2.0-23ubuntu4) 13.2.0 Clang version: Could not collect CMake version: Could not collect Libc version: glibc-2.39 Python version: 3.11.9 (main, Apr 19 2024, 16:48:06) [GCC 11.2.0] (64-bit runtime) Python platform: Linux-6.8.0-41-generic-x86_64-with-glibc2.39 Is CUDA available: True CUDA runtime version: Could not collect CUDA_MODULE_LOADING set to: LAZY GPU models and configuration: GPU 0: NVIDIA A40 GPU 1: NVIDIA A40 GPU 2: NVIDIA A40 GPU 3: NVIDIA A40 GPU 4: NVIDIA A40 GPU 5: NVIDIA A40 Nvidia driver version: 550.54.15 cuDNN version: Could not collect 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, 57 bits virtual Byte Order: Little Endian CPU(s): 64 On-line CPU(s) list: 0-63 Vendor ID: GenuineIntel Model name: Intel(R) Xeon(R) Gold 6326 CPU @ 2.90GHz CPU family: 6 Model: 106 Thread(s) per core: 2 Core(s) per socket: 16 Socket(s): 2 Stepping: 6 CPU(s) scaling MHz: 40% CPU max MHz: 3500.0000 CPU min MHz: 800.0000 BogoMIPS: 5800.00 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 art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 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 intel_ppin ssbd mba ibrs ibpb stibp ibrs_enhanced tpr_shadow flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid cqm rdt_a avx512f avx512dq rdseed adx smap avx512ifma clflushopt clwb intel_pt avx512cd sha_ni avx512bw avx512vl xsaveopt xsavec xgetbv1 xsaves cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local split_lock_detect wbnoinvd dtherm ida arat pln pts vnmi avx512vbmi umip pku ospke avx512_vbmi2 gfni vaes vpclmulqdq avx512_vnni avx512_bitalg tme avx512_vpopcntdq la57 rdpid fsrm md_clear pconfig flush_l1d arch_capabilities Virtualization: VT-x L1d cache: 1.5 MiB (32 instances) L1i cache: 1 MiB (32 instances) L2 cache: 40 MiB (32 instances) L3 cache: 48 MiB (2 instances) NUMA node(s): 2 NUMA node0 CPU(s): 0-15,32-47 NUMA node1 CPU(s): 16-31,48-63 Vulnerability Gather data sampling: Mitigation; Microcode Vulnerability Itlb multihit: Not affected Vulnerability L1tf: Not affected Vulnerability Mds: Not affected Vulnerability Meltdown: Not affected 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 Vulnerability Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer sanitization Vulnerability Spectre v2: Mitigation; Enhanced / Automatic IBRS; IBPB conditional; RSB filling; PBRSB-eIBRS SW sequence; BHI SW loop, KVM SW loop Vulnerability Srbds: Not affected Vulnerability Tsx async abort: Not affected Versions of relevant libraries: [pip3] numpy==1.26.0 [pip3] nvidia-ml-py==12.560.30 [pip3] pyzmq==26.2.0 [pip3] torch==2.4.0 [pip3] torchaudio==2.4.0 [pip3] torchvision==0.19.0 [pip3] transformers==4.44.2 [pip3] triton==3.0.0 [conda] blas 1.0 mkl [conda] cuda-cudart 12.4.127 0 nvidia [conda] cuda-cupti 12.4.127 0 nvidia [conda] cuda-libraries 12.4.0 0 nvidia [conda] cuda-nvrtc 12.4.127 0 nvidia [conda] cuda-nvtx 12.4.127 0 nvidia [conda] cuda-opencl 12.6.37 0 nvidia [conda] cuda-runtime 12.4.0 0 nvidia [conda] cuda-version 12.6 3 nvidia [conda] ffmpeg 4.3 hf484d3e_0 pytorch [conda] libcublas 12.4.2.65 0 nvidia [conda] libcufft 11.2.0.44 0 nvidia [conda] libcufile 1.11.0.15 0 nvidia [conda] libcurand 10.3.7.37 0 nvidia [conda] libcusolver 11.6.0.99 0 nvidia [conda] libcusparse 12.3.0.142 0 nvidia [conda] libjpeg-turbo 2.0.0 h9bf148f_0 pytorch [conda] libnpp 12.2.5.2 0 nvidia [conda] libnvfatbin 12.6.20 0 nvidia [conda] libnvjitlink 12.4.99 0 nvidia [conda] libnvjpeg 12.3.1.89 0 nvidia [conda] mkl 2023.1.0 h213fc3f_46344 [conda] mkl-service 2.4.0 py311h5eee18b_1 [conda] mkl_fft 1.3.8 py311h5eee18b_0 [conda] mkl_random 1.2.4 py311hdb19cb5_0 [conda] numpy 1.26.0 pypi_0 pypi [conda] nvidia-ml-py 12.560.30 pypi_0 pypi [conda] pytorch 2.4.0 py3.11_cuda12.4_cudnn9.1.0_0 pytorch [conda] pytorch-cuda 12.4 hc786d27_6 pytorch [conda] pytorch-mutex 1.0 cuda pytorch [conda] pyzmq 26.2.0 pypi_0 pypi [conda] torchaudio 2.4.0 py311_cu124 pytorch [conda] torchtriton 3.0.0 py311 pytorch [conda] torchvision 0.19.0 py311_cu124 pytorch [conda] transformers 4.44.2 pypi_0 pypi ROCM Version: Could not collect Neuron SDK Version: N/A vLLM Version: 0.5.5@09c7792610ada9f88bbf87d32b472dd44bf23cc2 vLLM Build Flags: CUDA Archs: Not Set; ROCm: Disabled; Neuron: Disabled GPU Topology: GPU0 GPU1 GPU2 GPU3 GPU4 GPU5 NIC0 NIC1 CPU Affinity NUMA Affinity GPU NUMA ID GPU0 X PIX PIX PIX SYS SYS SYS SYS 0-15,32-47 0 N/A GPU1 PIX X PIX PIX SYS SYS SYS SYS 0-15,32-47 0 N/A GPU2 PIX PIX X PIX SYS SYS SYS SYS 0-15,32-47 0 N/A GPU3 PIX PIX PIX X SYS SYS SYS SYS 0-15,32-47 0 N/A GPU4 SYS SYS SYS SYS X PIX SYS SYS 16-31,48-63 1 N/A GPU5 SYS SYS SYS SYS PIX X SYS SYS 16-31,48-63 1 N/A NIC0 SYS SYS SYS SYS SYS SYS X PIX NIC1 SYS SYS SYS SYS SYS SYS PIX X 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 NIC Legend: NIC0: mlx5_0 NIC1: mlx5_1

🐛 Describe the bug

vllm serve llm/qwen/Qwen2-0.5B-Instruct --tensor-parallel-size 2 INFO 09-02 12:45:15 api_server.py:144] Multiprocessing frontend to use ipc:///tmp/2b15b866-6a79-49e6-95c9-d1269a5952b6 for RPC Path. INFO 09-02 12:45:15 api_server.py:161] Started engine process with PID 814714 INFO 09-02 12:45:19 config.py:813] Defaulting to use mp for distributed inference INFO 09-02 12:45:19 llm_engine.py:184] Initializing an LLM engine (v0.5.5) with config: model='llm/qwen/Qwen2-0.5B-Instruct', speculative_config=None, tokenizer='llm/qwen/Qwen2-0.5B-Instruct', skip_tokenizer_init=False, tokenizer_mode=auto, revision=None, rope_scaling=None, rope_theta=None, tokenizer_revision=None, trust_remote_code=False, dtype=torch.bfloat16, max_seq_len=32768, download_dir=None, load_format=LoadFormat.AUTO, tensor_parallel_size=2, pipeline_parallel_size=1, disable_custom_all_reduce=False, quantization=None, enforce_eager=False, kv_cache_dtype=auto, quantization_param_path=None, device_config=cuda, decoding_config=DecodingConfig(guided_decoding_backend='outlines'), observability_config=ObservabilityConfig(otlp_traces_endpoint=None, collect_model_forward_time=False, collect_model_execute_time=False), seed=0, served_model_name=llm/qwen/Qwen2-0.5B-Instruct, use_v2_block_manager=False, enable_prefix_caching=False) WARNING 09-02 12:45:19 multiproc_gpu_executor.py:59] Reducing Torch parallelism from 32 threads to 1 to avoid unnecessary CPU contention. Set OMP_NUM_THREADS in the external environment to tune this value as needed. INFO 09-02 12:45:19 custom_cache_manager.py:17] Setting Triton cache manager to: vllm.triton_utils.custom_cache_manager:CustomCacheManager (VllmWorkerProcess pid=814861) INFO 09-02 12:45:19 multiproc_worker_utils.py:215] Worker ready; awaiting tasks (VllmWorkerProcess pid=814861) INFO 09-02 12:45:20 utils.py:965] Found nccl from environment variable VLLM_NCCL_SO_PATH=/home/wyl/llm/qwen/nccl_2.21.5-1+cuda12.4_x86_64/lib/libnccl.so (VllmWorkerProcess pid=814861) INFO 09-02 12:45:20 pynccl.py:63] vLLM is using nccl==2.21.5 INFO 09-02 12:45:20 utils.py:965] Found nccl from environment variable VLLM_NCCL_SO_PATH=/home/wyl/llm/qwen/nccl_2.21.5-1+cuda12.4_x86_64/lib/libnccl.so INFO 09-02 12:45:20 pynccl.py:63] vLLM is using nccl==2.21.5 Stuck in this place 一直卡住,不动

Before submitting a new issue...

wiluen commented 3 months ago

I found gpu#0 is runing ollama, if i specific CUDA_VISIBLE_DEVICES,it can run

DarkLight1337 commented 3 months ago

Yes, normally you should set CUDA_VISIBLE_DEVCES to avoid using the occupied GPUs. You can also adjust the % of each GPU to use via --gpu-memory-utilization.

wiluen commented 3 months ago

sorry, it does not real solve my problem, now my gpus are all free, I use qwen/Qwen2-0.5B-Instruct, tensor-parallel-size=2, there 2 states: 1.when I set 'export VLLM_NCCL_SO_PATH=/home/wyl/llm/qwen/nccl_2.21.5-1+cuda12.4_x86_64/lib/libnccl.so' ,it stuck in this place: VllmWorkerProcess pid=1153488) INFO 09-03 02:15:41 multiproc_worker_utils.py:215] Worker ready; awaiting tasks (VllmWorkerProcess pid=1153488) INFO 09-03 02:15:42 utils.py:965] Found nccl from environment variable VLLM_NCCL_SO_PATH=/home/wyl/llm/qwen/nccl_2.21.5-1+cuda12.4_x86_64/lib/libnccl.so INFO 09-03 02:15:42 utils.py:965] Found nccl from environment variable VLLM_NCCL_SO_PATH=/home/wyl/llm/qwen/nccl_2.21.5-1+cuda12.4_x86_64/lib/libnccl.so (VllmWorkerProcess pid=1153488) INFO 09-03 02:15:42 pynccl.py:63] vLLM is using nccl==2.21.5 INFO 09-03 02:15:42 pynccl.py:63] vLLM is using nccl==2.21.5

2 GPU Memory usage=470MB,GPU-Util =100%

2.when i dont set VLLM_NCCL_SO_PATH, it stuck in this place: (VllmWorkerProcess pid=1156996) INFO 09-03 02:21:35 multiproc_worker_utils.py:215] Worker ready; awaiting tasks (VllmWorkerProcess pid=1156996) INFO 09-03 02:21:36 utils.py:975] Found nccl from library libnccl.so.2 (VllmWorkerProcess pid=1156996) ERROR 09-03 02:21:36 pynccl_wrapper.py:196] Failed to load NCCL library from libnccl.so.2 .It is expected if you are not running on NVIDIA/AMD GPUs.Otherwise, the nccl library might not exist, be corrupted or it does not support the current platform Linux-6.8.0-41-generic-x86_64-with-glibc2.39.If you already have the library, please set the environment variable VLLM_NCCL_SO_PATH to point to the correct nccl library path. INFO 09-03 02:21:36 utils.py:975] Found nccl from library libnccl.so.2 ERROR 09-03 02:21:36 pynccl_wrapper.py:196] Failed to load NCCL library from libnccl.so.2 .It is expected if you are not running on NVIDIA/AMD GPUs.Otherwise, the nccl library might not exist, be corrupted or it does not support the current platform Linux-6.8.0-41-generic-x86_64-with-glibc2.39.If you already have the library, please set the environment variable VLLM_NCCL_SO_PATH to point to the correct nccl library path. (VllmWorkerProcess pid=1156996) INFO 09-03 02:21:36 custom_all_reduce_utils.py:234] reading GPU P2P access cache from /home/wyl/.cache/vllm/gpu_p2p_access_cache_for_0,1.json INFO 09-03 02:21:36 custom_all_reduce_utils.py:234] reading GPU P2P access cache from /home/wyl/.cache/vllm/gpu_p2p_access_cache_for_0,1.json (VllmWorkerProcess pid=1156996) WARNING 09-03 02:21:36 custom_all_reduce.py:131] Custom allreduce is disabled because your platform lacks GPU P2P capability or P2P test failed. To silence this warning, specify disable_custom_all_reduce=True explicitly. WARNING 09-03 02:21:36 custom_all_reduce.py:131] Custom allreduce is disabled because your platform lacks GPU P2P capability or P2P test failed. To silence this warning, specify disable_custom_all_reduce=True explicitly. INFO 09-03 02:21:36 shm_broadcast.py:235] vLLM message queue communication handle: Handle(connect_ip='127.0.0.1', local_reader_ranks=[1], buffer=<vllm.distributed.device_communicators.shm_broadcast.ShmRingBuffer object at 0x7c81f5916010>, local_subscribe_port=33865, remote_subscribe_port=None) INFO 09-03 02:21:36 model_runner.py:879] Starting to load model llm/qwen/Qwen2-0.5B-Instruct... (VllmWorkerProcess pid=1156996) INFO 09-03 02:21:36 model_runner.py:879] Starting to load model llm/qwen/Qwen2-0.5B-Instruct... Loading safetensors checkpoint shards: 0% Completed | 0/1 [00:00<?, ?it/s] Loading safetensors checkpoint shards: 100% Completed | 1/1 [00:00<00:00, 8.57it/s] Loading safetensors checkpoint shards: 100% Completed | 1/1 [00:00<00:00, 8.56it/s]

INFO 09-03 02:21:36 model_runner.py:890] Loading model weights took 0.4642 GB (VllmWorkerProcess pid=1156996) INFO 09-03 02:21:36 model_runner.py:890] Loading model weights took 0.4642 GB

2 GPU Memory usage=1136MB,GPU-Util =100%

but they all fail to start the vllm server. what should i do?

DarkLight1337 commented 3 months ago

Please check out the troubleshooting guide and see if it can solve your problem.

chipchip221017 commented 3 months ago

I got the same issue with NVIDIA GPU T1200. CUDA 12.6. WSL. vllm serve microsoft/Phi-3.5-mini-instruct --trust_remote_code --dtype float16 INFO 09-03 14:18:39 api_server.py:440] vLLM API server version 0.5.5 .... INFO 09-03 14:18:52 weight_utils.py:236] Using model weights format ['*.safetensors'] Loading safetensors checkpoint shards: 0% Completed | 0/2 [00:00<?, ?it/s] Loading safetensors checkpoint shards: 50% Completed | 1/2 [00:05<00:05, 5.77s/it] Loading safetensors checkpoint shards: 100% Completed | 2/2 [00:08<00:00, 4.02s/it] Loading safetensors checkpoint shards: 100% Completed | 2/2 [00:08<00:00, 4.28s/it] INFO 09-03 14:19:01 model_runner.py:890] Loading model weights took 7.1659 GB

It stuck here and cannot start the vllm server. I run the command: netstat -tuln | grep 8000 but nothing shows I tried curl: curl http://localhost:8000/v1/models curl: (7) Failed to connect to localhost port 8000 after 0 ms: Connection refused

It's full log: vllm serve microsoft/Phi-3.5-mini-instruct --trust_remote_code --dtype float16 INFO 09-03 14:18:39 api_server.py:440] vLLM API server version 0.5.5 INFO 09-03 14:18:39 api_server.py:441] args: Namespace(model_tag='microsoft/Phi-3.5-mini-instruct', host=None, port=8000, uvicorn_log_level='info', allow_credentials=False, allowed_origins=[''], allowed_methods=[''], allowed_headers=[''], api_key=None, lora_modules=None, prompt_adapters=None, chat_template=None, response_role='assistant', ssl_keyfile=None, ssl_certfile=None, ssl_ca_certs=None, ssl_cert_reqs=0, root_path=None, middleware=[], return_tokens_as_token_ids=False, disable_frontend_multiprocessing=False, model='microsoft/Phi-3.5-mini-instruct', tokenizer=None, skip_tokenizer_init=False, revision=None, code_revision=None, tokenizer_revision=None, tokenizer_mode='auto', trust_remote_code=True, download_dir=None, load_format='auto', dtype='float16', kv_cache_dtype='auto', quantization_param_path=None, max_model_len=None, guided_decoding_backend='outlines', distributed_executor_backend=None, worker_use_ray=False, pipeline_parallel_size=1, tensor_parallel_size=1, max_parallel_loading_workers=None, ray_workers_use_nsight=False, block_size=16, enable_prefix_caching=False, disable_sliding_window=False, use_v2_block_manager=False, num_lookahead_slots=0, seed=0, swap_space=4, cpu_offload_gb=0, gpu_memory_utilization=0.9, num_gpu_blocks_override=None, max_num_batched_tokens=None, max_num_seqs=256, max_logprobs=20, disable_log_stats=False, quantization=None, rope_scaling=None, rope_theta=None, enforce_eager=False, max_context_len_to_capture=None, max_seq_len_to_capture=8192, disable_custom_all_reduce=False, tokenizer_pool_size=0, tokenizer_pool_type='ray', tokenizer_pool_extra_config=None, limit_mm_per_prompt=None, enable_lora=False, max_loras=1, max_lora_rank=16, lora_extra_vocab_size=256, lora_dtype='auto', long_lora_scaling_factors=None, max_cpu_loras=None, fully_sharded_loras=False, enable_prompt_adapter=False, max_prompt_adapters=1, max_prompt_adapter_token=0, device='auto', num_scheduler_steps=1, scheduler_delay_factor=0.0, enable_chunked_prefill=None, speculative_model=None, speculative_model_quantization=None, num_speculative_tokens=None, speculative_draft_tensor_parallel_size=None, speculative_max_model_len=None, speculative_disable_by_batch_size=None, ngram_prompt_lookup_max=None, ngram_prompt_lookup_min=None, spec_decoding_acceptance_method='rejection_sampler', typical_acceptance_sampler_posterior_threshold=None, typical_acceptance_sampler_posterior_alpha=None, disable_logprobs_during_spec_decoding=None, model_loader_extra_config=None, ignore_patterns=[], preemption_mode=None, served_model_name=None, qlora_adapter_name_or_path=None, otlp_traces_endpoint=None, collect_detailed_traces=None, engine_use_ray=False, disable_log_requests=False, max_log_len=None, dispatch_function=<function serve at 0x7fcd9af3d120>) INFO 09-03 14:18:41 api_server.py:144] Multiprocessing frontend to use ipc:///tmp/e270bb3c-a67c-40a2-a0bb-1c4d2779abac for RPC Path. INFO 09-03 14:18:41 api_server.py:161] Started engine process with PID 8039 WARNING 09-03 14:18:48 config.py:1563] Casting torch.bfloat16 to torch.float16. WARNING 09-03 14:18:48 arg_utils.py:849] The model has a long context length (131072). This may cause OOM errors during the initial memory profiling phase, or result in low performance due to small KV cache space. Consider setting --max-model-len to a smaller value. INFO 09-03 14:18:48 llm_engine.py:184] Initializing an LLM engine (v0.5.5) with config: model='microsoft/Phi-3.5-mini-instruct', speculative_config=None, tokenizer='microsoft/Phi-3.5-mini-instruct', skip_tokenizer_init=False, tokenizer_mode=auto, revision=None, rope_scaling=None, rope_theta=None, tokenizer_revision=None, trust_remote_code=True, dtype=torch.float16, max_seq_len=131072, download_dir=None, load_format=LoadFormat.AUTO, tensor_parallel_size=1, pipeline_parallel_size=1, disable_custom_all_reduce=False, quantization=None, enforce_eager=False, kv_cache_dtype=auto, quantization_param_path=None, device_config=cuda, decoding_config=DecodingConfig(guided_decoding_backend='outlines'), observability_config=ObservabilityConfig(otlp_traces_endpoint=None, collect_model_forward_time=False, collect_model_execute_time=False), seed=0, served_model_name=microsoft/Phi-3.5-mini-instruct, use_v2_block_manager=False, enable_prefix_caching=False) WARNING 09-03 14:18:49 utils.py:721] Using 'pin_memory=False' as WSL is detected. This may slow down the performance. INFO 09-03 14:18:49 selector.py:217] Cannot use FlashAttention-2 backend for Volta and Turing GPUs. INFO 09-03 14:18:49 selector.py:116] Using XFormers backend. /home/chip/.local/lib/python3.10/site-packages/xformers/ops/fmha/flash.py:211: FutureWarning: torch.library.impl_abstract was renamed to torch.library.register_fake. Please use that instead; we will remove torch.library.impl_abstract in a future version of PyTorch. @torch.library.impl_abstract("xformers_flash::flash_fwd") /home/chip/.local/lib/python3.10/site-packages/xformers/ops/fmha/flash.py:344: FutureWarning: torch.library.impl_abstract was renamed to torch.library.register_fake. Please use that instead; we will remove torch.library.impl_abstract in a future version of PyTorch. @torch.library.impl_abstract("xformers_flash::flash_bwd") INFO 09-03 14:18:51 model_runner.py:879] Starting to load model microsoft/Phi-3.5-mini-instruct... INFO 09-03 14:18:51 selector.py:217] Cannot use FlashAttention-2 backend for Volta and Turing GPUs. INFO 09-03 14:18:51 selector.py:116] Using XFormers backend. INFO 09-03 14:18:52 weight_utils.py:236] Using model weights format ['.safetensors'] Loading safetensors checkpoint shards: 0% Completed | 0/2 [00:00<?, ?it/s] Loading safetensors checkpoint shards: 50% Completed | 1/2 [00:05<00:05, 5.77s/it] Loading safetensors checkpoint shards: 100% Completed | 2/2 [00:08<00:00, 4.02s/it] Loading safetensors checkpoint shards: 100% Completed | 2/2 [00:08<00:00, 4.28s/it]

INFO 09-03 14:19:01 model_runner.py:890] Loading model weights took 7.1659 GB

wiluen commented 3 months ago

if i specific #GPU using

CUDA_VISIBLE_DEVICES=4,5 vllm serve llm/llama/Meta-Llama-3-8B-Instruct --tensor-parallel-size 2

it can run, but i dont know why, my gpus are all not occupied.

DarkLight1337 commented 3 months ago

if i specific #GPU using

CUDA_VISIBLE_DEVICES=4,5 vllm serve llm/llama/Meta-Llama-3-8B-Instruct --tensor-parallel-size 2

it can run, but i dont know why, my gpus are all not occupied.

Maybe it has something to do with your GPU topology (shown in the output of collect_env.py)

DarkLight1337 commented 3 months ago

cc @youkaichao

youkaichao commented 3 months ago

GPU Topology: GPU0 GPU1 GPU2 GPU3 GPU4 GPU5 NIC0 NIC1 CPU Affinity NUMA Affinity GPU NUMA ID GPU0 X PIX PIX PIX SYS SYS SYS SYS 0-15,32-47 0 N/A GPU1 PIX X PIX PIX SYS SYS SYS SYS 0-15,32-47 0 N/A GPU2 PIX PIX X PIX SYS SYS SYS SYS 0-15,32-47 0 N/A GPU3 PIX PIX PIX X SYS SYS SYS SYS 0-15,32-47 0 N/A GPU4 SYS SYS SYS SYS X PIX SYS SYS 16-31,48-63 1 N/A GPU5 SYS SYS SYS SYS PIX X SYS SYS 16-31,48-63 1 N/A NIC0 SYS SYS SYS SYS SYS SYS X PIX NIC1 SYS SYS SYS SYS SYS SYS PIX X

@wiluen your gpus have very complicated topology. you need to contact your admin why this is the case.

and chances are some gpus are broken in the sense of gpu communication.