Views
No views yet

1model = OtterForConditionalGeneration.from_pretrained("luodian/OTTER-LLaMA7B-Init", device_map="sequential")
2model.text_tokenizer.padding_side = "left"
3tokenizer = model.text_tokenizer
4image_processor = transformers.CLIPImageProcessor()
5model.eval()1python -m accelerate.commands.launch --config_file=./pipeline/accelerate_configs/accelerate_config_fsdp.yaml \
2pipeline/train/instruction_following.py \
3--pretrained_model_name_or_path=luodian/OTTER-LLaMA7B-Init \
4--mimicit_path=/data/azure_storage/otter/mimicit/xx/xx_instructions.json \
5--images_path=/data/azure_storage/otter/mimicit/xx/xx.json \
6--batch_size=4 --num_epochs=1 --report_to_wandb \
7--wandb_entity=ntu-slab \
8--external_save_dir=/data/bli/checkpoints \
9--save_hf_model \
10--run_name=OTTER-MPT1B \
11--wandb_project=OTTER-MPT1B \
12--workers=4 \
13--lr_scheduler=cosine \
14--learning_rate=1e-5 \
15--warmup_steps_ratio=0.01"max_num_frames": 128config.json inside the folder.