-
-
Notifications
You must be signed in to change notification settings - Fork 7.7k
[Bugfix][Intel] Fix XPU Dockerfile Build #7824
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
Merged
Merged
Changes from 12 commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
0d94a73
Update requirements-xpu.txt
tylertitsworth 94f6c0f
Update Dockerfile.xpu
tylertitsworth 87f2ae9
Update Dockerfile.xpu
tylertitsworth 8c2ac7f
Update Dockerfile.xpu
tylertitsworth 405ba25
update dockerfile
d2b2cae
closer to build
8501045
Merge branch 'vllm-project:main' into main
tylertitsworth 1a1dbad
Merge branch 'vllm-project:main' into main
tylertitsworth 3b140cc
update interface
7ccc035
fix platform spec
ac335d4
Update xpu.py
tylertitsworth 6899720
Update __init__.py
tylertitsworth 8a6eecf
Update .dockerignore
tylertitsworth 60743aa
uncap tiktoken
b14a869
bump oneapi
916144e
Merge branch 'vllm-project:main' into main
tylertitsworth 0d5c597
remove openai server support
tylertitsworth f6c9577
remove unecessary reqs
tylertitsworth 1df6d83
Merge branch 'vllm-project:main' into main
tylertitsworth d8ad520
Merge branch 'main' into main
tylertitsworth cc3df2f
update ipex versions
98f14b8
fix lint error
61a5506
Merge branch 'vllm-project:main' into main
tylertitsworth ea3a728
Merge branch 'main' into main
tylertitsworth 55ad39e
Update Dockerfile.xpu
tylertitsworth 843278e
Merge branch 'main' into main
tylertitsworth cbbd0f4
fix lint and build errors
2f4f8e9
Update xpu.py
tylertitsworth 17adb23
isort xpu.py
73060af
yapf xpu.py (this formatting sucks)
e01fa0a
address pr comments
be5646e
Merge branch 'vllm-project:main' into main
tylertitsworth 1429aba
Update run-xpu-test.sh
tylertitsworth c901ecf
Merge branch 'main' into xpu-main
youkaichao File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
vllm/*.so | ||
/.github/ | ||
/.venv | ||
/build | ||
/docs | ||
dist | ||
Dockerfile* | ||
vllm/*.so |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
# Common dependencies | ||
-r requirements-common.txt | ||
|
||
setuptools < 70.0.0 # IPEX's torch have some dependency. to be removed. | ||
tylertitsworth marked this conversation as resolved.
Show resolved
Hide resolved
|
||
setuptools == 69.5.1 # IPEX XPU dependency | ||
|
||
torch @ https://intel-extension-for-pytorch.s3.amazonaws.com/ipex_dev/xpu/torch-2.1.0.post1%2Bcxx11.abi-cp310-cp310-linux_x86_64.whl | ||
intel_extension_for_pytorch @ https://intel-extension-for-pytorch.s3.amazonaws.com/ipex_dev/xpu/intel_extension_for_pytorch-2.1.30a0-cp310-cp310-linux_x86_64.whl | ||
oneccl_bind_pt @ https://intel-extension-for-pytorch.s3.amazonaws.com/ipex_stable/xpu/oneccl_bind_pt-2.1.200%2Bxpu-cp310-cp310-linux_x86_64.whl | ||
|
||
triton @ https://github.com/intel/intel-xpu-backend-for-triton/releases/download/v2.1.0/triton-2.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl | ||
torch == 2.1.0.post3+cxx11.abi | ||
torchvision == 0.16.0.post3+cxx11.abi | ||
tylertitsworth marked this conversation as resolved.
Show resolved
Hide resolved
|
||
torchaudio == 2.1.0.post3+cxx11.abi | ||
intel_extension_for_pytorch == 2.1.40+xpu | ||
oneccl_bind_pt == 2.1.400+xpu | ||
|
||
triton-xpu @ https://github.com/intel/intel-xpu-backend-for-triton/releases/download/v3.0.0b2/triton_xpu-3.0.0b2-cp310-cp310-linux_x86_64.whl | ||
--extra-index-url https://pytorch-extension.intel.com/release-whl/stable/xpu/us/ | ||
tylertitsworth marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
from typing import Tuple | ||
|
||
import torch | ||
|
||
from .interface import Platform, PlatformEnum | ||
|
||
|
||
class XPUPlatform(Platform): | ||
_enum = PlatformEnum.XPU | ||
|
||
@staticmethod | ||
def get_device_capability(device_id: int = 0) -> Tuple[int, int]: | ||
return torch.xpu.get_device_capability(device_id) | ||
|
||
@staticmethod | ||
def get_device_name(device_id: int = 0) -> str: | ||
return torch.xpu.get_device_name(device_id) |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.