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

lock torch version to 2.0.1 when build for #1283 #1290

Merged
merged 4 commits into from
Oct 10, 2023

Conversation

yanxiyue
Copy link
Contributor

@yanxiyue yanxiyue commented Oct 8, 2023

torch 2.1.0 was compiled with CUDA 12.1, which not compatible with vllm。issue #1283

@Linzecong
Copy link

When --tensor-parallel-size is greater than 1, multi-gpu parallel startup will get stuck.
It only happens when ray version is 2.7. I'm not sure if I'm the only one having this problem.

@@ -3,7 +3,7 @@ requires = [
"ninja",
"packaging",
"setuptools",
"torch >= 2.0.0",
"torch == 2.0.1",
Copy link
Contributor

Choose a reason for hiding this comment

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

Will torch >= 2.0.0, < 2.1.0 be better? It seems that torch == 2.0.0 works as well.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Thanks for the suggestion. I think this is good since xformers requires torch 2.0.1

(RECOMMENDED, linux & win) Install latest stable with pip: Requires PyTorch 2.0.1

@LRY89757
Copy link

LRY89757 commented Oct 9, 2023

This only works for cuda 11.x, but not for further cuda 12.x or higher : (
This is just a stopgap measure I'm afraid of.
#1301

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 6a61195 into vllm-project:main Oct 10, 2023
irfansharif added a commit to modal-labs/modal-examples that referenced this pull request Oct 13, 2023
Fixes #463. Pytorch 2.1.0 (https://github.com/pytorch/pytorch/releases/tag/v2.1.0)
was just released just last week, and it's built using CUDA 12.1. The
image we're using uses CUDA 11.8, as recommended by vLLM. Previously
vLLM specified a dependency on torch>=2.0.0, and picked up this 2.1.0
version. That was pinned back to 2.0.1 in
vllm-project/vllm#1290. When picking up that SHA
however, we ran into what vllm-project/vllm#1239
fixes. So for now point to temporary fork with that fix.
irfansharif added a commit to modal-labs/modal-examples that referenced this pull request Oct 14, 2023
Fixes #463. Pytorch 2.1.0 (https://github.com/pytorch/pytorch/releases/tag/v2.1.0)
was just released just last week, and it's built using CUDA 12.1. The
image we're using uses CUDA 11.8, as recommended by vLLM. Previously
vLLM specified a dependency on torch>=2.0.0, and picked up this 2.1.0
version. That was pinned back to 2.0.1 in
vllm-project/vllm#1290. When picking up that SHA
however, we ran into what vllm-project/vllm#1239
fixes. So for now point to temporary fork with that fix.
@yanxiyue yanxiyue deleted the master branch October 17, 2023 07:44
gongy pushed a commit to modal-labs/modal-examples that referenced this pull request Jan 5, 2024
Fixes #463. Pytorch 2.1.0 (https://github.com/pytorch/pytorch/releases/tag/v2.1.0)
was just released just last week, and it's built using CUDA 12.1. The
image we're using uses CUDA 11.8, as recommended by vLLM. Previously
vLLM specified a dependency on torch>=2.0.0, and picked up this 2.1.0
version. That was pinned back to 2.0.1 in
vllm-project/vllm#1290. When picking up that SHA
however, we ran into what vllm-project/vllm#1239
fixes. So for now point to temporary fork with that fix.
hongxiayang pushed a commit to hongxiayang/vllm that referenced this pull request Feb 13, 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.

5 participants