vllm
vllm copied to clipboard
[Bug]: When using the latest 0.6.3, No module named 'vllm._version' appears
Your current environment
The output of `python collect_env.py`
Your output of `python collect_env.py` here
Model Input Dumps
No response
🐛 Describe the bug
Start service: vllm serve /models/huggingface.co/meta-llama/Llama-3-8b-hf/
A warning appears:
/usr/local/lib/python3.10/dist-packages/vllm/connections.py:8: RuntimeWarning: Failed to read commit hash: No module named 'vllm._version' from vllm.version import __version__ as VLLM_VERSIO
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.
Same issue with mistral-nemo-instruct-2407 and llama31-8b-instruct.
I will release a new version once this is fixed... @dtrifiro I think this is due to the fact I hard coded version in setup.py's so no _version.py is generated. Is that correct?
def get_vllm_version() -> str:
return "0.6.3." # i did this, which skipped _version.py writing.
version = get_version(
write_to="vllm/_version.py", # TODO: move this to pyproject.toml
)
I will release a new version once this is fixed... @dtrifiro I think this is due to the fact I hard coded version in
setup.py's so no _version.py is generated. Is that correct?def get_vllm_version() -> str: return "0.6.3." # i did this, which skipped _version.py writing. version = get_version( write_to="vllm/_version.py", # TODO: move this to pyproject.toml )
I don’t know if the following is the same problem?
When I tried to compile locally, I found that the final wheel package, or pip Install -e . showed that the version of vllm was not 0.6.3, but vllm-0.1.3.dev2745+g79799263.d20241016.cu123-cp310-cp310- linux_x86_64.whl
same issue with glm-4v-9b cuda 12.1 vllm=0.6.3
+1
same issue with qwen2-vl-instruct cuda12.2 vllm=0.6.3
+1
@lixiaolx you can fetch tags using git fetch --tags and then the verison installed with pip install -e . will report the correct version. You can also check that it's correct by running pip install setuptools-scm; python -m setuptools_scm
@simon-mo yes, that's the reason why this is happening.
I will make a patch release once https://github.com/vllm-project/vllm/pull/9375 merged
I use the following command to solve this issue:
pip install "vllm>=0.4.3,<0.6.4"
how is now, other version tip error: error: subprocess-exited-with-error × Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> [17 lines of output]
+1
I use the following command to solve this issue:
pip install "vllm>=0.4.3,<0.6.4"
vllm==0.6.3 not work 0.5.4 is work for me
I also have same problem. However 0.5.4 is not work for me. And "AssertionError: The installed transformers version doesn't support ulysses patch. Please install a version between 4.45.0 and 4.50.0 to use this ulysses feature."
I also have same problem. However 0.5.4 is not work for me. And "AssertionError: The installed
transformersversion doesn't support ulysses patch. Please install a version between 4.45.0 and 4.50.0 to use this ulysses feature."
I suggest, you should use : pip install "transformers>=4.45.0,<=4.50.0"
+1
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!