Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BugFix] Use different mechanism to get vllm version in is_cpu() #3804

Merged
merged 2 commits into from
Apr 3, 2024

Conversation

njhill
Copy link
Member

@njhill njhill commented Apr 2, 2024

Using importlib.metadata.version() function doesn't work in the non-CPU docker image.

Introduced in #3634

Equivalent fix to #3735

Using importlib version() function doesn't work in the docker image.

Introduced in vllm-project#3634

Equivalent fix to vllm-project#3735
@njhill njhill requested a review from simon-mo April 2, 2024 20:15
@njhill
Copy link
Member Author

njhill commented Apr 2, 2024

I guess this doesn't seem to work for detecting that it's a CPU build.

@njhill
Copy link
Member Author

njhill commented Apr 2, 2024

Have reworked the fix - this works because the CPU image is currently built via setup.py even though others aren't.

@simon-mo simon-mo requested a review from WoosukKwon April 3, 2024 01:38
Copy link
Collaborator

@WoosukKwon WoosukKwon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks for the fix!

@WoosukKwon WoosukKwon merged commit c9b506d into vllm-project:main Apr 3, 2024
35 checks passed
@njhill njhill deleted the fix-version-check branch April 3, 2024 18:31
z103cb pushed a commit to z103cb/opendatahub_vllm that referenced this pull request Apr 22, 2024
Temirulan pushed a commit to Temirulan/vllm-whisper that referenced this pull request Sep 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants