Skip to content

Commit f2d95a9

Browse files
ZePan110chensuyue
authored andcommitted
Enable AvatarChatbot model cache for docker compose test. (opea-project#1604)
Signed-off-by: ZePan110 <ze.pan@intel.com> Co-authored-by: chen, suyue <suyue.chen@intel.com> Signed-off-by: Chingis Yundunov <c.yundunov@datamonsters.com>
1 parent 9836332 commit f2d95a9

File tree

6 files changed

+6
-3
lines changed

6 files changed

+6
-3
lines changed

AvatarChatbot/docker_compose/amd/gpu/rocm/compose.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ services:
4747
ports:
4848
- "${TGI_SERVICE_PORT:-3006}:80"
4949
volumes:
50-
- "./data:/data"
50+
- "${MODEL_CACHE:-./data}:/data"
5151
environment:
5252
no_proxy: ${no_proxy}
5353
http_proxy: ${http_proxy}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ services:
3131
ports:
3232
- "3006:80"
3333
volumes:
34-
- "./data:/data"
34+
- "${MODEL_CACHE:-./data}:/data"
3535
shm_size: 1g
3636
environment:
3737
no_proxy: ${no_proxy}

AvatarChatbot/docker_compose/intel/hpu/gaudi/compose.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ services:
4343
ports:
4444
- "3006:80"
4545
volumes:
46-
- "./data:/data"
46+
- "${MODEL_CACHE:-./data}:/data"
4747
environment:
4848
no_proxy: ${no_proxy}
4949
http_proxy: ${http_proxy}

AvatarChatbot/tests/test_compose_on_gaudi.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ echo "REGISTRY=IMAGE_REPO=${IMAGE_REPO}"
99
echo "TAG=IMAGE_TAG=${IMAGE_TAG}"
1010
export REGISTRY=${IMAGE_REPO}
1111
export TAG=${IMAGE_TAG}
12+
export MODEL_CACHE=${model_cache:-"./data"}
1213

1314
WORKPATH=$(dirname "$PWD")
1415
LOG_PATH="$WORKPATH/tests"

AvatarChatbot/tests/test_compose_on_rocm.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ echo "REGISTRY=IMAGE_REPO=${IMAGE_REPO}"
99
echo "TAG=IMAGE_TAG=${IMAGE_TAG}"
1010
export REGISTRY=${IMAGE_REPO}
1111
export TAG=${IMAGE_TAG}
12+
export MODEL_CACHE=${model_cache:-"/var/lib/GenAI/data"}
1213

1314
WORKPATH=$(dirname "$PWD")
1415
LOG_PATH="$WORKPATH/tests"

AvatarChatbot/tests/test_compose_on_xeon.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ echo "REGISTRY=IMAGE_REPO=${IMAGE_REPO}"
99
echo "TAG=IMAGE_TAG=${IMAGE_TAG}"
1010
export REGISTRY=${IMAGE_REPO}
1111
export TAG=${IMAGE_TAG}
12+
export MODEL_CACHE=${model_cache:-"./data"}
1213

1314
WORKPATH=$(dirname "$PWD")
1415
LOG_PATH="$WORKPATH/tests"

0 commit comments

Comments
 (0)