Skip to content

Commit b8d30a9

Browse files
authored
Upgrade Base image to 12.2 (#704)
* Upgrade Base image to 12.2 * Add platform back * Prep for building images in integration tests * Drop training image and bump rc version * Upgrade versions for release
1 parent dec7081 commit b8d30a9

File tree

6 files changed

+20
-15
lines changed

6 files changed

+20
-15
lines changed

.github/workflows/integration-tests.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
matrix:
3434
python_version: ["3.8", "3.9", "3.10", "3.11"]
3535
use_gpu: ["y", "n"]
36-
job_type: ["server", "training"]
36+
job_type: ["server"]
3737
steps:
3838
- name: Set up Docker Buildx
3939
uses: docker/setup-buildx-action@v1

.github/workflows/main.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
matrix:
3737
python_version: ["3.8", "3.9", "3.10", "3.11"]
3838
use_gpu: ["y", "n"]
39-
job_type: ["server", "training"]
39+
job_type: ["server"]
4040
steps:
4141
- name: Set up Docker Buildx
4242
uses: docker/setup-buildx-action@v1

bin/generate_base_images.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -104,13 +104,18 @@ def _build(
104104
"docker",
105105
"buildx",
106106
"build",
107-
"--platform=linux/amd64",
107+
"--platform=linux/arm64,linux/amd64",
108108
".",
109109
"-t",
110110
image_with_tag,
111111
]
112112
if push:
113113
cmd.append("--push")
114+
115+
# Needed to support multi-arch build.
116+
subprocess.run(
117+
["docker", "buildx", "create", "--use"], cwd=build_ctx_path, check=True
118+
)
114119
subprocess.run(cmd, cwd=build_ctx_path, check=True)
115120

116121

docker/base_images/base_image.Dockerfile.jinja

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
{% if use_gpu %}
2-
FROM nvidia/cuda:11.2.1-base-ubuntu20.04
3-
ENV CUDNN_VERSION=8.1.0.77
4-
ENV CUDA=11.2
2+
FROM nvidia/cuda:12.2.2-base-ubuntu20.04
3+
ENV CUDNN_VERSION=8.9.5.29
4+
ENV CUDA=12.2
55
ENV LD_LIBRARY_PATH /usr/local/cuda/extras/CUPTI/lib64:$LD_LIBRARY_PATH
66

77
RUN apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/3bf863cc.pub && \
88
apt-get update && apt-get install -y --no-install-recommends \
99
ca-certificates \
10-
cuda-command-line-tools-11-2 \
11-
libcublas-11-2 \
12-
libcublas-dev-11-2 \
13-
libcufft-11-2 \
14-
libcurand-11-2 \
15-
libcusolver-11-2 \
16-
libcusparse-11-2 \
10+
cuda-command-line-tools-12-2 \
11+
libcublas-12-2 \
12+
libcublas-dev-12-2 \
13+
libcufft-12-2 \
14+
libcurand-12-2 \
15+
libcusolver-12-2 \
16+
libcusparse-12-2 \
1717
libcudnn8=${CUDNN_VERSION}-1+cuda${CUDA} \
1818
libgomp1 \
1919
&& \

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "truss"
3-
version = "0.7.14"
3+
version = "0.7.15rc0"
44
description = "A seamless bridge from model development to model delivery"
55
license = "MIT"
66
readme = "README.md"

truss/contexts/image_builder/util.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# [IMPORTANT] Make sure all images for this version are published to dockerhub
1212
# before change to this value lands. This value is used to look for base images
1313
# when building docker image for a truss.
14-
TRUSS_BASE_IMAGE_VERSION_TAG = "v0.4.9"
14+
TRUSS_BASE_IMAGE_VERSION_TAG = "v0.7.15"
1515

1616

1717
def file_is_empty(path: Path, ignore_hash_style_comments: bool = True) -> bool:

0 commit comments

Comments
 (0)