Instructions to use mehmetkeremturkcan/DeepSeek-LLaVA-Instruct with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use mehmetkeremturkcan/DeepSeek-LLaVA-Instruct with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="mehmetkeremturkcan/DeepSeek-LLaVA-Instruct")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("mehmetkeremturkcan/DeepSeek-LLaVA-Instruct", dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use mehmetkeremturkcan/DeepSeek-LLaVA-Instruct with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "mehmetkeremturkcan/DeepSeek-LLaVA-Instruct" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "mehmetkeremturkcan/DeepSeek-LLaVA-Instruct", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/mehmetkeremturkcan/DeepSeek-LLaVA-Instruct
- SGLang
How to use mehmetkeremturkcan/DeepSeek-LLaVA-Instruct with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "mehmetkeremturkcan/DeepSeek-LLaVA-Instruct" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "mehmetkeremturkcan/DeepSeek-LLaVA-Instruct", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "mehmetkeremturkcan/DeepSeek-LLaVA-Instruct" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "mehmetkeremturkcan/DeepSeek-LLaVA-Instruct", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use mehmetkeremturkcan/DeepSeek-LLaVA-Instruct with Docker Model Runner:
docker model run hf.co/mehmetkeremturkcan/DeepSeek-LLaVA-Instruct
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
git clone https://github.com/mkturkcan/seers.git
cd seers/seers/
git clone https://huggingface.co/mehmetkeremturkcan/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.
Model tree for mehmetkeremturkcan/DeepSeek-LLaVA-Instruct
Base model
deepseek-ai/DeepSeek-R1-Distill-Llama-8B