File tree Expand file tree Collapse file tree 5 files changed +29
-23
lines changed Expand file tree Collapse file tree 5 files changed +29
-23
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ members = [
11
11
resolver = " 2"
12
12
13
13
[workspace .package ]
14
- version = " 1.2.1 "
14
+ version = " 1.2.2 "
15
15
edition = " 2021"
16
16
authors = [" Olivier Dehaene" ]
17
17
homepage = " https://github.com/huggingface/text-embeddings-inference"
Original file line number Diff line number Diff line change @@ -102,17 +102,18 @@ COPY --from=grpc-builder /usr/src/target/release/text-embeddings-router /usr/loc
102
102
ENTRYPOINT ["text-embeddings-router" ]
103
103
CMD ["--json-output" ]
104
104
105
- FROM base
105
+ FROM base AS http
106
106
107
107
COPY --from=http-builder /usr/src/target/release/text-embeddings-router /usr/local/bin/text-embeddings-router
108
108
109
- ENTRYPOINT ["text-embeddings-router" ]
110
- CMD ["--json-output" ]
111
-
112
109
# 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
116
111
COPY --chmod=775 sagemaker-entrypoint.sh entrypoint.sh
117
112
118
113
ENTRYPOINT ["./entrypoint.sh" ]
114
+
115
+ # Default image
116
+ FROM http
117
+
118
+ ENTRYPOINT ["text-embeddings-router" ]
119
+ CMD ["--json-output" ]
Original file line number Diff line number Diff line change @@ -40,6 +40,9 @@ ARG ACTIONS_CACHE_URL
40
40
ARG ACTIONS_RUNTIME_TOKEN
41
41
ARG SCCACHE_GHA_ENABLED
42
42
43
+ # limit the number of kernels built at the same time
44
+ ARG RAYON_NUM_THREADS=2
45
+
43
46
WORKDIR /usr/src
44
47
45
48
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
122
125
COPY --from=builder-80 /usr/src/target/release/text-embeddings-router /usr/local/bin/text-embeddings-router-80
123
126
COPY --from=builder-90 /usr/src/target/release/text-embeddings-router /usr/local/bin/text-embeddings-router-90
124
127
125
- COPY cuda-all-entrypoint.sh entrypoint.sh
126
- RUN chmod +x entrypoint.sh
127
-
128
- ENTRYPOINT ["./entrypoint.sh"]
129
- CMD ["--json-output"]
130
-
131
128
# Amazon SageMaker compatible image
132
129
FROM base AS sagemaker
133
130
134
131
COPY --chmod=775 sagemaker-entrypoint-cuda-all.sh entrypoint.sh
135
132
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"]
Original file line number Diff line number Diff line change 10
10
"name" : " Apache 2.0" ,
11
11
"url" : " https://www.apache.org/licenses/LICENSE-2.0"
12
12
},
13
- "version" : " 1.2.1 "
13
+ "version" : " 1.2."
14
14
},
15
15
"paths" : {
16
16
"/decode" : {
You can’t perform that action at this time.
0 commit comments