Skip to content

Commit

Permalink
Merge branch 'main' into CI/test_update
Browse files Browse the repository at this point in the history
  • Loading branch information
ZePan110 authored Aug 13, 2024
2 parents ed9d265 + 075e84f commit fd9eb0d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions comps/dataprep/pgvector/langchain/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ psycopg2-binary
pymupdf
pyspark
python-docx
python-multipart
python-pptx
sentence_transformers
shortuuid
Expand Down
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 fd9eb0d

Please sign in to comment.