Skip to content

Commit 0e3692d

Browse files
authored
Update base image, rust, python deps, rust crates (#68)
Not including transformers, pending a bugfix Protobuf can't be updated since grpc doesn't support the latest version yet. --------- Signed-off-by: Nick Hill <[email protected]>
1 parent ec0ed97 commit 0e3692d

File tree

11 files changed

+489
-607
lines changed

11 files changed

+489
-607
lines changed

Cargo.lock

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

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
## Global Args #################################################################
2-
ARG BASE_UBI_IMAGE_TAG=9.3-1552
2+
ARG BASE_UBI_IMAGE_TAG=9.3-1610
33
ARG PROTOC_VERSION=25.2
44
ARG PYTORCH_INDEX="https://download.pytorch.org/whl"
55
# ARG PYTORCH_INDEX="https://download.pytorch.org/whl/nightly"
@@ -86,7 +86,7 @@ ENV LIBRARY_PATH="$CUDA_HOME/lib64/stubs"
8686

8787
## Rust builder ################################################################
8888
# Specific debian version so that compatible glibc version is used
89-
FROM rust:1.76-bullseye as rust-builder
89+
FROM rust:1.77-bullseye as rust-builder
9090
ARG PROTOC_VERSION
9191

9292
ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse

integration_tests/poetry.lock

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

integration_tests/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ python = ">=3.11"
1010
[tool.poetry.group.dev.dependencies]
1111
protobuf = "^4.25.3"
1212
grpcio-tools = "^1.62.1"
13-
pytest = "^8.0.2"
14-
pytest-asyncio = "^0.23.5"
13+
pytest = "^8.1.1"
14+
pytest-asyncio = "^0.23.6"
1515
requests = "^2.31.0"
1616
pyyaml = "^6.0.1"
1717

launcher/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ authors = ["Olivier Dehaene"]
66
description = "Text Generation Launcher"
77

88
[dependencies]
9-
clap = { version = "4.5.2", features = ["derive", "env"] }
10-
ctrlc = { version = "3.4.2", features = ["termination"] }
9+
clap = { version = "4.5.3", features = ["derive", "env"] }
10+
ctrlc = { version = "3.4.4", features = ["termination"] }
1111
nix = { version = "0.28.0", features = ["process", "signal"] }
1212
serde_json = "^1.0.114"
1313
tracing = "0.1.40"
1414
tracing-subscriber = { version = "0.3.18", features = ["json", "env-filter"] }
15-
uuid = { version = "1.7.0", features = ["v4", "fast-rng"] }
15+
uuid = { version = "1.8.0", features = ["v4", "fast-rng"] }

router/Cargo.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,13 @@ tracing = "^0.1.40"
4242
prost = "^0.12.3"
4343
tonic = { version = "^0.11.0", features = ["tls"] }
4444
tracing-subscriber = { version = "0.3.18", features = ["json", "env-filter"] }
45-
tracing-opentelemetry = "0.19.0"
45+
tracing-opentelemetry = "0.23.0"
4646
tokio-stream ="^0.1.14"
4747
unicode-segmentation = "^1.11.0"
4848
unicode-truncate = "^0.2.0"
49-
opentelemetry = { version = "0.19.0", features = ["rt-tokio"] }
50-
opentelemetry-otlp = "0.12.0"
49+
opentelemetry = "0.22.0"
50+
opentelemetry_sdk = { version = "0.22.1", features = ["rt-tokio"] }
51+
opentelemetry-otlp = "0.15.0"
5152

5253
[build-dependencies]
5354
tonic-build = "^0.11.0"

router/client/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ build="build.rs"
77
[dependencies]
88
futures = "^0.3.30"
99
prost = "^0.12.3"
10-
thiserror = "^1.0.57"
10+
thiserror = "^1.0.58"
1111
tokio = { version = "1.36.0", features = ["sync"] }
1212
tonic = "^0.11.0"
1313
tower = "^0.4.13"

router/src/main.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,12 @@ use std::{
99
use clap::Parser;
1010
use opentelemetry::{
1111
global,
12-
sdk::{propagation::TraceContextPropagator, trace, trace::Sampler, Resource},
1312
KeyValue,
1413
};
1514
use opentelemetry_otlp::WithExportConfig;
15+
use opentelemetry_sdk::propagation::TraceContextPropagator;
16+
use opentelemetry_sdk::{Resource, trace};
17+
use opentelemetry_sdk::trace::Sampler;
1618
use text_generation_client::ShardedClient;
1719
use text_generation_router::{server, server::ServerRunArgs};
1820
use tokenizers::Tokenizer;
@@ -237,7 +239,7 @@ fn init_logging(otlp_endpoint: Option<String>, json_output: bool) {
237239
)]))
238240
.with_sampler(Sampler::AlwaysOn),
239241
)
240-
.install_batch(opentelemetry::runtime::Tokio);
242+
.install_batch(opentelemetry_sdk::runtime::Tokio);
241243

242244
if let Ok(tracer) = tracer {
243245
layers.push(tracing_opentelemetry::layer().with_tracer(tracer).boxed());

rust-toolchain.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[toolchain]
2-
channel = "1.76"
2+
channel = "1.77"
33
components = ["rustfmt", "clippy"]

server/poetry.lock

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

0 commit comments

Comments
 (0)