Skip to content

Commit 9961846

Browse files
committed
Merge branch 'add-neuron-backend' of github.com:JingyaHuang/text-embeddings-inference into add-neuron-backend
2 parents 1464cc3 + aa47549 commit 9961846

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

Dockerfile-neuron

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,15 +174,14 @@ RUN pip install --no-cache-dir -U \
174174
peft==${PEFT_VERSION} \
175175
&& rm -rf ~/.cache/pip/*
176176

177-
178177
FROM neuron AS grpc
179178

180179
COPY --from=grpc-builder /usr/src/target/release/text-embeddings-router /usr/local/bin/text-embeddings-router
181180

182181
ENTRYPOINT ["text-embeddings-router"]
183182
CMD ["--json-output"]
184183

185-
FROM neuron
184+
FROM neuron AS http
186185

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

router/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ struct Args {
8787
/// will refuse to start with an error instead of silently truncating sequences.
8888
///
8989
/// Unused for gRPC servers
90-
#[clap(long, env, default_value = "true")]
90+
#[clap(long, env, default_value = "true", num_args = 0..=1, default_missing_value = "true")]
9191
auto_truncate: bool,
9292

9393
/// The name of the prompt that should be used by default for encoding. If not set, no prompt

0 commit comments

Comments
 (0)