Skip to content

Add LLaVA LoRA fine-tuning example#1424

Draft
SahilKumar75 wants to merge 1 commit into
ml-explore:mainfrom
SahilKumar75:feature/llava-lora-finetune
Draft

Add LLaVA LoRA fine-tuning example#1424
SahilKumar75 wants to merge 1 commit into
ml-explore:mainfrom
SahilKumar75:feature/llava-lora-finetune

Conversation

@SahilKumar75
Copy link
Copy Markdown

Summary

  • add LLaVA-NeXT image feature packing and Mistral text-model compatibility
  • add a LLaVA LoRA fine-tuning script that trains language-model adapters while freezing the vision tower and projector
  • document LLaVA 1.6 generation and JSONL fine-tuning data format

Testing

  • python3 -m pytest llava/test_llava_next.py -q
  • python3 -m py_compile llava/llava.py llava/language.py llava/generate.py llava/train_lora.py llava/test_llava_next.py
  • python3 -m black --check llava/llava.py llava/language.py llava/generate.py llava/train_lora.py llava/test_llava_next.py
  • python3 -m pre_commit run --files llava/README.md llava/generate.py llava/language.py llava/llava.py llava/requirements.txt llava/test_llava_next.py llava/train_lora.py

Closes #605

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature Request] LLaVA 1.6 LoRA fine-tuning example

1 participant