Skip to content

Commit b9d6d04

Browse files
committed
Fix cache dirs and clip endpoint
Signed-off-by: Lacewell, Chaunte W <chaunte.w.lacewell@intel.com>
1 parent 079a752 commit b9d6d04

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

VideoQnA/docker_compose/intel/cpu/xeon/compose.yaml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ services:
2828
COLLECTION_NAME: ${INDEX_NAME}
2929
HUGGINGFACEHUB_API_TOKEN: ${HUGGINGFACEHUB_API_TOKEN}
3030
volumes:
31-
- ${CACHE_DIR}/clip:/home/user/.cache/clip
32-
- ${CACHE_DIR}/huggingface/hub:/home/user/.cache/huggingface/hub
31+
- ${CACHE_DIR}/clip:/root/.cache/clip
32+
- ${CACHE_DIR}/huggingface/hub:/root/.cache/huggingface/hub
3333
embedding:
3434
image: ${REGISTRY:-opea}/embedding-multimodal-clip:${TAG:-latest}
3535
container_name: clip-embedding-server
@@ -40,10 +40,11 @@ services:
4040
no_proxy: ${no_proxy}
4141
http_proxy: ${http_proxy}
4242
https_proxy: ${https_proxy}
43+
CLIP_EMBEDDING_ENDPOINT: ${CLIP_EMBEDDING_ENDPOINT}
4344
EMBEDDING_COMPONENT_NAME: "OPEA_CLIP_EMBEDDING"
4445
LOGFLAG: ${LOGFLAG:-False}
4546
volumes:
46-
- ${CACHE_DIR}/huggingface/hub:/home/user/.cache/huggingface/hub
47+
- ${CACHE_DIR}/huggingface/hub:/root/.cache/huggingface/hub
4748
restart: unless-stopped
4849
retriever:
4950
image: ${REGISTRY:-opea}/retriever:${TAG:-latest}
@@ -67,7 +68,7 @@ services:
6768
NUMBA_CACHE_DIR: "/tmp/numba_cache"
6869
restart: unless-stopped
6970
volumes:
70-
- ${CACHE_DIR}/huggingface/hub:/home/user/.cache/huggingface/hub
71+
- ${CACHE_DIR}/huggingface/hub:/root/.cache/huggingface/hub
7172
reranking:
7273
image: ${REGISTRY:-opea}/reranking:${TAG:-latest}
7374
container_name: reranking-tei-server
@@ -95,7 +96,7 @@ services:
9596
no_proxy: ${no_proxy}
9697
llm_download: ${LLM_DOWNLOAD}
9798
volumes:
98-
- video-llama-model:/home/user/model
99+
- video-llama-model:/root/model
99100
restart: unless-stopped
100101
lvm:
101102
image: ${REGISTRY:-opea}/lvm:${TAG:-latest}

VideoQnA/tests/test_compose_on_xeon.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ function setup_env() {
6161
export BACKEND_PORT=8888
6262
export DATAPREP_PORT=6007
6363
export EMBEDDER_PORT=6990
64+
export MULTIMODAL_CLIP_EMBEDDER_PORT=6991
6465
export LVM_PORT=9399
6566
export RERANKING_PORT=8000
6667
export RETRIEVER_PORT=7000
@@ -70,6 +71,7 @@ function setup_env() {
7071

7172
export BACKEND_HEALTH_CHECK_ENDPOINT="http://${host_ip}:${BACKEND_PORT}/v1/health_check"
7273
export BACKEND_SERVICE_ENDPOINT="http://${host_ip}:${BACKEND_PORT}/v1/videoqna"
74+
export CLIP_EMBEDDING_ENDPOINT="http://${host_ip}:${MULTIMODAL_CLIP_EMBEDDER_PORT}"
7375
export DATAPREP_GET_FILE_ENDPOINT="http://${host_ip}:${DATAPREP_PORT}/v1/dataprep/get"
7476
export DATAPREP_GET_VIDEO_LIST_ENDPOINT="http://${host_ip}:${DATAPREP_PORT}/v1/dataprep/get_videos"
7577
export DATAPREP_INGEST_SERVICE_ENDPOINT="http://${host_ip}:${DATAPREP_PORT}/v1/dataprep/ingest_videos"

0 commit comments

Comments
 (0)