Skip to content

Commit 36b3a72

Browse files
committed
fix dockerfile and install
1 parent 2a2993a commit 36b3a72

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

Dockerfile-rocm

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,11 @@ ARG DEFAULT_USE_FLASH_ATTENTION=True
111111
COPY backends/python/Makefile-flash-att-v2 Makefile-flash-att-v2
112112
RUN make -f Makefile-flash-att-v2 install-flash-attention-v2-rocm
113113

114+
# Install python backend
115+
COPY backends/python/server /tei_backends/python/server
116+
COPY backends/proto tei_backends/proto
117+
RUN make -C /tei_backends/python/server install
118+
114119
ENV HUGGINGFACE_HUB_CACHE=/data \
115120
PORT=80 \
116121
USE_FLASH_ATTENTION=$DEFAULT_USE_FLASH_ATTENTION

backends/python/server/pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,13 @@ grpcio-status = "^1.51.1"
1515
grpcio-reflection = "^1.51.1"
1616
grpc-interceptor = "^0.15.0"
1717
typer = "^0.6.1"
18-
safetensors = "^0.3.2"
18+
safetensors = "^0.4.0"
1919
loguru = "^0.6.0"
2020
opentelemetry-api = "^1.15.0"
2121
opentelemetry-exporter-otlp = "^1.15.0"
2222
opentelemetry-instrumentation-grpc = "^0.36b0"
2323
torch = { version = "==2.3.1" }
24+
transformers = { version = "^4.39.0"}
2425

2526
[tool.poetry.extras]
2627

0 commit comments

Comments
 (0)