-
Notifications
You must be signed in to change notification settings - Fork 216
Add vLLM ARC support with OpenVINO backend #641
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 7 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
83f7641
Add vllm Arc Dockerfile support
gavinlichn c1c6431
Add vLLM ARC support
gavinlichn e2f60d8
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 8ace5b4
Add README and .github workflow for vLLM ARC support
gavinlichn 3590ccc
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 4d9e3ed
Update comps/llms/text-generation/vllm/langchain/README.md
gavinlichn 5b404bb
Rename Dockerfile to meet Contribution Guidelines
gavinlichn 261530d
Align image names as opea/vllm-arc:latest
gavinlichn 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
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
43 changes: 43 additions & 0 deletions
43
comps/llms/text-generation/vllm/langchain/dependency/Dockerfile.intel_gpu
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,43 @@ | ||
| # The vLLM Dockerfile is used to construct vLLM image that can be directly used | ||
| # to run the OpenAI compatible server. | ||
| # Based on https://github.com/vllm-project/vllm/blob/main/Dockerfile.openvino | ||
| # add Intel ARC support package | ||
|
|
||
| FROM ubuntu:22.04 AS dev | ||
|
|
||
| RUN apt-get update -y && \ | ||
| apt-get install -y \ | ||
| git python3-pip \ | ||
| ffmpeg libsm6 libxext6 libgl1 \ | ||
| gpg-agent wget | ||
|
|
||
| RUN wget -qO - https://repositories.intel.com/gpu/intel-graphics.key | gpg --yes --dearmor --output /usr/share/keyrings/intel-graphics.gpg && \ | ||
| echo "deb [arch=amd64 signed-by=/usr/share/keyrings/intel-graphics.gpg] https://repositories.intel.com/gpu/ubuntu jammy/lts/2350 unified" | \ | ||
| tee /etc/apt/sources.list.d/intel-gpu-jammy.list &&\ | ||
| apt update -y &&\ | ||
| apt install -y \ | ||
| intel-opencl-icd intel-level-zero-gpu level-zero \ | ||
| intel-media-va-driver-non-free libmfx1 libmfxgen1 libvpl2 \ | ||
| libegl-mesa0 libegl1-mesa libegl1-mesa-dev libgbm1 libgl1-mesa-dev libgl1-mesa-dri \ | ||
| libglapi-mesa libgles2-mesa-dev libglx-mesa0 libigdgmm12 libxatracker2 mesa-va-drivers \ | ||
| mesa-vdpau-drivers mesa-vulkan-drivers va-driver-all vainfo hwinfo clinfo | ||
|
|
||
| WORKDIR /workspace | ||
|
|
||
| RUN git clone -b v0.6.3.post1 https://github.com/vllm-project/vllm.git | ||
|
|
||
| #ARG GIT_REPO_CHECK=0 | ||
| #RUN --mount=type=bind,source=.git,target=.git \ | ||
| # if [ "$GIT_REPO_CHECK" != 0 ]; then bash tools/check_repo.sh ; fi | ||
|
|
||
| # install build requirements | ||
| RUN PIP_EXTRA_INDEX_URL="https://download.pytorch.org/whl/cpu" python3 -m pip install -r /workspace/vllm/requirements-build.txt | ||
| # build vLLM with OpenVINO backend | ||
| RUN PIP_EXTRA_INDEX_URL="https://download.pytorch.org/whl/cpu" VLLM_TARGET_DEVICE="openvino" python3 -m pip install /workspace/vllm/ | ||
|
|
||
| #COPY examples/ /workspace/vllm/examples | ||
| #COPY benchmarks/ /workspace/vllm/benchmarks | ||
|
|
||
|
|
||
| CMD ["/bin/bash"] | ||
|
|
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
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.