Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 36 additions & 10 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -226,14 +226,17 @@ jobs:
machine:
image: ubuntu-2404:current
parameters:
cuda-tag:
cuda-version:
type: string
ubuntu-version:
type: string
tf-version:
type: string
python-version:
type: string
environment:
CUDA_TAG: << parameters.cuda-tag >>
CUDA_VERSION: << parameters.cuda-version >>
UBUNTU_VERSION: << parameters.ubuntu-version >>
TF_VERSION: << parameters.tf-version >>
PY_VERSION: << parameters.python-version >>
steps:
Expand All @@ -244,13 +247,14 @@ jobs:
name: Build and push python image
command: |
REPOSITORY="deepnote/tensorflow"
TAG="${TF_VERSION}-gpu"
TAG="gpu-${TF_VERSION}-${CUDA_VERSION}-${UBUNTU_VERSION}"
TAG_SUFFIX="${CIRCLE_PULL_REQUEST:+-ra-${CIRCLE_PULL_REQUEST##*/}}"
CUDA_BASE_IMAGE_TAG=${CUDA_VERSION}-runtime-ubuntu${UBUNTU_VERSION}
docker buildx build \
--file=./gpu/Dockerfile \
--tag=978928340082.dkr.ecr.us-east-1.amazonaws.com/${REPOSITORY}:${TAG}${TAG_SUFFIX} \
--tag=docker.io/${REPOSITORY}:${TAG}${TAG_SUFFIX} \
--build-arg CUDA_IMAGE_TAG=${CUDA_TAG} \
--build-arg CUDA_IMAGE_TAG=${CUDA_BASE_IMAGE_TAG} \
--build-arg TF_VERSION=${TF_VERSION} \
--build-arg PYTHON_VER=${PY_VERSION} \
--cache-from type=registry,ref=docker.io/${REPOSITORY}:${TAG}-buildcache \
Expand Down Expand Up @@ -315,17 +319,39 @@ workflows:
- R << matrix.r-version >>

- build-and-push-gpu:
name: Tensorflow 2.9
cuda-tag: "11.4.3-runtime-ubuntu20.04"
name: Tensorflow 2.9, Cuda 12.6, Ubuntu 20.04
cuda-version: "12.6.3"
ubuntu-version: "20.04"
tf-version: "2.9.1"
python-version: "3.8"
- build-and-push-gpu:
name: Tensorflow 2.11, Cuda 12.6, Ubuntu 20.04
cuda-version: "12.6.3"
ubuntu-version: "20.04"
tf-version: "2.11.1"
python-version: "3.10"
- build-and-push-gpu:
name: Tensorflow 2.15, Cuda 12.6, Ubuntu 22.04
cuda-version: "12.6.3"
ubuntu-version: "22.04"
tf-version: "2.15.0"
python-version: "3.11"

- build-and-push-gpu:
name: Tensorflow 2.9, Cuda 11.8, Ubuntu 20.04
cuda-version: "11.8.0"
ubuntu-version: "20.04"
tf-version: "2.9.1"
python-version: "3.8"
- build-and-push-gpu:
name: Tensorflow 2.11
cuda-tag: "11.4.3-runtime-ubuntu20.04"
name: Tensorflow 2.11, Cuda 11.8, Ubuntu 20.04
cuda-version: "11.8.0"
ubuntu-version: "20.04"
tf-version: "2.11.1"
python-version: "3.10"
- build-and-push-gpu:
name: Tensorflow 2.15
cuda-tag: "12.2.2-runtime-ubuntu22.04"
name: Tensorflow 2.15, Cuda 11.8, Ubuntu 22.04
cuda-version: "11.8.0"
ubuntu-version: "22.04"
tf-version: "2.15.0"
python-version: "3.11"
2 changes: 1 addition & 1 deletion gpu/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG CUDA_IMAGE_TAG=11.4.3-runtime-ubuntu20.04
ARG CUDA_IMAGE_TAG=12.6.3-runtime-ubuntu20.04
FROM nvidia/cuda:${CUDA_IMAGE_TAG}

ENV DEBIAN_FRONTEND=noninteractive
Expand Down
7 changes: 6 additions & 1 deletion python/conda/Dockerfile.conda
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,12 @@ ENV CONDA_ALWAYS_YES=true
# but that would require baking in the URLs for
# different Miniconda installer versions into the Dockerfile.
ARG PYTHON_VERSION
RUN MINICONDA_URL="https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh"; \
RUN if [ "$PYTHON_VERSION" = "3.8" ]; then \
# last version of conda compatible with python 3.8
MINICONDA_URL="https://repo.anaconda.com/miniconda/Miniconda3-py38_23.11.0-2-Linux-x86_64.sh"; \
else \
MINICONDA_URL="https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh"; \
fi && \
wget --quiet $MINICONDA_URL -O /tmp/miniconda.sh && \
/bin/bash /tmp/miniconda.sh -b -p /opt/conda && \
rm /tmp/miniconda.sh && \
Expand Down