Setup
- Clone the repo:
git clone https://github.com/microsoft/unilm.git
cd unilm/kosmos-2
- Create conda env and install packages:
conda create -n kosmos-2 python=3.9
conda activate kosmos-2
pip3 install -r requirements.txt
- Install NVIDIA/apex
git clone https://github.com/NVIDIA/apex
cd apex
pip install -v --disable-pip-version-check --no-cache-dir --no-build-isolation --config-settings "--build-option=--cpp_ext" --config-settings "--build-option=--cuda_ext" ./
pip install -v --disable-pip-version-check --no-cache-dir --no-build-isolation --global-option="--cpp_ext" --global-option="--cuda_ext" ./
- Install the packages:
bash vl_setup_xl.sh