User Installation (for Non-Developers) ====================================== This guide provides step-by-step instructions for installing the ``itwinai`` library for users. Requirements: Linux or macOS environment. Windows is not supported. .. include:: ./creating_venv.rst Installing the ``itwinai`` Library ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ You can choose if you want to install ``itwinai`` with support for either PyTorch or TensorFlow by using extras: .. tab-set:: .. tab-item:: PyTorch To install ``itwinai`` with PyTorch without GPU acceleration, you can use the following command: .. code-block:: bash pip install "itwinai[torch]" To enable GPU acceleration, you can use the following command: .. code-block:: bash pip install ".[torch]" \ --extra-index-url https://download.pytorch.org/whl/cu121 .. tab-item:: TensorFlow To install ``itwinai`` with TensorFlow without GPU acceleration, you can use the following command: .. code-block:: bash pip install "itwinai[tf]" To enable GPU acceleration, you can use the following command: .. code-block:: bash pip install ".[tf-cuda]" .. note:: If you want to use the Prov4ML logger, you need to install it explicitly since it is only available on GitHub: For systems with Nvidia GPUs: .. code-block:: bash pip install "prov4ml[nvidia]@git+https://github.com/matbun/ProvML@new-main" For macOS: .. code-block:: bash pip install "prov4ml[apple]@git+https://github.com/matbun/ProvML@new-main" .. The explanation for installing horovod and DS is the same for developers and users .. include:: ./horovod_deepspeed_installation.rst