File tree Expand file tree Collapse file tree 6 files changed +20
-12
lines changed Expand file tree Collapse file tree 6 files changed +20
-12
lines changed Original file line number Diff line number Diff line change 3
3
# Copyright (C) 2024 Intel Corporation
4
4
# SPDX-License-Identifier: Apache-2.0
5
5
6
- FROM langchain/langchain:latest
6
+ FROM python:3.11-slim
7
7
8
8
RUN apt-get update -y && apt-get install -y --no-install-recommends --fix-missing \
9
9
libgl1-mesa-glx \
10
10
libjemalloc-dev \
11
- vim
11
+ vim \
12
+ git
12
13
13
14
RUN useradd -m -s /bin/bash user && \
14
15
mkdir -p /home/user && \
Original file line number Diff line number Diff line change 3
3
# Copyright (C) 2024 Intel Corporation
4
4
# SPDX-License-Identifier: Apache-2.0
5
5
6
- FROM langchain/langchain:latest
6
+ FROM python:3.11-slim
7
7
8
8
9
9
RUN apt-get update -y && apt-get install -y --no-install-recommends --fix-missing \
10
10
libgl1-mesa-glx \
11
11
libjemalloc-dev \
12
- vim
12
+ vim \
13
+ git
13
14
14
15
RUN useradd -m -s /bin/bash user && \
15
16
mkdir -p /home/user && \
Original file line number Diff line number Diff line change 13
13
# limitations under the License.
14
14
15
15
16
- FROM langchain/langchain:latest
16
+ FROM python:3.11-slim
17
17
18
18
RUN apt-get update -y && apt-get install -y --no-install-recommends --fix-missing \
19
19
libgl1-mesa-glx \
Original file line number Diff line number Diff line change @@ -11,7 +11,15 @@ services:
11
11
http_proxy : ${http_proxy}
12
12
https_proxy : ${https_proxy}
13
13
TGI_LLM_ENDPOINT : ${TGI_LLM_ENDPOINT}
14
- HUGGINGFACEHUB_API_TOKEN : ${HUGGINGFACEHUB_API_TOKEN}
14
+ HF_TOKEN : ${HUGGINGFACEHUB_API_TOKEN}
15
+ HF_HUB_DISABLE_PROGRESS_BARS : 1
16
+ HF_HUB_ENABLE_HF_TRANSFER : 0
17
+ HABANA_VISIBLE_DEVICES : all
18
+ OMPI_MCA_btl_vader_single_copy_mechanism : none
19
+ runtime : habana
20
+ cap_add :
21
+ - SYS_NICE
22
+ ipc : host
15
23
volumes :
16
24
- " ./data:/data"
17
25
command : --model-id ${LLM_MODEL_ID} --max-input-length 1024 --max-total-tokens 2048
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ function start_services() {
47
47
if grep -q Connected ${LOG_PATH} /tgi_service_start.log; then
48
48
break
49
49
fi
50
- sleep 5s
50
+ sleep 10s
51
51
n=$(( n+ 1 ))
52
52
done
53
53
}
@@ -84,8 +84,7 @@ function validate_services() {
84
84
85
85
function validate_microservices() {
86
86
# Check if the microservices are running correctly.
87
- # TODO: Any results check required??
88
- sleep 3m
87
+
89
88
# tgi gaudi service
90
89
validate_services \
91
90
" ${ip_address} :8008/generate" \
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ function start_services() {
47
47
if grep -q Connected ${LOG_PATH} /tgi_service_start.log; then
48
48
break
49
49
fi
50
- sleep 5s
50
+ sleep 10s
51
51
n=$(( n+ 1 ))
52
52
done
53
53
}
@@ -82,8 +82,7 @@ function validate_services() {
82
82
83
83
function validate_microservices() {
84
84
# Check if the microservices are running correctly.
85
- # TODO: Any results check required??
86
- sleep 3m
85
+
87
86
# tgi for llm service
88
87
validate_services \
89
88
" ${ip_address} :8008/generate" \
You can’t perform that action at this time.
0 commit comments