@@ -10,21 +10,11 @@ echo "TAG=IMAGE_TAG=${IMAGE_TAG}"
10
10
export REGISTRY=${IMAGE_REPO}
11
11
export TAG=${IMAGE_TAG}
12
12
export MODEL_CACHE=${model_cache:- " ./data" }
13
- export REDIS_DB_PORT=6379
14
- export REDIS_INSIGHTS_PORT=8001
15
- export REDIS_RETRIEVER_PORT=7000
16
- export EMBEDDER_PORT=6000
17
- export TEI_EMBEDDER_PORT=8090
18
- export DATAPREP_REDIS_PORT=6007
19
13
20
14
WORKPATH=$( dirname " $PWD " )
21
15
LOG_PATH=" $WORKPATH /tests"
22
16
ip_address=$( hostname -I | awk ' {print $1}' )
23
17
24
- export http_proxy=${http_proxy}
25
- export https_proxy=${https_proxy}
26
- export no_proxy=${no_proxy} ,${ip_address}
27
-
28
18
function build_docker_images() {
29
19
opea_branch=${opea_branch:- " main" }
30
20
# If the opea_branch isn't main, replace the git clone branch in Dockerfile.
@@ -58,29 +48,10 @@ function start_services() {
58
48
local compose_profile=" $1 "
59
49
local llm_container_name=" $2 "
60
50
61
- cd $WORKPATH /docker_compose/intel/hpu/gaudi
62
-
63
- export LLM_MODEL_ID=" Qwen/Qwen2.5-Coder-7B-Instruct"
64
- export LLM_ENDPOINT=" http://${ip_address} :8028"
51
+ cd $WORKPATH /docker_compose
65
52
export HUGGINGFACEHUB_API_TOKEN=${HUGGINGFACEHUB_API_TOKEN}
66
- export MEGA_SERVICE_PORT=7778
67
- export MEGA_SERVICE_HOST_IP=${ip_address}
68
- export LLM_SERVICE_HOST_IP=${ip_address}
69
- export BACKEND_SERVICE_ENDPOINT=" http://${ip_address} :${MEGA_SERVICE_PORT} /v1/codegen"
70
- export NUM_CARDS=1
71
- export host_ip=${ip_address}
72
-
73
- export REDIS_URL=" redis://${host_ip} :${REDIS_DB_PORT} "
74
- export RETRIEVAL_SERVICE_HOST_IP=${host_ip}
75
- export RETRIEVER_COMPONENT_NAME=" OPEA_RETRIEVER_REDIS"
76
- export INDEX_NAME=" CodeGen"
77
-
78
- export EMBEDDING_MODEL_ID=" BAAI/bge-base-en-v1.5"
79
- export TEI_EMBEDDING_HOST_IP=${host_ip}
80
- export TEI_EMBEDDING_ENDPOINT=" http://${host_ip} :${TEI_EMBEDDER_PORT} "
81
- export DATAPREP_ENDPOINT=" http://${host_ip} :${DATAPREP_REDIS_PORT} /v1/dataprep"
82
-
83
- export INDEX_NAME=" CodeGen"
53
+ source set_env.sh
54
+ cd intel/hpu/gaudi
84
55
85
56
# Start Docker Containers
86
57
docker compose --profile ${compose_profile} up -d | tee ${LOG_PATH} /start_services_with_compose.log
@@ -176,7 +147,7 @@ function validate_megaservice() {
176
147
# Curl the Mega Service with index_name and agents_flag
177
148
validate_services \
178
149
" ${ip_address} :7778/v1/codegen" \
179
- " " \
150
+ " fingerprint " \
180
151
" mega-codegen" \
181
152
" codegen-gaudi-backend-server" \
182
153
' { "index_name": "test_redis", "agents_flag": "True", "messages": "def print_hello_world():", "max_tokens": 256}'
0 commit comments