Skip to content

Latest commit

 

History

History
55 lines (38 loc) · 1.2 KB

File metadata and controls

55 lines (38 loc) · 1.2 KB

Install

Get this error while doing pip install -e .: ../meson.build:1:0: ERROR: Compiler /usr/bin/g++-10 cannot compile programs.

Try w/ Python 3.12:

conda create -n bcmllm python=3.12
conda activate bcmllm
pip install torch torchvision --index-url https://download.pytorch.org/whl/cu121
pip install -e .

pip install git+https://github.com/openai/CLIP.git

Prep

Edit config/TransformNeck.yaml:

  • dataset_path (imagenet dataset)

Download imagenet and the devkit (https://github.com/0429charlie/ImageNet_metadata/blob/master/ILSVRC2012_devkit_t12.tar.gz):

wget -P /home/ying/datasets/ILSVRC https://github.com/0429charlie/ImageNet_metadata/raw/refs/heads/master/ILSVRC2012_devkit_t12.tar.gz

run

cd experiments/mllm/BridgingCompressionMLLM

conda activate bcmllm

python examples/train.py -c config/TransformNeck.yaml