Installation and Verification
- Install vLLM 0.18.1.
- Method 1: Use the vLLM 0.18.1 source package in the Python package index or use wheel for installation.
1 2 3 4 5 6 7 8 9 10
export CUDA_HOME=/usr/local/cuda-13.0 export PATH=$CUDA_HOME/bin:$PATH export LD_LIBRARY_PATH=$CUDA_HOME/lib64:${LD_LIBRARY_PATH:-} export VLLM_TARGET_DEVICE=cuda export TORCH_CUDA_ARCH_LIST="8.0" export CMAKE_CUDA_ARCHITECTURES=80 export MAX_JOBS=8 export NVCC_THREADS=1 export CMAKE_BUILD_PARALLEL_LEVEL=8 python3 -m pip install vllm==0.18.1
- Method 2: Use the locally built vLLM wheel in the current environment. Replace the example path with the actual wheel file path.
1python3 -m pip install --force-reinstall --no-deps /path/to/vllm-0.18.1+cu130-*.whl
- Method 1: Use the vLLM 0.18.1 source package in the Python package index or use wheel for installation.
- Run the following command to check whether vLLM is successfully installed.
1 2 3 4 5 6 7 8 9 10 11 12 13
python3 - <<'PY' import vllm import torch print("vllm_version=" + vllm.__version__) print("torch_version=" + torch.__version__) print("torch_cuda=" + str(torch.version.cuda)) print("cuda_built=" + str(torch.backends.cuda.is_built())) print("cuda_available=" + str(torch.cuda.is_available())) assert vllm.__version__ == "0.18.1" assert torch.backends.cuda.is_built() assert torch.cuda.is_available() PY
The expected output is as follows.
1 2 3 4
vllm_version=0.18.1 torch_cuda=13.0 cuda_built=True cuda_available=True
Parent topic: Installation Guide