@@ -10,21 +10,11 @@ echo "TAG=IMAGE_TAG=${IMAGE_TAG}"
1010export REGISTRY=${IMAGE_REPO}
1111export TAG=${IMAGE_TAG}
1212export 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
1913
2014WORKPATH=$( dirname " $PWD " )
2115LOG_PATH=" $WORKPATH /tests"
2216ip_address=$( hostname -I | awk ' {print $1}' )
2317
24- export http_proxy=${http_proxy}
25- export https_proxy=${https_proxy}
26- export no_proxy=${no_proxy} ,${ip_address}
27-
2818function build_docker_images() {
2919 opea_branch=${opea_branch:- " main" }
3020 # If the opea_branch isn't main, replace the git clone branch in Dockerfile.
@@ -58,29 +48,10 @@ function start_services() {
5848 local compose_profile=" $1 "
5949 local llm_container_name=" $2 "
6050
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
6552 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
8455
8556 # Start Docker Containers
8657 docker compose --profile ${compose_profile} up -d | tee ${LOG_PATH} /start_services_with_compose.log
@@ -176,7 +147,7 @@ function validate_megaservice() {
176147 # Curl the Mega Service with index_name and agents_flag
177148 validate_services \
178149 " ${ip_address} :7778/v1/codegen" \
179- " " \
150+ " fingerprint " \
180151 " mega-codegen" \
181152 " codegen-gaudi-backend-server" \
182153 ' { "index_name": "test_redis", "agents_flag": "True", "messages": "def print_hello_world():", "max_tokens": 256}'
0 commit comments