Skip to content

Commit 491342b

Browse files
ZePan110chensuyueyinghu5
authored andcommitted
Organize set_env.sh paths and update README.md (opea-project#1920)
Signed-off-by: ZePan110 <ze.pan@intel.com> Co-authored-by: chen, suyue <suyue.chen@intel.com> Co-authored-by: Ying Hu <ying.hu@intel.com> Signed-off-by: alexsin368 <alex.sin@intel.com>
1 parent 0dd2026 commit 491342b

20 files changed

Lines changed: 34 additions & 30 deletions

File tree

.github/workflows/pr-link-path-scan.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ jobs:
8080
- name: Checking Relative Path Validity
8181
run: |
8282
cd ${{github.workspace}}
83+
delay=15
8384
fail="FALSE"
8485
repo_name=${{ github.event.pull_request.head.repo.full_name }}
8586
branch="https://github.com/$repo_name/blob/${{ github.event.pull_request.head.ref }}"
@@ -111,14 +112,15 @@ jobs:
111112
if [[ "$png_line" == *#* ]]; then
112113
if [ -n "changed_files" ] && echo "$changed_files" | grep -q "^${refer_path}$"; then
113114
url_dev=$branch$(echo "$real_path" | sed 's|.*/GenAIExamples||')$png_path
115+
sleep $delay
114116
response=$(curl -I -L -s -o /dev/null -w "%{http_code}" "$url_dev")
115117
if [ "$response" -ne 200 ]; then
116-
echo "**********Validation failed, try again**********"
118+
echo "**********Validation failed ($response), try again**********"
117119
response_retry=$(curl -s -o /dev/null -w "%{http_code}" "$url_dev")
118120
if [ "$response_retry" -eq 200 ]; then
119121
echo "*****Retry successfully*****"
120122
else
121-
echo "Invalid path from ${{github.workspace}}/$refer_path: $png_path"
123+
echo "Invalid path ($response_retry) from ${{github.workspace}}/$refer_path: $png_path"
122124
fail="TRUE"
123125
fi
124126
else

CodeTrans/docker_compose/intel/cpu/xeon/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export http_proxy="Your_HTTP_Proxy" # http proxy if any
4646
export https_proxy="Your_HTTPs_Proxy" # https proxy if any
4747
export no_proxy=localhost,127.0.0.1,$host_ip # additional no proxies if needed
4848
export NGINX_PORT=${your_nginx_port} # your usable port for nginx, 80 for example
49-
source ./set_env.sh
49+
source docker_compose/intel/set_env.sh
5050
```
5151

5252
Consult the section on [CodeTrans Service configuration](#codetrans-configuration) for information on how service specific configuration parameters affect deployments.

CodeTrans/docker_compose/intel/hpu/gaudi/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export http_proxy="Your_HTTP_Proxy" # http proxy if any
4646
export https_proxy="Your_HTTPs_Proxy" # https proxy if any
4747
export no_proxy=localhost,127.0.0.1,$host_ip # additional no proxies if needed
4848
export NGINX_PORT=${your_nginx_port} # your usable port for nginx, 80 for example
49-
source ./set_env.sh
49+
source docker_compose/intel/set_env.sh
5050
```
5151

5252
Consult the section on [CodeTrans Service configuration](#codetrans-configuration) for information on how service specific configuration parameters affect deployments.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# Copyright (C) 2024 Intel Corporation
44
# SPDX-License-Identifier: Apache-2.0
5-
pushd "../../" > /dev/null
5+
pushd "../../../" > /dev/null
66
source .set_env.sh
77
popd > /dev/null
88

CodeTrans/tests/test_compose_on_gaudi.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@ function build_docker_images() {
3737
}
3838

3939
function start_services() {
40-
cd $WORKPATH/docker_compose
40+
cd $WORKPATH/docker_compose/intel
4141
export HUGGINGFACEHUB_API_TOKEN=${HUGGINGFACEHUB_API_TOKEN}
4242
export NGINX_PORT=80
4343
export host_ip=${ip_address}
4444
source set_env.sh
45-
cd intel/hpu/gaudi
45+
cd hpu/gaudi
4646

4747
sed -i "s/backend_address/$ip_address/g" $WORKPATH/ui/svelte/.env
4848

CodeTrans/tests/test_compose_on_xeon.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,13 @@ function build_docker_images() {
3939
}
4040

4141
function start_services() {
42-
cd $WORKPATH/docker_compose
42+
cd $WORKPATH/docker_compose/intel
4343
export HUGGINGFACEHUB_API_TOKEN=${HUGGINGFACEHUB_API_TOKEN}
4444

4545
export NGINX_PORT=80
4646
export host_ip=${ip_address}
4747
source set_env.sh
48-
cd intel/cpu/xeon/
48+
cd cpu/xeon/
4949

5050
sed -i "s/backend_address/$ip_address/g" $WORKPATH/ui/svelte/.env
5151

CodeTrans/tests/test_compose_tgi_on_gaudi.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@ function build_docker_images() {
3434
}
3535

3636
function start_services() {
37-
cd $WORKPATH/docker_compose
37+
cd $WORKPATH/docker_compose/intel
3838
export HUGGINGFACEHUB_API_TOKEN=${HUGGINGFACEHUB_API_TOKEN}
3939

4040
export NGINX_PORT=80
4141
export host_ip=${ip_address}
4242
source set_env.sh
43-
cd intel/hpu/gaudi/
43+
cd hpu/gaudi/
4444

4545
sed -i "s/backend_address/$ip_address/g" $WORKPATH/ui/svelte/.env
4646

CodeTrans/tests/test_compose_tgi_on_xeon.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@ function build_docker_images() {
3434
}
3535

3636
function start_services() {
37-
cd $WORKPATH/docker_compose
37+
cd $WORKPATH/docker_compose/intel
3838
export HUGGINGFACEHUB_API_TOKEN=${HUGGINGFACEHUB_API_TOKEN}
3939

4040
export NGINX_PORT=80
4141
export host_ip=${ip_address}
4242
source set_env.sh
43-
cd intel/cpu/xeon/
43+
cd cpu/xeon/
4444

4545
sed -i "s/backend_address/$ip_address/g" $WORKPATH/ui/svelte/.env
4646

DocSum/docker_compose/intel/cpu/xeon/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ Clone the GenAIExample repository and access the ChatQnA Intel Xeon platform Doc
2727

2828
```bash
2929
git clone https://github.com/opea-project/GenAIExamples.git
30-
cd GenAIExamples/DocSum/docker_compose
30+
cd GenAIExamples/DocSum/docker_compose/intel
3131
source set_env.sh
32-
cd intel/cpu/xeon/
32+
cd cpu/xeon/
3333
```
3434

3535
NOTE: by default vLLM does "warmup" at start, to optimize its performance for the specified model and the underlying platform, which can take long time. For development (and e.g. autoscaling) it can be skipped with `export VLLM_SKIP_WARMUP=true`.
@@ -49,6 +49,7 @@ Some HuggingFace resources, such as some models, are only accessible if you have
4949
To deploy the DocSum services, execute the `docker compose up` command with the appropriate arguments. For a default deployment, execute:
5050

5151
```bash
52+
cd cpu/xeon/
5253
docker compose up -d
5354
```
5455

DocSum/docker_compose/intel/hpu/gaudi/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ Clone the GenAIExample repository and access the DocSum Intel® Gaudi® platform
2929

3030
```bash
3131
git clone https://github.com/opea-project/GenAIExamples.git
32-
cd GenAIExamples/DocSum/docker_compose
32+
cd GenAIExamples/DocSum/docker_compose/intel
3333
source set_env.sh
34-
cd intel/hpu/gaudi/
34+
cd hpu/gaudi/
3535
```
3636

3737
NOTE: by default vLLM does "warmup" at start, to optimize its performance for the specified model and the underlying platform, which can take long time. For development (and e.g. autoscaling) it can be skipped with `export VLLM_SKIP_WARMUP=true`.
@@ -51,6 +51,7 @@ Some HuggingFace resources, such as some models, are only accessible if you have
5151
To deploy the DocSum services, execute the `docker compose up` command with the appropriate arguments. For a default deployment, execute:
5252

5353
```bash
54+
cd hpu/gaudi/
5455
docker compose up -d
5556
```
5657

0 commit comments

Comments
 (0)