{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Upgrade pip and deploy requirements.txt" ] }, { "cell_type": "code", "execution_count": 8, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Requirement already satisfied: pip in /home/heuzef/GIT/jan24_cds_mushrooms/.venv/lib/python3.11/site-packages (24.1.2)\n", "Note: you may need to restart the kernel to use updated packages.\n", "Requirement already satisfied: ipykernel in /home/heuzef/GIT/jan24_cds_mushrooms/.venv/lib/python3.11/site-packages (from -r ../requirements.txt (line 2)) (6.29.5)\n", "Requirement already satisfied: ipython in /home/heuzef/GIT/jan24_cds_mushrooms/.venv/lib/python3.11/site-packages (from -r ../requirements.txt (line 3)) (8.26.0)\n", "Collecting numpy (from -r ../requirements.txt (line 6))\n", " Downloading numpy-2.0.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (60 kB)\n", "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m60.9/60.9 kB\u001b[0m \u001b[31m1.6 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", "\u001b[?25hCollecting pandas (from -r ../requirements.txt (line 7))\n", " Downloading pandas-2.2.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (19 kB)\n", "Collecting matplotlib (from -r ../requirements.txt (line 8))\n", " Downloading matplotlib-3.9.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (11 kB)\n", "Collecting seaborn (from -r ../requirements.txt (line 9))\n", " Downloading seaborn-0.13.2-py3-none-any.whl.metadata (5.4 kB)\n", "Collecting scikit-learn (from -r ../requirements.txt (line 10))\n", " Downloading scikit_learn-1.5.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (12 kB)\n", "Collecting statsmodels (from -r ../requirements.txt (line 11))\n", " Downloading statsmodels-0.14.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (9.2 kB)\n", "Collecting beautifulsoup4 (from -r ../requirements.txt (line 14))\n", " Downloading beautifulsoup4-4.12.3-py3-none-any.whl.metadata (3.8 kB)\n", "Collecting lxml (from -r ../requirements.txt (line 15))\n", " Downloading lxml-5.2.2-cp311-cp311-manylinux_2_28_x86_64.whl.metadata (3.4 kB)\n", "Collecting mlflow (from -r ../requirements.txt (line 18))\n", " Downloading mlflow-2.14.3-py3-none-any.whl.metadata (29 kB)\n", "Collecting opencv-contrib-python (from -r ../requirements.txt (line 21))\n", " Downloading opencv_contrib_python-4.10.0.84-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (20 kB)\n", "Requirement already satisfied: comm>=0.1.1 in /home/heuzef/GIT/jan24_cds_mushrooms/.venv/lib/python3.11/site-packages (from ipykernel->-r ../requirements.txt (line 2)) (0.2.2)\n", "Requirement already satisfied: debugpy>=1.6.5 in /home/heuzef/GIT/jan24_cds_mushrooms/.venv/lib/python3.11/site-packages (from ipykernel->-r ../requirements.txt (line 2)) (1.8.2)\n", "Requirement already satisfied: jupyter-client>=6.1.12 in /home/heuzef/GIT/jan24_cds_mushrooms/.venv/lib/python3.11/site-packages (from ipykernel->-r ../requirements.txt (line 2)) (8.6.2)\n", "Requirement already satisfied: jupyter-core!=5.0.*,>=4.12 in /home/heuzef/GIT/jan24_cds_mushrooms/.venv/lib/python3.11/site-packages (from ipykernel->-r ../requirements.txt (line 2)) (5.7.2)\n", "Requirement already satisfied: matplotlib-inline>=0.1 in /home/heuzef/GIT/jan24_cds_mushrooms/.venv/lib/python3.11/site-packages (from ipykernel->-r ../requirements.txt (line 2)) (0.1.7)\n", "Requirement already satisfied: nest-asyncio in /home/heuzef/GIT/jan24_cds_mushrooms/.venv/lib/python3.11/site-packages (from ipykernel->-r ../requirements.txt (line 2)) (1.6.0)\n", "Requirement already satisfied: packaging in /home/heuzef/GIT/jan24_cds_mushrooms/.venv/lib/python3.11/site-packages (from ipykernel->-r ../requirements.txt (line 2)) (24.1)\n", "Requirement already satisfied: psutil in /home/heuzef/GIT/jan24_cds_mushrooms/.venv/lib/python3.11/site-packages (from ipykernel->-r ../requirements.txt (line 2)) (6.0.0)\n", "Requirement already satisfied: pyzmq>=24 in /home/heuzef/GIT/jan24_cds_mushrooms/.venv/lib/python3.11/site-packages (from ipykernel->-r ../requirements.txt (line 2)) (26.0.3)\n", "Requirement already satisfied: tornado>=6.1 in /home/heuzef/GIT/jan24_cds_mushrooms/.venv/lib/python3.11/site-packages (from ipykernel->-r ../requirements.txt (line 2)) (6.4.1)\n", "Requirement already satisfied: traitlets>=5.4.0 in /home/heuzef/GIT/jan24_cds_mushrooms/.venv/lib/python3.11/site-packages (from ipykernel->-r ../requirements.txt (line 2)) (5.14.3)\n", "Requirement already satisfied: decorator in /home/heuzef/GIT/jan24_cds_mushrooms/.venv/lib/python3.11/site-packages (from ipython->-r ../requirements.txt (line 3)) (5.1.1)\n", "Requirement already satisfied: jedi>=0.16 in /home/heuzef/GIT/jan24_cds_mushrooms/.venv/lib/python3.11/site-packages (from ipython->-r ../requirements.txt (line 3)) (0.19.1)\n", "Requirement already satisfied: prompt-toolkit<3.1.0,>=3.0.41 in /home/heuzef/GIT/jan24_cds_mushrooms/.venv/lib/python3.11/site-packages (from ipython->-r ../requirements.txt (line 3)) (3.0.47)\n", "Requirement already satisfied: pygments>=2.4.0 in /home/heuzef/GIT/jan24_cds_mushrooms/.venv/lib/python3.11/site-packages (from ipython->-r ../requirements.txt (line 3)) (2.18.0)\n", "Requirement already satisfied: stack-data in /home/heuzef/GIT/jan24_cds_mushrooms/.venv/lib/python3.11/site-packages (from ipython->-r ../requirements.txt (line 3)) (0.6.3)\n", "Requirement already satisfied: typing-extensions>=4.6 in /home/heuzef/GIT/jan24_cds_mushrooms/.venv/lib/python3.11/site-packages (from ipython->-r ../requirements.txt (line 3)) (4.12.2)\n", "Requirement already satisfied: pexpect>4.3 in /home/heuzef/GIT/jan24_cds_mushrooms/.venv/lib/python3.11/site-packages (from ipython->-r ../requirements.txt (line 3)) (4.9.0)\n", "Requirement already satisfied: python-dateutil>=2.8.2 in /home/heuzef/GIT/jan24_cds_mushrooms/.venv/lib/python3.11/site-packages (from pandas->-r ../requirements.txt (line 7)) (2.9.0.post0)\n", "Collecting pytz>=2020.1 (from pandas->-r ../requirements.txt (line 7))\n", " Downloading pytz-2024.1-py2.py3-none-any.whl.metadata (22 kB)\n", "Collecting tzdata>=2022.7 (from pandas->-r ../requirements.txt (line 7))\n", " Downloading tzdata-2024.1-py2.py3-none-any.whl.metadata (1.4 kB)\n", "Collecting contourpy>=1.0.1 (from matplotlib->-r ../requirements.txt (line 8))\n", " Downloading contourpy-1.2.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (5.8 kB)\n", "Collecting cycler>=0.10 (from matplotlib->-r ../requirements.txt (line 8))\n", " Downloading cycler-0.12.1-py3-none-any.whl.metadata (3.8 kB)\n", "Collecting fonttools>=4.22.0 (from matplotlib->-r ../requirements.txt (line 8))\n", " Downloading fonttools-4.53.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (162 kB)\n", "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m162.6/162.6 kB\u001b[0m \u001b[31m4.1 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0ma \u001b[36m0:00:01\u001b[0m\n", "\u001b[?25hCollecting kiwisolver>=1.3.1 (from matplotlib->-r ../requirements.txt (line 8))\n", " Downloading kiwisolver-1.4.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (6.4 kB)\n", "Collecting pillow>=8 (from matplotlib->-r ../requirements.txt (line 8))\n", " Downloading pillow-10.4.0-cp311-cp311-manylinux_2_28_x86_64.whl.metadata (9.2 kB)\n", "Collecting pyparsing>=2.3.1 (from matplotlib->-r ../requirements.txt (line 8))\n", " Downloading pyparsing-3.1.2-py3-none-any.whl.metadata (5.1 kB)\n", "Collecting scipy>=1.6.0 (from scikit-learn->-r ../requirements.txt (line 10))\n", " Downloading scipy-1.14.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (60 kB)\n", "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m60.8/60.8 kB\u001b[0m \u001b[31m13.2 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", "\u001b[?25hCollecting joblib>=1.2.0 (from scikit-learn->-r ../requirements.txt (line 10))\n", " Downloading joblib-1.4.2-py3-none-any.whl.metadata (5.4 kB)\n", "Collecting threadpoolctl>=3.1.0 (from scikit-learn->-r ../requirements.txt (line 10))\n", " Downloading threadpoolctl-3.5.0-py3-none-any.whl.metadata (13 kB)\n", "Collecting patsy>=0.5.6 (from statsmodels->-r ../requirements.txt (line 11))\n", " Downloading patsy-0.5.6-py2.py3-none-any.whl.metadata (3.5 kB)\n", "Collecting soupsieve>1.2 (from beautifulsoup4->-r ../requirements.txt (line 14))\n", " Downloading soupsieve-2.5-py3-none-any.whl.metadata (4.7 kB)\n", "Collecting Flask<4 (from mlflow->-r ../requirements.txt (line 18))\n", " Downloading flask-3.0.3-py3-none-any.whl.metadata (3.2 kB)\n", "Collecting alembic!=1.10.0,<2 (from mlflow->-r ../requirements.txt (line 18))\n", " Downloading alembic-1.13.2-py3-none-any.whl.metadata (7.4 kB)\n", "Collecting cachetools<6,>=5.0.0 (from mlflow->-r ../requirements.txt (line 18))\n", " Downloading cachetools-5.4.0-py3-none-any.whl.metadata (5.3 kB)\n", "Collecting click<9,>=7.0 (from mlflow->-r ../requirements.txt (line 18))\n", " Downloading click-8.1.7-py3-none-any.whl.metadata (3.0 kB)\n", "Collecting cloudpickle<4 (from mlflow->-r ../requirements.txt (line 18))\n", " Downloading cloudpickle-3.0.0-py3-none-any.whl.metadata (7.0 kB)\n", "Collecting docker<8,>=4.0.0 (from mlflow->-r ../requirements.txt (line 18))\n", " Downloading docker-7.1.0-py3-none-any.whl.metadata (3.8 kB)\n", "Collecting entrypoints<1 (from mlflow->-r ../requirements.txt (line 18))\n", " Downloading entrypoints-0.4-py3-none-any.whl.metadata (2.6 kB)\n", "Collecting gitpython<4,>=3.1.9 (from mlflow->-r ../requirements.txt (line 18))\n", " Downloading GitPython-3.1.43-py3-none-any.whl.metadata (13 kB)\n", "Collecting graphene<4 (from mlflow->-r ../requirements.txt (line 18))\n", " Downloading graphene-3.3-py2.py3-none-any.whl.metadata (7.7 kB)\n", "Collecting importlib-metadata!=4.7.0,<8,>=3.7.0 (from mlflow->-r ../requirements.txt (line 18))\n", " Downloading importlib_metadata-7.2.1-py3-none-any.whl.metadata (4.6 kB)\n", "Collecting markdown<4,>=3.3 (from mlflow->-r ../requirements.txt (line 18))\n", " Downloading Markdown-3.6-py3-none-any.whl.metadata (7.0 kB)\n", "Collecting numpy (from -r ../requirements.txt (line 6))\n", " Downloading numpy-1.26.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (61 kB)\n", "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m61.0/61.0 kB\u001b[0m \u001b[31m13.3 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", "\u001b[?25hCollecting opentelemetry-api<3,>=1.9.0 (from mlflow->-r ../requirements.txt (line 18))\n", " Downloading opentelemetry_api-1.25.0-py3-none-any.whl.metadata (1.4 kB)\n", "Collecting opentelemetry-sdk<3,>=1.9.0 (from mlflow->-r ../requirements.txt (line 18))\n", " Downloading opentelemetry_sdk-1.25.0-py3-none-any.whl.metadata (1.4 kB)\n", "Collecting protobuf<5,>=3.12.0 (from mlflow->-r ../requirements.txt (line 18))\n", " Downloading protobuf-4.25.4-cp37-abi3-manylinux2014_x86_64.whl.metadata (541 bytes)\n", "Collecting pyarrow<16,>=4.0.0 (from mlflow->-r ../requirements.txt (line 18))\n", " Downloading pyarrow-15.0.2-cp311-cp311-manylinux_2_28_x86_64.whl.metadata (3.0 kB)\n", "Collecting pyyaml<7,>=5.1 (from mlflow->-r ../requirements.txt (line 18))\n", " Downloading PyYAML-6.0.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (2.1 kB)\n", "Collecting querystring-parser<2 (from mlflow->-r ../requirements.txt (line 18))\n", " Downloading querystring_parser-1.2.4-py2.py3-none-any.whl.metadata (559 bytes)\n", "Collecting requests<3,>=2.17.3 (from mlflow->-r ../requirements.txt (line 18))\n", " Downloading requests-2.32.3-py3-none-any.whl.metadata (4.6 kB)\n", "Collecting sqlalchemy<3,>=1.4.0 (from mlflow->-r ../requirements.txt (line 18))\n", " Downloading SQLAlchemy-2.0.31-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (9.6 kB)\n", "Collecting sqlparse<1,>=0.4.0 (from mlflow->-r ../requirements.txt (line 18))\n", " Downloading sqlparse-0.5.1-py3-none-any.whl.metadata (3.9 kB)\n", "Collecting Jinja2<4,>=2.11 (from mlflow->-r ../requirements.txt (line 18))\n", " Downloading jinja2-3.1.4-py3-none-any.whl.metadata (2.6 kB)\n", "Collecting gunicorn<23 (from mlflow->-r ../requirements.txt (line 18))\n", " Downloading gunicorn-22.0.0-py3-none-any.whl.metadata (4.4 kB)\n", "Collecting Mako (from alembic!=1.10.0,<2->mlflow->-r ../requirements.txt (line 18))\n", " Downloading Mako-1.3.5-py3-none-any.whl.metadata (2.9 kB)\n", "Collecting urllib3>=1.26.0 (from docker<8,>=4.0.0->mlflow->-r ../requirements.txt (line 18))\n", " Downloading urllib3-2.2.2-py3-none-any.whl.metadata (6.4 kB)\n", "Collecting Werkzeug>=3.0.0 (from Flask<4->mlflow->-r ../requirements.txt (line 18))\n", " Downloading werkzeug-3.0.3-py3-none-any.whl.metadata (3.7 kB)\n", "Collecting itsdangerous>=2.1.2 (from Flask<4->mlflow->-r ../requirements.txt (line 18))\n", " Downloading itsdangerous-2.2.0-py3-none-any.whl.metadata (1.9 kB)\n", "Collecting blinker>=1.6.2 (from Flask<4->mlflow->-r ../requirements.txt (line 18))\n", " Downloading blinker-1.8.2-py3-none-any.whl.metadata (1.6 kB)\n", "Collecting gitdb<5,>=4.0.1 (from gitpython<4,>=3.1.9->mlflow->-r ../requirements.txt (line 18))\n", " Downloading gitdb-4.0.11-py3-none-any.whl.metadata (1.2 kB)\n", "Collecting graphql-core<3.3,>=3.1 (from graphene<4->mlflow->-r ../requirements.txt (line 18))\n", " Downloading graphql_core-3.2.3-py3-none-any.whl.metadata (10 kB)\n", "Collecting graphql-relay<3.3,>=3.1 (from graphene<4->mlflow->-r ../requirements.txt (line 18))\n", " Downloading graphql_relay-3.2.0-py3-none-any.whl.metadata (12 kB)\n", "Collecting aniso8601<10,>=8 (from graphene<4->mlflow->-r ../requirements.txt (line 18))\n", " Downloading aniso8601-9.0.1-py2.py3-none-any.whl.metadata (23 kB)\n", "Collecting zipp>=0.5 (from importlib-metadata!=4.7.0,<8,>=3.7.0->mlflow->-r ../requirements.txt (line 18))\n", " Downloading zipp-3.19.2-py3-none-any.whl.metadata (3.6 kB)\n", "Requirement already satisfied: parso<0.9.0,>=0.8.3 in /home/heuzef/GIT/jan24_cds_mushrooms/.venv/lib/python3.11/site-packages (from jedi>=0.16->ipython->-r ../requirements.txt (line 3)) (0.8.4)\n", "Collecting MarkupSafe>=2.0 (from Jinja2<4,>=2.11->mlflow->-r ../requirements.txt (line 18))\n", " Downloading MarkupSafe-2.1.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (3.0 kB)\n", "Requirement already satisfied: platformdirs>=2.5 in /home/heuzef/GIT/jan24_cds_mushrooms/.venv/lib/python3.11/site-packages (from jupyter-core!=5.0.*,>=4.12->ipykernel->-r ../requirements.txt (line 2)) (4.2.2)\n", "Collecting deprecated>=1.2.6 (from opentelemetry-api<3,>=1.9.0->mlflow->-r ../requirements.txt (line 18))\n", " Downloading Deprecated-1.2.14-py2.py3-none-any.whl.metadata (5.4 kB)\n", "Collecting importlib-metadata!=4.7.0,<8,>=3.7.0 (from mlflow->-r ../requirements.txt (line 18))\n", " Downloading importlib_metadata-7.1.0-py3-none-any.whl.metadata (4.7 kB)\n", "Collecting opentelemetry-semantic-conventions==0.46b0 (from opentelemetry-sdk<3,>=1.9.0->mlflow->-r ../requirements.txt (line 18))\n", " Downloading opentelemetry_semantic_conventions-0.46b0-py3-none-any.whl.metadata (2.3 kB)\n", "Requirement already satisfied: six in /home/heuzef/GIT/jan24_cds_mushrooms/.venv/lib/python3.11/site-packages (from patsy>=0.5.6->statsmodels->-r ../requirements.txt (line 11)) (1.16.0)\n", "Requirement already satisfied: ptyprocess>=0.5 in /home/heuzef/GIT/jan24_cds_mushrooms/.venv/lib/python3.11/site-packages (from pexpect>4.3->ipython->-r ../requirements.txt (line 3)) (0.7.0)\n", "Requirement already satisfied: wcwidth in /home/heuzef/GIT/jan24_cds_mushrooms/.venv/lib/python3.11/site-packages (from prompt-toolkit<3.1.0,>=3.0.41->ipython->-r ../requirements.txt (line 3)) (0.2.13)\n", "Collecting charset-normalizer<4,>=2 (from requests<3,>=2.17.3->mlflow->-r ../requirements.txt (line 18))\n", " Downloading charset_normalizer-3.3.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (33 kB)\n", "Collecting idna<4,>=2.5 (from requests<3,>=2.17.3->mlflow->-r ../requirements.txt (line 18))\n", " Downloading idna-3.7-py3-none-any.whl.metadata (9.9 kB)\n", "Collecting certifi>=2017.4.17 (from requests<3,>=2.17.3->mlflow->-r ../requirements.txt (line 18))\n", " Downloading certifi-2024.7.4-py3-none-any.whl.metadata (2.2 kB)\n", "Collecting greenlet!=0.4.17 (from sqlalchemy<3,>=1.4.0->mlflow->-r ../requirements.txt (line 18))\n", " Downloading greenlet-3.0.3-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.metadata (3.8 kB)\n", "Requirement already satisfied: executing>=1.2.0 in /home/heuzef/GIT/jan24_cds_mushrooms/.venv/lib/python3.11/site-packages (from stack-data->ipython->-r ../requirements.txt (line 3)) (2.0.1)\n", "Requirement already satisfied: asttokens>=2.1.0 in /home/heuzef/GIT/jan24_cds_mushrooms/.venv/lib/python3.11/site-packages (from stack-data->ipython->-r ../requirements.txt (line 3)) (2.4.1)\n", "Requirement already satisfied: pure-eval in /home/heuzef/GIT/jan24_cds_mushrooms/.venv/lib/python3.11/site-packages (from stack-data->ipython->-r ../requirements.txt (line 3)) (0.2.3)\n", "Collecting wrapt<2,>=1.10 (from deprecated>=1.2.6->opentelemetry-api<3,>=1.9.0->mlflow->-r ../requirements.txt (line 18))\n", " Downloading wrapt-1.16.0-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (6.6 kB)\n", "Collecting smmap<6,>=3.0.1 (from gitdb<5,>=4.0.1->gitpython<4,>=3.1.9->mlflow->-r ../requirements.txt (line 18))\n", " Downloading smmap-5.0.1-py3-none-any.whl.metadata (4.3 kB)\n", "Downloading pandas-2.2.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (13.0 MB)\n", "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m13.0/13.0 MB\u001b[0m \u001b[31m49.9 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0ma \u001b[36m0:00:01\u001b[0m\n", "\u001b[?25hDownloading matplotlib-3.9.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (8.3 MB)\n", "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m8.3/8.3 MB\u001b[0m \u001b[31m72.0 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m00:01\u001b[0m00:01\u001b[0mm\n", "\u001b[?25hDownloading seaborn-0.13.2-py3-none-any.whl (294 kB)\n", "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m294.9/294.9 kB\u001b[0m \u001b[31m55.6 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", "\u001b[?25hDownloading scikit_learn-1.5.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (13.3 MB)\n", "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m13.3/13.3 MB\u001b[0m \u001b[31m88.0 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m:00:01\u001b[0m00:01\u001b[0m\n", "\u001b[?25hDownloading statsmodels-0.14.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (10.7 MB)\n", "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m10.7/10.7 MB\u001b[0m \u001b[31m90.2 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m:00:01\u001b[0m0:01\u001b[0m\n", "\u001b[?25hDownloading beautifulsoup4-4.12.3-py3-none-any.whl (147 kB)\n", "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m147.9/147.9 kB\u001b[0m \u001b[31m36.1 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", "\u001b[?25hDownloading lxml-5.2.2-cp311-cp311-manylinux_2_28_x86_64.whl (5.0 MB)\n", "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m5.0/5.0 MB\u001b[0m \u001b[31m90.6 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0ma \u001b[36m0:00:01\u001b[0m\n", "\u001b[?25hDownloading mlflow-2.14.3-py3-none-any.whl (25.8 MB)\n", "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m25.8/25.8 MB\u001b[0m \u001b[31m72.0 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m:00:01\u001b[0m00:01\u001b[0m\n", "\u001b[?25hDownloading numpy-1.26.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (18.3 MB)\n", "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m18.3/18.3 MB\u001b[0m \u001b[31m80.2 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m:00:01\u001b[0m00:01\u001b[0m\n", "\u001b[?25hDownloading opencv_contrib_python-4.10.0.84-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (68.7 MB)\n", "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m68.7/68.7 MB\u001b[0m \u001b[31m49.1 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m:00:01\u001b[0m00:01\u001b[0m\n", "\u001b[?25hDownloading alembic-1.13.2-py3-none-any.whl (232 kB)\n", "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m233.0/233.0 kB\u001b[0m \u001b[31m50.1 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", "\u001b[?25hDownloading cachetools-5.4.0-py3-none-any.whl (9.5 kB)\n", "Downloading click-8.1.7-py3-none-any.whl (97 kB)\n", "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m97.9/97.9 kB\u001b[0m \u001b[31m16.4 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", "\u001b[?25hDownloading cloudpickle-3.0.0-py3-none-any.whl (20 kB)\n", "Downloading contourpy-1.2.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (306 kB)\n", "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m306.0/306.0 kB\u001b[0m \u001b[31m38.2 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", "\u001b[?25hDownloading cycler-0.12.1-py3-none-any.whl (8.3 kB)\n", "Downloading docker-7.1.0-py3-none-any.whl (147 kB)\n", "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m147.8/147.8 kB\u001b[0m \u001b[31m23.6 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", "\u001b[?25hDownloading entrypoints-0.4-py3-none-any.whl (5.3 kB)\n", "Downloading flask-3.0.3-py3-none-any.whl (101 kB)\n", "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m101.7/101.7 kB\u001b[0m \u001b[31m17.9 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", "\u001b[?25hDownloading fonttools-4.53.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.9 MB)\n", "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m4.9/4.9 MB\u001b[0m \u001b[31m62.2 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m00:01\u001b[0m00:01\u001b[0m\n", "\u001b[?25hDownloading GitPython-3.1.43-py3-none-any.whl (207 kB)\n", "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m207.3/207.3 kB\u001b[0m \u001b[31m43.7 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", "\u001b[?25hDownloading graphene-3.3-py2.py3-none-any.whl (128 kB)\n", "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m128.2/128.2 kB\u001b[0m \u001b[31m20.5 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", "\u001b[?25hDownloading gunicorn-22.0.0-py3-none-any.whl (84 kB)\n", "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m84.4/84.4 kB\u001b[0m \u001b[31m14.4 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", "\u001b[?25hDownloading jinja2-3.1.4-py3-none-any.whl (133 kB)\n", "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m133.3/133.3 kB\u001b[0m \u001b[31m21.6 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", "\u001b[?25hDownloading joblib-1.4.2-py3-none-any.whl (301 kB)\n", "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m301.8/301.8 kB\u001b[0m \u001b[31m38.4 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", "\u001b[?25hDownloading kiwisolver-1.4.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.4 MB)\n", "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m1.4/1.4 MB\u001b[0m \u001b[31m64.6 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", "\u001b[?25hDownloading Markdown-3.6-py3-none-any.whl (105 kB)\n", "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m105.4/105.4 kB\u001b[0m \u001b[31m24.7 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", "\u001b[?25hDownloading opentelemetry_api-1.25.0-py3-none-any.whl (59 kB)\n", "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m59.9/59.9 kB\u001b[0m \u001b[31m10.7 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", "\u001b[?25hDownloading importlib_metadata-7.1.0-py3-none-any.whl (24 kB)\n", "Downloading opentelemetry_sdk-1.25.0-py3-none-any.whl (107 kB)\n", "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m107.0/107.0 kB\u001b[0m \u001b[31m18.1 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", "\u001b[?25hDownloading opentelemetry_semantic_conventions-0.46b0-py3-none-any.whl (130 kB)\n", "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m130.5/130.5 kB\u001b[0m \u001b[31m19.6 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", "\u001b[?25hDownloading patsy-0.5.6-py2.py3-none-any.whl (233 kB)\n", "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m233.9/233.9 kB\u001b[0m \u001b[31m31.7 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", "\u001b[?25hDownloading pillow-10.4.0-cp311-cp311-manylinux_2_28_x86_64.whl (4.5 MB)\n", "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m4.5/4.5 MB\u001b[0m \u001b[31m76.2 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0ma \u001b[36m0:00:01\u001b[0m\n", "\u001b[?25hDownloading protobuf-4.25.4-cp37-abi3-manylinux2014_x86_64.whl (294 kB)\n", "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m294.6/294.6 kB\u001b[0m \u001b[31m53.8 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", "\u001b[?25hDownloading pyarrow-15.0.2-cp311-cp311-manylinux_2_28_x86_64.whl (38.3 MB)\n", "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m38.3/38.3 MB\u001b[0m \u001b[31m57.5 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m00:01\u001b[0m00:01\u001b[0m\n", "\u001b[?25hDownloading pyparsing-3.1.2-py3-none-any.whl (103 kB)\n", "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m103.2/103.2 kB\u001b[0m \u001b[31m27.3 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", "\u001b[?25hDownloading pytz-2024.1-py2.py3-none-any.whl (505 kB)\n", "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m505.5/505.5 kB\u001b[0m \u001b[31m58.2 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", "\u001b[?25hDownloading PyYAML-6.0.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (757 kB)\n", "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m757.7/757.7 kB\u001b[0m \u001b[31m71.2 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", "\u001b[?25hDownloading querystring_parser-1.2.4-py2.py3-none-any.whl (7.9 kB)\n", "Downloading requests-2.32.3-py3-none-any.whl (64 kB)\n", "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m64.9/64.9 kB\u001b[0m \u001b[31m12.2 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", "\u001b[?25hDownloading scipy-1.14.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (41.1 MB)\n", "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m41.1/41.1 MB\u001b[0m \u001b[31m54.8 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m00:01\u001b[0m00:01\u001b[0m\n", "\u001b[?25hDownloading soupsieve-2.5-py3-none-any.whl (36 kB)\n", "Downloading SQLAlchemy-2.0.31-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.2 MB)\n", "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m3.2/3.2 MB\u001b[0m \u001b[31m70.2 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m:00:01\u001b[0m\n", "\u001b[?25hDownloading sqlparse-0.5.1-py3-none-any.whl (44 kB)\n", "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m44.2/44.2 kB\u001b[0m \u001b[31m11.0 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", "\u001b[?25hDownloading threadpoolctl-3.5.0-py3-none-any.whl (18 kB)\n", "Downloading tzdata-2024.1-py2.py3-none-any.whl (345 kB)\n", "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m345.4/345.4 kB\u001b[0m \u001b[31m40.8 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", "\u001b[?25hDownloading aniso8601-9.0.1-py2.py3-none-any.whl (52 kB)\n", "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m52.8/52.8 kB\u001b[0m \u001b[31m7.6 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", "\u001b[?25hDownloading blinker-1.8.2-py3-none-any.whl (9.5 kB)\n", "Downloading certifi-2024.7.4-py3-none-any.whl (162 kB)\n", "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m163.0/163.0 kB\u001b[0m \u001b[31m26.0 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", "\u001b[?25hDownloading charset_normalizer-3.3.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (140 kB)\n", "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m140.3/140.3 kB\u001b[0m \u001b[31m20.8 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", "\u001b[?25hDownloading Deprecated-1.2.14-py2.py3-none-any.whl (9.6 kB)\n", "Downloading gitdb-4.0.11-py3-none-any.whl (62 kB)\n", "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m62.7/62.7 kB\u001b[0m \u001b[31m11.1 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", "\u001b[?25hDownloading graphql_core-3.2.3-py3-none-any.whl (202 kB)\n", "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m202.9/202.9 kB\u001b[0m \u001b[31m29.9 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", "\u001b[?25hDownloading graphql_relay-3.2.0-py3-none-any.whl (16 kB)\n", "Downloading greenlet-3.0.3-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (620 kB)\n", "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m620.0/620.0 kB\u001b[0m \u001b[31m52.6 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", "\u001b[?25hDownloading idna-3.7-py3-none-any.whl (66 kB)\n", "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m66.8/66.8 kB\u001b[0m \u001b[31m11.0 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", "\u001b[?25hDownloading itsdangerous-2.2.0-py3-none-any.whl (16 kB)\n", "Downloading MarkupSafe-2.1.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (28 kB)\n", "Downloading urllib3-2.2.2-py3-none-any.whl (121 kB)\n", "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m121.4/121.4 kB\u001b[0m \u001b[31m20.9 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", "\u001b[?25hDownloading werkzeug-3.0.3-py3-none-any.whl (227 kB)\n", "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m227.3/227.3 kB\u001b[0m \u001b[31m31.1 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", "\u001b[?25hDownloading zipp-3.19.2-py3-none-any.whl (9.0 kB)\n", "Downloading Mako-1.3.5-py3-none-any.whl (78 kB)\n", "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m78.6/78.6 kB\u001b[0m \u001b[31m12.5 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", "\u001b[?25hDownloading smmap-5.0.1-py3-none-any.whl (24 kB)\n", "Downloading wrapt-1.16.0-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (80 kB)\n", "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m80.7/80.7 kB\u001b[0m \u001b[31m21.0 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", "\u001b[?25hInstalling collected packages: pytz, aniso8601, zipp, wrapt, urllib3, tzdata, threadpoolctl, sqlparse, soupsieve, smmap, querystring-parser, pyyaml, pyparsing, protobuf, pillow, numpy, MarkupSafe, markdown, lxml, kiwisolver, joblib, itsdangerous, idna, gunicorn, greenlet, graphql-core, fonttools, entrypoints, cycler, cloudpickle, click, charset-normalizer, certifi, cachetools, blinker, Werkzeug, sqlalchemy, scipy, requests, pyarrow, patsy, pandas, opencv-contrib-python, Mako, Jinja2, importlib-metadata, graphql-relay, gitdb, deprecated, contourpy, beautifulsoup4, statsmodels, scikit-learn, opentelemetry-api, matplotlib, graphene, gitpython, Flask, docker, alembic, seaborn, opentelemetry-semantic-conventions, opentelemetry-sdk, mlflow\n", "Successfully installed Flask-3.0.3 Jinja2-3.1.4 Mako-1.3.5 MarkupSafe-2.1.5 Werkzeug-3.0.3 alembic-1.13.2 aniso8601-9.0.1 beautifulsoup4-4.12.3 blinker-1.8.2 cachetools-5.4.0 certifi-2024.7.4 charset-normalizer-3.3.2 click-8.1.7 cloudpickle-3.0.0 contourpy-1.2.1 cycler-0.12.1 deprecated-1.2.14 docker-7.1.0 entrypoints-0.4 fonttools-4.53.1 gitdb-4.0.11 gitpython-3.1.43 graphene-3.3 graphql-core-3.2.3 graphql-relay-3.2.0 greenlet-3.0.3 gunicorn-22.0.0 idna-3.7 importlib-metadata-7.1.0 itsdangerous-2.2.0 joblib-1.4.2 kiwisolver-1.4.5 lxml-5.2.2 markdown-3.6 matplotlib-3.9.1 mlflow-2.14.3 numpy-1.26.4 opencv-contrib-python-4.10.0.84 opentelemetry-api-1.25.0 opentelemetry-sdk-1.25.0 opentelemetry-semantic-conventions-0.46b0 pandas-2.2.2 patsy-0.5.6 pillow-10.4.0 protobuf-4.25.4 pyarrow-15.0.2 pyparsing-3.1.2 pytz-2024.1 pyyaml-6.0.1 querystring-parser-1.2.4 requests-2.32.3 scikit-learn-1.5.1 scipy-1.14.0 seaborn-0.13.2 smmap-5.0.1 soupsieve-2.5 sqlalchemy-2.0.31 sqlparse-0.5.1 statsmodels-0.14.2 threadpoolctl-3.5.0 tzdata-2024.1 urllib3-2.2.2 wrapt-1.16.0 zipp-3.19.2\n", "Note: you may need to restart the kernel to use updated packages.\n" ] } ], "source": [ "%pip install --upgrade pip\n", "%pip install -r ../requirements.txt" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# Import somes libs for testing" ] }, { "cell_type": "code", "execution_count": 9, "metadata": {}, "outputs": [], "source": [ "# Tests d'imports\n", "import numpy as np\n", "import pandas as pd\n", "import matplotlib.pyplot as plt\n", "import os\n", "import pathlib\n", "import PIL\n", "from PIL import Image" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# Tensorflow\n", "\n", "> https://www.tensorflow.org/install/pip" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Standard version with CPU" ] }, { "cell_type": "code", "execution_count": 10, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "\u001b[33mWARNING: Skipping tensorflow as it is not installed.\u001b[0m\u001b[33m\n", "\u001b[0m\u001b[33mWARNING: Skipping tensorflow-rocm as it is not installed.\u001b[0m\u001b[33m\n", "\u001b[0mNote: you may need to restart the kernel to use updated packages.\n", "Collecting tensorflow\n", " Downloading tensorflow-2.17.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (4.2 kB)\n", "Collecting absl-py>=1.0.0 (from tensorflow)\n", " Downloading absl_py-2.1.0-py3-none-any.whl.metadata (2.3 kB)\n", "Collecting astunparse>=1.6.0 (from tensorflow)\n", " Downloading astunparse-1.6.3-py2.py3-none-any.whl.metadata (4.4 kB)\n", "Collecting flatbuffers>=24.3.25 (from tensorflow)\n", " Downloading flatbuffers-24.3.25-py2.py3-none-any.whl.metadata (850 bytes)\n", "Collecting gast!=0.5.0,!=0.5.1,!=0.5.2,>=0.2.1 (from tensorflow)\n", " Downloading gast-0.6.0-py3-none-any.whl.metadata (1.3 kB)\n", "Collecting google-pasta>=0.1.1 (from tensorflow)\n", " Downloading google_pasta-0.2.0-py3-none-any.whl.metadata (814 bytes)\n", "Collecting h5py>=3.10.0 (from tensorflow)\n", " Downloading h5py-3.11.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (2.5 kB)\n", "Collecting libclang>=13.0.0 (from tensorflow)\n", " Downloading libclang-18.1.1-py2.py3-none-manylinux2010_x86_64.whl.metadata (5.2 kB)\n", "Collecting ml-dtypes<0.5.0,>=0.3.1 (from tensorflow)\n", " Downloading ml_dtypes-0.4.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (20 kB)\n", "Collecting opt-einsum>=2.3.2 (from tensorflow)\n", " Downloading opt_einsum-3.3.0-py3-none-any.whl.metadata (6.5 kB)\n", "Requirement already satisfied: packaging in /home/heuzef/GIT/jan24_cds_mushrooms/.venv/lib/python3.11/site-packages (from tensorflow) (24.1)\n", "Requirement already satisfied: protobuf!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5,<5.0.0dev,>=3.20.3 in /home/heuzef/GIT/jan24_cds_mushrooms/.venv/lib/python3.11/site-packages (from tensorflow) (4.25.4)\n", "Requirement already satisfied: requests<3,>=2.21.0 in /home/heuzef/GIT/jan24_cds_mushrooms/.venv/lib/python3.11/site-packages (from tensorflow) (2.32.3)\n", "Requirement already satisfied: setuptools in /home/heuzef/GIT/jan24_cds_mushrooms/.venv/lib/python3.11/site-packages (from tensorflow) (65.5.0)\n", "Requirement already satisfied: six>=1.12.0 in /home/heuzef/GIT/jan24_cds_mushrooms/.venv/lib/python3.11/site-packages (from tensorflow) (1.16.0)\n", "Collecting termcolor>=1.1.0 (from tensorflow)\n", " Downloading termcolor-2.4.0-py3-none-any.whl.metadata (6.1 kB)\n", "Requirement already satisfied: typing-extensions>=3.6.6 in /home/heuzef/GIT/jan24_cds_mushrooms/.venv/lib/python3.11/site-packages (from tensorflow) (4.12.2)\n", "Requirement already satisfied: wrapt>=1.11.0 in /home/heuzef/GIT/jan24_cds_mushrooms/.venv/lib/python3.11/site-packages (from tensorflow) (1.16.0)\n", "Collecting grpcio<2.0,>=1.24.3 (from tensorflow)\n", " Downloading grpcio-1.65.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (3.3 kB)\n", "Collecting tensorboard<2.18,>=2.17 (from tensorflow)\n", " Downloading tensorboard-2.17.0-py3-none-any.whl.metadata (1.6 kB)\n", "Collecting keras>=3.2.0 (from tensorflow)\n", " Downloading keras-3.4.1-py3-none-any.whl.metadata (5.8 kB)\n", "Collecting tensorflow-io-gcs-filesystem>=0.23.1 (from tensorflow)\n", " Downloading tensorflow_io_gcs_filesystem-0.37.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (14 kB)\n", "Requirement already satisfied: numpy<2.0.0,>=1.23.5 in /home/heuzef/GIT/jan24_cds_mushrooms/.venv/lib/python3.11/site-packages (from tensorflow) (1.26.4)\n", "Collecting wheel<1.0,>=0.23.0 (from astunparse>=1.6.0->tensorflow)\n", " Downloading wheel-0.43.0-py3-none-any.whl.metadata (2.2 kB)\n", "Collecting rich (from keras>=3.2.0->tensorflow)\n", " Downloading rich-13.7.1-py3-none-any.whl.metadata (18 kB)\n", "Collecting namex (from keras>=3.2.0->tensorflow)\n", " Downloading namex-0.0.8-py3-none-any.whl.metadata (246 bytes)\n", "Collecting optree (from keras>=3.2.0->tensorflow)\n", " Downloading optree-0.12.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (47 kB)\n", "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m47.8/47.8 kB\u001b[0m \u001b[31m1.7 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", "\u001b[?25hRequirement already satisfied: charset-normalizer<4,>=2 in /home/heuzef/GIT/jan24_cds_mushrooms/.venv/lib/python3.11/site-packages (from requests<3,>=2.21.0->tensorflow) (3.3.2)\n", "Requirement already satisfied: idna<4,>=2.5 in /home/heuzef/GIT/jan24_cds_mushrooms/.venv/lib/python3.11/site-packages (from requests<3,>=2.21.0->tensorflow) (3.7)\n", "Requirement already satisfied: urllib3<3,>=1.21.1 in /home/heuzef/GIT/jan24_cds_mushrooms/.venv/lib/python3.11/site-packages (from requests<3,>=2.21.0->tensorflow) (2.2.2)\n", "Requirement already satisfied: certifi>=2017.4.17 in /home/heuzef/GIT/jan24_cds_mushrooms/.venv/lib/python3.11/site-packages (from requests<3,>=2.21.0->tensorflow) (2024.7.4)\n", "Requirement already satisfied: markdown>=2.6.8 in /home/heuzef/GIT/jan24_cds_mushrooms/.venv/lib/python3.11/site-packages (from tensorboard<2.18,>=2.17->tensorflow) (3.6)\n", "Collecting tensorboard-data-server<0.8.0,>=0.7.0 (from tensorboard<2.18,>=2.17->tensorflow)\n", " Downloading tensorboard_data_server-0.7.2-py3-none-manylinux_2_31_x86_64.whl.metadata (1.1 kB)\n", "Requirement already satisfied: werkzeug>=1.0.1 in /home/heuzef/GIT/jan24_cds_mushrooms/.venv/lib/python3.11/site-packages (from tensorboard<2.18,>=2.17->tensorflow) (3.0.3)\n", "Requirement already satisfied: MarkupSafe>=2.1.1 in /home/heuzef/GIT/jan24_cds_mushrooms/.venv/lib/python3.11/site-packages (from werkzeug>=1.0.1->tensorboard<2.18,>=2.17->tensorflow) (2.1.5)\n", "Collecting markdown-it-py>=2.2.0 (from rich->keras>=3.2.0->tensorflow)\n", " Downloading markdown_it_py-3.0.0-py3-none-any.whl.metadata (6.9 kB)\n", "Requirement already satisfied: pygments<3.0.0,>=2.13.0 in /home/heuzef/GIT/jan24_cds_mushrooms/.venv/lib/python3.11/site-packages (from rich->keras>=3.2.0->tensorflow) (2.18.0)\n", "Collecting mdurl~=0.1 (from markdown-it-py>=2.2.0->rich->keras>=3.2.0->tensorflow)\n", " Downloading mdurl-0.1.2-py3-none-any.whl.metadata (1.6 kB)\n", "Downloading tensorflow-2.17.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (601.3 MB)\n", "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m601.3/601.3 MB\u001b[0m \u001b[31m108.4 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m00:01\u001b[0m00:01\u001b[0m\n", "\u001b[?25hDownloading absl_py-2.1.0-py3-none-any.whl (133 kB)\n", "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m133.7/133.7 kB\u001b[0m \u001b[31m134.3 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", "\u001b[?25hDownloading astunparse-1.6.3-py2.py3-none-any.whl (12 kB)\n", "Downloading flatbuffers-24.3.25-py2.py3-none-any.whl (26 kB)\n", "Downloading gast-0.6.0-py3-none-any.whl (21 kB)\n", "Downloading google_pasta-0.2.0-py3-none-any.whl (57 kB)\n", "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m57.5/57.5 kB\u001b[0m \u001b[31m113.3 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", "\u001b[?25hDownloading grpcio-1.65.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.7 MB)\n", "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m5.7/5.7 MB\u001b[0m \u001b[31m30.6 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0ma \u001b[36m0:00:01\u001b[0mm\n", "\u001b[?25hDownloading h5py-3.11.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.4 MB)\n", "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m5.4/5.4 MB\u001b[0m \u001b[31m117.0 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0ma \u001b[36m0:00:01\u001b[0m\n", "\u001b[?25hDownloading keras-3.4.1-py3-none-any.whl (1.1 MB)\n", "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m1.1/1.1 MB\u001b[0m \u001b[31m156.4 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", "\u001b[?25hDownloading libclang-18.1.1-py2.py3-none-manylinux2010_x86_64.whl (24.5 MB)\n", "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m24.5/24.5 MB\u001b[0m \u001b[31m110.9 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0ma \u001b[36m0:00:01\u001b[0m\n", "\u001b[?25hDownloading ml_dtypes-0.4.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.2 MB)\n", "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m2.2/2.2 MB\u001b[0m \u001b[31m129.0 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", "\u001b[?25hDownloading opt_einsum-3.3.0-py3-none-any.whl (65 kB)\n", "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m65.5/65.5 kB\u001b[0m \u001b[31m130.1 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", "\u001b[?25hDownloading tensorboard-2.17.0-py3-none-any.whl (5.5 MB)\n", "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m5.5/5.5 MB\u001b[0m \u001b[31m116.0 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0ma \u001b[36m0:00:01\u001b[0m\n", "\u001b[?25hDownloading tensorflow_io_gcs_filesystem-0.37.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.1 MB)\n", "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m5.1/5.1 MB\u001b[0m \u001b[31m115.8 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0ma \u001b[36m0:00:01\u001b[0m\n", "\u001b[?25hDownloading termcolor-2.4.0-py3-none-any.whl (7.7 kB)\n", "Downloading tensorboard_data_server-0.7.2-py3-none-manylinux_2_31_x86_64.whl (6.6 MB)\n", "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m6.6/6.6 MB\u001b[0m \u001b[31m115.8 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0ma \u001b[36m0:00:01\u001b[0m\n", "\u001b[?25hDownloading wheel-0.43.0-py3-none-any.whl (65 kB)\n", "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m65.8/65.8 kB\u001b[0m \u001b[31m156.5 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", "\u001b[?25hDownloading namex-0.0.8-py3-none-any.whl (5.8 kB)\n", "Downloading optree-0.12.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (349 kB)\n", "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m349.1/349.1 kB\u001b[0m \u001b[31m146.5 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", "\u001b[?25hDownloading rich-13.7.1-py3-none-any.whl (240 kB)\n", "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m240.7/240.7 kB\u001b[0m \u001b[31m120.3 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", "\u001b[?25hDownloading markdown_it_py-3.0.0-py3-none-any.whl (87 kB)\n", "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m87.5/87.5 kB\u001b[0m \u001b[31m131.5 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", "\u001b[?25hDownloading mdurl-0.1.2-py3-none-any.whl (10.0 kB)\n", "Installing collected packages: namex, libclang, flatbuffers, wheel, termcolor, tensorflow-io-gcs-filesystem, tensorboard-data-server, optree, opt-einsum, ml-dtypes, mdurl, h5py, grpcio, google-pasta, gast, absl-py, tensorboard, markdown-it-py, astunparse, rich, keras, tensorflow\n", "Successfully installed absl-py-2.1.0 astunparse-1.6.3 flatbuffers-24.3.25 gast-0.6.0 google-pasta-0.2.0 grpcio-1.65.1 h5py-3.11.0 keras-3.4.1 libclang-18.1.1 markdown-it-py-3.0.0 mdurl-0.1.2 ml-dtypes-0.4.0 namex-0.0.8 opt-einsum-3.3.0 optree-0.12.1 rich-13.7.1 tensorboard-2.17.0 tensorboard-data-server-0.7.2 tensorflow-2.17.0 tensorflow-io-gcs-filesystem-0.37.1 termcolor-2.4.0 wheel-0.43.0\n", "Note: you may need to restart the kernel to use updated packages.\n", "tensorflow version 2.17.0\n", "Num GPUs Available: 0\n" ] } ], "source": [ "%pip uninstall -y tensorflow tensorflow-rocm\n", "%pip install --no-cache-dir tensorflow\n", "\n", "import tensorflow as tf\n", "\n", "print(\"tensorflow version\",tf.__version__)\n", "print(\"Num GPUs Available: \", len(tf.config.list_physical_devices('GPU')))" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## ROCM version with AMD GPU" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "S'assurer que les drivers du GPU sont bien installé et le GPU bien reconnu `lspci | grep Radeon`, puis installer les librairies ROCM sur l'OS `sudo dnf install rocm-* --skip-broken`\n", "\n", "Si les librairies ne sont pas trouvés sur le système, il peut-être nécessaire de créer une variable d'environnement sur l'OS, définir la variable LD_LIBRARY_PATH :\n", "\n", "```\n", "%env LD_LIBRARY_PATH=/opt/rocm/lib\n", "%env\n", "```" ] }, { "cell_type": "code", "execution_count": 5, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "\u001b[33mWARNING: Skipping tensorflow as it is not installed.\u001b[0m\u001b[33m\n", "\u001b[0m\u001b[33mWARNING: Skipping tensorflow-rocm as it is not installed.\u001b[0m\u001b[33m\n", "\u001b[0mNote: you may need to restart the kernel to use updated packages.\n", "Looking in links: [https://repo.radeon.com/rocm/manylinux/rocm-rel-6.1]\n", "\u001b[33mWARNING: Location '[https://repo.radeon.com/rocm/manylinux/rocm-rel-6.1]' is ignored: it is either a non-existing path or lacks a specific scheme.\u001b[0m\u001b[33m\n", "\u001b[0mCollecting tensorflow-rocm\n", " Downloading tensorflow_rocm-2.14.0.600-cp311-cp311-manylinux2014_x86_64.whl.metadata (4.1 kB)\n", "\u001b[33mWARNING: Location '[https://repo.radeon.com/rocm/manylinux/rocm-rel-6.1]' is ignored: it is either a non-existing path or lacks a specific scheme.\u001b[0m\u001b[33m\n", "\u001b[0mCollecting absl-py>=1.0.0 (from tensorflow-rocm)\n", " Downloading absl_py-2.1.0-py3-none-any.whl.metadata (2.3 kB)\n", "\u001b[33mWARNING: Location '[https://repo.radeon.com/rocm/manylinux/rocm-rel-6.1]' is ignored: it is either a non-existing path or lacks a specific scheme.\u001b[0m\u001b[33m\n", "\u001b[0mCollecting astunparse>=1.6.0 (from tensorflow-rocm)\n", " Downloading astunparse-1.6.3-py2.py3-none-any.whl.metadata (4.4 kB)\n", "\u001b[33mWARNING: Location '[https://repo.radeon.com/rocm/manylinux/rocm-rel-6.1]' is ignored: it is either a non-existing path or lacks a specific scheme.\u001b[0m\u001b[33m\n", "\u001b[0mCollecting flatbuffers>=23.5.26 (from tensorflow-rocm)\n", " Downloading flatbuffers-24.3.25-py2.py3-none-any.whl.metadata (850 bytes)\n", "\u001b[33mWARNING: Location '[https://repo.radeon.com/rocm/manylinux/rocm-rel-6.1]' is ignored: it is either a non-existing path or lacks a specific scheme.\u001b[0m\u001b[33m\n", "\u001b[0mCollecting gast!=0.5.0,!=0.5.1,!=0.5.2,>=0.2.1 (from tensorflow-rocm)\n", " Downloading gast-0.6.0-py3-none-any.whl.metadata (1.3 kB)\n", "\u001b[33mWARNING: Location '[https://repo.radeon.com/rocm/manylinux/rocm-rel-6.1]' is ignored: it is either a non-existing path or lacks a specific scheme.\u001b[0m\u001b[33m\n", "\u001b[0mCollecting google-pasta>=0.1.1 (from tensorflow-rocm)\n", " Downloading google_pasta-0.2.0-py3-none-any.whl.metadata (814 bytes)\n", "\u001b[33mWARNING: Location '[https://repo.radeon.com/rocm/manylinux/rocm-rel-6.1]' is ignored: it is either a non-existing path or lacks a specific scheme.\u001b[0m\u001b[33m\n", "\u001b[0mCollecting h5py>=2.9.0 (from tensorflow-rocm)\n", " Downloading h5py-3.11.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (2.5 kB)\n", "\u001b[33mWARNING: Location '[https://repo.radeon.com/rocm/manylinux/rocm-rel-6.1]' is ignored: it is either a non-existing path or lacks a specific scheme.\u001b[0m\u001b[33m\n", "\u001b[0mCollecting libclang>=13.0.0 (from tensorflow-rocm)\n", " Downloading libclang-18.1.1-py2.py3-none-manylinux2010_x86_64.whl.metadata (5.2 kB)\n", "\u001b[33mWARNING: Location '[https://repo.radeon.com/rocm/manylinux/rocm-rel-6.1]' is ignored: it is either a non-existing path or lacks a specific scheme.\u001b[0m\u001b[33m\n", "\u001b[0mCollecting ml-dtypes==0.2.0 (from tensorflow-rocm)\n", " Downloading ml_dtypes-0.2.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (20 kB)\n", "Requirement already satisfied: numpy>=1.23.5 in /home/heuzef/GIT/jan24_cds_mushrooms/.venv/lib/python3.11/site-packages (from tensorflow-rocm) (1.26.4)\n", "\u001b[33mWARNING: Location '[https://repo.radeon.com/rocm/manylinux/rocm-rel-6.1]' is ignored: it is either a non-existing path or lacks a specific scheme.\u001b[0m\u001b[33m\n", "\u001b[0mCollecting opt-einsum>=2.3.2 (from tensorflow-rocm)\n", " Downloading opt_einsum-3.3.0-py3-none-any.whl.metadata (6.5 kB)\n", "Requirement already satisfied: packaging in /home/heuzef/GIT/jan24_cds_mushrooms/.venv/lib/python3.11/site-packages (from tensorflow-rocm) (24.1)\n", "Requirement already satisfied: protobuf!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5,<5.0.0dev,>=3.20.3 in /home/heuzef/GIT/jan24_cds_mushrooms/.venv/lib/python3.11/site-packages (from tensorflow-rocm) (4.25.4)\n", "Requirement already satisfied: setuptools in /home/heuzef/GIT/jan24_cds_mushrooms/.venv/lib/python3.11/site-packages (from tensorflow-rocm) (65.5.0)\n", "Requirement already satisfied: six>=1.12.0 in /home/heuzef/GIT/jan24_cds_mushrooms/.venv/lib/python3.11/site-packages (from tensorflow-rocm) (1.16.0)\n", "\u001b[33mWARNING: Location '[https://repo.radeon.com/rocm/manylinux/rocm-rel-6.1]' is ignored: it is either a non-existing path or lacks a specific scheme.\u001b[0m\u001b[33m\n", "\u001b[0mCollecting termcolor>=1.1.0 (from tensorflow-rocm)\n", " Downloading termcolor-2.4.0-py3-none-any.whl.metadata (6.1 kB)\n", "Requirement already satisfied: typing-extensions>=3.6.6 in /home/heuzef/GIT/jan24_cds_mushrooms/.venv/lib/python3.11/site-packages (from tensorflow-rocm) (4.12.2)\n", "\u001b[33mWARNING: Location '[https://repo.radeon.com/rocm/manylinux/rocm-rel-6.1]' is ignored: it is either a non-existing path or lacks a specific scheme.\u001b[0m\u001b[33m\n", "\u001b[0mCollecting wrapt<1.15,>=1.11.0 (from tensorflow-rocm)\n", " Downloading wrapt-1.14.1-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (6.7 kB)\n", "\u001b[33mWARNING: Location '[https://repo.radeon.com/rocm/manylinux/rocm-rel-6.1]' is ignored: it is either a non-existing path or lacks a specific scheme.\u001b[0m\u001b[33m\n", "\u001b[0mCollecting tensorflow-io-gcs-filesystem>=0.23.1 (from tensorflow-rocm)\n", " Downloading tensorflow_io_gcs_filesystem-0.37.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (14 kB)\n", "\u001b[33mWARNING: Location '[https://repo.radeon.com/rocm/manylinux/rocm-rel-6.1]' is ignored: it is either a non-existing path or lacks a specific scheme.\u001b[0m\u001b[33m\n", "\u001b[0mCollecting grpcio<2.0,>=1.24.3 (from tensorflow-rocm)\n", " Downloading grpcio-1.65.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (3.3 kB)\n", "\u001b[33mWARNING: Location '[https://repo.radeon.com/rocm/manylinux/rocm-rel-6.1]' is ignored: it is either a non-existing path or lacks a specific scheme.\u001b[0m\u001b[33m\n", "\u001b[0mCollecting tensorboard<2.15,>=2.14 (from tensorflow-rocm)\n", " Downloading tensorboard-2.14.1-py3-none-any.whl.metadata (1.7 kB)\n", "\u001b[33mWARNING: Location '[https://repo.radeon.com/rocm/manylinux/rocm-rel-6.1]' is ignored: it is either a non-existing path or lacks a specific scheme.\u001b[0m\u001b[33m\n", "\u001b[0mCollecting tensorflow-estimator<2.15,>=2.14.0 (from tensorflow-rocm)\n", " Downloading tensorflow_estimator-2.14.0-py2.py3-none-any.whl.metadata (1.3 kB)\n", "\u001b[33mWARNING: Location '[https://repo.radeon.com/rocm/manylinux/rocm-rel-6.1]' is ignored: it is either a non-existing path or lacks a specific scheme.\u001b[0m\u001b[33m\n", "\u001b[0mCollecting keras<2.15,>=2.14.0 (from tensorflow-rocm)\n", " Downloading keras-2.14.0-py3-none-any.whl.metadata (2.4 kB)\n", "\u001b[33mWARNING: Location '[https://repo.radeon.com/rocm/manylinux/rocm-rel-6.1]' is ignored: it is either a non-existing path or lacks a specific scheme.\u001b[0m\u001b[33m\n", "\u001b[0mCollecting wheel<1.0,>=0.23.0 (from astunparse>=1.6.0->tensorflow-rocm)\n", " Downloading wheel-0.43.0-py3-none-any.whl.metadata (2.2 kB)\n", "\u001b[33mWARNING: Location '[https://repo.radeon.com/rocm/manylinux/rocm-rel-6.1]' is ignored: it is either a non-existing path or lacks a specific scheme.\u001b[0m\u001b[33m\n", "\u001b[0mCollecting google-auth<3,>=1.6.3 (from tensorboard<2.15,>=2.14->tensorflow-rocm)\n", " Downloading google_auth-2.32.0-py2.py3-none-any.whl.metadata (4.7 kB)\n", "\u001b[33mWARNING: Location '[https://repo.radeon.com/rocm/manylinux/rocm-rel-6.1]' is ignored: it is either a non-existing path or lacks a specific scheme.\u001b[0m\u001b[33m\n", "\u001b[0mCollecting google-auth-oauthlib<1.1,>=0.5 (from tensorboard<2.15,>=2.14->tensorflow-rocm)\n", " Downloading google_auth_oauthlib-1.0.0-py2.py3-none-any.whl.metadata (2.7 kB)\n", "Requirement already satisfied: markdown>=2.6.8 in /home/heuzef/GIT/jan24_cds_mushrooms/.venv/lib/python3.11/site-packages (from tensorboard<2.15,>=2.14->tensorflow-rocm) (3.6)\n", "Requirement already satisfied: requests<3,>=2.21.0 in /home/heuzef/GIT/jan24_cds_mushrooms/.venv/lib/python3.11/site-packages (from tensorboard<2.15,>=2.14->tensorflow-rocm) (2.32.3)\n", "\u001b[33mWARNING: Location '[https://repo.radeon.com/rocm/manylinux/rocm-rel-6.1]' is ignored: it is either a non-existing path or lacks a specific scheme.\u001b[0m\u001b[33m\n", "\u001b[0mCollecting tensorboard-data-server<0.8.0,>=0.7.0 (from tensorboard<2.15,>=2.14->tensorflow-rocm)\n", " Downloading tensorboard_data_server-0.7.2-py3-none-manylinux_2_31_x86_64.whl.metadata (1.1 kB)\n", "Requirement already satisfied: werkzeug>=1.0.1 in /home/heuzef/GIT/jan24_cds_mushrooms/.venv/lib/python3.11/site-packages (from tensorboard<2.15,>=2.14->tensorflow-rocm) (3.0.3)\n", "Requirement already satisfied: cachetools<6.0,>=2.0.0 in /home/heuzef/GIT/jan24_cds_mushrooms/.venv/lib/python3.11/site-packages (from google-auth<3,>=1.6.3->tensorboard<2.15,>=2.14->tensorflow-rocm) (5.4.0)\n", "\u001b[33mWARNING: Location '[https://repo.radeon.com/rocm/manylinux/rocm-rel-6.1]' is ignored: it is either a non-existing path or lacks a specific scheme.\u001b[0m\u001b[33m\n", "\u001b[0mCollecting pyasn1-modules>=0.2.1 (from google-auth<3,>=1.6.3->tensorboard<2.15,>=2.14->tensorflow-rocm)\n", " Downloading pyasn1_modules-0.4.0-py3-none-any.whl.metadata (3.4 kB)\n", "\u001b[33mWARNING: Location '[https://repo.radeon.com/rocm/manylinux/rocm-rel-6.1]' is ignored: it is either a non-existing path or lacks a specific scheme.\u001b[0m\u001b[33m\n", "\u001b[0mCollecting rsa<5,>=3.1.4 (from google-auth<3,>=1.6.3->tensorboard<2.15,>=2.14->tensorflow-rocm)\n", " Downloading rsa-4.9-py3-none-any.whl.metadata (4.2 kB)\n", "\u001b[33mWARNING: Location '[https://repo.radeon.com/rocm/manylinux/rocm-rel-6.1]' is ignored: it is either a non-existing path or lacks a specific scheme.\u001b[0m\u001b[33m\n", "\u001b[0mCollecting requests-oauthlib>=0.7.0 (from google-auth-oauthlib<1.1,>=0.5->tensorboard<2.15,>=2.14->tensorflow-rocm)\n", " Downloading requests_oauthlib-2.0.0-py2.py3-none-any.whl.metadata (11 kB)\n", "Requirement already satisfied: charset-normalizer<4,>=2 in /home/heuzef/GIT/jan24_cds_mushrooms/.venv/lib/python3.11/site-packages (from requests<3,>=2.21.0->tensorboard<2.15,>=2.14->tensorflow-rocm) (3.3.2)\n", "Requirement already satisfied: idna<4,>=2.5 in /home/heuzef/GIT/jan24_cds_mushrooms/.venv/lib/python3.11/site-packages (from requests<3,>=2.21.0->tensorboard<2.15,>=2.14->tensorflow-rocm) (3.7)\n", "Requirement already satisfied: urllib3<3,>=1.21.1 in /home/heuzef/GIT/jan24_cds_mushrooms/.venv/lib/python3.11/site-packages (from requests<3,>=2.21.0->tensorboard<2.15,>=2.14->tensorflow-rocm) (2.2.2)\n", "Requirement already satisfied: certifi>=2017.4.17 in /home/heuzef/GIT/jan24_cds_mushrooms/.venv/lib/python3.11/site-packages (from requests<3,>=2.21.0->tensorboard<2.15,>=2.14->tensorflow-rocm) (2024.7.4)\n", "Requirement already satisfied: MarkupSafe>=2.1.1 in /home/heuzef/GIT/jan24_cds_mushrooms/.venv/lib/python3.11/site-packages (from werkzeug>=1.0.1->tensorboard<2.15,>=2.14->tensorflow-rocm) (2.1.5)\n", "\u001b[33mWARNING: Location '[https://repo.radeon.com/rocm/manylinux/rocm-rel-6.1]' is ignored: it is either a non-existing path or lacks a specific scheme.\u001b[0m\u001b[33m\n", "\u001b[0mCollecting pyasn1<0.7.0,>=0.4.6 (from pyasn1-modules>=0.2.1->google-auth<3,>=1.6.3->tensorboard<2.15,>=2.14->tensorflow-rocm)\n", " Downloading pyasn1-0.6.0-py2.py3-none-any.whl.metadata (8.3 kB)\n", "\u001b[33mWARNING: Location '[https://repo.radeon.com/rocm/manylinux/rocm-rel-6.1]' is ignored: it is either a non-existing path or lacks a specific scheme.\u001b[0m\u001b[33m\n", "\u001b[0mCollecting oauthlib>=3.0.0 (from requests-oauthlib>=0.7.0->google-auth-oauthlib<1.1,>=0.5->tensorboard<2.15,>=2.14->tensorflow-rocm)\n", " Downloading oauthlib-3.2.2-py3-none-any.whl.metadata (7.5 kB)\n", "Downloading tensorflow_rocm-2.14.0.600-cp311-cp311-manylinux2014_x86_64.whl (427.1 MB)\n", "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m427.1/427.1 MB\u001b[0m \u001b[31m54.5 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m00:01\u001b[0m00:01\u001b[0m\n", "\u001b[?25hDownloading ml_dtypes-0.2.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.0 MB)\n", "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m1.0/1.0 MB\u001b[0m \u001b[31m95.3 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", "\u001b[?25hDownloading absl_py-2.1.0-py3-none-any.whl (133 kB)\n", "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m133.7/133.7 kB\u001b[0m \u001b[31m145.5 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", "\u001b[?25hDownloading astunparse-1.6.3-py2.py3-none-any.whl (12 kB)\n", "Downloading flatbuffers-24.3.25-py2.py3-none-any.whl (26 kB)\n", "Downloading gast-0.6.0-py3-none-any.whl (21 kB)\n", "Downloading google_pasta-0.2.0-py3-none-any.whl (57 kB)\n", "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m57.5/57.5 kB\u001b[0m \u001b[31m101.1 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", "\u001b[?25hDownloading grpcio-1.65.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.7 MB)\n", "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m5.7/5.7 MB\u001b[0m \u001b[31m56.0 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0ma \u001b[36m0:00:01\u001b[0m\n", "\u001b[?25hDownloading h5py-3.11.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.4 MB)\n", "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m5.4/5.4 MB\u001b[0m \u001b[31m57.7 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0ma \u001b[36m0:00:01\u001b[0m\n", "\u001b[?25hDownloading keras-2.14.0-py3-none-any.whl (1.7 MB)\n", "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m1.7/1.7 MB\u001b[0m \u001b[31m59.0 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", "\u001b[?25hDownloading libclang-18.1.1-py2.py3-none-manylinux2010_x86_64.whl (24.5 MB)\n", "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m24.5/24.5 MB\u001b[0m \u001b[31m55.5 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m00:01\u001b[0m00:01\u001b[0m\n", "\u001b[?25hDownloading opt_einsum-3.3.0-py3-none-any.whl (65 kB)\n", "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m65.5/65.5 kB\u001b[0m \u001b[31m181.6 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", "\u001b[?25hDownloading tensorboard-2.14.1-py3-none-any.whl (5.5 MB)\n", "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m5.5/5.5 MB\u001b[0m \u001b[31m58.2 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0ma \u001b[36m0:00:01\u001b[0m\n", "\u001b[?25hDownloading tensorflow_estimator-2.14.0-py2.py3-none-any.whl (440 kB)\n", "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m440.7/440.7 kB\u001b[0m \u001b[31m135.2 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", "\u001b[?25hDownloading tensorflow_io_gcs_filesystem-0.37.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.1 MB)\n", "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m5.1/5.1 MB\u001b[0m \u001b[31m57.1 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0ma \u001b[36m0:00:01\u001b[0m\n", "\u001b[?25hDownloading termcolor-2.4.0-py3-none-any.whl (7.7 kB)\n", "Downloading wrapt-1.14.1-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (78 kB)\n", "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m78.4/78.4 kB\u001b[0m \u001b[31m130.0 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", "\u001b[?25hDownloading google_auth-2.32.0-py2.py3-none-any.whl (195 kB)\n", "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m195.5/195.5 kB\u001b[0m \u001b[31m142.3 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", "\u001b[?25hDownloading google_auth_oauthlib-1.0.0-py2.py3-none-any.whl (18 kB)\n", "Downloading tensorboard_data_server-0.7.2-py3-none-manylinux_2_31_x86_64.whl (6.6 MB)\n", "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m6.6/6.6 MB\u001b[0m \u001b[31m57.1 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0ma \u001b[36m0:00:01\u001b[0m\n", "\u001b[?25hDownloading wheel-0.43.0-py3-none-any.whl (65 kB)\n", "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m65.8/65.8 kB\u001b[0m \u001b[31m127.1 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", "\u001b[?25hDownloading pyasn1_modules-0.4.0-py3-none-any.whl (181 kB)\n", "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m181.2/181.2 kB\u001b[0m \u001b[31m151.1 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", "\u001b[?25hDownloading requests_oauthlib-2.0.0-py2.py3-none-any.whl (24 kB)\n", "Downloading rsa-4.9-py3-none-any.whl (34 kB)\n", "Downloading oauthlib-3.2.2-py3-none-any.whl (151 kB)\n", "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m151.7/151.7 kB\u001b[0m \u001b[31m147.5 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", "\u001b[?25hDownloading pyasn1-0.6.0-py2.py3-none-any.whl (85 kB)\n", "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m85.3/85.3 kB\u001b[0m \u001b[31m87.6 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", "\u001b[?25hInstalling collected packages: libclang, flatbuffers, wrapt, wheel, termcolor, tensorflow-io-gcs-filesystem, tensorflow-estimator, tensorboard-data-server, pyasn1, opt-einsum, oauthlib, ml-dtypes, keras, h5py, grpcio, google-pasta, gast, absl-py, rsa, requests-oauthlib, pyasn1-modules, astunparse, google-auth, google-auth-oauthlib, tensorboard, tensorflow-rocm\n", " Attempting uninstall: wrapt\n", " Found existing installation: wrapt 1.16.0\n", " Uninstalling wrapt-1.16.0:\n", " Successfully uninstalled wrapt-1.16.0\n", "Successfully installed absl-py-2.1.0 astunparse-1.6.3 flatbuffers-24.3.25 gast-0.6.0 google-auth-2.32.0 google-auth-oauthlib-1.0.0 google-pasta-0.2.0 grpcio-1.65.1 h5py-3.11.0 keras-2.14.0 libclang-18.1.1 ml-dtypes-0.2.0 oauthlib-3.2.2 opt-einsum-3.3.0 pyasn1-0.6.0 pyasn1-modules-0.4.0 requests-oauthlib-2.0.0 rsa-4.9 tensorboard-2.14.1 tensorboard-data-server-0.7.2 tensorflow-estimator-2.14.0 tensorflow-io-gcs-filesystem-0.37.1 tensorflow-rocm-2.14.0.600 termcolor-2.4.0 wheel-0.43.0 wrapt-1.14.1\n", "\u001b[33mWARNING: Location '[https://repo.radeon.com/rocm/manylinux/rocm-rel-6.1]' is ignored: it is either a non-existing path or lacks a specific scheme.\u001b[0m\u001b[33m\n", "\u001b[0mNote: you may need to restart the kernel to use updated packages.\n" ] }, { "ename": "ImportError", "evalue": "libhsa-runtime64.so.1: cannot open shared object file: No such file or directory", "output_type": "error", "traceback": [ "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m", "\u001b[0;31mImportError\u001b[0m Traceback (most recent call last)", "Cell \u001b[0;32mIn[5], line 5\u001b[0m\n\u001b[1;32m 2\u001b[0m get_ipython()\u001b[38;5;241m.\u001b[39mrun_line_magic(\u001b[38;5;124m'\u001b[39m\u001b[38;5;124mpip\u001b[39m\u001b[38;5;124m'\u001b[39m, \u001b[38;5;124m'\u001b[39m\u001b[38;5;124minstall --no-cache-dir tensorflow-rocm -f [https://repo.radeon.com/rocm/manylinux/rocm-rel-6.1] --upgrade\u001b[39m\u001b[38;5;124m'\u001b[39m)\n\u001b[1;32m 3\u001b[0m \u001b[38;5;66;03m# %env LD_LIBRARY_PATH=/opt/rocm/lib\u001b[39;00m\n\u001b[0;32m----> 5\u001b[0m \u001b[38;5;28;01mimport\u001b[39;00m \u001b[38;5;21;01mtensorflow\u001b[39;00m \u001b[38;5;28;01mas\u001b[39;00m \u001b[38;5;21;01mtf\u001b[39;00m\n\u001b[1;32m 7\u001b[0m \u001b[38;5;28mprint\u001b[39m(\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mtensorflow version\u001b[39m\u001b[38;5;124m\"\u001b[39m,tf\u001b[38;5;241m.\u001b[39m__version__)\n\u001b[1;32m 8\u001b[0m \u001b[38;5;28mprint\u001b[39m(\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mNum GPUs Available: \u001b[39m\u001b[38;5;124m\"\u001b[39m, \u001b[38;5;28mlen\u001b[39m(tf\u001b[38;5;241m.\u001b[39mconfig\u001b[38;5;241m.\u001b[39mlist_physical_devices(\u001b[38;5;124m'\u001b[39m\u001b[38;5;124mGPU\u001b[39m\u001b[38;5;124m'\u001b[39m)))\n", "File \u001b[0;32m~/GIT/jan24_cds_mushrooms/.venv/lib/python3.11/site-packages/tensorflow/__init__.py:38\u001b[0m\n\u001b[1;32m 35\u001b[0m \u001b[38;5;28;01mimport\u001b[39;00m \u001b[38;5;21;01msys\u001b[39;00m \u001b[38;5;28;01mas\u001b[39;00m \u001b[38;5;21;01m_sys\u001b[39;00m\n\u001b[1;32m 36\u001b[0m \u001b[38;5;28;01mimport\u001b[39;00m \u001b[38;5;21;01mtyping\u001b[39;00m \u001b[38;5;28;01mas\u001b[39;00m \u001b[38;5;21;01m_typing\u001b[39;00m\n\u001b[0;32m---> 38\u001b[0m \u001b[38;5;28;01mfrom\u001b[39;00m \u001b[38;5;21;01mtensorflow\u001b[39;00m\u001b[38;5;21;01m.\u001b[39;00m\u001b[38;5;21;01mpython\u001b[39;00m\u001b[38;5;21;01m.\u001b[39;00m\u001b[38;5;21;01mtools\u001b[39;00m \u001b[38;5;28;01mimport\u001b[39;00m module_util \u001b[38;5;28;01mas\u001b[39;00m _module_util\n\u001b[1;32m 39\u001b[0m \u001b[38;5;28;01mfrom\u001b[39;00m \u001b[38;5;21;01mtensorflow\u001b[39;00m\u001b[38;5;21;01m.\u001b[39;00m\u001b[38;5;21;01mpython\u001b[39;00m\u001b[38;5;21;01m.\u001b[39;00m\u001b[38;5;21;01mutil\u001b[39;00m\u001b[38;5;21;01m.\u001b[39;00m\u001b[38;5;21;01mlazy_loader\u001b[39;00m \u001b[38;5;28;01mimport\u001b[39;00m LazyLoader \u001b[38;5;28;01mas\u001b[39;00m _LazyLoader\n\u001b[1;32m 41\u001b[0m \u001b[38;5;66;03m# Make sure code inside the TensorFlow codebase can use tf2.enabled() at import.\u001b[39;00m\n", "File \u001b[0;32m~/GIT/jan24_cds_mushrooms/.venv/lib/python3.11/site-packages/tensorflow/python/__init__.py:36\u001b[0m\n\u001b[1;32m 27\u001b[0m \u001b[38;5;28;01mimport\u001b[39;00m \u001b[38;5;21;01mtraceback\u001b[39;00m\n\u001b[1;32m 29\u001b[0m \u001b[38;5;66;03m# We aim to keep this file minimal and ideally remove completely.\u001b[39;00m\n\u001b[1;32m 30\u001b[0m \u001b[38;5;66;03m# If you are adding a new file with @tf_export decorators,\u001b[39;00m\n\u001b[1;32m 31\u001b[0m \u001b[38;5;66;03m# import it in modules_with_exports.py instead.\u001b[39;00m\n\u001b[1;32m 32\u001b[0m \n\u001b[1;32m 33\u001b[0m \u001b[38;5;66;03m# go/tf-wildcard-import\u001b[39;00m\n\u001b[1;32m 34\u001b[0m \u001b[38;5;66;03m# pylint: disable=wildcard-import,g-bad-import-order,g-import-not-at-top\u001b[39;00m\n\u001b[0;32m---> 36\u001b[0m \u001b[38;5;28;01mfrom\u001b[39;00m \u001b[38;5;21;01mtensorflow\u001b[39;00m\u001b[38;5;21;01m.\u001b[39;00m\u001b[38;5;21;01mpython\u001b[39;00m \u001b[38;5;28;01mimport\u001b[39;00m pywrap_tensorflow \u001b[38;5;28;01mas\u001b[39;00m _pywrap_tensorflow\n\u001b[1;32m 38\u001b[0m \u001b[38;5;66;03m# pylint: enable=wildcard-import\u001b[39;00m\n\u001b[1;32m 39\u001b[0m \n\u001b[1;32m 40\u001b[0m \u001b[38;5;66;03m# from tensorflow.python import keras\u001b[39;00m\n\u001b[1;32m 41\u001b[0m \u001b[38;5;66;03m# from tensorflow.python.layers import layers\u001b[39;00m\n\u001b[1;32m 42\u001b[0m \u001b[38;5;28;01mfrom\u001b[39;00m \u001b[38;5;21;01mtensorflow\u001b[39;00m\u001b[38;5;21;01m.\u001b[39;00m\u001b[38;5;21;01mpython\u001b[39;00m\u001b[38;5;21;01m.\u001b[39;00m\u001b[38;5;21;01msaved_model\u001b[39;00m \u001b[38;5;28;01mimport\u001b[39;00m saved_model\n", "File \u001b[0;32m~/GIT/jan24_cds_mushrooms/.venv/lib/python3.11/site-packages/tensorflow/python/pywrap_tensorflow.py:26\u001b[0m\n\u001b[1;32m 21\u001b[0m \u001b[38;5;28;01mfrom\u001b[39;00m \u001b[38;5;21;01mtensorflow\u001b[39;00m\u001b[38;5;21;01m.\u001b[39;00m\u001b[38;5;21;01mpython\u001b[39;00m\u001b[38;5;21;01m.\u001b[39;00m\u001b[38;5;21;01mplatform\u001b[39;00m \u001b[38;5;28;01mimport\u001b[39;00m self_check\n\u001b[1;32m 23\u001b[0m \u001b[38;5;66;03m# TODO(mdan): Cleanup antipattern: import for side effects.\u001b[39;00m\n\u001b[1;32m 24\u001b[0m \n\u001b[1;32m 25\u001b[0m \u001b[38;5;66;03m# Perform pre-load sanity checks in order to produce a more actionable error.\u001b[39;00m\n\u001b[0;32m---> 26\u001b[0m \u001b[43mself_check\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mpreload_check\u001b[49m\u001b[43m(\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m 28\u001b[0m \u001b[38;5;66;03m# pylint: disable=wildcard-import,g-import-not-at-top,unused-import,line-too-long\u001b[39;00m\n\u001b[1;32m 30\u001b[0m \u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[1;32m 31\u001b[0m \u001b[38;5;66;03m# This import is expected to fail if there is an explicit shared object\u001b[39;00m\n\u001b[1;32m 32\u001b[0m \u001b[38;5;66;03m# dependency (with_framework_lib=true), since we do not need RTLD_GLOBAL.\u001b[39;00m\n", "File \u001b[0;32m~/GIT/jan24_cds_mushrooms/.venv/lib/python3.11/site-packages/tensorflow/python/platform/self_check.py:63\u001b[0m, in \u001b[0;36mpreload_check\u001b[0;34m()\u001b[0m\n\u001b[1;32m 50\u001b[0m \u001b[38;5;28;01mraise\u001b[39;00m \u001b[38;5;167;01mImportError\u001b[39;00m(\n\u001b[1;32m 51\u001b[0m \u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mCould not find the DLL(s) \u001b[39m\u001b[38;5;132;01m%r\u001b[39;00m\u001b[38;5;124m. TensorFlow requires that these DLLs \u001b[39m\u001b[38;5;124m\"\u001b[39m\n\u001b[1;32m 52\u001b[0m \u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mbe installed in a directory that is named in your \u001b[39m\u001b[38;5;132;01m%%\u001b[39;00m\u001b[38;5;124mPATH\u001b[39m\u001b[38;5;132;01m%%\u001b[39;00m\u001b[38;5;124m \u001b[39m\u001b[38;5;124m\"\u001b[39m\n\u001b[0;32m (...)\u001b[0m\n\u001b[1;32m 56\u001b[0m \u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mhttps://support.microsoft.com/help/2977003/the-latest-supported-visual-c-downloads\u001b[39m\u001b[38;5;124m\"\u001b[39m\n\u001b[1;32m 57\u001b[0m \u001b[38;5;241m%\u001b[39m \u001b[38;5;124m\"\u001b[39m\u001b[38;5;124m or \u001b[39m\u001b[38;5;124m\"\u001b[39m\u001b[38;5;241m.\u001b[39mjoin(missing))\n\u001b[1;32m 58\u001b[0m \u001b[38;5;28;01melse\u001b[39;00m:\n\u001b[1;32m 59\u001b[0m \u001b[38;5;66;03m# Load a library that performs CPU feature guard checking. Doing this here\u001b[39;00m\n\u001b[1;32m 60\u001b[0m \u001b[38;5;66;03m# as a preload check makes it more likely that we detect any CPU feature\u001b[39;00m\n\u001b[1;32m 61\u001b[0m \u001b[38;5;66;03m# incompatibilities before we trigger them (which would typically result in\u001b[39;00m\n\u001b[1;32m 62\u001b[0m \u001b[38;5;66;03m# SIGILL).\u001b[39;00m\n\u001b[0;32m---> 63\u001b[0m \u001b[38;5;28;01mfrom\u001b[39;00m \u001b[38;5;21;01mtensorflow\u001b[39;00m\u001b[38;5;21;01m.\u001b[39;00m\u001b[38;5;21;01mpython\u001b[39;00m\u001b[38;5;21;01m.\u001b[39;00m\u001b[38;5;21;01mplatform\u001b[39;00m \u001b[38;5;28;01mimport\u001b[39;00m _pywrap_cpu_feature_guard\n\u001b[1;32m 64\u001b[0m _pywrap_cpu_feature_guard\u001b[38;5;241m.\u001b[39mInfoAboutUnusedCPUFeatures()\n", "\u001b[0;31mImportError\u001b[0m: libhsa-runtime64.so.1: cannot open shared object file: No such file or directory" ] } ], "source": [ "%pip uninstall -y tensorflow tensorflow-rocm\n", "%pip install --no-cache-dir tensorflow-rocm -f [https://repo.radeon.com/rocm/manylinux/rocm-rel-6.1] --upgrade\n", "# %env LD_LIBRARY_PATH=/opt/rocm/lib\n", "\n", "import tensorflow as tf\n", "\n", "print(\"tensorflow version\",tf.__version__)\n", "print(\"Num GPUs Available: \", len(tf.config.list_physical_devices('GPU')))" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# Pytorch\n", "\n", "> https://pytorch.org" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Standard version with CPU" ] }, { "cell_type": "code", "execution_count": 11, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "\u001b[33mWARNING: Skipping torch as it is not installed.\u001b[0m\u001b[33m\n", "\u001b[0m\u001b[33mWARNING: Skipping torchvision as it is not installed.\u001b[0m\u001b[33m\n", "\u001b[0m\u001b[33mWARNING: Skipping torchaudio as it is not installed.\u001b[0m\u001b[33m\n", "\u001b[0mNote: you may need to restart the kernel to use updated packages.\n", "Looking in indexes: https://download.pytorch.org/whl/cpu\n", "Collecting torch\n", " Downloading https://download.pytorch.org/whl/cpu/torch-2.4.0%2Bcpu-cp311-cp311-linux_x86_64.whl (195.1 MB)\n", "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m195.1/195.1 MB\u001b[0m \u001b[31m109.7 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m00:01\u001b[0m00:01\u001b[0m\n", "\u001b[?25hCollecting torchvision\n", " Downloading https://download.pytorch.org/whl/cpu/torchvision-0.19.0%2Bcpu-cp311-cp311-linux_x86_64.whl (1.6 MB)\n", "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m1.6/1.6 MB\u001b[0m \u001b[31m126.1 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", "\u001b[?25hCollecting torchaudio\n", " Downloading https://download.pytorch.org/whl/cpu/torchaudio-2.4.0%2Bcpu-cp311-cp311-linux_x86_64.whl (1.7 MB)\n", "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m1.7/1.7 MB\u001b[0m \u001b[31m127.3 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", "\u001b[?25hCollecting filelock (from torch)\n", " Downloading https://download.pytorch.org/whl/filelock-3.13.1-py3-none-any.whl (11 kB)\n", "Requirement already satisfied: typing-extensions>=4.8.0 in /home/heuzef/GIT/jan24_cds_mushrooms/.venv/lib/python3.11/site-packages (from torch) (4.12.2)\n", "Collecting sympy (from torch)\n", " Downloading https://download.pytorch.org/whl/sympy-1.12-py3-none-any.whl (5.7 MB)\n", "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m5.7/5.7 MB\u001b[0m \u001b[31m86.4 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0ma \u001b[36m0:00:01\u001b[0m\n", "\u001b[?25hCollecting networkx (from torch)\n", " Downloading https://download.pytorch.org/whl/networkx-3.2.1-py3-none-any.whl (1.6 MB)\n", "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m1.6/1.6 MB\u001b[0m \u001b[31m89.7 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", "\u001b[?25hRequirement already satisfied: jinja2 in /home/heuzef/GIT/jan24_cds_mushrooms/.venv/lib/python3.11/site-packages (from torch) (3.1.4)\n", "Collecting fsspec (from torch)\n", " Downloading https://download.pytorch.org/whl/fsspec-2024.2.0-py3-none-any.whl (170 kB)\n", "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m170.9/170.9 kB\u001b[0m \u001b[31m143.6 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", "\u001b[?25hRequirement already satisfied: numpy in /home/heuzef/GIT/jan24_cds_mushrooms/.venv/lib/python3.11/site-packages (from torchvision) (1.26.4)\n", "Requirement already satisfied: pillow!=8.3.*,>=5.3.0 in /home/heuzef/GIT/jan24_cds_mushrooms/.venv/lib/python3.11/site-packages (from torchvision) (10.4.0)\n", "Requirement already satisfied: MarkupSafe>=2.0 in /home/heuzef/GIT/jan24_cds_mushrooms/.venv/lib/python3.11/site-packages (from jinja2->torch) (2.1.5)\n", "Collecting mpmath>=0.19 (from sympy->torch)\n", " Downloading https://download.pytorch.org/whl/mpmath-1.3.0-py3-none-any.whl (536 kB)\n", "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m536.2/536.2 kB\u001b[0m \u001b[31m167.2 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", "\u001b[?25hInstalling collected packages: mpmath, sympy, networkx, fsspec, filelock, torch, torchvision, torchaudio\n", "Successfully installed filelock-3.13.1 fsspec-2024.2.0 mpmath-1.3.0 networkx-3.2.1 sympy-1.12 torch-2.4.0+cpu torchaudio-2.4.0+cpu torchvision-0.19.0+cpu\n", "Note: you may need to restart the kernel to use updated packages.\n", "2.4.0+cpu\n" ] } ], "source": [ "%pip uninstall -y torch torchvision torchaudio\n", "%pip install --no-cache-dir torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu\n", "\n", "import torch\n", "\n", "print(torch.__version__)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## ROCM version with AMD GPU" ] }, { "cell_type": "code", "execution_count": 28, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Found existing installation: torch 2.4.0+rocm6.0\n", "Uninstalling torch-2.4.0+rocm6.0:\n", " Successfully uninstalled torch-2.4.0+rocm6.0\n", "Found existing installation: torchvision 0.19.0+rocm6.0\n", "Uninstalling torchvision-0.19.0+rocm6.0:\n", " Successfully uninstalled torchvision-0.19.0+rocm6.0\n", "Found existing installation: torchaudio 2.4.0+rocm6.0\n", "Uninstalling torchaudio-2.4.0+rocm6.0:\n", " Successfully uninstalled torchaudio-2.4.0+rocm6.0\n", "Note: you may need to restart the kernel to use updated packages.\n", "Looking in indexes: https://download.pytorch.org/whl/rocm6.1\n", "Collecting torch\n", " Downloading https://download.pytorch.org/whl/rocm6.1/torch-2.4.0%2Brocm6.1-cp311-cp311-linux_x86_64.whl (2662.2 MB)\n", "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m2.7/2.7 GB\u001b[0m \u001b[31m16.1 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m00:01\u001b[0m00:03\u001b[0m\n", "\u001b[?25hCollecting torchvision\n", " Downloading https://download.pytorch.org/whl/rocm6.1/torchvision-0.19.0%2Brocm6.1-cp311-cp311-linux_x86_64.whl (72.6 MB)\n", "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m72.6/72.6 MB\u001b[0m \u001b[31m31.3 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m00:01\u001b[0m00:01\u001b[0m\n", "\u001b[?25hCollecting torchaudio\n", " Downloading https://download.pytorch.org/whl/rocm6.1/torchaudio-2.4.0%2Brocm6.1-cp311-cp311-linux_x86_64.whl (1.7 MB)\n", "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m1.7/1.7 MB\u001b[0m \u001b[31m4.0 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0ma \u001b[36m0:00:01\u001b[0m0m\n", "\u001b[?25hRequirement already satisfied: filelock in /home/heuzef/GIT/jan24_cds_mushrooms/.venv/lib/python3.11/site-packages (from torch) (3.13.1)\n", "Requirement already satisfied: typing-extensions>=4.8.0 in /home/heuzef/GIT/jan24_cds_mushrooms/.venv/lib/python3.11/site-packages (from torch) (4.12.2)\n", "Requirement already satisfied: sympy in /home/heuzef/GIT/jan24_cds_mushrooms/.venv/lib/python3.11/site-packages (from torch) (1.12)\n", "Requirement already satisfied: networkx in /home/heuzef/GIT/jan24_cds_mushrooms/.venv/lib/python3.11/site-packages (from torch) (3.2.1)\n", "Requirement already satisfied: jinja2 in /home/heuzef/GIT/jan24_cds_mushrooms/.venv/lib/python3.11/site-packages (from torch) (3.1.4)\n", "Requirement already satisfied: fsspec in /home/heuzef/GIT/jan24_cds_mushrooms/.venv/lib/python3.11/site-packages (from torch) (2024.2.0)\n", "Requirement already satisfied: pytorch-triton-rocm==3.0.0 in /home/heuzef/GIT/jan24_cds_mushrooms/.venv/lib/python3.11/site-packages (from torch) (3.0.0)\n", "Requirement already satisfied: numpy in /home/heuzef/GIT/jan24_cds_mushrooms/.venv/lib/python3.11/site-packages (from torchvision) (1.26.4)\n", "Requirement already satisfied: pillow!=8.3.*,>=5.3.0 in /home/heuzef/GIT/jan24_cds_mushrooms/.venv/lib/python3.11/site-packages (from torchvision) (10.4.0)\n", "Requirement already satisfied: MarkupSafe>=2.0 in /home/heuzef/GIT/jan24_cds_mushrooms/.venv/lib/python3.11/site-packages (from jinja2->torch) (2.1.5)\n", "Requirement already satisfied: mpmath>=0.19 in /home/heuzef/GIT/jan24_cds_mushrooms/.venv/lib/python3.11/site-packages (from sympy->torch) (1.3.0)\n", "Installing collected packages: torch, torchvision, torchaudio\n", "Successfully installed torch-2.4.0+rocm6.1 torchaudio-2.4.0+rocm6.1 torchvision-0.19.0+rocm6.1\n", "Note: you may need to restart the kernel to use updated packages.\n", "Looking in indexes: https://test.pypi.org/simple\n", "Requirement already satisfied: hip-python in /home/heuzef/GIT/jan24_cds_mushrooms/.venv/lib/python3.11/site-packages (6.1.2.495.17)\n", "Note: you may need to restart the kernel to use updated packages.\n", "2.4.0+cpu\n" ] } ], "source": [ "%pip uninstall -y torch torchvision torchaudio\n", "%pip install --no-cache-dir torch torchvision torchaudio --index-url https://download.pytorch.org/whl/rocm6.1\n", "%pip install -i https://test.pypi.org/simple hip-python\n", "\n", "import torch\n", "from hip import hip\n", "from hip import hiprtc\n", "\n", "print(torch.__version__)" ] }, { "cell_type": "code", "execution_count": 32, "metadata": {}, "outputs": [ { "ename": "RuntimeError", "evalue": "failed to dlopen 'b'libamdhip64.so'': b'libamdhip64.so: cannot open shared object file: No such file or directory'", "output_type": "error", "traceback": [ "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m", "\u001b[0;31mRuntimeError\u001b[0m Traceback (most recent call last)", "Cell \u001b[0;32mIn[32], line 13\u001b[0m\n\u001b[1;32m 10\u001b[0m \u001b[38;5;28;01mreturn\u001b[39;00m result\n\u001b[1;32m 12\u001b[0m props \u001b[38;5;241m=\u001b[39m hip\u001b[38;5;241m.\u001b[39mhipDeviceProp_t()\n\u001b[0;32m---> 13\u001b[0m hip_check(\u001b[43mhip\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mhipGetDeviceProperties\u001b[49m\u001b[43m(\u001b[49m\u001b[43mprops\u001b[49m\u001b[43m,\u001b[49m\u001b[38;5;241;43m0\u001b[39;49m\u001b[43m)\u001b[49m)\n\u001b[1;32m 15\u001b[0m \u001b[38;5;28;01mfor\u001b[39;00m attrib \u001b[38;5;129;01min\u001b[39;00m \u001b[38;5;28msorted\u001b[39m(props\u001b[38;5;241m.\u001b[39mPROPERTIES()):\n\u001b[1;32m 16\u001b[0m \u001b[38;5;28mprint\u001b[39m(\u001b[38;5;124mf\u001b[39m\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mprops.\u001b[39m\u001b[38;5;132;01m{\u001b[39;00mattrib\u001b[38;5;132;01m}\u001b[39;00m\u001b[38;5;124m=\u001b[39m\u001b[38;5;132;01m{\u001b[39;00m\u001b[38;5;28mgetattr\u001b[39m(props,attrib)\u001b[38;5;132;01m}\u001b[39;00m\u001b[38;5;124m\"\u001b[39m)\n", "File \u001b[0;32m~/GIT/jan24_cds_mushrooms/.venv/lib/python3.11/site-packages/hip/hip.pyx:44218\u001b[0m, in \u001b[0;36mhip.hip.hipGetDeviceProperties\u001b[0;34m()\u001b[0m\n", "File \u001b[0;32m~/GIT/jan24_cds_mushrooms/.venv/lib/python3.11/site-packages/hip/chip.pyx:470\u001b[0m, in \u001b[0;36mhip.chip.hipGetDeviceProperties\u001b[0;34m()\u001b[0m\n", "File \u001b[0;32m~/GIT/jan24_cds_mushrooms/.venv/lib/python3.11/site-packages/hip/chip.pyx:44\u001b[0m, in \u001b[0;36mhip.chip.__init_symbol\u001b[0;34m()\u001b[0m\n", "File \u001b[0;32m~/GIT/jan24_cds_mushrooms/.venv/lib/python3.11/site-packages/hip/chip.pyx:37\u001b[0m, in \u001b[0;36mhip.chip.__init\u001b[0;34m()\u001b[0m\n", "File \u001b[0;32m~/GIT/jan24_cds_mushrooms/.venv/lib/python3.11/site-packages/hip/_util/posixloader.pyx:41\u001b[0m, in \u001b[0;36mhip._util.posixloader.open_library\u001b[0;34m()\u001b[0m\n", "\u001b[0;31mRuntimeError\u001b[0m: failed to dlopen 'b'libamdhip64.so'': b'libamdhip64.so: cannot open shared object file: No such file or directory'" ] } ], "source": [ "torch.device(\"hip\")\n", "\n", "def hip_check(call_result):\n", " err = call_result[0]\n", " result = call_result[1:]\n", " if len(result) == 1:\n", " result = result[0]\n", " if isinstance(err, hip.hipError_t) and err != hip.hipError_t.hipSuccess:\n", " raise RuntimeError(str(err))\n", " return result\n", "\n", "props = hip.hipDeviceProp_t()\n", "hip_check(hip.hipGetDeviceProperties(props,0))\n", "\n", "for attrib in sorted(props.PROPERTIES()):\n", " print(f\"props.{attrib}={getattr(props,attrib)}\")\n", "print(\"ok\")\n", "\n", "# Create a tensor on the HIP device\n", "x = torch.randn(2, 3, device=device)\n", "print(x)" ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.11.9" } }, "nbformat": 4, "nbformat_minor": 2 }