Skip to content

Commit 1f6fcfe

Browse files
committed
Update to rust 1.73, transformers 4.34, other rust and py deps
1 parent 0784738 commit 1f6fcfe

File tree

10 files changed

+1363
-1174
lines changed

10 files changed

+1363
-1174
lines changed

Cargo.lock

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

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## Global Args #################################################################
22
ARG BASE_UBI_IMAGE_TAG=9.2-755.1696515532
3-
ARG PROTOC_VERSION=24.3
3+
ARG PROTOC_VERSION=24.4
44
ARG PYTORCH_INDEX="https://download.pytorch.org/whl"
55
#ARG PYTORCH_INDEX="https://download.pytorch.org/whl/nightly"
66
ARG PYTORCH_VERSION=2.1.0
@@ -88,7 +88,7 @@ ENV LIBRARY_PATH="$CUDA_HOME/lib64/stubs"
8888

8989
## Rust builder ################################################################
9090
# Specific debian version so that compatible glibc version is used
91-
FROM rust:1.72.1-bullseye as rust-builder
91+
FROM rust:1.73-bullseye as rust-builder
9292
ARG PROTOC_VERSION
9393

9494
ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
@@ -156,7 +156,7 @@ RUN cd server && \
156156
make gen-server && \
157157
pip install ".[accelerate]" --no-cache-dir
158158

159-
# Patch codegen model changes into transformers 4.31
159+
# Patch codegen model changes into transformers 4.34
160160
RUN cp server/transformers_patch/modeling_codegen.py \
161161
/usr/local/lib/python3.*/site-packages/transformers/models/codegen/modeling_codegen.py
162162

@@ -255,7 +255,7 @@ COPY proto proto
255255
COPY server server
256256
RUN cd server && make gen-server && pip install ".[accelerate, onnx-gpu]" --no-cache-dir
257257

258-
# Patch codegen model changes into transformers 4.33.2
258+
# Patch codegen model changes into transformers 4.34
259259
RUN cp server/transformers_patch/modeling_codegen.py \
260260
/opt/miniconda/lib/python3.*/site-packages/transformers/models/codegen/modeling_codegen.py
261261

integration_tests/poetry.lock

Lines changed: 233 additions & 200 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
@@ -8,8 +8,8 @@ authors = ["Nick Hill"]
88
python = "^3.9"
99

1010
[tool.poetry.group.dev.dependencies]
11-
protobuf = "^4.24.3"
12-
grpcio-tools = "^1.58.0"
11+
protobuf = "^4.24.4"
12+
grpcio-tools = "^1.59.0"
1313
pytest = "^7.4.2"
1414
pytest-asyncio = "^0.21.1"
1515
requests = "^2.31.0"

launcher/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ authors = ["Olivier Dehaene"]
66
description = "Text Generation Launcher"
77

88
[dependencies]
9-
clap = { version = "4.4.1", features = ["derive", "env"] }
9+
clap = { version = "4.4.6", features = ["derive", "env"] }
1010
ctrlc = { version = "3.4.0", features = ["termination"] }
1111
subprocess = "0.2.9"
1212
tracing = "0.1.37"

router/Cargo.toml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,16 @@ name = "text-generation-router"
1414
path = "src/main.rs"
1515

1616
[dependencies]
17-
axum = { version = "0.6.17", features = ["json"] }
17+
axum = { version = "0.6.20", features = ["json"] }
1818
text-generation-client = { path = "client" }
19-
clap = { version = "^4.3.17", features = ["derive", "env"] }
19+
clap = { version = "^4.4.6", features = ["derive", "env"] }
2020
futures = "^0.3.28"
2121
metrics = "0.21.1"
2222
metrics-exporter-prometheus = { version = "0.12.1", features = [] }
23-
moka = { version = "0.11.2", features = ["future"] }
23+
moka = { version = "0.11.3", features = ["future"] }
2424
nohash-hasher = "^0.2.0"
25-
num = "^0.4.0"
26-
hyper = "^0.14.26" # Override to address CVE-2023-26964
25+
num = "^0.4.1"
26+
hyper = "^0.14.27" # Override to address CVE-2023-26964
2727
openssl = "^0.10.55" # Override to address WS-2023-0082, WS-2023-0083, WS-2023-0195
2828
openssl-sys = "^0.9.90" # Override to address WS-2023-0082, WS-2023-0083, WS-2023-0195
2929
rustls-webpki = "^0.100.2" # Override to address WS-2023-0305, CVE-2018-16875
@@ -34,19 +34,19 @@ serde_json = "^1.0.103"
3434
# Attempt to address WS-2023-0094
3535
# spin comes in via tonic->tokio-rustls->rustls->ring but this pins a specific old version 0.5.2 :(
3636
#spin = "=0.9.8"
37-
thiserror = "^1.0.43"
38-
tokenizers = "0.14.0"
39-
tokio = { version = "^1.32.0", features = ["rt", "rt-multi-thread", "parking_lot", "signal", "sync", "fs"] }
37+
thiserror = "^1.0.49"
38+
tokenizers = "0.14.1"
39+
tokio = { version = "1.33.0", features = ["rt", "rt-multi-thread", "parking_lot", "signal", "sync", "fs"] }
4040
tokio-rustls = "^0.24.1"
4141
rustls = "0.21.5"
4242
tracing = "^0.1.37"
4343
tracing-subscriber = { version = "0.3.16", features = ["json"] }
44-
prost = "^0.12.0"
45-
tonic = { version = "^0.10.0", features = ["tls"] }
44+
prost = "^0.12.1"
45+
tonic = { version = "^0.10.2", features = ["tls"] }
4646
tokio-stream ="^0.1.14"
4747
unicode-segmentation = "^1.10.1"
4848
unicode-truncate = "^0.2.0"
4949

5050
[build-dependencies]
51-
tonic-build = "^0.10.0"
51+
tonic-build = "^0.10.2"
5252
tempfile = "^3.7.0" # Override 0.3.3 version from tonic-build/prost-build, due to RUSTSEC-2023-0018

router/client/Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ build="build.rs"
66

77
[dependencies]
88
futures = "^0.3.28"
9-
prost = "^0.12.0"
10-
thiserror = "^1.0.43"
11-
tokio = { version = "^1.32.0", features = ["sync"] }
12-
tonic = "^0.10.0"
9+
prost = "^0.12.1"
10+
thiserror = "^1.0.49"
11+
tokio = { version = "1.33.0", features = ["sync"] }
12+
tonic = "^0.10.2"
1313
tower = "^0.4.13"
1414
tracing = "^0.1.37"
1515
tracing-error = "^0.2"
1616

1717
[build-dependencies]
18-
tonic-build = "^0.10.0"
18+
tonic-build = "^0.10.2"

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.72.1"
2+
channel = "1.73"
33
components = ["rustfmt", "clippy"]

0 commit comments

Comments
 (0)