"git@developer.sourcefind.cn:change/sglang.git" did not exist on "a564e001b532e5d00be2296ca305e67da506d0b0"
Commit 0345a800 authored by Timothy J. Baek's avatar Timothy J. Baek
Browse files

feat: include embedding weight to image

parent 162641ee
...@@ -28,6 +28,14 @@ WORKDIR /app/backend ...@@ -28,6 +28,14 @@ WORKDIR /app/backend
COPY ./backend/requirements.txt ./requirements.txt COPY ./backend/requirements.txt ./requirements.txt
RUN pip3 install -r requirements.txt RUN pip3 install -r requirements.txt
RUN MODEL_DIR="/root/.cache/chroma/onnx_models/all-MiniLM-L6-v2" &&\
ARCHIVE_NAME="onnx.tar.gz" &&\
mkdir -p $MODEL_DIR &&\
cd $MODEL_DIR &&\
wget -O $ARCHIVE_NAME "https://chroma-onnx-models.s3.amazonaws.com/all-MiniLM-L6-v2/$ARCHIVE_NAME" &&\
tar -xzf $ARCHIVE_NAME
# RUN python -c "from sentence_transformers import SentenceTransformer; model = SentenceTransformer('all-MiniLM-L6-v2')" # RUN python -c "from sentence_transformers import SentenceTransformer; model = SentenceTransformer('all-MiniLM-L6-v2')"
COPY ./backend . COPY ./backend .
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment