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

vllm hpu fix version for bug fix #903

Merged
merged 9 commits into from
Nov 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/_comps-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
fi
if [[ $(grep -c "vllm-hpu:" ${docker_compose_yml}) != 0 ]]; then
git clone https://github.com/HabanaAI/vllm-fork.git vllm-fork
cd vllm-fork && git rev-parse HEAD && cd ../
cd vllm-fork && git checkout 3c39626 && cd ../
fi
- name: Get build list
id: get-build-list
Expand Down
6 changes: 0 additions & 6 deletions comps/llms/text-generation/vllm/langchain/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,6 @@ bash ./build_docker_vllm.sh hpu

Set `hw_mode` to `hpu`.

Note: If you want to enable tensor parallel, please set `setuptools==69.5.1` in Dockerfile.hpu before build docker with following command.

```
sed -i "s/RUN pip install setuptools/RUN pip install setuptools==69.5.1/g" docker/Dockerfile.hpu
```

#### Launch vLLM service on single node

For small model, we can just use single node.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ fi
if [ "$hw_mode" = "hpu" ]; then
git clone https://github.com/HabanaAI/vllm-fork.git
cd ./vllm-fork/
git checkout 3c39626
docker build -f Dockerfile.hpu -t opea/vllm-hpu:latest --shm-size=128g . --build-arg https_proxy=$https_proxy --build-arg http_proxy=$http_proxy
cd ..
rm -rf vllm-fork
Expand Down
6 changes: 0 additions & 6 deletions comps/llms/text-generation/vllm/llama_index/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,6 @@ bash ./build_docker_vllm.sh hpu

Set `hw_mode` to `hpu`.

Note: If you want to enable tensor parallel, please set `setuptools==69.5.1` in Dockerfile.hpu before build docker with following command.

```
sed -i "s/RUN pip install setuptools/RUN pip install setuptools==69.5.1/g" docker/Dockerfile.hpu
```

#### Launch vLLM service on single node

For small model, we can just use single node.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ fi
if [ "$hw_mode" = "hpu" ]; then
git clone https://github.com/HabanaAI/vllm-fork.git
cd ./vllm-fork/
git checkout 3c39626
docker build -f Dockerfile.hpu -t opea/vllm-hpu:latest --shm-size=128g . --build-arg https_proxy=$https_proxy --build-arg http_proxy=$http_proxy
cd ..
rm -rf vllm-fork
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ function build_docker_images() {
cd $WORKPATH
git clone https://github.com/HabanaAI/vllm-fork.git
cd vllm-fork/
git checkout 3c39626
docker build --no-cache -f Dockerfile.hpu -t opea/vllm-hpu:comps --shm-size=128g .
if [ $? -ne 0 ]; then
echo "opea/vllm-hpu built fail"
Expand All @@ -34,7 +35,7 @@ function build_docker_images() {
}

function start_service() {
export LLM_MODEL="facebook/opt-125m"
export LLM_MODEL="Intel/neural-chat-7b-v3-3"
port_number=5025
docker run -d --rm \
--runtime=habana \
Expand Down Expand Up @@ -76,7 +77,7 @@ function validate_microservice() {
result=$(http_proxy="" curl http://${ip_address}:5025/v1/completions \
-H "Content-Type: application/json" \
-d '{
"model": "facebook/opt-125m",
"model": "Intel/neural-chat-7b-v3-3",
"prompt": "What is Deep Learning?",
"max_tokens": 32,
"temperature": 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ function build_docker_images() {
cd $WORKPATH
git clone https://github.com/HabanaAI/vllm-fork.git
cd vllm-fork/
git checkout 3c39626
docker build --no-cache -f Dockerfile.hpu -t opea/vllm-hpu:comps --shm-size=128g .
if [ $? -ne 0 ]; then
echo "opea/vllm-hpu built fail"
Expand All @@ -34,7 +35,7 @@ function build_docker_images() {
}

function start_service() {
export LLM_MODEL="facebook/opt-125m"
export LLM_MODEL="Intel/neural-chat-7b-v3-3"
port_number=5025
docker run -d --rm \
--runtime=habana \
Expand Down Expand Up @@ -76,7 +77,7 @@ function validate_microservice() {
result=$(http_proxy="" curl http://${ip_address}:5025/v1/completions \
-H "Content-Type: application/json" \
-d '{
"model": "facebook/opt-125m",
"model": "Intel/neural-chat-7b-v3-3",
"prompt": "What is Deep Learning?",
"max_tokens": 32,
"temperature": 0
Expand Down