Downloads · 30 days
37
1% of all-time downloads
luodian/OTTER-MPT7B-Init
OTTER-MPT7B-Init is a text generation model from luodian. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as mit.
<p align="center" width="100%" <img src="https://i.postimg.cc/MKmyP9wH/new-banner.png" width="80%" height="80%" </p
Downloads · 30 days
37
1% of all-time downloads
All-time downloads
6.8K
Public
Repo size
65.1 GB
Likes
3
Public
Click a slice to open those files.
.bin32.5 GB · 100%
From the Hugging Face model README
This weight is for initilizing training for Otter. It's directly converted from Openflamingo.
You can load and try this model using
model = OtterForConditionalGeneration.from_pretrained("luodian/OTTER-MPT7B-Init", device_map="sequential")
model.text_tokenizer.padding_side = "left"
tokenizer = model.text_tokenizer
image_processor = transformers.CLIPImageProcessor()
model.eval()
You can also start training Otter via the commands
python -m accelerate.commands.launch --config_file=./pipeline/accelerate_configs/accelerate_config_fsdp.yaml \
pipeline/train/instruction_following.py \
--pretrained_model_name_or_path=luodian/OTTER-MPT7B-Init \
--mimicit_path=/data/azure_storage/otter/mimicit/xx/xx_instructions.json \
--images_path=/data/azure_storage/otter/mimicit/xx/xx.json \
--batch_size=4 --num_epochs=1 --report_to_wandb \
--wandb_entity=ntu-slab \
--external_save_dir=/data/bli/checkpoints \
--save_hf_model \
--run_name=OTTER-MPT1B \
--wandb_project=OTTER-MPT1B \
--workers=4 \
--lr_scheduler=cosine \
--learning_rate=1e-5 \
--warmup_steps_ratio=0.01
If you wish to init a video instruction tuning, you should add
"max_num_frames": 128
to config.json inside the folder.