-
We'll use
conda
to install dependencies and set up the environment. We recommend using the Python 3.9 Miniconda installer. -
After installing
conda
, installmamba
to the base environment. Please refer tomamba Installation
for details.mamba
is a faster, drop-in replacement forconda
. -
Next, create a new environment named
m2hub
and install dependencies. Instructions are for PyTorch 1.13.1, CUDA 11.6 specifically.mamba env create -f environment.yml
-
Activate the conda environment with
conda activate m2hub
. -
Install the
m2models
package withpip install -e .
. We recommend usingmamba
to install dependencies before installm2models
as detailed above for easier installation.