amazon-science / mm-cot

Official implementation for "Multimodal Chain-of-Thought Reasoning in Language Models" (stay tuned and more will be updated)
https://arxiv.org/abs/2302.00923
Apache License 2.0
3.77k stars 309 forks source link

Can not train on GPU. #71

Closed Aierhaimian closed 8 months ago

Aierhaimian commented 8 months ago

I tried running the training command you provided. On my machine, it only trained on the CPU and not on the GPU. CUDA_VISIBLE_DEVICES=0,1,2,3 python main.py \ --data_root data/ScienceQA/data \ --caption_file data/instruct_captions.json \ --model declare-lab/flan-alpaca-large \ --user_msg rationale --img_type vit \ --bs 2 --eval_bs 4 --epoch 50 --lr 5e-5 --output_len 512 \ --use_caption --use_generate --prompt_format QCM-E \ --output_dir experiments