[Installation]: build on arm64 meet a error
Your current environment
The output of `python collect_env.py`
(pytorch_gpu) ➜ vllm git:(main) ✗ python collect_env.py
Collecting environment information...
WARNING 11-03 12:55:08 _custom_ops.py:19] Failed to import from vllm._C with ModuleNotFoundError("No module named 'vllm._C'")
INFO 11-03 12:55:08 importing.py:15] Triton not installed or not compatible; certain GPU-related functions will not be available.
PyTorch version: 2.6.0.dev20241101+cu124
Is debug build: False
CUDA used to build PyTorch: 12.4
ROCM used to build PyTorch: N/A
OS: openEuler 24.03 (LTS) (aarch64)
GCC version: (GCC) 12.3.1 (openEuler 12.3.1-36.oe2403)
Clang version: Could not collect
CMake version: version 3.30.5
Libc version: glibc-2.38
Python version: 3.10.15 (main, Oct 3 2024, 07:21:53) [GCC 11.2.0] (64-bit runtime)
Python platform: Linux-6.6.0-yxk-aarch64-with-glibc2.38
Is CUDA available: True
CUDA runtime version: 12.4.131
CUDA_MODULE_LOADING set to: LAZY
GPU models and configuration: GPU 0: NVIDIA A100-PCIE-40GB
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: aarch64
CPU op-mode(s): 64-bit
Byte Order: Little Endian
CPU(s): 128
On-line CPU(s) list: 0-127
Vendor ID: HiSilicon
BIOS Vendor ID: HiSilicon
Model name: -
BIOS Model name: HUAWEI Kunpeng 920 V200 7260Y To be filled by O.E.M. CPU @ 2.2GHz
BIOS CPU family: 280
Model: 0
Thread(s) per core: 1
Core(s) per socket: 64
Socket(s): 2
Stepping: 0x0
Frequency boost: disabled
CPU(s) scaling MHz: 100%
CPU max MHz: 2200.0000
CPU min MHz: 1200.0000
BogoMIPS: 200.00
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm ssbs sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng ecv
L1d cache: 8 MiB (128 instances)
L1i cache: 16 MiB (128 instances)
L2 cache: 128 MiB (128 instances)
L3 cache: 224 MiB (4 instances)
NUMA node(s): 4
NUMA node0 CPU(s): 0-31
NUMA node1 CPU(s): 32-63
NUMA node2 CPU(s): 64-95
NUMA node3 CPU(s): 96-127
Vulnerability Gather data sampling: Not affected
Vulnerability Itlb multihit: Not affected
Vulnerability L1tf: Not affected
Vulnerability Mds: Not affected
Vulnerability Meltdown: Not affected
Vulnerability Mmio stale data: Not affected
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; __user pointer sanitization
Vulnerability Spectre v2: Vulnerable: Unprivileged eBPF enabled
Vulnerability Srbds: Not affected
Vulnerability Tsx async abort: Not affected
Versions of relevant libraries:
[pip3] numpy==2.1.2
[pip3] torch==2.6.0.dev20241101+cu124
[pip3] torchaudio==2.5.0.dev20241102
[pip3] torchvision==0.20.0.dev20241102
[pip3] transformers==4.46.1
[conda] numpy 2.1.2 pypi_0 pypi
[conda] torch 2.6.0.dev20241101+cu124 pypi_0 pypi
[conda] torchaudio 2.5.0.dev20241102 pypi_0 pypi
[conda] torchvision 0.20.0.dev20241102 pypi_0 pypi
[conda] transformers 4.46.1 pypi_0 pypi
ROCM Version: Could not collect
Neuron SDK Version: N/A
vLLM Version: 0.6.3.post2.dev209+g3bb4befe.d20241103
vLLM Build Flags:
CUDA Archs: Not Set; ROCm: Disabled; Neuron: Disabled
GPU Topology:
GPU0 CPU Affinity NUMA Affinity GPU NUMA ID
GPU0 X 96-127 3 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 you are installing vllm
[Use an existing PyTorch installation](https://docs.vllm.ai/en/latest/getting_started/installation.html#troubleshooting)
pip3 install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cu124
git clone https://github.com/vllm-project/vllm.git
cd vllm
python use_existing_torch.py
pip install -r requirements-build.txt
pip install -e . --no-build-isolation
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
╰─> [263 lines of output]
running editable_wheel
creating /tmp/pip-wheel-8wc14m_q/.tmp-kbt7o_4i/vllm.egg-info
writing /tmp/pip-wheel-8wc14m_q/.tmp-kbt7o_4i/vllm.egg-info/PKG-INFO
writing dependency_links to /tmp/pip-wheel-8wc14m_q/.tmp-kbt7o_4i/vllm.egg-info/dependency_links.txt
writing entry points to /tmp/pip-wheel-8wc14m_q/.tmp-kbt7o_4i/vllm.egg-info/entry_points.txt
writing requirements to /tmp/pip-wheel-8wc14m_q/.tmp-kbt7o_4i/vllm.egg-info/requires.txt
writing top-level names to /tmp/pip-wheel-8wc14m_q/.tmp-kbt7o_4i/vllm.egg-info/top_level.txt
writing manifest file '/tmp/pip-wheel-8wc14m_q/.tmp-kbt7o_4i/vllm.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'LICENSE'
writing manifest file '/tmp/pip-wheel-8wc14m_q/.tmp-kbt7o_4i/vllm.egg-info/SOURCES.txt'
creating '/tmp/pip-wheel-8wc14m_q/.tmp-kbt7o_4i/vllm-0.6.3.post2.dev209+g3bb4befe.d20241103.cu124.dist-info'
creating /tmp/pip-wheel-8wc14m_q/.tmp-kbt7o_4i/vllm-0.6.3.post2.dev209+g3bb4befe.d20241103.cu124.dist-info/WHEEL
running build_py
running build_ext
-- The CXX compiler identification is GNU 12.3.1
-- 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: /home/xxx/miniconda3/envs/pytorch_gpu/bin/python (found version "3.10.15") found components: Interpreter Development.Module Development.SABIModule
-- Found python matching: /home/xxx/miniconda3/envs/pytorch_gpu/bin/python.
-- Found CUDA: /usr/local/cuda-12.4 (found version "12.4")
CMake Error at /home/xxx/miniconda3/envs/pytorch_gpu/lib/python3.10/site-packages/cmake/data/share/cmake-3.30/Modules/CMakeDetermineCompilerId.cmake:838 (message):
Compiling the CUDA compiler identification source file
"CMakeCUDACompilerId.cu" failed.
Compiler: /usr/local/cuda-12.4/bin/nvcc
Build flags:
Id flags: --keep;--keep-dir;tmp -v
The output was:
2
#$ _NVVM_BRANCH_=nvvm
#$ _NVVM_BRANCH_SUFFIX_=
#$ _SPACE_=
#$ _CUDART_=cudart
#$ _HERE_=/usr/local/cuda-12.4/bin
#$ _THERE_=/usr/local/cuda-12.4/bin
#$ _TARGET_SIZE_=
#$ _TARGET_DIR_=
#$ _TARGET_DIR_=targets/sbsa-linux
#$ TOP=/usr/local/cuda-12.4/bin/..
#$ NVVMIR_LIBRARY_DIR=/usr/local/cuda-12.4/bin/../nvvm/libdevice
#$
LD_LIBRARY_PATH=/usr/local/cuda-12.4/bin/../lib:/usr/local/cuda-12.4/lib64:
#$
PATH=/usr/local/cuda-12.4/bin/../nvvm/bin:/usr/local/cuda-12.4/bin:/home/xxx/miniconda3/envs/pytorch_gpu/bin:/home/xxx/miniconda3/condabin:/root/.cargo/bin:/usr/local/cuda-12.4/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin
#$ INCLUDES="-I/usr/local/cuda-12.4/bin/../targets/sbsa-linux/include"
#$ LIBRARIES= "-L/usr/local/cuda-12.4/bin/../targets/sbsa-linux/lib/stubs"
"-L/usr/local/cuda-12.4/bin/../targets/sbsa-linux/lib"
#$ CUDAFE_FLAGS=
#$ PTXAS_FLAGS=
#$ rm tmp/a_dlink.reg.c
#$ gcc -D__CUDA_ARCH_LIST__=520 -D__NV_LEGACY_LAUNCH -E -x c++ -D__CUDACC__
-D__NVCC__ "-I/usr/local/cuda-12.4/bin/../targets/sbsa-linux/include"
-D__CUDACC_VER_MAJOR__=12 -D__CUDACC_VER_MINOR__=4
-D__CUDACC_VER_BUILD__=131 -D__CUDA_API_VER_MAJOR__=12
-D__CUDA_API_VER_MINOR__=4 -D__NVCC_DIAG_PRAGMA_SUPPORT__=1 -include
"cuda_runtime.h" "CMakeCUDACompilerId.cu" -o
"tmp/CMakeCUDACompilerId.cpp4.ii"
#$ cudafe++ --c++17 --gnu_version=120301 --display_error_number
--orig_src_file_name "CMakeCUDACompilerId.cu" --orig_src_path_name
"/tmp/tmp5ddtclkn.build-temp/CMakeFiles/3.30.5/CompilerIdCUDA/CMakeCUDACompilerId.cu"
--allow_managed --unsigned_chars --unsigned_wchar_t --m64 --parse_templates
--gen_c_file_name "tmp/CMakeCUDACompilerId.cudafe1.cpp" --stub_file_name
"CMakeCUDACompilerId.cudafe1.stub.c" --gen_module_id_file
--module_id_file_name "tmp/CMakeCUDACompilerId.module_id"
"tmp/CMakeCUDACompilerId.cpp4.ii"
/usr/include/bits/math-vector.h(30): error: identifier "__Float32x4_t" is
undefined
typedef __Float32x4_t __f32x4_t;
^
/usr/include/bits/math-vector.h(31): error: identifier "__Float64x2_t" is
undefined
typedef __Float64x2_t __f64x2_t;
^
/usr/include/bits/math-vector.h(40): error: identifier "__SVFloat32_t" is
undefined
typedef __SVFloat32_t __sv_f32_t;
^
/usr/include/bits/math-vector.h(41): error: identifier "__SVFloat64_t" is
undefined
typedef __SVFloat64_t __sv_f64_t;
^
/usr/include/bits/math-vector.h(42): error: identifier "__SVBool_t" is
undefined
typedef __SVBool_t __sv_bool_t;
^
5 errors detected in the compilation of "CMakeCUDACompilerId.cu".
# --error 0x2 --
Call Stack (most recent call first):
/home/xxx/miniconda3/envs/pytorch_gpu/lib/python3.10/site-packages/cmake/data/share/cmake-3.30/Modules/CMakeDetermineCompilerId.cmake:8 (CMAKE_DETERMINE_COMPILER_ID_BUILD)
/home/xxx/miniconda3/envs/pytorch_gpu/lib/python3.10/site-packages/cmake/data/share/cmake-3.30/Modules/CMakeDetermineCompilerId.cmake:53 (__determine_compiler_id_test)
/home/xxx/miniconda3/envs/pytorch_gpu/lib/python3.10/site-packages/cmake/data/share/cmake-3.30/Modules/CMakeDetermineCUDACompiler.cmake:131 (CMAKE_DETERMINE_COMPILER_ID)
/home/xxx/miniconda3/envs/pytorch_gpu/lib/python3.10/site-packages/torch/share/cmake/Caffe2/public/cuda.cmake:47 (enable_language)
/home/xxx/miniconda3/envs/pytorch_gpu/lib/python3.10/site-packages/torch/share/cmake/Caffe2/Caffe2Config.cmake:86 (include)
/home/xxx/miniconda3/envs/pytorch_gpu/lib/python3.10/site-packages/torch/share/cmake/Torch/TorchConfig.cmake:68 (find_package)
CMakeLists.txt:100 (find_package)
-- Configuring incomplete, errors occurred!
Traceback (most recent call last):
File "/home/xxx/miniconda3/envs/pytorch_gpu/lib/python3.10/site-packages/setuptools/command/editable_wheel.py", line 138, in run
self._create_wheel_file(bdist_wheel)
File "/home/xxx/miniconda3/envs/pytorch_gpu/lib/python3.10/site-packages/setuptools/command/editable_wheel.py", line 341, in _create_wheel_file
files, mapping = self._run_build_commands(dist_name, unpacked, lib, tmp)
File "/home/xxx/miniconda3/envs/pytorch_gpu/lib/python3.10/site-packages/setuptools/command/editable_wheel.py", line 264, in _run_build_commands
self._run_build_subcommands()
File "/home/xxx/miniconda3/envs/pytorch_gpu/lib/python3.10/site-packages/setuptools/command/editable_wheel.py", line 291, in _run_build_subcommands
self.run_command(name)
File "/home/xxx/miniconda3/envs/pytorch_gpu/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 316, in run_command
self.distribution.run_command(command)
File "/home/xxx/miniconda3/envs/pytorch_gpu/lib/python3.10/site-packages/setuptools/dist.py", line 950, in run_command
super().run_command(command)
File "/home/xxx/miniconda3/envs/pytorch_gpu/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 973, in run_command
cmd_obj.run()
File "<string>", line 243, in run
File "/home/xxx/miniconda3/envs/pytorch_gpu/lib/python3.10/site-packages/setuptools/command/build_ext.py", line 98, in run
_build_ext.run(self)
File "/home/xxx/miniconda3/envs/pytorch_gpu/lib/python3.10/site-packages/setuptools/_distutils/command/build_ext.py", line 359, in run
self.build_extensions()
File "<string>", line 205, in build_extensions
File "<string>", line 185, in configure
File "/home/xxx/miniconda3/envs/pytorch_gpu/lib/python3.10/subprocess.py", line 369, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '/home/xxx/LLM/vllm', '-G', 'Ninja', '-DCMAKE_BUILD_TYPE=RelWithDebInfo', '-DVLLM_TARGET_DEVICE=cuda', '-DVLLM_PYTHON_EXECUTABLE=/home/xxx/miniconda3/envs/pytorch_gpu/bin/python', '-DVLLM_PYTHON_PATH=/home/xxx/miniconda3/envs/pytorch_gpu/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process:/home/xxx/miniconda3/envs/pytorch_gpu/lib/python310.zip:/home/xxx/miniconda3/envs/pytorch_gpu/lib/python3.10:/home/xxx/miniconda3/envs/pytorch_gpu/lib/python3.10/lib-dynload:/home/xxx/miniconda3/envs/pytorch_gpu/lib/python3.10/site-packages:/home/xxx/miniconda3/envs/pytorch_gpu/lib/python3.10/site-packages/setuptools/_vendor', '-DFETCHCONTENT_BASE_DIR=/home/xxx/LLM/vllm/.deps', '-DNVCC_THREADS=1', '-DCMAKE_JOB_POOL_COMPILE:STRING=compile', '-DCMAKE_JOB_POOLS:STRING=compile=128']' returned non-zero exit status 1.
/home/xxx/miniconda3/envs/pytorch_gpu/lib/python3.10/site-packages/setuptools/_distutils/dist.py:973: _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 "/home/xxx/miniconda3/envs/pytorch_gpu/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
main()
File "/home/xxx/miniconda3/envs/pytorch_gpu/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 "/home/xxx/miniconda3/envs/pytorch_gpu/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 "/home/xxx/miniconda3/envs/pytorch_gpu/lib/python3.10/site-packages/setuptools/build_meta.py", line 459, in build_editable
return self._build_with_temp_dir(
File "/home/xxx/miniconda3/envs/pytorch_gpu/lib/python3.10/site-packages/setuptools/build_meta.py", line 403, in _build_with_temp_dir
self.run_setup()
File "/home/xxx/miniconda3/envs/pytorch_gpu/lib/python3.10/site-packages/setuptools/build_meta.py", line 318, in run_setup
exec(code, locals())
File "<string>", line 486, in <module>
File "/home/xxx/miniconda3/envs/pytorch_gpu/lib/python3.10/site-packages/setuptools/__init__.py", line 117, in setup
return distutils.core.setup(**attrs)
File "/home/xxx/miniconda3/envs/pytorch_gpu/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 183, in setup
return run_commands(dist)
File "/home/xxx/miniconda3/envs/pytorch_gpu/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 199, in run_commands
dist.run_commands()
File "/home/xxx/miniconda3/envs/pytorch_gpu/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 954, in run_commands
self.run_command(cmd)
File "/home/xxx/miniconda3/envs/pytorch_gpu/lib/python3.10/site-packages/setuptools/dist.py", line 950, in run_command
super().run_command(command)
File "/home/xxx/miniconda3/envs/pytorch_gpu/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 973, in run_command
cmd_obj.run()
File "/home/xxx/miniconda3/envs/pytorch_gpu/lib/python3.10/site-packages/setuptools/command/editable_wheel.py", line 138, in run
self._create_wheel_file(bdist_wheel)
File "/home/xxx/miniconda3/envs/pytorch_gpu/lib/python3.10/site-packages/setuptools/command/editable_wheel.py", line 341, in _create_wheel_file
files, mapping = self._run_build_commands(dist_name, unpacked, lib, tmp)
File "/home/xxx/miniconda3/envs/pytorch_gpu/lib/python3.10/site-packages/setuptools/command/editable_wheel.py", line 264, in _run_build_commands
self._run_build_subcommands()
File "/home/xxx/miniconda3/envs/pytorch_gpu/lib/python3.10/site-packages/setuptools/command/editable_wheel.py", line 291, in _run_build_subcommands
self.run_command(name)
File "/home/xxx/miniconda3/envs/pytorch_gpu/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 316, in run_command
self.distribution.run_command(command)
File "/home/xxx/miniconda3/envs/pytorch_gpu/lib/python3.10/site-packages/setuptools/dist.py", line 950, in run_command
super().run_command(command)
File "/home/xxx/miniconda3/envs/pytorch_gpu/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 973, in run_command
cmd_obj.run()
File "<string>", line 243, in run
File "/home/xxx/miniconda3/envs/pytorch_gpu/lib/python3.10/site-packages/setuptools/command/build_ext.py", line 98, in run
_build_ext.run(self)
File "/home/xxx/miniconda3/envs/pytorch_gpu/lib/python3.10/site-packages/setuptools/_distutils/command/build_ext.py", line 359, in run
self.build_extensions()
File "<string>", line 205, in build_extensions
File "<string>", line 185, in configure
File "/home/xxx/miniconda3/envs/pytorch_gpu/lib/python3.10/subprocess.py", line 369, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '/home/xxx/LLM/vllm', '-G', 'Ninja', '-DCMAKE_BUILD_TYPE=RelWithDebInfo', '-DVLLM_TARGET_DEVICE=cuda', '-DVLLM_PYTHON_EXECUTABLE=/home/xxx/miniconda3/envs/pytorch_gpu/bin/python', '-DVLLM_PYTHON_PATH=/home/xxx/miniconda3/envs/pytorch_gpu/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process:/home/xxx/miniconda3/envs/pytorch_gpu/lib/python310.zip:/home/xxx/miniconda3/envs/pytorch_gpu/lib/python3.10:/home/xxx/miniconda3/envs/pytorch_gpu/lib/python3.10/lib-dynload:/home/xxx/miniconda3/envs/pytorch_gpu/lib/python3.10/site-packages:/home/xxx/miniconda3/envs/pytorch_gpu/lib/python3.10/site-packages/setuptools/_vendor', '-DFETCHCONTENT_BASE_DIR=/home/xxx/LLM/vllm/.deps', '-DNVCC_THREADS=1', '-DCMAKE_JOB_POOL_COMPILE:STRING=compile', '-DCMAKE_JOB_POOLS:STRING=compile=128']' 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: ERROR: Failed to build installable wheels for some pyproject.toml based projects (vllm)
Before submitting a new issue...
- [X] Make sure you already searched for relevant issues, and asked the chatbot living at the bottom right corner of the documentation page, which can answer lots of frequently asked questions.
See #9957
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!
This issue has been automatically closed due to inactivity. Please feel free to reopen if you feel it is still relevant. Thank you!
Then, where is the solution? is it already being fixed?
Can you provide more details?
cc @mgoin
Can you provide more details?
I have setup all the required tools, package and etc. for installing vLLM, I use 2xGPU server running on Linux ARM64
- CUDA Toolkit
nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2025 NVIDIA Corporation
Built on Wed_Jan_15_19:21:50_PST_2025
Cuda compilation tools, release 12.8, V12.8.61
Build cuda_12.8.r12.8/compiler.35404655_0
- CONDA environment python version
python: 3.12
- The way I try install it
pip3 install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cu128
git clone https://github.com/vllm-project/vllm.git
cd vllm
python use_existing_torch.py
pip install -r requirements/build.txt
pip install --no-build-isolation -e .
The got error state:
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
╰─> [311 lines of output]
running editable_wheel
creating /tmp/pip-wheel-u_gq1q4c/.tmp-qgk8uf5e/vllm.egg-info
writing /tmp/pip-wheel-u_gq1q4c/.tmp-qgk8uf5e/vllm.egg-info/PKG-INFO
writing dependency_links to /tmp/pip-wheel-u_gq1q4c/.tmp-qgk8uf5e/vllm.egg-info/dependency_links.txt
writing entry points to /tmp/pip-wheel-u_gq1q4c/.tmp-qgk8uf5e/vllm.egg-info/entry_points.txt
writing requirements to /tmp/pip-wheel-u_gq1q4c/.tmp-qgk8uf5e/vllm.egg-info/requires.txt
writing top-level names to /tmp/pip-wheel-u_gq1q4c/.tmp-qgk8uf5e/vllm.egg-info/top_level.txt
writing manifest file '/tmp/pip-wheel-u_gq1q4c/.tmp-qgk8uf5e/vllm.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'LICENSE'
writing manifest file '/tmp/pip-wheel-u_gq1q4c/.tmp-qgk8uf5e/vllm.egg-info/SOURCES.txt'
creating '/tmp/pip-wheel-u_gq1q4c/.tmp-qgk8uf5e/vllm-0.8.5.dev920+gabd4030d9.d20250526.dist-info'
creating /tmp/pip-wheel-u_gq1q4c/.tmp-qgk8uf5e/vllm-0.8.5.dev920+gabd4030d9.d20250526.dist-info/WHEEL
running build_py
running build_ext
-- The CXX compiler identification is GNU 11.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: /home/ec2-user/miniconda3/envs/vllm/bin/python3.12 (found version "3.12.9") found components: Interpreter Development.Module Development.SABIModule
-- Found python matching: /home/ec2-user/miniconda3/envs/vllm/bin/python3.12.
-- Found CUDA: /usr/local/cuda-12.8 (found version "12.8")
-- The CUDA compiler identification is NVIDIA 12.8.61 with host compiler GNU 11.5.0
-- Detecting CUDA compiler ABI info
-- Detecting CUDA compiler ABI info - done
-- Check for working CUDA compiler: /usr/local/cuda-12.8/bin/nvcc - skipped
-- Detecting CUDA compile features
-- Detecting CUDA compile features - done
-- Found CUDAToolkit: /usr/local/cuda-12.8/include (found version "12.8.61")
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- PyTorch: CUDA detected: 12.8
-- PyTorch: CUDA nvcc is: /usr/local/cuda-12.8/bin/nvcc
-- PyTorch: CUDA toolkit directory: /usr/local/cuda-12.8
-- PyTorch: Header version is: 12.8
-- Found Python: /home/ec2-user/miniconda3/envs/vllm/bin/python3.12 (found version "3.12.9") found components: Interpreter
CMake Warning at /home/ec2-user/miniconda3/envs/vllm/lib/python3.12/site-packages/torch/share/cmake/Caffe2/public/cuda.cmake:140 (message):
Failed to compute shorthash for libnvrtc.so
Call Stack (most recent call first):
/home/ec2-user/miniconda3/envs/vllm/lib/python3.12/site-packages/torch/share/cmake/Caffe2/Caffe2Config.cmake:86 (include)
/home/ec2-user/miniconda3/envs/vllm/lib/python3.12/site-packages/torch/share/cmake/Torch/TorchConfig.cmake:68 (find_package)
CMakeLists.txt:77 (find_package)
-- USE_CUDNN is set to 0. Compiling without cuDNN support
-- USE_CUSPARSELT is set to 0. Compiling without cuSPARSELt support
-- USE_CUDSS is set to 0. Compiling without cuDSS support
-- USE_CUFILE is set to 0. Compiling without cuFile support
-- Autodetected CUDA architecture(s): 7.5
-- Added CUDA NVCC flags for: -gencode;arch=compute_75,code=sm_75
CMake Warning at /home/ec2-user/miniconda3/envs/vllm/lib/python3.12/site-packages/torch/share/cmake/Torch/TorchConfig.cmake:22 (message):
static library kineto_LIBRARY-NOTFOUND not found.
Call Stack (most recent call first):
/home/ec2-user/miniconda3/envs/vllm/lib/python3.12/site-packages/torch/share/cmake/Torch/TorchConfig.cmake:125 (append_torchlib_if_found)
CMakeLists.txt:77 (find_package)
-- Found Torch: /home/ec2-user/miniconda3/envs/vllm/lib/python3.12/site-packages/torch/lib/libtorch.so
CMake Warning at CMakeLists.txt:109 (message):
Pytorch version 2.7.0 expected for CUDA build, saw 2.8.0 instead.
-- CUDA target architectures: 7.5
-- CUDA supported target architectures: 7.5
-- FetchContent base directory: /home/ec2-user/vllm/.deps
-- Enabling cumem allocator extension.
-- CMake Version: 4.0.2
-- CUTLASS 3.9.2
-- Found CUDAToolkit: /usr/local/cuda-12.8/targets/sbsa-linux/include (found version "12.8.61")
-- CUDART: /usr/local/cuda-12.8/lib64/libcudart.so
-- CUDA Driver: /usr/local/cuda-12.8/lib64/stubs/libcuda.so
-- NVRTC: /usr/local/cuda-12.8/lib64/libnvrtc.so
-- Default Install Location: install
-- Found Python3: /home/ec2-user/miniconda3/envs/vllm/bin/python3.12 (found suitable version "3.12.9", minimum required is "3.5") found components: Interpreter
-- CUDA Compilation Architectures: 70;72;75;80;86;87;89;90;90a;100;100a;101;101a;120;120a
-- Enable caching of reference results in conv unit tests
-- Enable rigorous conv problem sizes in conv unit tests
-- Grid Dependency Control (GDC) is enabled for SM100 kernels (required for programmatic dependent launches).
-- Using the following NVCC flags:
--expt-relaxed-constexpr
-ftemplate-backtrace-limit=0
-DCUTLASS_TEST_LEVEL=0
-DCUTLASS_TEST_ENABLE_CACHED_RESULTS=1
-DCUTLASS_CONV_UNIT_TEST_RIGOROUS_SIZE_ENABLED=1
-DCUTLASS_DEBUG_TRACE_LEVEL=0
-Xcompiler=-Wconversion
-Xcompiler=-fno-strict-aliasing
-lineinfo
-- Configuring cublas ...
-- cuBLAS Disabled.
-- Configuring cuBLAS ... done.
-- Not building Marlin kernels as no compatible archs found in CUDA target architectures
-- Not building AllSpark kernels as no compatible archs found in CUDA target architectures
-- Not building scaled_mm_c3x_sm90 as no compatible archs found in CUDA target architectures
-- Not building scaled_mm_c3x_100 as no compatible archs found in CUDA target architectures
-- Building scaled_mm_c2x for archs: 7.5
-- Not building sparse_scaled_mm_c3x as no compatible archs found in CUDA target architectures
-- Not building NVFP4 as no compatible archs were found.
-- Not building CUTLASS MLA as no compatible archs were found.
-- Not building grouped_mm_c3x as no compatible archs found in CUDA target architectures
-- Not building Machete kernels as no compatible archs found in CUDA target architectures
-- Enabling C extension.
-- Not building Marlin MOE kernels as no compatible archs found in CUDA target architectures
-- Enabling moe extension.
CMake Warning (dev) at /home/ec2-user/miniconda3/envs/vllm/lib/python3.12/site-packages/cmake/data/share/cmake-4.0/Modules/FetchContent.cmake:1564 (cmake_parse_arguments):
The BUILD_COMMAND keyword was followed by an empty string or no value at
all. Policy CMP0174 is not set, so cmake_parse_arguments() will unset the
ARG_BUILD_COMMAND variable rather than setting it to an empty string.
Call Stack (most recent call first):
/home/ec2-user/miniconda3/envs/vllm/lib/python3.12/site-packages/cmake/data/share/cmake-4.0/Modules/FetchContent.cmake:2145:EVAL:2 (__FetchContent_doPopulation)
/home/ec2-user/miniconda3/envs/vllm/lib/python3.12/site-packages/cmake/data/share/cmake-4.0/Modules/FetchContent.cmake:2145 (cmake_language)
/home/ec2-user/miniconda3/envs/vllm/lib/python3.12/site-packages/cmake/data/share/cmake-4.0/Modules/FetchContent.cmake:2384 (__FetchContent_Populate)
cmake/external_projects/flashmla.cmake:30 (FetchContent_MakeAvailable)
CMakeLists.txt:787 (include)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at /home/ec2-user/miniconda3/envs/vllm/lib/python3.12/site-packages/cmake/data/share/cmake-4.0/Modules/FetchContent.cmake:1564 (cmake_parse_arguments):
The CONFIGURE_COMMAND keyword was followed by an empty string or no value
at all. Policy CMP0174 is not set, so cmake_parse_arguments() will unset
the ARG_CONFIGURE_COMMAND variable rather than setting it to an empty
string.
Call Stack (most recent call first):
/home/ec2-user/miniconda3/envs/vllm/lib/python3.12/site-packages/cmake/data/share/cmake-4.0/Modules/FetchContent.cmake:2145:EVAL:2 (__FetchContent_doPopulation)
/home/ec2-user/miniconda3/envs/vllm/lib/python3.12/site-packages/cmake/data/share/cmake-4.0/Modules/FetchContent.cmake:2145 (cmake_language)
/home/ec2-user/miniconda3/envs/vllm/lib/python3.12/site-packages/cmake/data/share/cmake-4.0/Modules/FetchContent.cmake:2384 (__FetchContent_Populate)
cmake/external_projects/flashmla.cmake:30 (FetchContent_MakeAvailable)
CMakeLists.txt:787 (include)
This warning is for project developers. Use -Wno-dev to suppress it.
-- FlashMLA is available at /home/ec2-user/vllm/.deps/flashmla-src
-- Build type: RelWithDebInfo
-- Target device: cuda
-- Found Python: /home/ec2-user/miniconda3/envs/vllm/bin/python3.12 (found version "3.12.9") found components: Interpreter Development.Module Development.SABIModule
CMake Warning at .deps/vllm-flash-attn-src/CMakeLists.txt:75 (message):
Pytorch version 2.4.0 expected for CUDA build, saw 2.8.0 instead.
-- CUDA target architectures: 7.5
-- CUDA supported target architectures:
-- FA2_ARCHS:
-- FA3_ARCHS:
-- vllm-flash-attn is available at /home/ec2-user/vllm/.deps/vllm-flash-attn-src
-- Configuring done (15.1s)
-- Generating done (0.1s)
-- Build files have been written to: /tmp/tmp3anyloas.build-temp
[1/282] Building CXX object vllm-flash-attn/CMakeFiles/_vllm_fa2_C.dir/csrc/flash_attn/flash_api.cpp.o
[2/282] Building CXX object vllm-flash-attn/CMakeFiles/_vllm_fa2_C.dir/csrc/flash_attn/flash_api_sparse.cpp.o
/home/ec2-user/vllm/.deps/vllm-flash-attn-src/csrc/flash_attn/flash_api_sparse.cpp: In function ‘std::vector<at::Tensor> flash::mha_fwd_sparse(at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, const std::optional<at::Tensor>&, const std::optional<at::Tensor>&, double, double, bool, double, bool, std::optional<at::Generator>)’:
/home/ec2-user/vllm/.deps/vllm-flash-attn-src/csrc/flash_attn/flash_api_sparse.cpp:237:38: warning: narrowing conversion of ‘(char)(& q)->at::Tensor::<anonymous>.at::TensorBase::get_device()’ from ‘char’ to ‘c10::DeviceIndex’ {aka ‘signed char’} [-Wnarrowing]
237 | at::cuda::CUDAGuard device_guard{(char)q.get_device()};
| ^~~~~~~~~~~~~~~~~~~~
/home/ec2-user/vllm/.deps/vllm-flash-attn-src/csrc/flash_attn/flash_api_sparse.cpp: In function ‘std::vector<at::Tensor> flash::mha_varlen_fwd_sparse(at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, const std::optional<at::Tensor>&, const at::Tensor&, const at::Tensor&, const std::optional<at::Tensor>&, const std::optional<at::Tensor>&, int64_t, int64_t, double, double, bool, bool, double, bool, std::optional<at::Generator>)’:
/home/ec2-user/vllm/.deps/vllm-flash-attn-src/csrc/flash_attn/flash_api_sparse.cpp:444:38: warning: narrowing conversion of ‘(char)(& q)->at::Tensor::<anonymous>.at::TensorBase::get_device()’ from ‘char’ to ‘c10::DeviceIndex’ {aka ‘signed char’} [-Wnarrowing]
444 | at::cuda::CUDAGuard device_guard{(char)q.get_device()};
| ^~~~~~~~~~~~~~~~~~~~
[3/282] Building CXX object CMakeFiles/cumem_allocator.dir/csrc/cumem_allocator.cpp.o
[4/282] Linking CXX shared module cumem_allocator.abi3.so
[5/282] Building CXX object CMakeFiles/_moe_C.dir/csrc/moe/torch_bindings.cpp.o
[6/282] Building CUDA object CMakeFiles/_moe_C.dir/csrc/moe/moe_align_sum_kernels.cu.o
FAILED: CMakeFiles/_moe_C.dir/csrc/moe/moe_align_sum_kernels.cu.o
/usr/local/cuda-12.8/bin/nvcc -forward-unknown-to-host-compiler -DPy_LIMITED_API=3 -DTORCH_EXTENSION_NAME=_moe_C -DUSE_C10D_GLOO -DUSE_C10D_NCCL -DUSE_DISTRIBUTED -DUSE_RPC -DUSE_TENSORPIPE -D_moe_C_EXPORTS -I/home/ec2-user/vllm/csrc -I/home/ec2-user/vllm/.deps/cutlass-src/include -I/home/ec2-user/vllm/.deps/cutlass-src/tools/util/include -isystem /home/ec2-user/miniconda3/envs/vllm/include/python3.12 -isystem /home/ec2-user/miniconda3/envs/vllm/lib/python3.12/site-packages/torch/include -isystem /home/ec2-user/miniconda3/envs/vllm/lib/python3.12/site-packages/torch/include/torch/csrc/api/include -isystem /usr/local/cuda-12.8/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 -Xcompiler=-fPIC --expt-relaxed-constexpr -DENABLE_FP8 --threads=1 -DENABLE_SCALED_MM_C2X=1 -gencode arch=compute_75,code=sm_75 -MD -MT CMakeFiles/_moe_C.dir/csrc/moe/moe_align_sum_kernels.cu.o -MF CMakeFiles/_moe_C.dir/csrc/moe/moe_align_sum_kernels.cu.o.d -x cu -c /home/ec2-user/vllm/csrc/moe/moe_align_sum_kernels.cu -o CMakeFiles/_moe_C.dir/csrc/moe/moe_align_sum_kernels.cu.o
nvcc error : '"$CICC_PATH/cicc"' died due to signal 9 (Kill signal)
[7/282] Building CUDA object CMakeFiles/_moe_C.dir/csrc/moe/topk_softmax_kernels.cu.o
FAILED: CMakeFiles/_moe_C.dir/csrc/moe/topk_softmax_kernels.cu.o
/usr/local/cuda-12.8/bin/nvcc -forward-unknown-to-host-compiler -DPy_LIMITED_API=3 -DTORCH_EXTENSION_NAME=_moe_C -DUSE_C10D_GLOO -DUSE_C10D_NCCL -DUSE_DISTRIBUTED -DUSE_RPC -DUSE_TENSORPIPE -D_moe_C_EXPORTS -I/home/ec2-user/vllm/csrc -I/home/ec2-user/vllm/.deps/cutlass-src/include -I/home/ec2-user/vllm/.deps/cutlass-src/tools/util/include -isystem /home/ec2-user/miniconda3/envs/vllm/include/python3.12 -isystem /home/ec2-user/miniconda3/envs/vllm/lib/python3.12/site-packages/torch/include -isystem /home/ec2-user/miniconda3/envs/vllm/lib/python3.12/site-packages/torch/include/torch/csrc/api/include -isystem /usr/local/cuda-12.8/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 -Xcompiler=-fPIC --expt-relaxed-constexpr -DENABLE_FP8 --threads=1 -DENABLE_SCALED_MM_C2X=1 -gencode arch=compute_75,code=sm_75 -MD -MT CMakeFiles/_moe_C.dir/csrc/moe/topk_softmax_kernels.cu.o -MF CMakeFiles/_moe_C.dir/csrc/moe/topk_softmax_kernels.cu.o.d -x cu -c /home/ec2-user/vllm/csrc/moe/topk_softmax_kernels.cu -o CMakeFiles/_moe_C.dir/csrc/moe/topk_softmax_kernels.cu.o
nvcc error : '"$CICC_PATH/cicc"' died due to signal 9 (Kill signal)
[8/282] Building CUDA object CMakeFiles/_moe_C.dir/csrc/moe/moe_wna16.cu.o
[9/282] Building CUDA object CMakeFiles/_moe_C.dir/csrc/moe/permute_unpermute_kernels/moe_permute_unpermute_kernel.cu.o
nvcc warning : Support for offline compilation for architectures prior to '<compute/sm/lto>_75' will be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning).
[10/282] Building CUDA object CMakeFiles/_moe_C.dir/csrc/moe/moe_permute_unpermute_op.cu.o
nvcc warning : Support for offline compilation for architectures prior to '<compute/sm/lto>_75' will be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning).
/home/ec2-user/vllm/csrc/moe/permute_unpermute_kernels/moe_permute_unpermute_kernel.inl(66): warning #177-D: variable "source_k_rank" was declared but never referenced
int64_t const source_k_rank = expanded_source_row / num_rows;
^
detected during instantiation of "void expandInputRowsKernelLauncher(const T *, T *, const float *, int *, const int *, int *, int64_t *, int64_t, const int64_t *, int64_t, int, int, const int &, cudaStream_t) [with T=float]" at line 82 of /home/ec2-user/vllm/csrc/moe/moe_permute_unpermute_op.cu
Remark: The warnings can be suppressed with "-diag-suppress <warning-number>"
/home/ec2-user/vllm/csrc/moe/permute_unpermute_kernels/moe_permute_unpermute_kernel.inl(23): warning #177-D: variable "align_expanded_row_accumulate" was declared but never referenced
int64_t align_expanded_row_accumulate = 0;
^
detected during instantiation of "void expandInputRowsKernelLauncher(const T *, T *, const float *, int *, const int *, int *, int64_t *, int64_t, const int64_t *, int64_t, int, int, const int &, cudaStream_t) [with T=float]" at line 82 of /home/ec2-user/vllm/csrc/moe/moe_permute_unpermute_op.cu
/home/ec2-user/vllm/csrc/moe/permute_unpermute_kernels/moe_permute_unpermute_kernel.inl(180): warning #177-D: variable "expert_idx" was declared but never referenced
int64_t const expert_idx = expert_for_source_row[k_offset];
^
detected during instantiation of "void finalizeMoeRoutingKernelLauncher(const T *, OutputType *, const float *, const int *, const int *, int64_t, int64_t, int64_t, const int64_t *, cudaStream_t) [with T=float, OutputType=float]" at line 124 of /home/ec2-user/vllm/csrc/moe/moe_permute_unpermute_op.cu
/home/ec2-user/vllm/csrc/moe/permute_unpermute_kernels/moe_permute_unpermute_kernel.inl(163): warning #177-D: variable "row_rescale" was declared but never referenced
float row_rescale{0.f};
^
detected during instantiation of "void finalizeMoeRoutingKernelLauncher(const T *, OutputType *, const float *, const int *, const int *, int64_t, int64_t, int64_t, const int64_t *, cudaStream_t) [with T=float, OutputType=float]" at line 124 of /home/ec2-user/vllm/csrc/moe/moe_permute_unpermute_op.cu
[11/282] Building CUDA object CMakeFiles/_C.dir/csrc/cache_kernels.cu.o
[12/282] Building CUDA object CMakeFiles/_C.dir/csrc/attention/paged_attention_v1.cu.o
[13/282] Building CUDA object CMakeFiles/_C.dir/csrc/attention/paged_attention_v2.cu.o
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
File "/home/ec2-user/miniconda3/envs/vllm/lib/python3.12/site-packages/setuptools/command/editable_wheel.py", line 139, in run
self._create_wheel_file(bdist_wheel)
File "/home/ec2-user/miniconda3/envs/vllm/lib/python3.12/site-packages/setuptools/command/editable_wheel.py", line 340, in _create_wheel_file
files, mapping = self._run_build_commands(dist_name, unpacked, lib, tmp)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ec2-user/miniconda3/envs/vllm/lib/python3.12/site-packages/setuptools/command/editable_wheel.py", line 263, in _run_build_commands
self._run_build_subcommands()
File "/home/ec2-user/miniconda3/envs/vllm/lib/python3.12/site-packages/setuptools/command/editable_wheel.py", line 290, in _run_build_subcommands
self.run_command(name)
File "/home/ec2-user/miniconda3/envs/vllm/lib/python3.12/site-packages/setuptools/_distutils/cmd.py", line 357, in run_command
self.distribution.run_command(command)
File "/home/ec2-user/miniconda3/envs/vllm/lib/python3.12/site-packages/setuptools/dist.py", line 1104, in run_command
super().run_command(command)
File "/home/ec2-user/miniconda3/envs/vllm/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 1021, in run_command
cmd_obj.run()
File "<string>", line 270, in run
File "/home/ec2-user/miniconda3/envs/vllm/lib/python3.12/site-packages/setuptools/command/build_ext.py", line 99, in run
_build_ext.run(self)
File "/home/ec2-user/miniconda3/envs/vllm/lib/python3.12/site-packages/setuptools/_distutils/command/build_ext.py", line 368, in run
self.build_extensions()
File "<string>", line 241, in build_extensions
File "/home/ec2-user/miniconda3/envs/vllm/lib/python3.12/subprocess.py", line 415, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '--build', '.', '-j=8', '--target=_moe_C', '--target=_vllm_fa2_C', '--target=_vllm_fa3_C', '--target=_flashmla_C', '--target=cumem_allocator', '--target=_C']' returned non-zero exit status 1.
/home/ec2-user/miniconda3/envs/vllm/lib/python3.12/site-packages/setuptools/_distutils/dist.py:1021: _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 "/home/ec2-user/miniconda3/envs/vllm/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 389, in <module>
main()
File "/home/ec2-user/miniconda3/envs/vllm/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 373, in main
json_out["return_val"] = hook(**hook_input["kwargs"])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ec2-user/miniconda3/envs/vllm/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 303, in build_editable
return hook(wheel_directory, config_settings, metadata_directory)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ec2-user/miniconda3/envs/vllm/lib/python3.12/site-packages/setuptools/build_meta.py", line 476, in build_editable
return self._build_with_temp_dir(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ec2-user/miniconda3/envs/vllm/lib/python3.12/site-packages/setuptools/build_meta.py", line 407, in _build_with_temp_dir
self.run_setup()
File "/home/ec2-user/miniconda3/envs/vllm/lib/python3.12/site-packages/setuptools/build_meta.py", line 320, in run_setup
exec(code, locals())
File "<string>", line 687, in <module>
File "/home/ec2-user/miniconda3/envs/vllm/lib/python3.12/site-packages/setuptools/__init__.py", line 117, in setup
return distutils.core.setup(**attrs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ec2-user/miniconda3/envs/vllm/lib/python3.12/site-packages/setuptools/_distutils/core.py", line 186, in setup
return run_commands(dist)
^^^^^^^^^^^^^^^^^^
File "/home/ec2-user/miniconda3/envs/vllm/lib/python3.12/site-packages/setuptools/_distutils/core.py", line 202, in run_commands
dist.run_commands()
File "/home/ec2-user/miniconda3/envs/vllm/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 1002, in run_commands
self.run_command(cmd)
File "/home/ec2-user/miniconda3/envs/vllm/lib/python3.12/site-packages/setuptools/dist.py", line 1104, in run_command
super().run_command(command)
File "/home/ec2-user/miniconda3/envs/vllm/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 1021, in run_command
cmd_obj.run()
File "/home/ec2-user/miniconda3/envs/vllm/lib/python3.12/site-packages/setuptools/command/editable_wheel.py", line 139, in run
self._create_wheel_file(bdist_wheel)
File "/home/ec2-user/miniconda3/envs/vllm/lib/python3.12/site-packages/setuptools/command/editable_wheel.py", line 340, in _create_wheel_file
files, mapping = self._run_build_commands(dist_name, unpacked, lib, tmp)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ec2-user/miniconda3/envs/vllm/lib/python3.12/site-packages/setuptools/command/editable_wheel.py", line 263, in _run_build_commands
self._run_build_subcommands()
File "/home/ec2-user/miniconda3/envs/vllm/lib/python3.12/site-packages/setuptools/command/editable_wheel.py", line 290, in _run_build_subcommands
self.run_command(name)
File "/home/ec2-user/miniconda3/envs/vllm/lib/python3.12/site-packages/setuptools/_distutils/cmd.py", line 357, in run_command
self.distribution.run_command(command)
File "/home/ec2-user/miniconda3/envs/vllm/lib/python3.12/site-packages/setuptools/dist.py", line 1104, in run_command
super().run_command(command)
File "/home/ec2-user/miniconda3/envs/vllm/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 1021, in run_command
cmd_obj.run()
File "<string>", line 270, in run
File "/home/ec2-user/miniconda3/envs/vllm/lib/python3.12/site-packages/setuptools/command/build_ext.py", line 99, in run
_build_ext.run(self)
File "/home/ec2-user/miniconda3/envs/vllm/lib/python3.12/site-packages/setuptools/_distutils/command/build_ext.py", line 368, in run
self.build_extensions()
File "<string>", line 241, in build_extensions
File "/home/ec2-user/miniconda3/envs/vllm/lib/python3.12/subprocess.py", line 415, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '--build', '.', '-j=8', '--target=_moe_C', '--target=_vllm_fa2_C', '--target=_vllm_fa3_C', '--target=_flashmla_C', '--target=cumem_allocator', '--target=_C']' 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: Failed to build installable wheels for some pyproject.toml based projects (vllm)
Left side is ARM64 and rIght side is x64
Any solution for ARM64 issue?
Try using CUDA 12.8 instead of 12.4. I have successfully compiled pytorch 2.6.0 on Ampere CPU (armv8.2) with gcc 12, python 3.12, Ubuntu 24.04 and CUDA Toolkit 12.8
Hi, if I only have cuda 12.6, are there any possible solutions?
Hi, if I only have cuda 12.6, are there any possible solutions?
I'll take a look if I can compile to wheel file :D
Hi, if I only have cuda 12.6, are there any possible solutions?
I tried building pytorch 2.6.0 with CUDA 12.6 but failed
FAILED: confu-deps/pytorch_qnnpack/CMakeFiles/pytorch_qnnpack.dir/src/sgemm/6x8-psimd.c.o
Look like only CUDA 12.8 is okay