-
Notifications
You must be signed in to change notification settings - Fork 197
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
ChatQnA - add files for deploy ChatQnA application on AMD ROCm with vLLM service #1181
Open
chyundunovDatamonsters
wants to merge
11
commits into
opea-project:main
Choose a base branch
from
chyundunovDatamonsters:feature/GenAIExample_ChatQnA_AMD_vLLM
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 4 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
833c14f
ChatQnA - add files for deploy ChatQnA applications on AMD GPU with v…
6b54854
ChatQnA - fix README.md for deploy on AMD GPU with vLLM service
2634171
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 60871f2
Merge branch 'main' into feature/GenAIExample_ChatQnA_AMD_vLLM
chyundunovDatamonsters 58f3fa3
ProductivitySuite - fix Docker compose file, set envs script for depl…
c185a8d
ProductivitySuite - fix Docker compose file, set envs script for depl…
5b4a3c6
ChatQnA - add files deploy for benchmark
5c5eacd
ChatQnA - add files deploy for benchmark
ac1765b
ChatQnA - add files deploy for benchmark
021f2c2
ChatQnA - add files deploy for benchmark
751d7e1
ChatQnA - add files deploy for benchmark
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 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,18 @@ | ||
FROM rocm/vllm:rocm6.2_mi300_ubuntu20.04_py3.9_vllm_0.6.4 | ||
|
||
# Set the working directory | ||
WORKDIR /workspace | ||
|
||
# Copy the api_server.py into the image | ||
ADD https://raw.githubusercontent.com/ROCm/vllm/a466f09d7f20ca073f21e3f64b8c9487e4c4ff4b/vllm/entrypoints/sync_openai/api_server.py /workspace/api_server.py | ||
|
||
# Expose the port used by the API server | ||
EXPOSE 8011 | ||
|
||
# Set environment variables | ||
ENV HUGGINGFACE_HUB_CACHE=/workspace | ||
ENV WILM_USE_TRITON_FLASH_ATTENTION=0 | ||
ENV PYTORCH_JIT=0 | ||
|
||
# Set the entrypoint to the api_server.py script | ||
ENTRYPOINT ["python3", "/workspace/api_server.py"] |
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's put the dockerfile under
GenAIExamples/ChatQnA/
, it can be named asDockerfile.vllm_rocm
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good. I will place the file according to the proposed path and adapt the scripts