Views
No views yet




pip install -r requirements.txtpip install torch==1.13.1+cu117 -f https://download.pytorch.org/whl/torch/| Base Language Model | Maximum Sequence Length | Huggingface Delta Weights Address |
|---|---|---|
| Vicuna-7B (version 0) | 512 | openllmplayground/pandagpt_7b_max_len_512 |
| Vicuna-7B (version 0) | 1024 | openllmplayground/pandagpt_7b_max_len_1024 |
| Vicuna-13B (version 0) | 256 | openllmplayground/pandagpt_13b_max_len_256 |
| Vicuna-13B (version 0) | 400 | openllmplayground/pandagpt_13b_max_len_400 |
openllmplayground/pandagpt_7b_max_len_1024 as our default model due to the limitation of computation resource. Better results are expected if switching to openllmplayground/pandagpt_13b_max_len_400.1cd ./code/
2CUDA_VISIBLE_DEVICES=0 python web_demo.pysample_rate problem, please git install pytorchvideo from the source as1git clone https://github.com/facebookresearch/pytorchvideo
2cd pytorchvideo
3pip install --editable ./| Training Task | Dataset Address |
|---|---|
| Visual Instruction-Following | openllmplayground/pandagpt_visual_instruction_dataset |
**** The directory should look like:
.
└── ./data/
├── pandagpt4_visual_instruction_data.json
└── /images/
├── 000000426538.jpg
├── 000000306060.jpg
└── ...
| Base Language Model | Training Task | Epoch Number | Batch Size | Learning Rate | Maximum Length |
|---|---|---|---|---|---|
| 7B | Visual Instruction | 2 | 64 | 5e-4 | 1024 |
| 13B | Visual Instruction | 2 | 64 | 5e-4 | 400 |
1cd ./code/scripts/
2chmod +x train.sh
3cd ..
4./scripts/train.sh--data_path: The data path for the json file pandagpt4_visual_instruction_data.json.--image_root_path: The root path for the downloaded images.--imagebind_ckpt_path: The path where saves the ImageBind checkpoint imagebind_huge.pth.--vicuna_ckpt_path: The directory that saves the pre-trained Vicuna checkpoints.--max_tgt_len: The maximum sequence length of training instances.--save_path: The directory which saves the trained delta weights. This directory will be automatically created.epochs argument at ./code/config/openllama_peft.yaml file. The train_micro_batch_size_per_gpu and gradient_accumulation_steps arguments in ./code/dsconfig/openllama_peft_stage_1.json should be set as 2 and 4 for 7B model, and set as 1 and 8 for 13B model.@article{su2023pandagpt,
title={PandaGPT: One Model To Instruction-Follow Them All},
author={Su, Yixuan and Lan, Tian and Li, Huayang and Xu, Jialu and Wang, Yan and Cai, Deng},
journal={arXiv preprint arXiv:2305.16355},
year={2023}
}