vllm icon indicating copy to clipboard operation
vllm copied to clipboard

[Bug]: When using the latest 0.6.3, No module named 'vllm._version' appears

Open lixiaolx opened this issue 1 year ago • 13 comments

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.

lixiaolx avatar Oct 16 '24 13:10 lixiaolx

Same issue with mistral-nemo-instruct-2407 and llama31-8b-instruct.

leoguillaume avatar Oct 16 '24 14:10 leoguillaume

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
    )

simon-mo avatar Oct 16 '24 23:10 simon-mo

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

lixiaolx avatar Oct 17 '24 02:10 lixiaolx

same issue with glm-4v-9b cuda 12.1 vllm=0.6.3

CassieFeng avatar Oct 17 '24 02:10 CassieFeng

+1

ganisback avatar Oct 17 '24 05:10 ganisback

same issue with qwen2-vl-instruct cuda12.2 vllm=0.6.3

wsiwei avatar Oct 17 '24 06:10 wsiwei

+1

matian388 avatar Oct 17 '24 08:10 matian388

@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.

dtrifiro avatar Oct 17 '24 08:10 dtrifiro

I will make a patch release once https://github.com/vllm-project/vllm/pull/9375 merged

simon-mo avatar Oct 17 '24 16:10 simon-mo

I use the following command to solve this issue:

pip install "vllm>=0.4.3,<0.6.4"

JieShenAI avatar Nov 25 '24 03:11 JieShenAI

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]

bbotte avatar Jan 09 '25 10:01 bbotte

+1

ArlanCooper avatar Feb 10 '25 12:02 ArlanCooper

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

curehabit avatar Mar 06 '25 02:03 curehabit

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."

royal-dargon avatar Mar 29 '25 09:03 royal-dargon

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 suggest, you should use : pip install "transformers>=4.45.0,<=4.50.0"

JieShenAI avatar Mar 29 '25 10:03 JieShenAI

+1

Necolizer avatar May 15 '25 08:05 Necolizer

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!

github-actions[bot] avatar Aug 15 '25 02:08 github-actions[bot]

This issue has been automatically closed due to inactivity. Please feel free to reopen if you feel it is still relevant. Thank you!

github-actions[bot] avatar Sep 15 '25 02:09 github-actions[bot]