vllm-project / vllm

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

Does vllm support both CUDA 11.3 version and PyTorch 1.12? #4066

Closed iclgg closed 6 months ago

iclgg commented 6 months ago

Your current environment

The output of `python collect_env.py`
python3 collect_env.py
Collecting environment information...
PyTorch version: 1.12.1+cu113
Is debug build: False
CUDA used to build PyTorch: 11.3
ROCM used to build PyTorch: N/A

OS: Ubuntu 18.04.6 LTS (x86_64)
GCC version: (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0
Clang version: Could not collect
CMake version: Could not collect
Libc version: glibc-2.27

Python version: 3.10.14 (main, Apr 14 2024, 08:51:48) [GCC 7.5.0] (64-bit runtime)
Python platform: Linux-3.10.0-1160.90.1.el7.x86_64-x86_64-with-glibc2.27
Is CUDA available: True
CUDA runtime version: 11.3.109
CUDA_MODULE_LOADING set to:
GPU models and configuration: GPU 0: NVIDIA A100-SXM4-80GB
Nvidia driver version: 525.105.17
cuDNN version: Probably one of the following:
/usr/lib/x86_64-linux-gnu/libcudnn.so.8.2.0
/usr/lib/x86_64-linux-gnu/libcudnn_adv_infer.so.8.2.0
/usr/lib/x86_64-linux-gnu/libcudnn_adv_train.so.8.2.0
/usr/lib/x86_64-linux-gnu/libcudnn_cnn_infer.so.8.2.0
/usr/lib/x86_64-linux-gnu/libcudnn_cnn_train.so.8.2.0
/usr/lib/x86_64-linux-gnu/libcudnn_ops_infer.so.8.2.0
/usr/lib/x86_64-linux-gnu/libcudnn_ops_train.so.8.2.0
/usr/local/cuda-11.3/targets/x86_64-linux/lib/libcudnn.so.8.9.7
/usr/local/cuda-11.3/targets/x86_64-linux/lib/libcudnn_adv_infer.so.8.9.7
/usr/local/cuda-11.3/targets/x86_64-linux/lib/libcudnn_adv_train.so.8.9.7
/usr/local/cuda-11.3/targets/x86_64-linux/lib/libcudnn_cnn_infer.so.8.9.7
/usr/local/cuda-11.3/targets/x86_64-linux/lib/libcudnn_cnn_train.so.8.9.7
/usr/local/cuda-11.3/targets/x86_64-linux/lib/libcudnn_ops_infer.so.8.9.7
/usr/local/cuda-11.3/targets/x86_64-linux/lib/libcudnn_ops_train.so.8.9.7
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
Byte Order:          Little Endian
CPU(s):              72
On-line CPU(s) list: 0-71
Thread(s) per core:  2
Core(s) per socket:  18
Socket(s):           2
NUMA node(s):        2
Vendor ID:           GenuineIntel
CPU family:          6
Model:               85
Model name:          Intel(R) Xeon(R) Gold 6154 CPU @ 3.00GHz
Stepping:            4
CPU MHz:             1199.890
CPU max MHz:         3700.0000
CPU min MHz:         1200.0000
BogoMIPS:            6000.00
Virtualization:      VT-x
L1d cache:           32K
L1i cache:           32K
L2 cache:            1024K
L3 cache:            25344K
NUMA node0 CPU(s):   0-17,36-53
NUMA node1 CPU(s):   18-35,54-71
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 aperfmperf eagerfpu 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 epb cat_l3 cdp_l3 invpcid_single intel_ppin ssbd mba rsb_ctxsw ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm cqm mpx rdt_a avx512f avx512dq rdseed adx smap clflushopt clwb intel_pt avx512cd avx512bw avx512vl xsaveopt xsavec xgetbv1 cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local dtherm ida arat pln pts hwp hwp_act_window hwp_epp hwp_pkg_req pku ospke md_clear spec_ctrl intel_stibp flush_l1d arch_capabilities

Versions of relevant libraries:
[pip3] numpy==1.26.4
[pip3] torch==1.12.1+cu113
[pip3] torchaudio==0.12.1+cu113
[pip3] torchvision==0.13.1+cu113
[conda] Could not collectROCM Version: Could not collect
Neuron SDK Version: N/A
vLLM Version: N/A
vLLM Build Flags:
CUDA Archs: Not Set; ROCm: Disabled; Neuron: Disabled
GPU Topology:
GPU0    CPU Affinity    NUMA Affinity
GPU0     X      18-35,54-71     1

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 you are installing vllm

CUDACXX=/usr/local/cuda-11/bin/nvcc pip3 install -e  .
Output:
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Obtaining file:///workspace/vllm
  Installing build dependencies ... done
  Checking if build backend supports build_editable ... done
  Getting requirements to build editable ... done
  Preparing editable metadata (pyproject.toml) ... done
Collecting cmake>=3.21 (from vllm==0.4.0.post1+cu113)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/be/2e/8f8daa34e6d743816f852c752da544c34ead6b4fbbdf547519430bdba590/cmake-3.29.2-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (26.7 MB)
......
Collecting exceptiongroup>=1.0.2 (from anyio<5,>=3.4.0->starlette<0.38.0,>=0.37.2->fastapi->vllm==0.4.0.post1+cu113)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/b8/9a/5028fd52db10e600f1c4674441b968cf2ea4959085bfb5b99fb1250e5f68/exceptiongroup-1.2.0-py3-none-any.whl (16 kB)
Building wheels for collected packages: vllm
  Building editable for vllm (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building editable for vllm (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [5321 lines of output]
      /tmp/pip-build-env-ydewg39l/overlay/lib/python3.10/site-packages/torch/nn/modules/transformer.py:20: UserWarning: Failed to initialize NumPy: No module named 'numpy' (Triggered internally at ../torch/csrc/utils/tensor_numpy.cpp:84.)
        device: torch.device = torch.device(torch._C._get_default_device()),  # torch.device('cpu'),
      running editable_wheel
      creating /tmp/pip-wheel-1owf_9s_/.tmp-lsswmwhe/vllm.egg-info
      writing /tmp/pip-wheel-1owf_9s_/.tmp-lsswmwhe/vllm.egg-info/PKG-INFO
      writing dependency_links to /tmp/pip-wheel-1owf_9s_/.tmp-lsswmwhe/vllm.egg-info/dependency_links.txt
      writing requirements to /tmp/pip-wheel-1owf_9s_/.tmp-lsswmwhe/vllm.egg-info/requires.txt
      writing top-level names to /tmp/pip-wheel-1owf_9s_/.tmp-lsswmwhe/vllm.egg-info/top_level.txt
      writing manifest file '/tmp/pip-wheel-1owf_9s_/.tmp-lsswmwhe/vllm.egg-info/SOURCES.txt'
      reading manifest file '/tmp/pip-wheel-1owf_9s_/.tmp-lsswmwhe/vllm.egg-info/SOURCES.txt'
      reading manifest template 'MANIFEST.in'
      adding license file 'LICENSE'
      writing manifest file '/tmp/pip-wheel-1owf_9s_/.tmp-lsswmwhe/vllm.egg-info/SOURCES.txt'
      creating '/tmp/pip-wheel-1owf_9s_/.tmp-lsswmwhe/vllm-0.4.0.post1+cu113.dist-info'
      creating /tmp/pip-wheel-1owf_9s_/.tmp-lsswmwhe/vllm-0.4.0.post1+cu113.dist-info/WHEEL
      running build_py
      running build_ext
      -- The CXX compiler identification is GNU 7.5.0
      -- Detecting CXX compiler ABI info
      -- Detecting CXX compiler ABI info - done
      -- Check for working CXX compiler: /usr/bin/c++ - skipped
      -- Detecting CXX compile features
      -- Detecting CXX compile features - done
      -- Build type: RelWithDebInfo
      -- Target device: cuda
      -- Found Python: /usr/local/bin/python3 (found version "3.10.14") found components: Interpreter Development.Module
      -- Found python matching: /usr/local/bin/python3.
      -- Found CUDA: /usr/local/cuda (found version "11.3")
      -- The CUDA compiler identification is NVIDIA 11.3.109
      -- Detecting CUDA compiler ABI info
      -- Detecting CUDA compiler ABI info - done
      -- Check for working CUDA compiler: /usr/local/cuda/bin/nvcc - skipped
      -- Detecting CUDA compile features
      -- Detecting CUDA compile features - done
      -- Found CUDAToolkit: /usr/local/cuda/include (found version "11.3.109")
      -- Performing Test CMAKE_HAVE_LIBC_PTHREAD
      -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
      -- Looking for pthread_create in pthreads
      -- Looking for pthread_create in pthreads - not found
      -- Looking for pthread_create in pthread
      -- Looking for pthread_create in pthread - found
      -- Found Threads: TRUE
      -- Caffe2: CUDA detected: 11.3
      -- Caffe2: CUDA nvcc is: /usr/local/cuda/bin/nvcc
      -- Caffe2: CUDA toolkit directory: /usr/local/cuda
      -- Caffe2: Header version is: 11.3
      CMake Warning at /tmp/pip-build-env-ydewg39l/overlay/lib/python3.10/site-packages/torch/share/cmake/Caffe2/public/cuda.cmake:184 (message):
        Failed to compute shorthash for libnvrtc.so
      Call Stack (most recent call first):
        /tmp/pip-build-env-ydewg39l/overlay/lib/python3.10/site-packages/torch/share/cmake/Caffe2/Caffe2Config.cmake:87 (include)
        /tmp/pip-build-env-ydewg39l/overlay/lib/python3.10/site-packages/torch/share/cmake/Torch/TorchConfig.cmake:68 (find_package)
        CMakeLists.txt:67 (find_package)

      -- USE_CUDNN is set to 0. Compiling without cuDNN support
      -- USE_CUSPARSELT is set to 0. Compiling without cuSPARSELt support
      -- Autodetected CUDA architecture(s):  8.0
      -- Added CUDA NVCC flags for: -gencode;arch=compute_80,code=sm_80
      CMake Warning at /tmp/pip-build-env-ydewg39l/overlay/lib/python3.10/site-packages/torch/share/cmake/Torch/TorchConfig.cmake:22 (message):
        static library kineto_LIBRARY-NOTFOUND not found.
      Call Stack (most recent call first):
        /tmp/pip-build-env-ydewg39l/overlay/lib/python3.10/site-packages/torch/share/cmake/Torch/TorchConfig.cmake:127 (append_torchlib_if_found)
        CMakeLists.txt:67 (find_package)

      -- Found Torch: /tmp/pip-build-env-ydewg39l/overlay/lib/python3.10/site-packages/torch/lib/libtorch.so
      -- CUDA supported arches: 7.0;7.5;8.0;8.6;8.9;9.0
      -- CUDA target arches: 80-real
      -- Punica target arches: 80-real
      -- Enabling C extension.
      -- Enabling moe extension.
      -- Configuring done (8.9s)
      -- Generating done (0.0s)
      -- Build files have been written to: /tmp/tmpnb2bhgvx.build-temp
      [1/3] Building CXX object CMakeFiles/_moe_C.dir/csrc/moe/moe_ops.cpp.o
      [2/3] Building CUDA object CMakeFiles/_moe_C.dir/csrc/moe/topk_softmax_kernels.cu.o
      [3/3] Linking CXX shared module /tmp/tmp_xb3ao0q.build-lib/vllm/_moe_C.cpython-310-x86_64-linux-gnu.so
      [1/14] Building CUDA object CMakeFiles/_C.dir/csrc/cuda_utils_kernels.cu.o
      [2/14] Building CXX object CMakeFiles/_C.dir/csrc/pybind.cpp.o
      [3/14] Building CUDA object CMakeFiles/_C.dir/csrc/quantization/marlin/marlin_cuda_kernel.cu.o
      FAILED: CMakeFiles/_C.dir/csrc/quantization/marlin/marlin_cuda_kernel.cu.o
      /usr/local/cuda/bin/nvcc -forward-unknown-to-host-compiler -DTORCH_EXTENSION_NAME=_C -DUSE_C10D_GLOO -DUSE_C10D_NCCL -DUSE_DISTRIBUTED -DUSE_RPC -DUSE_TENSORPIPE -D_C_EXPORTS -I/workspace/vllm/csrc -isystem /usr/local/include/python3.10 -isystem /tmp/pip-build-env-ydewg39l/overlay/lib/python3.10/site-packages/torch/include -isystem /tmp/pip-build-env-ydewg39l/overlay/lib/python3.10/site-packages/torch/include/torch/csrc/api/include -isystem /usr/local/cuda/include -DONNX_NAMESPACE=onnx_c2 -Xcudafe --diag_suppress=cc_clobber_ignored,--diag_suppress=field_without_dll_interface,--diag_suppress=base_class_has_different_dll_interface,--diag_suppress=dll_interface_conflict_none_assumed,--diag_suppress=dll_interface_conflict_dllexport_assumed,--diag_suppress=bad_friend_decl --expt-relaxed-constexpr --expt-extended-lambda -O2 -g -DNDEBUG -std=c++17 "--generate-code=arch=compute_80,code=[sm_80]" -Xcompiler=-fPIC -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --threads=1 -D_GLIBCXX_USE_CXX11_ABI=0 -MD -MT CMakeFiles/_C.dir/csrc/quantization/marlin/marlin_cuda_kernel.cu.o -MF CMakeFiles/_C.dir/csrc/quantization/marlin/marlin_cuda_kernel.cu.o.d -x cu -c /workspace/vllm/csrc/quantization/marlin/marlin_cuda_kernel.cu -o CMakeFiles/_C.dir/csrc/quantization/marlin/marlin_cuda_kernel.cu.o
      /workspace/vllm/csrc/quantization/marlin/marlin_cuda_kernel.cu(455): warning: right operand of "%" is zero
                detected during instantiation of "void marlin::Marlin<threads,thread_m_blocks,thread_n_blocks,thread_k_blocks,stages,group_blocks>(const int4 *, const int4 *, int4 *, const int4 *, int, int, int, int *) [with threads=256, thread_m_blocks=1, thread_n_blocks=8, thread_k_blocks=8, stages=4, group_blocks=-1]"
      (1033): here
......
      /workspace/vllm/csrc/quantization/marlin/marlin_cuda_kernel.cu(487): warning: division by zero
                detected during instantiation of "void marlin::Marlin<threads,thread_m_blocks,thread_n_blocks,thread_k_blocks,stages,group_blocks>(const int4 *, const int4 *, int4 *, const int4 *, int, int, int, int *) [with threads=128, thread_m_blocks=4, thread_n_blocks=4, thread_k_blocks=8, stages=4, group_blocks=-1]"
      (1036): here

      ptxas /tmp/tmpxft_00000ba5_00000000-6_marlin_cuda_kernel.ptx, line 215; error   : Unknown modifier '.fractional'
      ptxas /tmp/tmpxft_00000ba5_00000000-6_marlin_cuda_kernel.ptx, line 215; fatal   : Parsing error near ':': syntax error
      ptxas fatal   : Ptx assembly aborted due to errors
      [4/14] Building CUDA object CMakeFiles/_C.dir/csrc/layernorm_kernels.cu.o
      [5/14] Building CUDA object CMakeFiles/_C.dir/csrc/quantization/squeezellm/quant_cuda_kernel.cu.o
      /workspace/vllm/csrc/quantization/squeezellm/quant_cuda_kernel.cu: In function ‘void squeezellm_gemm(at::Tensor, at::Tensor, at::Tensor, at::Tensor)’:
      /workspace/vllm/csrc/quantization/squeezellm/quant_cuda_kernel.cu:206:137: warning: ‘T* at::Tensor::data() const [with T = c10::Half]’ is deprecated: Tensor.data<T>() is deprecated. Please use Tensor.data_ptr<T>() instead. [-Wdeprecated-declarations]
         vllm::squeezellm::NUQ4MatMulKernel<<<blocks, threads, 0, stream>>>(
                                                                                                                                               ^
      /tmp/pip-build-env-ydewg39l/overlay/lib/python3.10/site-packages/torch/include/ATen/core/TensorBody.h:247:1: note: declared here
         T * data() const {
       ^ ~~
      /workspace/vllm/csrc/quantization/squeezellm/quant_cuda_kernel.cu:206:194: warning: ‘T* at::Tensor::data() const [with T = c10::Half]’ is deprecated: Tensor.data<T>() is deprecated. Please use Tensor.data_ptr<T>() instead. [-Wdeprecated-declarations]
         vllm::squeezellm::NUQ4MatMulKernel<<<blocks, threads, 0, stream>>>(
                                                                                                                                                                                                        ^
      /tmp/pip-build-env-ydewg39l/overlay/lib/python3.10/site-packages/torch/include/ATen/core/TensorBody.h:247:1: note: declared here
         T * data() const {
       ^ ~~
      /workspace/vllm/csrc/quantization/squeezellm/quant_cuda_kernel.cu:206:238: warning: ‘T* at::Tensor::data() const [with T = c10::Half]’ is deprecated: Tensor.data<T>() is deprecated. Please use Tensor.data_ptr<T>() instead. [-Wdeprecated-declarations]
         vllm::squeezellm::NUQ4MatMulKernel<<<blocks, threads, 0, stream>>>(
                                                                                                                                                                                                                                                    ^
      /tmp/pip-build-env-ydewg39l/overlay/lib/python3.10/site-packages/torch/include/ATen/core/TensorBody.h:247:1: note: declared here
         T * data() const {
       ^ ~~
      [6/14] Building CUDA object CMakeFiles/_C.dir/csrc/moe_align_block_size_kernels.cu.o
      [7/14] Building CUDA object CMakeFiles/_C.dir/csrc/activation_kernels.cu.o
      [8/14] Building CUDA object CMakeFiles/_C.dir/csrc/pos_encoding_kernels.cu.o
      [9/14] Building CUDA object CMakeFiles/_C.dir/csrc/custom_all_reduce.cu.o
      /workspace/vllm/csrc/custom_all_reduce.cuh(110): warning: missing return statement at end of non-void function "vllm::upcast(vllm::array_t<T, N>) [with T=half, N=8]"
                detected during:
                  instantiation of "vllm::array_t<float, N> vllm::upcast(vllm::array_t<T, N>) [with T=half, N=8]"
      (173): here
                  instantiation of "P vllm::packed_reduce<P,ngpus,A>(const P **, int) [with P=vllm::array_t<half, 8>, ngpus=2, A=vllm::array_t<float, 8>]"
      (196): here
                  instantiation of "void vllm::cross_device_reduce_1stage<T,ngpus>(vllm::RankData *, vllm::RankSignals, volatile vllm::Signal *, T *, int, int) [with T=half, ngpus=2]"
      (459): here
                  instantiation of "void vllm::CustomAllreduce::allreduce(cudaStream_t, T *, T *, int, int, int) [with T=half]"
      /workspace/vllm/csrc/custom_all_reduce.cu(82): here

      /workspace/vllm/csrc/custom_all_reduce.cuh(124): warning: missing return statement at end of non-void function "vllm::downcast(vllm::array_t<float, O::size>) [with O=vllm::array_t<half, 8>]"
                detected during:
                  instantiation of "O vllm::downcast(vllm::array_t<float, O::size>) [with O=vllm::array_t<half, 8>]"
      (178): here
                  instantiation of "P vllm::packed_reduce<P,ngpus,A>(const P **, int) [with P=vllm::array_t<half, 8>, ngpus=2, A=vllm::array_t<float, 8>]"
      (196): here
                  instantiation of "void vllm::cross_device_reduce_1stage<T,ngpus>(vllm::RankData *, vllm::RankSignals, volatile vllm::Signal *, T *, int, int) [with T=half, ngpus=2]"
      (459): here
                  instantiation of "void vllm::CustomAllreduce::allreduce(cudaStream_t, T *, T *, int, int, int) [with T=half]"
      /workspace/vllm/csrc/custom_all_reduce.cu(82): here

      /workspace/vllm/csrc/custom_all_reduce.cuh(110): warning: missing return statement at end of non-void function "vllm::upcast(vllm::array_t<T, N>) [with T=nv_bfloat16, N=8]"
                detected during:
                  instantiation of "vllm::array_t<float, N> vllm::upcast(vllm::array_t<T, N>) [with T=nv_bfloat16, N=8]"
      (173): here
                  instantiation of "P vllm::packed_reduce<P,ngpus,A>(const P **, int) [with P=vllm::array_t<nv_bfloat16, 8>, ngpus=2, A=vllm::array_t<float, 8>]"
      (196): here
                  instantiation of "void vllm::cross_device_reduce_1stage<T,ngpus>(vllm::RankData *, vllm::RankSignals, volatile vllm::Signal *, T *, int, int) [with T=nv_bfloat16, ngpus=2]"
      (459): here
                  instantiation of "void vllm::CustomAllreduce::allreduce(cudaStream_t, T *, T *, int, int, int) [with T=nv_bfloat16]"
      /workspace/vllm/csrc/custom_all_reduce.cu(89): here

      /workspace/vllm/csrc/custom_all_reduce.cuh(124): warning: missing return statement at end of non-void function "vllm::downcast(vllm::array_t<float, O::size>) [with O=vllm::array_t<nv_bfloat16, 8>]"
                detected during:
                  instantiation of "O vllm::downcast(vllm::array_t<float, O::size>) [with O=vllm::array_t<nv_bfloat16, 8>]"
      (178): here
                  instantiation of "P vllm::packed_reduce<P,ngpus,A>(const P **, int) [with P=vllm::array_t<nv_bfloat16, 8>, ngpus=2, A=vllm::array_t<float, 8>]"
      (196): here
                  instantiation of "void vllm::cross_device_reduce_1stage<T,ngpus>(vllm::RankData *, vllm::RankSignals, volatile vllm::Signal *, T *, int, int) [with T=nv_bfloat16, ngpus=2]"
      (459): here
                  instantiation of "void vllm::CustomAllreduce::allreduce(cudaStream_t, T *, T *, int, int, int) [with T=nv_bfloat16]"
      /workspace/vllm/csrc/custom_all_reduce.cu(89): here

      [10/14] Building CUDA object CMakeFiles/_C.dir/csrc/cache_kernels.cu.o
      /workspace/vllm/csrc/cache_kernels.cu(190): warning: variable "tgt_key_idx" was declared but never referenced
                detected during instantiation of "void vllm::reshape_and_cache_kernel<scalar_t,cache_t,is_fp8_kv_cache>(const scalar_t *, const scalar_t *, cache_t *, cache_t *, const int64_t *, int, int, int, int, int, int, float) [with scalar_t=float, cache_t=uint8_t, is_fp8_kv_cache=true]"
      (267): here

      /workspace/vllm/csrc/cache_kernels.cu(195): warning: variable "tgt_value_idx" was declared but never referenced
                detected during instantiation of "void vllm::reshape_and_cache_kernel<scalar_t,cache_t,is_fp8_kv_cache>(const scalar_t *, const scalar_t *, cache_t *, cache_t *, const int64_t *, int, int, int, int, int, int, float) [with scalar_t=float, cache_t=uint8_t, is_fp8_kv_cache=true]"
      (267): here

      /workspace/vllm/csrc/cache_kernels.cu(199): warning: variable "tgt_key" was declared but never referenced
                detected during instantiation of "void vllm::reshape_and_cache_kernel<scalar_t,cache_t,is_fp8_kv_cache>(const scalar_t *, const scalar_t *, cache_t *, cache_t *, const int64_t *, int, int, int, int, int, int, float) [with scalar_t=float, cache_t=uint8_t, is_fp8_kv_cache=true]"
      (267): here

      /workspace/vllm/csrc/cache_kernels.cu(200): warning: variable "tgt_value" was declared but never referenced
                detected during instantiation of "void vllm::reshape_and_cache_kernel<scalar_t,cache_t,is_fp8_kv_cache>(const scalar_t *, const scalar_t *, cache_t *, cache_t *, const int64_t *, int, int, int, int, int, int, float) [with scalar_t=float, cache_t=uint8_t, is_fp8_kv_cache=true]"
      (267): here

      /workspace/vllm/csrc/cache_kernels.cu(190): warning: variable "tgt_key_idx" was declared but never referenced
                detected during instantiation of "void vllm::reshape_and_cache_kernel<scalar_t,cache_t,is_fp8_kv_cache>(const scalar_t *, const scalar_t *, cache_t *, cache_t *, const int64_t *, int, int, int, int, int, int, float) [with scalar_t=uint16_t, cache_t=uint8_t, is_fp8_kv_cache=true]"
      (269): here

      /workspace/vllm/csrc/cache_kernels.cu(195): warning: variable "tgt_value_idx" was declared but never referenced
                detected during instantiation of "void vllm::reshape_and_cache_kernel<scalar_t,cache_t,is_fp8_kv_cache>(const scalar_t *, const scalar_t *, cache_t *, cache_t *, const int64_t *, int, int, int, int, int, int, float) [with scalar_t=uint16_t, cache_t=uint8_t, is_fp8_kv_cache=true]"
      (269): here

      /workspace/vllm/csrc/cache_kernels.cu(199): warning: variable "tgt_key" was declared but never referenced
                detected during instantiation of "void vllm::reshape_and_cache_kernel<scalar_t,cache_t,is_fp8_kv_cache>(const scalar_t *, const scalar_t *, cache_t *, cache_t *, const int64_t *, int, int, int, int, int, int, float) [with scalar_t=uint16_t, cache_t=uint8_t, is_fp8_kv_cache=true]"
      (269): here

      /workspace/vllm/csrc/cache_kernels.cu(200): warning: variable "tgt_value" was declared but never referenced
                detected during instantiation of "void vllm::reshape_and_cache_kernel<scalar_t,cache_t,is_fp8_kv_cache>(const scalar_t *, const scalar_t *, cache_t *, cache_t *, const int64_t *, int, int, int, int, int, int, float) [with scalar_t=uint16_t, cache_t=uint8_t, is_fp8_kv_cache=true]"
      (269): here

      /workspace/vllm/csrc/cache_kernels.cu(190): warning: variable "tgt_key_idx" was declared but never referenced
                detected during instantiation of "void vllm::reshape_and_cache_kernel<scalar_t,cache_t,is_fp8_kv_cache>(const scalar_t *, const scalar_t *, cache_t *, cache_t *, const int64_t *, int, int, int, int, int, int, float) [with scalar_t=__nv_bfloat16, cache_t=uint8_t, is_fp8_kv_cache=true]"
      (271): here

      /workspace/vllm/csrc/cache_kernels.cu(195): warning: variable "tgt_value_idx" was declared but never referenced
                detected during instantiation of "void vllm::reshape_and_cache_kernel<scalar_t,cache_t,is_fp8_kv_cache>(const scalar_t *, const scalar_t *, cache_t *, cache_t *, const int64_t *, int, int, int, int, int, int, float) [with scalar_t=__nv_bfloat16, cache_t=uint8_t, is_fp8_kv_cache=true]"
      (271): here

      /workspace/vllm/csrc/cache_kernels.cu(199): warning: variable "tgt_key" was declared but never referenced
                detected during instantiation of "void vllm::reshape_and_cache_kernel<scalar_t,cache_t,is_fp8_kv_cache>(const scalar_t *, const scalar_t *, cache_t *, cache_t *, const int64_t *, int, int, int, int, int, int, float) [with scalar_t=__nv_bfloat16, cache_t=uint8_t, is_fp8_kv_cache=true]"
      (271): here

      /workspace/vllm/csrc/cache_kernels.cu(200): warning: variable "tgt_value" was declared but never referenced
                detected during instantiation of "void vllm::reshape_and_cache_kernel<scalar_t,cache_t,is_fp8_kv_cache>(const scalar_t *, const scalar_t *, cache_t *, cache_t *, const int64_t *, int, int, int, int, int, int, float) [with scalar_t=__nv_bfloat16, cache_t=uint8_t, is_fp8_kv_cache=true]"
      (271): here

      /workspace/vllm/csrc/cache_kernels.cu(287): warning: variable "idx" was declared but never referenced

      [11/14] Building CUDA object CMakeFiles/_C.dir/csrc/quantization/awq/gemm_kernels.cu.o
      /workspace/vllm/csrc/quantization/awq/gemm_kernels.cu(282): warning: variable "j_factors1" was declared but never referenced

      /workspace/vllm/csrc/quantization/awq/gemm_kernels.cu(283): warning: variable "row_stride2" was declared but never referenced

      /workspace/vllm/csrc/quantization/awq/gemm_kernels.cu(284): warning: variable "split_k_iters" was declared but never referenced

      /workspace/vllm/csrc/quantization/awq/gemm_kernels.cu(290): warning: variable "B_shared_warp" was declared but never referenced

      /workspace/vllm/csrc/quantization/awq/gemm_kernels.cu(291): warning: variable "OC" was declared but never referenced

      /workspace/vllm/csrc/quantization/awq/gemm_kernels.cu(53): warning: variable "scaling_factors_shared" was declared but never referenced

      /workspace/vllm/csrc/quantization/awq/gemm_kernels.cu(54): warning: variable "zeros_shared" was declared but never referenced

      /workspace/vllm/csrc/quantization/awq/gemm_kernels.cu(57): warning: variable "blockIdx_x" was declared but never referenced

      /workspace/vllm/csrc/quantization/awq/gemm_kernels.cu(71): warning: variable "ld_zero_flag" was declared but never referenced

      /workspace/vllm/csrc/quantization/awq/gemm_kernels.cu(24): warning: function "vllm::awq::__pack_half2" was declared but never referenced

      [12/14] Building CUDA object CMakeFiles/_C.dir/csrc/quantization/gptq/q_gemm.cu.o
      [13/14] Building CUDA object CMakeFiles/_C.dir/csrc/attention/attention_kernels.cu.o
      /workspace/vllm/csrc/attention/attention_kernels.cu(654): warning: variable "thread_group_size" was declared but never referenced

      /workspace/vllm/csrc/attention/attention_kernels.cu(220): warning: variable "k_ptr" was declared but never referenced
                detected during:
                  instantiation of "void vllm::paged_attention_kernel<scalar_t,cache_t,HEAD_SIZE,BLOCK_SIZE,NUM_THREADS,IS_FP8_KV_CACHE,PARTITION_SIZE>(float *, float *, scalar_t *, const scalar_t *, const cache_t *, const cache_t *, int, float, const int *, const int *, int, const float *, int, int, int, float) [with scalar_t=float, cache_t=uint8_t, HEAD_SIZE=64, BLOCK_SIZE=8, NUM_THREADS=128, IS_FP8_KV_CACHE=true, PARTITION_SIZE=0]"
      (470): here
                  instantiation of "void vllm::paged_attention_v1_kernel<scalar_t,cache_t,HEAD_SIZE,BLOCK_SIZE,NUM_THREADS,IS_FP8_KV_CACHE>(scalar_t *, const scalar_t *, const cache_t *, const cache_t *, int, float, const int *, const int *, int, const float *, int, int, int, float) [with scalar_t=float, cache_t=uint8_t, HEAD_SIZE=64, BLOCK_SIZE=8, NUM_THREADS=128, IS_FP8_KV_CACHE=true]"
      (686): here
                  instantiation of "void paged_attention_v1_launcher<T,CACHE_T,BLOCK_SIZE,IS_FP8_KV_CACHE,NUM_THREADS>(at::Tensor &, at::Tensor &, at::Tensor &, at::Tensor &, int, float, at::Tensor &, at::Tensor &, int, const std::optional<at::Tensor> &, float) [with T=float, CACHE_T=uint8_t, BLOCK_SIZE=8, IS_FP8_KV_CACHE=true, NUM_THREADS=128]"
      (767): here

      /workspace/vllm/csrc/attention/attention_kernels.cu(224): warning: variable "offset1" was declared but never referenced
                detected during:
                  instantiation of "void vllm::paged_attention_kernel<scalar_t,cache_t,HEAD_SIZE,BLOCK_SIZE,NUM_THREADS,IS_FP8_KV_CACHE,PARTITION_SIZE>(float *, float *, scalar_t *, const scalar_t *, const cache_t *, const cache_t *, int, float, const int *, const int *, int, const float *, int, int, int, float) [with scalar_t=float, cache_t=uint8_t, HEAD_SIZE=64, BLOCK_SIZE=8, NUM_THREADS=128, IS_FP8_KV_CACHE=true, PARTITION_SIZE=0]"
      (470): here
                  instantiation of "void vllm::paged_attention_v1_kernel<scalar_t,cache_t,HEAD_SIZE,BLOCK_SIZE,NUM_THREADS,IS_FP8_KV_CACHE>(scalar_t *, const scalar_t *, const cache_t *, const cache_t *, int, float, const int *, const int *, int, const float *, int, int, int, float) [with scalar_t=float, cache_t=uint8_t, HEAD_SIZE=64, BLOCK_SIZE=8, NUM_THREADS=128, IS_FP8_KV_CACHE=true]"
      (686): here
                  instantiation of "void paged_attention_v1_launcher<T,CACHE_T,BLOCK_SIZE,IS_FP8_KV_CACHE,NUM_THREADS>(at::Tensor &, at::Tensor &, at::Tensor &, at::Tensor &, int, float, at::Tensor &, at::Tensor &, int, const std::optional<at::Tensor> &, float) [with T=float, CACHE_T=uint8_t, BLOCK_SIZE=8, IS_FP8_KV_CACHE=true, NUM_THREADS=128]"
      (767): here
......
                  instantiation of "void paged_attention_v2_launcher<T,CACHE_T,BLOCK_SIZE,IS_FP8_KV_CACHE,NUM_THREADS,PARTITION_SIZE>(at::Tensor &, at::Tensor &, at::Tensor &, at::Tensor &, at::Tensor &, at::Tensor &, at::Tensor &, int, float, at::Tensor &, at::Tensor &, int, const std::optional<at::Tensor> &, float) [with T=__nv_bfloat16, CACHE_T=uint8_t, BLOCK_SIZE=32, IS_FP8_KV_CACHE=true, NUM_THREADS=128, PARTITION_SIZE=512]"
      (968): here

      ninja: build stopped: subcommand failed.
      Traceback (most recent call last):
        File "/tmp/pip-build-env-ydewg39l/overlay/lib/python3.10/site-packages/setuptools/command/editable_wheel.py", line 155, in run
          self._create_wheel_file(bdist_wheel)
        File "/tmp/pip-build-env-ydewg39l/overlay/lib/python3.10/site-packages/setuptools/command/editable_wheel.py", line 357, in _create_wheel_file
          files, mapping = self._run_build_commands(dist_name, unpacked, lib, tmp)
        File "/tmp/pip-build-env-ydewg39l/overlay/lib/python3.10/site-packages/setuptools/command/editable_wheel.py", line 280, in _run_build_commands
          self._run_build_subcommands()
        File "/tmp/pip-build-env-ydewg39l/overlay/lib/python3.10/site-packages/setuptools/command/editable_wheel.py", line 307, in _run_build_subcommands
          self.run_command(name)
        File "/tmp/pip-build-env-ydewg39l/overlay/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 316, in run_command
          self.distribution.run_command(command)
        File "/tmp/pip-build-env-ydewg39l/overlay/lib/python3.10/site-packages/setuptools/dist.py", line 967, in run_command
          super().run_command(command)
        File "/tmp/pip-build-env-ydewg39l/overlay/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
          cmd_obj.run()
        File "/tmp/pip-build-env-ydewg39l/overlay/lib/python3.10/site-packages/setuptools/command/build_ext.py", line 91, in run
          _build_ext.run(self)
        File "/tmp/pip-build-env-ydewg39l/overlay/lib/python3.10/site-packages/setuptools/_distutils/command/build_ext.py", line 359, in run
          self.build_extensions()
        File "<string>", line 187, in build_extensions
        File "/usr/local/lib/python3.10/subprocess.py", line 369, in check_call
          raise CalledProcessError(retcode, cmd)
      subprocess.CalledProcessError: Command '['cmake', '--build', '.', '--target', '_C', '-j', '72']' returned non-zero exit status 1.
      /tmp/pip-build-env-ydewg39l/overlay/lib/python3.10/site-packages/setuptools/_distutils/dist.py:988: _DebuggingTips: Problem in editable installation.
      !!

              ********************************************************************************
              An error happened while installing `vllm` in editable mode.

              The following steps are recommended to help debug this problem:

              - Try to install the project normally, without using the editable mode.
                Does the error still persist?
                (If it does, try fixing the problem before attempting the editable mode).
              - If you are using binary extensions, make sure you have all OS-level
                dependencies installed (e.g. compilers, toolchains, binary libraries, ...).
              - Try the latest version of setuptools (maybe the error was already fixed).
              - If you (or your project dependencies) are using any setuptools extension
                or customization, make sure they support the editable mode.

              After following the steps above, if the problem still persists and
              you think this is related to how setuptools handles editable installations,
              please submit a reproducible example
              (see https://stackoverflow.com/help/minimal-reproducible-example) to:

                  https://github.com/pypa/setuptools/issues

              See https://setuptools.pypa.io/en/latest/userguide/development_mode.html for details.
              ********************************************************************************

      !!
        cmd_obj.run()
      Traceback (most recent call last):
        File "/usr/local/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
          main()
        File "/usr/local/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
        File "/usr/local/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 273, in build_editable
          return hook(wheel_directory, config_settings, metadata_directory)
        File "/tmp/pip-build-env-ydewg39l/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 443, in build_editable
          return self._build_with_temp_dir(
        File "/tmp/pip-build-env-ydewg39l/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 395, in _build_with_temp_dir
          self.run_setup()
        File "/tmp/pip-build-env-ydewg39l/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 311, in run_setup
          exec(code, locals())
        File "<string>", line 380, in <module>
        File "/tmp/pip-build-env-ydewg39l/overlay/lib/python3.10/site-packages/setuptools/__init__.py", line 104, in setup
          return distutils.core.setup(**attrs)
        File "/tmp/pip-build-env-ydewg39l/overlay/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 184, in setup
          return run_commands(dist)
        File "/tmp/pip-build-env-ydewg39l/overlay/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 200, in run_commands
          dist.run_commands()
        File "/tmp/pip-build-env-ydewg39l/overlay/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
          self.run_command(cmd)
        File "/tmp/pip-build-env-ydewg39l/overlay/lib/python3.10/site-packages/setuptools/dist.py", line 967, in run_command
          super().run_command(command)
        File "/tmp/pip-build-env-ydewg39l/overlay/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
          cmd_obj.run()
        File "/tmp/pip-build-env-ydewg39l/overlay/lib/python3.10/site-packages/setuptools/command/editable_wheel.py", line 155, in run
          self._create_wheel_file(bdist_wheel)
        File "/tmp/pip-build-env-ydewg39l/overlay/lib/python3.10/site-packages/setuptools/command/editable_wheel.py", line 357, in _create_wheel_file
          files, mapping = self._run_build_commands(dist_name, unpacked, lib, tmp)
        File "/tmp/pip-build-env-ydewg39l/overlay/lib/python3.10/site-packages/setuptools/command/editable_wheel.py", line 280, in _run_build_commands
          self._run_build_subcommands()
        File "/tmp/pip-build-env-ydewg39l/overlay/lib/python3.10/site-packages/setuptools/command/editable_wheel.py", line 307, in _run_build_subcommands
          self.run_command(name)
        File "/tmp/pip-build-env-ydewg39l/overlay/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 316, in run_command
          self.distribution.run_command(command)
        File "/tmp/pip-build-env-ydewg39l/overlay/lib/python3.10/site-packages/setuptools/dist.py", line 967, in run_command
          super().run_command(command)
        File "/tmp/pip-build-env-ydewg39l/overlay/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
          cmd_obj.run()
        File "/tmp/pip-build-env-ydewg39l/overlay/lib/python3.10/site-packages/setuptools/command/build_ext.py", line 91, in run
          _build_ext.run(self)
        File "/tmp/pip-build-env-ydewg39l/overlay/lib/python3.10/site-packages/setuptools/_distutils/command/build_ext.py", line 359, in run
          self.build_extensions()
        File "<string>", line 187, in build_extensions
        File "/usr/local/lib/python3.10/subprocess.py", line 369, in check_call
          raise CalledProcessError(retcode, cmd)
      subprocess.CalledProcessError: Command '['cmake', '--build', '.', '--target', '_C', '-j', '72']' returned non-zero exit status 1.
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building editable for vllm
Failed to build vllm
ERROR: Could not build wheels for vllm, which is required to install pyproject.toml-based projects

I have used ... to omit many similar output messages.

cuda and nvcc:

nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2021 NVIDIA Corporation
Built on Mon_May__3_19:15:13_PDT_2021
Cuda compilation tools, release 11.3, V11.3.109
Build cuda_11.3.r11.3/compiler.29920130_0
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 525.105.17   Driver Version: 525.105.17   CUDA Version: 12.0     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  NVIDIA A100-SXM...  Off  | 00000000:AF:00.0 Off |                    0 |
| N/A   32C    P0    42W / 400W |  48770MiB / 81920MiB |      0%      Default |
|                               |                      |             Disabled |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
+-----------------------------------------------------------------------------+
youkaichao commented 6 months ago
  ptxas /tmp/tmpxft_00000ba5_00000000-6_marlin_cuda_kernel.ptx, line 215; error   : Unknown modifier '.fractional'
 ptxas /tmp/tmpxft_00000ba5_00000000-6_marlin_cuda_kernel.ptx, line 215; fatal   : Parsing error near ':': syntax error
 ptxas fatal   : Ptx assembly aborted due to errors

Your cuda and nvcc version is too old. Please follow and read https://docs.vllm.ai/en/latest/getting_started/installation.html .

skywindy commented 3 months ago

my computer can only max support cu113 + torch1.12.1, so how can i install vllm

youkaichao commented 3 months ago

You can reach out to your admin to upgrade driver and cuda version.