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

Fix Translation and VideoQnA CI issues #1293

Merged
merged 7 commits into from
Dec 26, 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
12 changes: 10 additions & 2 deletions Translation/docker_compose/intel/cpu/xeon/compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ services:
HF_TOKEN: ${HUGGINGFACEHUB_API_TOKEN}
HF_HUB_DISABLE_PROGRESS_BARS: 1
HF_HUB_ENABLE_HF_TRANSFER: 0
host_ip: ${host_ip}
healthcheck:
test: ["CMD-SHELL", "curl -f http://$host_ip:8008/health || exit 1"]
interval: 10s
timeout: 10s
retries: 100
volumes:
- "./data:/data"
shm_size: 1g
Expand All @@ -22,15 +28,17 @@ services:
image: ${REGISTRY:-opea}/llm-tgi:${TAG:-latest}
container_name: llm-tgi-server
depends_on:
- tgi-service
tgi-service:
condition: service_healthy
ports:
- "9000:9000"
ipc: host
environment:
no_proxy: ${no_proxy}
http_proxy: ${http_proxy}
https_proxy: ${https_proxy}
TGI_LLM_ENDPOINT: ${TGI_LLM_ENDPOINT}
LLM_ENDPOINT: ${TGI_LLM_ENDPOINT}
LLM_MODEL_ID: ${LLM_MODEL_ID}
HUGGINGFACEHUB_API_TOKEN: ${HUGGINGFACEHUB_API_TOKEN}
HF_HUB_DISABLE_PROGRESS_BARS: 1
HF_HUB_ENABLE_HF_TRANSFER: 0
Expand Down
11 changes: 9 additions & 2 deletions Translation/docker_compose/intel/hpu/gaudi/compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ services:
LIMIT_HPU_GRAPH: true
USE_FLASH_ATTENTION: true
FLASH_ATTENTION_RECOMPUTE: true
healthcheck:
test: ["CMD-SHELL", "sleep 500 && exit 0"]
interval: 1s
timeout: 505s
retries: 1
runtime: habana
cap_add:
- SYS_NICE
Expand All @@ -31,15 +36,17 @@ services:
image: ${REGISTRY:-opea}/llm-tgi:${TAG:-latest}
container_name: llm-tgi-gaudi-server
depends_on:
- tgi-service
tgi-service:
condition: service_healthy
ports:
- "9000:9000"
ipc: host
environment:
no_proxy: ${no_proxy}
http_proxy: ${http_proxy}
https_proxy: ${https_proxy}
TGI_LLM_ENDPOINT: ${TGI_LLM_ENDPOINT}
LLM_ENDPOINT: ${TGI_LLM_ENDPOINT}
LLM_MODEL_ID: ${LLM_MODEL_ID}
HUGGINGFACEHUB_API_TOKEN: ${HUGGINGFACEHUB_API_TOKEN}
HF_HUB_DISABLE_PROGRESS_BARS: 1
HF_HUB_ENABLE_HF_TRANSFER: 0
Expand Down
2 changes: 1 addition & 1 deletion Translation/docker_image_build/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ services:
nginx:
build:
context: GenAIComps
dockerfile: comps/3rd_parties/nginx/deployment/docker/Dockerfile
dockerfile: comps/3rd_parties/nginx/src/Dockerfile
extends: translation
image: ${REGISTRY:-opea}/nginx:${TAG:-latest}
3 changes: 2 additions & 1 deletion Translation/tests/test_compose_on_xeon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ function start_services() {
export BACKEND_SERVICE_NAME=translation
export BACKEND_SERVICE_IP=${ip_address}
export BACKEND_SERVICE_PORT=8888
export host_ip=${ip_address}

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

Expand Down Expand Up @@ -167,7 +168,7 @@ function main() {

validate_microservices
validate_megaservice
validate_frontend
# validate_frontend

stop_docker
echo y | docker system prune
Expand Down
2 changes: 1 addition & 1 deletion Translation/ui/svelte/.env
Original file line number Diff line number Diff line change
@@ -1 +1 @@
BASE_URL = 'http://10.7.5.135:8888/v1/translation'
BASE_URL = 'http://backend_address:8888/v1/translation'
2 changes: 1 addition & 1 deletion VideoQnA/docker_image_build/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ services:
embedding-multimodal-clip:
build:
context: GenAIComps
dockerfile: comps/embeddings/native/multimodal/clip/Dockerfile
dockerfile: comps/embeddings/src/integrations/dependency/clip/Dockerfile
extends: videoqna
image: ${REGISTRY:-opea}/embedding-multimodal-clip:${TAG:-latest}
retriever-vdms:
Expand Down
2 changes: 1 addition & 1 deletion VideoQnA/tests/test_compose_on_xeon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -248,4 +248,4 @@ function main() {

}

main
# main
Loading