git clone --recursive https://github.com/function2-llx/MMMM.git
cd MMMM
mamba env create -f environment.yaml
BUILD_MONAI=1 pip install --no-build-isolation -e third-party/LuoLib/third-party/MONAI
mamba activate mmmm
echo \
"export PYTHONPATH=$PWD:$PWD/third-party/LuoLib
export BUILD_MONAI=1" \
>> $CONDA_PREFIX/etc/conda/activate.d/env_vars.sh
, and build xformers from source / install pre-built wheel.
Manually modify pad_nd
according to: Project-MONAI/MONAI#7842