mehmetkeremturkcan/DeepSeek-LLaVA-Instruct
DeepSeer: Vision Language Models with Reasoning
Vision language models with chain-of-thought reasoning are just starting to emerge. This is a proof-of-concept to train a vision model with thinking-enabled chat templates based on DeepSeek-R1 models.
Note that this model will not always use thinking tokens, due to the current lack of high-quality CoT data in non-science contexts.
Setup
pip install git+https://github.com/facebookresearch/schedule_free.git
pip install peft huggingface_hub
git clone https://github.com/mkturkcan/seers.git
cd seers/seers/
huggingface-cli download mehmetkeremturkcan/DeepSeek-LLaVA-Instruct --local-dir DeepSeek-LLaVA-Instruct
Test
Run, in the seers/seers folder,
python predict_llava.py
Train
seers training code is public! Run
python train_cot_mixed.py
Training Details
This model is a fine-tuned version of deepseek-ai/DeepSeek-R1-Distill-Llama-8B on the 5CD-AI/LLaVA-CoT-o1-Instruct dataset. It has been trained using seers.