Skip to content

Commit 22f6fd7

Browse files
v1.2.2
1 parent 1108a10 commit 22f6fd7

File tree

5 files changed

+29
-23
lines changed

5 files changed

+29
-23
lines changed

Cargo.lock

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ members = [
1111
resolver = "2"
1212

1313
[workspace.package]
14-
version = "1.2.1"
14+
version = "1.2.2"
1515
edition = "2021"
1616
authors = ["Olivier Dehaene"]
1717
homepage = "https://github.com/huggingface/text-embeddings-inference"

Dockerfile

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -102,17 +102,18 @@ COPY --from=grpc-builder /usr/src/target/release/text-embeddings-router /usr/loc
102102
ENTRYPOINT ["text-embeddings-router"]
103103
CMD ["--json-output"]
104104

105-
FROM base
105+
FROM base AS http
106106

107107
COPY --from=http-builder /usr/src/target/release/text-embeddings-router /usr/local/bin/text-embeddings-router
108108

109-
ENTRYPOINT ["text-embeddings-router"]
110-
CMD ["--json-output"]
111-
112109
# Amazon SageMaker compatible image
113-
FROM base AS sagemaker
114-
115-
COPY --from=http-builder /usr/src/target/release/text-embeddings-router /usr/local/bin/text-embeddings-router
110+
FROM http as sagemaker
116111
COPY --chmod=775 sagemaker-entrypoint.sh entrypoint.sh
117112

118113
ENTRYPOINT ["./entrypoint.sh"]
114+
115+
# Default image
116+
FROM http
117+
118+
ENTRYPOINT ["text-embeddings-router"]
119+
CMD ["--json-output"]

Dockerfile-cuda-all

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ ARG ACTIONS_CACHE_URL
4040
ARG ACTIONS_RUNTIME_TOKEN
4141
ARG SCCACHE_GHA_ENABLED
4242

43+
# limit the number of kernels built at the same time
44+
ARG RAYON_NUM_THREADS=2
45+
4346
WORKDIR /usr/src
4447

4548
COPY --from=planner /usr/src/recipe.json recipe.json
@@ -122,15 +125,17 @@ COPY --from=builder-75 /usr/src/target/release/text-embeddings-router /usr/local
122125
COPY --from=builder-80 /usr/src/target/release/text-embeddings-router /usr/local/bin/text-embeddings-router-80
123126
COPY --from=builder-90 /usr/src/target/release/text-embeddings-router /usr/local/bin/text-embeddings-router-90
124127

125-
COPY cuda-all-entrypoint.sh entrypoint.sh
126-
RUN chmod +x entrypoint.sh
127-
128-
ENTRYPOINT ["./entrypoint.sh"]
129-
CMD ["--json-output"]
130-
131128
# Amazon SageMaker compatible image
132129
FROM base AS sagemaker
133130

134131
COPY --chmod=775 sagemaker-entrypoint-cuda-all.sh entrypoint.sh
135132

136-
ENTRYPOINT ["./entrypoint.sh"]
133+
ENTRYPOINT ["./entrypoint.sh"]
134+
135+
# Default image
136+
FROM base
137+
138+
COPY --chmod=775 cuda-all-entrypoint.sh entrypoint.sh
139+
140+
ENTRYPOINT ["./entrypoint.sh"]
141+
CMD ["--json-output"]

docs/openapi.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"name": "Apache 2.0",
1111
"url": "https://www.apache.org/licenses/LICENSE-2.0"
1212
},
13-
"version": "1.2.1"
13+
"version": "1.2."
1414
},
1515
"paths": {
1616
"/decode": {

0 commit comments

Comments
 (0)