Skip to content

Commit

Permalink
Fix embeddings_langchain-mosec issue. (opea-project#473)
Browse files Browse the repository at this point in the history
Signed-off-by: zepan <[email protected]>
Signed-off-by: BaoHuiling <[email protected]>
  • Loading branch information
ZePan110 authored and BaoHuiling committed Aug 15, 2024
1 parent 446aff0 commit 3262aee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions comps/embeddings/langchain-mosec/mosec-docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ ARG DEBIAN_FRONTEND=noninteractive
ENV GLIBC_TUNABLES glibc.cpu.x86_shstk=permissive
RUN apt update && apt install -y python3 python3-pip

USER user
COPY comps /home/user/comps

RUN pip3 install torch==2.2.2 torchvision --index-url https://download.pytorch.org/whl/cpu
Expand All @@ -19,7 +18,7 @@ RUN pip3 install transformers
RUN pip3 install llmspec mosec

RUN cd /home/user/ && export HF_ENDPOINT=https://hf-mirror.com && huggingface-cli download --resume-download BAAI/bge-large-zh-v1.5 --local-dir /home/user/bge-large-zh-v1.5

USER user
ENV EMB_MODEL="/home/user/bge-large-zh-v1.5/"

WORKDIR /home/user/comps/embeddings/langchain-mosec/mosec-docker
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from llmspec import EmbeddingData, EmbeddingRequest, EmbeddingResponse, TokenUsage
from mosec import ClientError, Runtime, Server, Worker

DEFAULT_MODEL = "/root/bge-large-zh-v1.5/"
DEFAULT_MODEL = "/home/user/bge-large-zh-v1.5/"


class Embedding(Worker):
Expand Down

0 comments on commit 3262aee

Please sign in to comment.