Replies: 5 comments
|
This looks like a PyTorch error. Check your PyTorch Version
|
|
This Root cause: Fixes: 1. Reinstall vLLM with matching PyTorch pip uninstall vllm
pip install vllm --no-cache-dir2. Check PyTorch version import torch
print(torch.__version__)
print(torch.version.cuda)vLLM needs specific CUDA + PyTorch combos. 3. Full clean install pip uninstall vllm torch
pip cache purge
pip install torch==2.2.0+cu121 -f https://download.pytorch.org/whl/torch_stable.html
pip install vllm4. Build from source (if weird setup) git clone https://github.com/vllm-project/vllm.git
cd vllm
pip install -e .Common causes:
We've debugged these ABI issues at RevolutionAI many times. The clean reinstall usually fixes it. What's your |
|
This error usually points to a mismatch between the PyTorch version installed in your environment and the version vLLM was built or linked against. Specifically, it's failing to resolve a TorchScript function, From experience, these kinds of issues often occur when using pre-built binaries (
If none of these steps work, check whether vLLM uses any custom compiled components. In such cases, ensuring your environment matches the compiler/runtime versions used for building those components (e.g., GCC or Clang) might help. Let me know if you’re still stuck, and I can dig deeper into specifics. |
|
The error message indicates a symbol lookup failure for |
|
This is a native-extension ABI mismatch: vllm/_C.abi3.so is trying to resolve a PyTorch JIT symbol that is not present in the PyTorch library loaded at runtime. The usual causes are:
Please first collect the versions from the same environment in which vllm serve is run: bash Do not use a manually selected PyTorch version without checking the requirements for the vLLM release. For example, vLLM v0.8.5 explicitly required PyTorch 2.6.0 in its CUDA requirements: The safest fix is a fresh environment and an installation method that selects a compatible backend: bash Current vLLM documentation specifically recommends a fresh environment because the compiled binaries can be incompatible with different PyTorch or CUDA builds: If you must keep an existing PyTorch installation, rebuild vLLM from source against that exact installation rather than using a prebuilt wheel: The exact correction cannot be determined from the report alone. Please provide the vLLM version, PyTorch version, CUDA/ROCm version, operating system, GPU, and the complete traceback. |
Uh oh!
There was an error while loading. Please reload this page.
......lib/python3.12/site-packages/vllm/_C.abi3.so: undefined symbol: _ZN5torch3jit17parseSchemaOrNameERKSsb
vllm serve. NOT RUN ,
All reactions