Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
0345a800
"git@developer.sourcefind.cn:change/sglang.git" did not exist on "a564e001b532e5d00be2296ca305e67da506d0b0"
Commit
0345a800
authored
Jan 07, 2024
by
Timothy J. Baek
Browse files
feat: include embedding weight to image
parent
162641ee
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
Dockerfile
Dockerfile
+8
-0
No files found.
Dockerfile
View file @
0345a800
...
@@ -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 .
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment