diff --git a/.github/workflows/basic-tests-pip.yml b/.github/workflows/basic-tests-pip.yml index 04d49ec..5351ff8 100644 --- a/.github/workflows/basic-tests-pip.yml +++ b/.github/workflows/basic-tests-pip.yml @@ -40,7 +40,10 @@ jobs: python -m venv .venv source .venv/bin/activate pip install --upgrade pip - pip install -r requirements.txt + # Necessary because there is not much storage space on this runner: + pip install torch==2.9.1+cpu --index-url https://download.pytorch.org/whl/cpu + pip install -r requirements.txt --no-deps + pip install jupyterlab pandas tensorflow matplotlib pip install pytest pytest-ruff nbval - name: Test Selected Python Scripts diff --git a/appendix-E/01_main-chapter-code/appendix-E.ipynb b/appendix-E/01_main-chapter-code/appendix-E.ipynb index c27cf7e..9d798ed 100644 --- a/appendix-E/01_main-chapter-code/appendix-E.ipynb +++ b/appendix-E/01_main-chapter-code/appendix-E.ipynb @@ -1442,6 +1442,18 @@ "print(f\"Training completed in {execution_time_minutes:.2f} minutes.\")" ] }, + { + "cell_type": "markdown", + "id": "7b7410ae-ed73-4f89-9cfa-0893312fe9c7", + "metadata": {}, + "source": [ + "- The runtime on different devices is as follows\n", + " - 12.10 minutes on a MacBook M1 (CPU)\n", + " - 2.16 minutes on a MacMini M4 Pro (MPS)\n", + " - 3.50 minutes on a Jetson Nano (CUDA), [shared](https://livebook.manning.com/forum?product=raschka&comment=581806) by a reader\n", + " - 1.02 minutes on a DGX Spark (CUDA)" + ] + }, { "cell_type": "markdown", "id": "d0c89e82-3aa8-44c6-b046-0b16200b8e6c",