├── .gitignore ├── LICENSE ├── README.md ├── llava.md ├── llava_dpo.yaml ├── llava_dpo ├── __init__.py ├── constants.py ├── conversation.py ├── ds_configs │ ├── deepspeed_config.py │ ├── ds_eval_config_template.json │ └── ds_train_config_template.json ├── eval │ ├── eval_gpt_review.py │ ├── eval_gpt_review_bench.py │ ├── eval_gpt_review_visual.py │ ├── eval_pope.py │ ├── eval_science_qa.py │ ├── eval_science_qa_gpt4.py │ ├── eval_science_qa_gpt4_requery.py │ ├── eval_textvqa.py │ ├── faithscore_eval.py │ ├── generate_webpage_data_from_table.py │ ├── m4c_evaluator.py │ ├── model_qa.py │ ├── model_vqa.py │ ├── model_vqa_loader.py │ ├── model_vqa_mmbench.py │ ├── model_vqa_qbench.py │ ├── model_vqa_science.py │ ├── qa_baseline_gpt35.py │ ├── run_llava.py │ ├── summarize_gpt_review.py │ ├── table │ │ ├── answer │ │ │ ├── answer_alpaca-13b.jsonl │ │ │ ├── answer_bard.jsonl │ │ │ ├── answer_gpt35.jsonl │ │ │ ├── answer_llama-13b.jsonl │ │ │ └── answer_vicuna-13b.jsonl │ │ ├── caps_boxes_coco2014_val_80.jsonl │ │ ├── model.jsonl │ │ ├── prompt.jsonl │ │ ├── question.jsonl │ │ ├── results │ │ │ ├── test_sqa_llava_13b_v0.json │ │ │ └── test_sqa_llava_lcs_558k_sqa_12e_vicuna_v1_3_13b.json │ │ ├── review │ │ │ ├── review_alpaca-13b_vicuna-13b.jsonl │ │ │ ├── review_bard_vicuna-13b.jsonl │ │ │ ├── review_gpt35_vicuna-13b.jsonl │ │ │ └── review_llama-13b_vicuna-13b.jsonl │ │ ├── reviewer.jsonl │ │ └── rule.json │ └── webpage │ │ ├── figures │ │ ├── alpaca.png │ │ ├── bard.jpg │ │ ├── chatgpt.svg │ │ ├── llama.jpg │ │ ├── swords_FILL0_wght300_GRAD0_opsz48.svg │ │ └── vicuna.jpeg │ │ ├── index.html │ │ ├── script.js │ │ └── styles.css ├── logger.py ├── mm_utils.py ├── model │ ├── __init__.py │ ├── apply_delta.py │ ├── builder.py │ ├── consolidate.py │ ├── language_model │ │ ├── llava_llama.py │ │ ├── llava_mpt.py │ │ └── mpt │ │ │ ├── adapt_tokenizer.py │ │ │ ├── attention.py │ │ │ ├── blocks.py │ │ │ ├── configuration_mpt.py │ │ │ ├── custom_embedding.py │ │ │ ├── flash_attn_triton.py │ │ │ ├── hf_prefixlm_converter.py │ │ │ ├── meta_init_context.py │ │ │ ├── modeling_mpt.py │ │ │ ├── norm.py │ │ │ └── param_init_fns.py │ ├── llava_arch.py │ ├── make_delta.py │ ├── multimodal_encoder │ │ ├── builder.py │ │ └── clip_encoder.py │ ├── multimodal_projector │ │ └── builder.py │ └── utils.py ├── serve │ ├── __init__.py │ ├── cli.py │ ├── controller.py │ ├── examples │ │ ├── extreme_ironing.jpg │ │ └── waterview.jpg │ ├── gradio_web_server.py │ ├── model_worker.py │ ├── register_worker.py │ └── test_message.py ├── train │ ├── dpo_train.py │ ├── llama_flash_attn_monkey_patch.py │ ├── llama_xformers_attn_monkey_patch.py │ ├── llava_trainer.py │ ├── train.py │ ├── train_mem.py │ └── train_xformers.py └── utils.py ├── pipeline.png ├── playground └── data │ ├── amber_query.jsonl │ ├── coco2014_val_gpt4_qa_30x3.jsonl │ ├── coco2014_val_qa_eval │ ├── qa90_gpt4_answer.jsonl │ └── qa90_questions.jsonl │ ├── pope.jsonl │ ├── pope │ ├── coco_pope_adversarial.json │ ├── coco_pope_all.json │ ├── coco_pope_popular.json │ └── coco_pope_random.json │ └── prompts │ ├── complex_reasoning │ ├── 000_caps.txt │ ├── 000_conv.txt │ ├── 001_caps.txt │ ├── 001_conv.txt │ ├── 002_caps.txt │ ├── 002_conv.txt │ └── system_message.txt │ ├── conversation │ ├── 000_caps.txt │ ├── 000_conv.txt │ ├── 001_caps.txt │ ├── 001_conv.txt │ └── system_message.txt │ └── detail_description │ ├── 000_caps.txt │ ├── 000_conv.txt │ ├── 001_caps.txt │ ├── 001_conv.txt │ ├── 002_caps.txt │ ├── 002_conv.txt │ └── system_message.txt ├── predict.py ├── pyproject.toml └── scripts ├── convert_gqa_for_eval.py ├── convert_mmbench_for_submission.py ├── convert_mmvet_for_eval.py ├── convert_seed_for_submission.py ├── convert_sqa_to_llava.py ├── convert_sqa_to_llava_base_prompt.py ├── convert_vizwiz_for_submission.py ├── convert_vqav2_for_submission.py ├── extract_mm_projector.py ├── finetune.sh ├── finetune_full_schedule.sh ├── finetune_lora.sh ├── finetune_qlora.sh ├── finetune_sqa.sh ├── merge_lora_weights.py ├── pretrain.sh ├── pretrain_xformers.sh ├── sqa_eval_batch.sh ├── sqa_eval_gather.sh ├── v1_5 ├── dpo.sh └── vdpo.sh ├── zero2.json ├── zero3.json ├── zero3_offload.json └── zero3_offload_all.json /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/README.md -------------------------------------------------------------------------------- /llava.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/llava.md -------------------------------------------------------------------------------- /llava_dpo.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/llava_dpo.yaml -------------------------------------------------------------------------------- /llava_dpo/__init__.py: -------------------------------------------------------------------------------- 1 | from .model import LlavaLlamaForCausalLM 2 | -------------------------------------------------------------------------------- /llava_dpo/constants.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/llava_dpo/constants.py -------------------------------------------------------------------------------- /llava_dpo/conversation.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/llava_dpo/conversation.py -------------------------------------------------------------------------------- /llava_dpo/ds_configs/deepspeed_config.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/llava_dpo/ds_configs/deepspeed_config.py -------------------------------------------------------------------------------- /llava_dpo/ds_configs/ds_eval_config_template.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/llava_dpo/ds_configs/ds_eval_config_template.json -------------------------------------------------------------------------------- /llava_dpo/ds_configs/ds_train_config_template.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/llava_dpo/ds_configs/ds_train_config_template.json -------------------------------------------------------------------------------- /llava_dpo/eval/eval_gpt_review.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/llava_dpo/eval/eval_gpt_review.py -------------------------------------------------------------------------------- /llava_dpo/eval/eval_gpt_review_bench.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/llava_dpo/eval/eval_gpt_review_bench.py -------------------------------------------------------------------------------- /llava_dpo/eval/eval_gpt_review_visual.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/llava_dpo/eval/eval_gpt_review_visual.py -------------------------------------------------------------------------------- /llava_dpo/eval/eval_pope.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/llava_dpo/eval/eval_pope.py -------------------------------------------------------------------------------- /llava_dpo/eval/eval_science_qa.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/llava_dpo/eval/eval_science_qa.py -------------------------------------------------------------------------------- /llava_dpo/eval/eval_science_qa_gpt4.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/llava_dpo/eval/eval_science_qa_gpt4.py -------------------------------------------------------------------------------- /llava_dpo/eval/eval_science_qa_gpt4_requery.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/llava_dpo/eval/eval_science_qa_gpt4_requery.py -------------------------------------------------------------------------------- /llava_dpo/eval/eval_textvqa.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/llava_dpo/eval/eval_textvqa.py -------------------------------------------------------------------------------- /llava_dpo/eval/faithscore_eval.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/llava_dpo/eval/faithscore_eval.py -------------------------------------------------------------------------------- /llava_dpo/eval/generate_webpage_data_from_table.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/llava_dpo/eval/generate_webpage_data_from_table.py -------------------------------------------------------------------------------- /llava_dpo/eval/m4c_evaluator.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/llava_dpo/eval/m4c_evaluator.py -------------------------------------------------------------------------------- /llava_dpo/eval/model_qa.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/llava_dpo/eval/model_qa.py -------------------------------------------------------------------------------- /llava_dpo/eval/model_vqa.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/llava_dpo/eval/model_vqa.py -------------------------------------------------------------------------------- /llava_dpo/eval/model_vqa_loader.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/llava_dpo/eval/model_vqa_loader.py -------------------------------------------------------------------------------- /llava_dpo/eval/model_vqa_mmbench.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/llava_dpo/eval/model_vqa_mmbench.py -------------------------------------------------------------------------------- /llava_dpo/eval/model_vqa_qbench.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/llava_dpo/eval/model_vqa_qbench.py -------------------------------------------------------------------------------- /llava_dpo/eval/model_vqa_science.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/llava_dpo/eval/model_vqa_science.py -------------------------------------------------------------------------------- /llava_dpo/eval/qa_baseline_gpt35.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/llava_dpo/eval/qa_baseline_gpt35.py -------------------------------------------------------------------------------- /llava_dpo/eval/run_llava.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/llava_dpo/eval/run_llava.py -------------------------------------------------------------------------------- /llava_dpo/eval/summarize_gpt_review.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/llava_dpo/eval/summarize_gpt_review.py -------------------------------------------------------------------------------- /llava_dpo/eval/table/answer/answer_alpaca-13b.jsonl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/llava_dpo/eval/table/answer/answer_alpaca-13b.jsonl -------------------------------------------------------------------------------- /llava_dpo/eval/table/answer/answer_bard.jsonl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/llava_dpo/eval/table/answer/answer_bard.jsonl -------------------------------------------------------------------------------- /llava_dpo/eval/table/answer/answer_gpt35.jsonl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/llava_dpo/eval/table/answer/answer_gpt35.jsonl -------------------------------------------------------------------------------- /llava_dpo/eval/table/answer/answer_llama-13b.jsonl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/llava_dpo/eval/table/answer/answer_llama-13b.jsonl -------------------------------------------------------------------------------- /llava_dpo/eval/table/answer/answer_vicuna-13b.jsonl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/llava_dpo/eval/table/answer/answer_vicuna-13b.jsonl -------------------------------------------------------------------------------- /llava_dpo/eval/table/caps_boxes_coco2014_val_80.jsonl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/llava_dpo/eval/table/caps_boxes_coco2014_val_80.jsonl -------------------------------------------------------------------------------- /llava_dpo/eval/table/model.jsonl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/llava_dpo/eval/table/model.jsonl -------------------------------------------------------------------------------- /llava_dpo/eval/table/prompt.jsonl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/llava_dpo/eval/table/prompt.jsonl -------------------------------------------------------------------------------- /llava_dpo/eval/table/question.jsonl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/llava_dpo/eval/table/question.jsonl -------------------------------------------------------------------------------- /llava_dpo/eval/table/results/test_sqa_llava_13b_v0.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/llava_dpo/eval/table/results/test_sqa_llava_13b_v0.json -------------------------------------------------------------------------------- /llava_dpo/eval/table/results/test_sqa_llava_lcs_558k_sqa_12e_vicuna_v1_3_13b.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/llava_dpo/eval/table/results/test_sqa_llava_lcs_558k_sqa_12e_vicuna_v1_3_13b.json -------------------------------------------------------------------------------- /llava_dpo/eval/table/review/review_alpaca-13b_vicuna-13b.jsonl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/llava_dpo/eval/table/review/review_alpaca-13b_vicuna-13b.jsonl -------------------------------------------------------------------------------- /llava_dpo/eval/table/review/review_bard_vicuna-13b.jsonl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/llava_dpo/eval/table/review/review_bard_vicuna-13b.jsonl -------------------------------------------------------------------------------- /llava_dpo/eval/table/review/review_gpt35_vicuna-13b.jsonl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/llava_dpo/eval/table/review/review_gpt35_vicuna-13b.jsonl -------------------------------------------------------------------------------- /llava_dpo/eval/table/review/review_llama-13b_vicuna-13b.jsonl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/llava_dpo/eval/table/review/review_llama-13b_vicuna-13b.jsonl -------------------------------------------------------------------------------- /llava_dpo/eval/table/reviewer.jsonl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/llava_dpo/eval/table/reviewer.jsonl -------------------------------------------------------------------------------- /llava_dpo/eval/table/rule.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/llava_dpo/eval/table/rule.json -------------------------------------------------------------------------------- /llava_dpo/eval/webpage/figures/alpaca.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/llava_dpo/eval/webpage/figures/alpaca.png -------------------------------------------------------------------------------- /llava_dpo/eval/webpage/figures/bard.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/llava_dpo/eval/webpage/figures/bard.jpg -------------------------------------------------------------------------------- /llava_dpo/eval/webpage/figures/chatgpt.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/llava_dpo/eval/webpage/figures/chatgpt.svg -------------------------------------------------------------------------------- /llava_dpo/eval/webpage/figures/llama.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/llava_dpo/eval/webpage/figures/llama.jpg -------------------------------------------------------------------------------- /llava_dpo/eval/webpage/figures/swords_FILL0_wght300_GRAD0_opsz48.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/llava_dpo/eval/webpage/figures/swords_FILL0_wght300_GRAD0_opsz48.svg -------------------------------------------------------------------------------- /llava_dpo/eval/webpage/figures/vicuna.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/llava_dpo/eval/webpage/figures/vicuna.jpeg -------------------------------------------------------------------------------- /llava_dpo/eval/webpage/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/llava_dpo/eval/webpage/index.html -------------------------------------------------------------------------------- /llava_dpo/eval/webpage/script.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/llava_dpo/eval/webpage/script.js -------------------------------------------------------------------------------- /llava_dpo/eval/webpage/styles.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/llava_dpo/eval/webpage/styles.css -------------------------------------------------------------------------------- /llava_dpo/logger.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/llava_dpo/logger.py -------------------------------------------------------------------------------- /llava_dpo/mm_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/llava_dpo/mm_utils.py -------------------------------------------------------------------------------- /llava_dpo/model/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/llava_dpo/model/__init__.py -------------------------------------------------------------------------------- /llava_dpo/model/apply_delta.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/llava_dpo/model/apply_delta.py -------------------------------------------------------------------------------- /llava_dpo/model/builder.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/llava_dpo/model/builder.py -------------------------------------------------------------------------------- /llava_dpo/model/consolidate.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/llava_dpo/model/consolidate.py -------------------------------------------------------------------------------- /llava_dpo/model/language_model/llava_llama.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/llava_dpo/model/language_model/llava_llama.py -------------------------------------------------------------------------------- /llava_dpo/model/language_model/llava_mpt.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/llava_dpo/model/language_model/llava_mpt.py -------------------------------------------------------------------------------- /llava_dpo/model/language_model/mpt/adapt_tokenizer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/llava_dpo/model/language_model/mpt/adapt_tokenizer.py -------------------------------------------------------------------------------- /llava_dpo/model/language_model/mpt/attention.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/llava_dpo/model/language_model/mpt/attention.py -------------------------------------------------------------------------------- /llava_dpo/model/language_model/mpt/blocks.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/llava_dpo/model/language_model/mpt/blocks.py -------------------------------------------------------------------------------- /llava_dpo/model/language_model/mpt/configuration_mpt.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/llava_dpo/model/language_model/mpt/configuration_mpt.py -------------------------------------------------------------------------------- /llava_dpo/model/language_model/mpt/custom_embedding.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/llava_dpo/model/language_model/mpt/custom_embedding.py -------------------------------------------------------------------------------- /llava_dpo/model/language_model/mpt/flash_attn_triton.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/llava_dpo/model/language_model/mpt/flash_attn_triton.py -------------------------------------------------------------------------------- /llava_dpo/model/language_model/mpt/hf_prefixlm_converter.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/llava_dpo/model/language_model/mpt/hf_prefixlm_converter.py -------------------------------------------------------------------------------- /llava_dpo/model/language_model/mpt/meta_init_context.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/llava_dpo/model/language_model/mpt/meta_init_context.py -------------------------------------------------------------------------------- /llava_dpo/model/language_model/mpt/modeling_mpt.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/llava_dpo/model/language_model/mpt/modeling_mpt.py -------------------------------------------------------------------------------- /llava_dpo/model/language_model/mpt/norm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/llava_dpo/model/language_model/mpt/norm.py -------------------------------------------------------------------------------- /llava_dpo/model/language_model/mpt/param_init_fns.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/llava_dpo/model/language_model/mpt/param_init_fns.py -------------------------------------------------------------------------------- /llava_dpo/model/llava_arch.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/llava_dpo/model/llava_arch.py -------------------------------------------------------------------------------- /llava_dpo/model/make_delta.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/llava_dpo/model/make_delta.py -------------------------------------------------------------------------------- /llava_dpo/model/multimodal_encoder/builder.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/llava_dpo/model/multimodal_encoder/builder.py -------------------------------------------------------------------------------- /llava_dpo/model/multimodal_encoder/clip_encoder.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/llava_dpo/model/multimodal_encoder/clip_encoder.py -------------------------------------------------------------------------------- /llava_dpo/model/multimodal_projector/builder.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/llava_dpo/model/multimodal_projector/builder.py -------------------------------------------------------------------------------- /llava_dpo/model/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/llava_dpo/model/utils.py -------------------------------------------------------------------------------- /llava_dpo/serve/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /llava_dpo/serve/cli.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/llava_dpo/serve/cli.py -------------------------------------------------------------------------------- /llava_dpo/serve/controller.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/llava_dpo/serve/controller.py -------------------------------------------------------------------------------- /llava_dpo/serve/examples/extreme_ironing.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/llava_dpo/serve/examples/extreme_ironing.jpg -------------------------------------------------------------------------------- /llava_dpo/serve/examples/waterview.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/llava_dpo/serve/examples/waterview.jpg -------------------------------------------------------------------------------- /llava_dpo/serve/gradio_web_server.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/llava_dpo/serve/gradio_web_server.py -------------------------------------------------------------------------------- /llava_dpo/serve/model_worker.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/llava_dpo/serve/model_worker.py -------------------------------------------------------------------------------- /llava_dpo/serve/register_worker.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/llava_dpo/serve/register_worker.py -------------------------------------------------------------------------------- /llava_dpo/serve/test_message.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/llava_dpo/serve/test_message.py -------------------------------------------------------------------------------- /llava_dpo/train/dpo_train.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/llava_dpo/train/dpo_train.py -------------------------------------------------------------------------------- /llava_dpo/train/llama_flash_attn_monkey_patch.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/llava_dpo/train/llama_flash_attn_monkey_patch.py -------------------------------------------------------------------------------- /llava_dpo/train/llama_xformers_attn_monkey_patch.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/llava_dpo/train/llama_xformers_attn_monkey_patch.py -------------------------------------------------------------------------------- /llava_dpo/train/llava_trainer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/llava_dpo/train/llava_trainer.py -------------------------------------------------------------------------------- /llava_dpo/train/train.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/llava_dpo/train/train.py -------------------------------------------------------------------------------- /llava_dpo/train/train_mem.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/llava_dpo/train/train_mem.py -------------------------------------------------------------------------------- /llava_dpo/train/train_xformers.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/llava_dpo/train/train_xformers.py -------------------------------------------------------------------------------- /llava_dpo/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/llava_dpo/utils.py -------------------------------------------------------------------------------- /pipeline.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/pipeline.png -------------------------------------------------------------------------------- /playground/data/amber_query.jsonl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/playground/data/amber_query.jsonl -------------------------------------------------------------------------------- /playground/data/coco2014_val_gpt4_qa_30x3.jsonl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/playground/data/coco2014_val_gpt4_qa_30x3.jsonl -------------------------------------------------------------------------------- /playground/data/coco2014_val_qa_eval/qa90_gpt4_answer.jsonl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/playground/data/coco2014_val_qa_eval/qa90_gpt4_answer.jsonl -------------------------------------------------------------------------------- /playground/data/coco2014_val_qa_eval/qa90_questions.jsonl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/playground/data/coco2014_val_qa_eval/qa90_questions.jsonl -------------------------------------------------------------------------------- /playground/data/pope.jsonl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/playground/data/pope.jsonl -------------------------------------------------------------------------------- /playground/data/pope/coco_pope_adversarial.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/playground/data/pope/coco_pope_adversarial.json -------------------------------------------------------------------------------- /playground/data/pope/coco_pope_all.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/playground/data/pope/coco_pope_all.json -------------------------------------------------------------------------------- /playground/data/pope/coco_pope_popular.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/playground/data/pope/coco_pope_popular.json -------------------------------------------------------------------------------- /playground/data/pope/coco_pope_random.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/playground/data/pope/coco_pope_random.json -------------------------------------------------------------------------------- /playground/data/prompts/complex_reasoning/000_caps.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/playground/data/prompts/complex_reasoning/000_caps.txt -------------------------------------------------------------------------------- /playground/data/prompts/complex_reasoning/000_conv.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/playground/data/prompts/complex_reasoning/000_conv.txt -------------------------------------------------------------------------------- /playground/data/prompts/complex_reasoning/001_caps.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/playground/data/prompts/complex_reasoning/001_caps.txt -------------------------------------------------------------------------------- /playground/data/prompts/complex_reasoning/001_conv.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/playground/data/prompts/complex_reasoning/001_conv.txt -------------------------------------------------------------------------------- /playground/data/prompts/complex_reasoning/002_caps.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/playground/data/prompts/complex_reasoning/002_caps.txt -------------------------------------------------------------------------------- /playground/data/prompts/complex_reasoning/002_conv.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/playground/data/prompts/complex_reasoning/002_conv.txt -------------------------------------------------------------------------------- /playground/data/prompts/complex_reasoning/system_message.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/playground/data/prompts/complex_reasoning/system_message.txt -------------------------------------------------------------------------------- /playground/data/prompts/conversation/000_caps.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/playground/data/prompts/conversation/000_caps.txt -------------------------------------------------------------------------------- /playground/data/prompts/conversation/000_conv.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/playground/data/prompts/conversation/000_conv.txt -------------------------------------------------------------------------------- /playground/data/prompts/conversation/001_caps.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/playground/data/prompts/conversation/001_caps.txt -------------------------------------------------------------------------------- /playground/data/prompts/conversation/001_conv.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/playground/data/prompts/conversation/001_conv.txt -------------------------------------------------------------------------------- /playground/data/prompts/conversation/system_message.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/playground/data/prompts/conversation/system_message.txt -------------------------------------------------------------------------------- /playground/data/prompts/detail_description/000_caps.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/playground/data/prompts/detail_description/000_caps.txt -------------------------------------------------------------------------------- /playground/data/prompts/detail_description/000_conv.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/playground/data/prompts/detail_description/000_conv.txt -------------------------------------------------------------------------------- /playground/data/prompts/detail_description/001_caps.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/playground/data/prompts/detail_description/001_caps.txt -------------------------------------------------------------------------------- /playground/data/prompts/detail_description/001_conv.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/playground/data/prompts/detail_description/001_conv.txt -------------------------------------------------------------------------------- /playground/data/prompts/detail_description/002_caps.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/playground/data/prompts/detail_description/002_caps.txt -------------------------------------------------------------------------------- /playground/data/prompts/detail_description/002_conv.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/playground/data/prompts/detail_description/002_conv.txt -------------------------------------------------------------------------------- /playground/data/prompts/detail_description/system_message.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/playground/data/prompts/detail_description/system_message.txt -------------------------------------------------------------------------------- /predict.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/predict.py -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/pyproject.toml -------------------------------------------------------------------------------- /scripts/convert_gqa_for_eval.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/scripts/convert_gqa_for_eval.py -------------------------------------------------------------------------------- /scripts/convert_mmbench_for_submission.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/scripts/convert_mmbench_for_submission.py -------------------------------------------------------------------------------- /scripts/convert_mmvet_for_eval.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/scripts/convert_mmvet_for_eval.py -------------------------------------------------------------------------------- /scripts/convert_seed_for_submission.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/scripts/convert_seed_for_submission.py -------------------------------------------------------------------------------- /scripts/convert_sqa_to_llava.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/scripts/convert_sqa_to_llava.py -------------------------------------------------------------------------------- /scripts/convert_sqa_to_llava_base_prompt.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/scripts/convert_sqa_to_llava_base_prompt.py -------------------------------------------------------------------------------- /scripts/convert_vizwiz_for_submission.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/scripts/convert_vizwiz_for_submission.py -------------------------------------------------------------------------------- /scripts/convert_vqav2_for_submission.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/scripts/convert_vqav2_for_submission.py -------------------------------------------------------------------------------- /scripts/extract_mm_projector.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/scripts/extract_mm_projector.py -------------------------------------------------------------------------------- /scripts/finetune.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/scripts/finetune.sh -------------------------------------------------------------------------------- /scripts/finetune_full_schedule.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/scripts/finetune_full_schedule.sh -------------------------------------------------------------------------------- /scripts/finetune_lora.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/scripts/finetune_lora.sh -------------------------------------------------------------------------------- /scripts/finetune_qlora.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/scripts/finetune_qlora.sh -------------------------------------------------------------------------------- /scripts/finetune_sqa.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/scripts/finetune_sqa.sh -------------------------------------------------------------------------------- /scripts/merge_lora_weights.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/scripts/merge_lora_weights.py -------------------------------------------------------------------------------- /scripts/pretrain.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/scripts/pretrain.sh -------------------------------------------------------------------------------- /scripts/pretrain_xformers.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/scripts/pretrain_xformers.sh -------------------------------------------------------------------------------- /scripts/sqa_eval_batch.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/scripts/sqa_eval_batch.sh -------------------------------------------------------------------------------- /scripts/sqa_eval_gather.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/scripts/sqa_eval_gather.sh -------------------------------------------------------------------------------- /scripts/v1_5/dpo.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/scripts/v1_5/dpo.sh -------------------------------------------------------------------------------- /scripts/v1_5/vdpo.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/scripts/v1_5/vdpo.sh -------------------------------------------------------------------------------- /scripts/zero2.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/scripts/zero2.json -------------------------------------------------------------------------------- /scripts/zero3.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/scripts/zero3.json -------------------------------------------------------------------------------- /scripts/zero3_offload.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/scripts/zero3_offload.json -------------------------------------------------------------------------------- /scripts/zero3_offload_all.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuxiXie/V-DPO/HEAD/scripts/zero3_offload_all.json --------------------------------------------------------------------------------