Skip to content

Commit bdc2f07

Browse files
2025.2 (#94)
* attempt to add cuda 12.4 * Update main.yml * attempt to add cuda 12.4, update cudnn * attempt to add cuda 12.4, update torch * attempt to add cuda 12.4, update torch * attempt to add cuda 12.4, downgrade tf to 2.17 and cudnn to 8.9 * attempt to add cuda 12.4, downgrade tf to 2.17 and cudnn to 9.1 * try cuda 12.6 * downgrade keras to 2.15 * downgrade keras to 2.15 + comment * attempt to use tf-keras * use tf-keras and keras, update tag, update tests for keras 3
1 parent d8353a3 commit bdc2f07

7 files changed

Lines changed: 14 additions & 10 deletions

File tree

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ jobs:
142142

143143
- name: Archive artifacts and logs
144144
if: ${{ always() }}
145-
uses: actions/upload-artifact@v3
145+
uses: actions/upload-artifact@v4
146146
with:
147147
name: build-artifacts
148148
path: |

images/scipy-ml-notebook/Dockerfile

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,11 @@ USER root
1111
## Package versions
1212
## tf 2.13 does not work with torch 2.2.1. Both require conflicting versions of typing-extensions
1313
## CUDA 11: ARG CUDA_VERSION=11.8 CUDNN_VERSION=8.7.0.84 \
14-
ARG CUDA_VERSION=12.0 CUDNN_VERSION=8.9.2.26 LIBNVINFER=7.2.2 LIBNVINFER_MAJOR_VERSION=7 \
15-
TENSORFLOW_VERSION=2.15.0 KERAS_VERSION=2.15.0 TENSORRT_VERSION=8.6.1 TORCH_VERSION=2.2.1 \
16-
PROTOBUF_VERSION=3.20.3
14+
15+
## keras 3>= doesn't work with transformers as of 3-5-25. Check this when building future stable images.
16+
ARG CUDA_VERSION=12.6 CUDNN_VERSION=9.5.1.17 LIBNVINFER=7.2.2 LIBNVINFER_MAJOR_VERSION=7 \
17+
TENSORFLOW_VERSION=2.18.0 KERAS_VERSION=3.9.0 TENSORRT_VERSION=10.7.0 TORCH_VERSION=2.6.0 \
18+
PROTOBUF_VERSION=3.20.3 TF_KERAS_VERSION=2.18.0
1719

1820
# apt deps
1921
RUN apt-get update && \
@@ -51,7 +53,7 @@ USER jovyan
5153
# CUDA setup w/mamba
5254
## TODO: Investigate this command, seems to duplicate cuda packages for nvidia (pypi + conda-forge).
5355
# cuda-toolkit is a skeleton package on CUDA 12, unlike CUDA <= 11
54-
RUN mamba install -c "nvidia/label/cuda-12.0.0" cuda-nvcc \
56+
RUN mamba install -c "nvidia/label/cuda-12.6.0" cuda-nvcc \
5557
cuda-toolkit=$CUDA_VERSION \
5658
# For CUDA 11: cudatoolkit=$CUDA_VERSION \
5759
cuda-version=$CUDA_VERSION \
@@ -84,8 +86,10 @@ RUN mamba install -c conda-forge pyqt pycocotools pillow scapy && \
8486
## no purge required but no-cache-dir is used. pip purge will actually break the build here!
8587
## Beware of potentially needing to update these if we update the drivers.
8688
## Check tensorrt_env_vars.sh if you have to bump tensorrt!
87-
RUN pip install nvidia-cudnn-cu12==$CUDNN_VERSION torch==$TORCH_VERSION torchvision torchaudio --index-url https://download.pytorch.org/whl/cu121 && \
88-
pip install tensorflow==$TENSORFLOW_VERSION tensorflow-datasets tensorrt==$TENSORRT_VERSION keras==$KERAS_VERSION && \
89+
90+
## tf-keras is keras 2.x for higher versions of tensorflow that would normally require keras 3
91+
RUN pip install nvidia-cudnn-cu12==$CUDNN_VERSION torch==$TORCH_VERSION torchvision torchaudio --index-url https://download.pytorch.org/whl/cu126 && \
92+
pip install tensorflow==$TENSORFLOW_VERSION tensorflow-datasets tensorrt==$TENSORRT_VERSION keras==$KERAS_VERSION tf-keras==$TF_KERAS_VERSION && \
8993
fix-permissions $CONDA_DIR && \
9094
fix-permissions /home/$NB_USER && \
9195
mamba clean -a -y && \

images/scipy-ml-notebook/workflow_tests/test_huggingface.py renamed to images/scipy-ml-notebook/workflow_tests/test_0_huggingface.py

File renamed without changes.

images/scipy-ml-notebook/workflow_tests/test_0_pytorch.py renamed to images/scipy-ml-notebook/workflow_tests/test_1_pytorch.py

File renamed without changes.
File renamed without changes.

images/scipy-ml-notebook/workflow_tests/test_keras.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ def test_model_training(simple_model):
1515
x_train = np.random.random((100, 5))
1616
y_train = np.random.randint(2, size=(100, 1))
1717
simple_model.fit(x_train, y_train, epochs=1, batch_size=32, verbose=0)
18-
assert simple_model.layers[0].input_shape == (None, 5)
19-
assert simple_model.layers[1].output_shape == (None, 1)
18+
assert simple_model.layers[0].input.shape == (None, 5)
19+
assert simple_model.layers[1].output.shape == (None, 1)
2020

2121
def test_model_evaluation(simple_model):
2222
x_test = np.random.random((20, 5))

images/spec.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ images:
2525
#prepull: false #-- uncomment to disable prepulling behavior for scipy-ml. gives you space on machine in exchange for build time.
2626

2727
tag:
28-
prefix: "2025.1"
28+
prefix: "2025.2"
2929

3030
all_info_cmds:
3131
PY_VER:

0 commit comments

Comments
 (0)