Instructions to use lmms-lab-encoder/LLaVA-OneVision-1.5-8B-Base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use lmms-lab-encoder/LLaVA-OneVision-1.5-8B-Base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="lmms-lab-encoder/LLaVA-OneVision-1.5-8B-Base", trust_remote_code=True) messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("lmms-lab-encoder/LLaVA-OneVision-1.5-8B-Base", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use lmms-lab-encoder/LLaVA-OneVision-1.5-8B-Base with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "lmms-lab-encoder/LLaVA-OneVision-1.5-8B-Base" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "lmms-lab-encoder/LLaVA-OneVision-1.5-8B-Base", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/lmms-lab-encoder/LLaVA-OneVision-1.5-8B-Base
- SGLang
How to use lmms-lab-encoder/LLaVA-OneVision-1.5-8B-Base 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 "lmms-lab-encoder/LLaVA-OneVision-1.5-8B-Base" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "lmms-lab-encoder/LLaVA-OneVision-1.5-8B-Base", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'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 "lmms-lab-encoder/LLaVA-OneVision-1.5-8B-Base" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "lmms-lab-encoder/LLaVA-OneVision-1.5-8B-Base", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Docker Model Runner
How to use lmms-lab-encoder/LLaVA-OneVision-1.5-8B-Base with Docker Model Runner:
docker model run hf.co/lmms-lab-encoder/LLaVA-OneVision-1.5-8B-Base
Improve model card for LLaVA-OneVision-1.5 with paper, code, project links, and sample usage
Browse filesThis PR enhances the model card by:
- Adding a direct link to the paper on Hugging Face: [LLaVA-OneVision-1.5: Fully Open Framework for Democratized Multimodal Training](https://huggingface.co/papers/2509.23661).
- Including the official GitHub repository link: [https://github.com/EvolvingLMMs-Lab/LLaVA-OneVision-1.5](https://github.com/EvolvingLMMs-Lab/LLaVA-OneVision-1.5).
- Providing links to the Hugging Face collection (project page) and a demo Space for the model.
- Integrating a "Quick Start with HuggingFace" code snippet directly from the GitHub README to demonstrate model inference.
- Updating the citation section with more comprehensive bibtex entries from the GitHub repository.
These additions significantly improve the discoverability, reproducibility, and usability of the model for the community.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152---license: apache-2.0datasets:- lmms-lab/LLaVA-One-Vision-1.5-Mid-Training-85Mbase_model:- Qwen/Qwen3-8B-Base- DeepGlint-AI/rice-vit-large-patch14-560pipeline_tag: image-text-to-textlibrary_name: transformers---# LLaVA-OneVision-1.5: Fully Open-Source State-of-the-Art VLM Model**LLaVA-OneVision1.5** introduces a novel family of **fully open-source** Large Multimodal Models (LMMs) that achieves **state-of-the-art performance** with substantially **lower cost** through training on **native resolution** images.- **Superior Performance**A family of fully open-source large multimodal models demonstrating- Superior performance across multiple multimodal benchmarks- outperforming **Qwen2.5-VL** in most evaluation tasks.- **High-Quality Data at Scale**Meticulously curated **pre-training and SFT data** with rigorous filtering and quality control, achieving **superior data efficiency** with only **64B tokens**.- Concept-balanced, highly diverse, high-quality caption data- Comprehensive instruction fine-tuning data covering a wide range of tasks- **Ultra-Efficient Training Framework** Complete end-to-end training framework designed for maximum efficiency:- $16000 total budget for full model training on A100 GPUs ($0.6 per GPU/Hour)- 45% HFU efficiency in 8k context length- Built on **MegatronLM** with support for **MoE**, **FP8**, and **long sequence parallelization**- Optimized codebase for cost-effective scaling- **Fully Open Framework** for community access and reproducibility:- High-quality pre-training & SFT data- Complete training framework & code- Training recipes & configurations- Comprehensive training logs & metrics## CitationIf you find *LLaVA-OneVision-1.5* useful in your research, please consider to cite the following related papers:```@misc{an2025llavaonevision15fullyopenframework,title={LLaVA-OneVision-1.5: Fully Open Framework for Democratized Multimodal Training},author={Xiang An and Yin Xie and Kaicheng Yang and Wenkang Zhang and Xiuwei Zhao and Zheng Cheng and Yirui Wang and Songcen Xu and Changrui Chen and Chunsheng Wu and Huajie Tan and Chunyuan Li and Jing Yang and Jie Yu and Xiyao Wang and Bin Qin and Yumeng Wang and Zizhen Yan and Ziyong Feng and Ziwei Liu and Bo Li and Jiankang Deng},year={2025},eprint={2509.23661},archivePrefix={arXiv},primaryClass={cs.CV},url={https://arxiv.org/abs/2509.23661},}```123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130---base_model:- Qwen/Qwen3-8B-Base- DeepGlint-AI/rice-vit-large-patch14-560datasets:- lmms-lab/LLaVA-One-Vision-1.5-Mid-Training-85Mlibrary_name: transformerslicense: apache-2.0pipeline_tag: image-text-to-text---# LLaVA-OneVision-1.5: Fully Open-Source State-of-the-Art VLM Model**LLaVA-OneVision1.5** introduces a novel family of **fully open-source** Large Multimodal Models (LMMs) that achieves **state-of-the-art performance** with substantially **lower cost** through training on **native resolution** images.**Paper**: [LLaVA-OneVision-1.5: Fully Open Framework for Democratized Multimodal Training](https://huggingface.co/papers/2509.23661)**Code**: [https://github.com/EvolvingLMMs-Lab/LLaVA-OneVision-1.5](https://github.com/EvolvingLMMs-Lab/LLaVA-OneVision-1.5)**Project Page (Models & Datasets Collection)**: [https://huggingface.co/collections/lmms-lab/llava-onevision-15-68d385fe73b50bd22de23713](https://huggingface.co/collections/lmms-lab/llava-onevision-15-68d385fe73b50bd22de23713)**Demo**: [https://huggingface.co/spaces/lmms-lab/LLaVA-OneVision-1.5](https://huggingface.co/spaces/lmms-lab/LLaVA-OneVision-1.5)- **Superior Performance**A family of fully open-source large multimodal models demonstrating- Superior performance across multiple multimodal benchmarks- outperforming **Qwen2.5-VL** in most evaluation tasks.- **High-Quality Data at Scale**Meticulously curated **pre-training and SFT data** with rigorous filtering and quality control, achieving **superior data efficiency** with only **64B tokens**.- Concept-balanced, highly diverse, high-quality caption data- Comprehensive instruction fine-tuning data covering a wide range of tasks- **Ultra-Efficient Training Framework** Complete end-to-end training framework designed for maximum efficiency:- $16000 total budget for full model training on A100 GPUs ($0.6 per GPU/Hour)- 45% HFU efficiency in 8k context length- Built on **MegatronLM** with support for **MoE**, **FP8**, and **long sequence parallelization**- Optimized codebase for cost-effective scaling- **Fully Open Framework** for community access and reproducibility:- High-quality pre-training & SFT data- Complete training framework & code- Training recipes & configurations- Comprehensive training logs & metrics## Quick Start with HuggingFace```pythonfrom transformers import AutoTokenizer, AutoProcessor, AutoModelForCausalLMfrom qwen_vl_utils import process_vision_infomodel_path = "lmms-lab/LLaVA-OneVision-1.5-8B-Instruct"# default: Load the model on the available device(s)model = AutoModelForCausalLM.from_pretrained(model_path, torch_dtype="auto", device_map="auto", trust_remote_code=True)# default processerprocessor = AutoProcessor.from_pretrained(model_path, trust_remote_code=True)messages = [{"role": "user","content": [{"type": "image","image": "https://qianwen-res.oss-cn-beijing.aliyuncs.com/Qwen-VL/assets/demo.jpeg",},{"type": "text", "text": "Describe this image."},],}]# Preparation for inferencetext = processor.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)image_inputs, video_inputs = process_vision_info(messages)inputs = processor(text=[text],images=image_inputs,videos=video_inputs,padding=True,return_tensors="pt",)inputs = inputs.to("cuda")# Inference: Generation of the outputgenerated_ids = model.generate(**inputs, max_new_tokens=1024)generated_ids_trimmed = [out_ids[len(in_ids) :] for in_ids, out_ids in zip(inputs.input_ids, generated_ids)]output_text = processor.batch_decode(generated_ids_trimmed, skip_special_tokens=True, clean_up_tokenization_spaces=False)print(output_text)```## Evaluation ResultsAll evaluations were conducted using lmms_eval.## CitationIf you find *LLaVA-OneVision-1.5* useful in your research, please consider to cite the following related papers:```@inproceedings{LLaVA-OneVision-1.5,title={LLaVA-OneVision-1.5: Fully Open Framework for Democratized Multimodal Training},author={An, Xiang and Xie, Yin and Yang, Kaicheng and Zhang, Wenkang and Zhao, Xiuwei and Cheng, Zheng and Wang, Yirui and Xu, Songcen and Chen, Changrui and Wu, Chunsheng and Tan, Huajie and Li, Chunyuan and Yang, Jing and Jie Yu and Wang, Xiyao and Qin, Bin and Wang, Yumeng and Yan, Zizhen and Feng, Ziyong and Liu, Ziwei and Li, Bo and Deng, Jiankang},booktitle={arxiv},year={2025}}@inproceedings{xie2025region,title={Region-based Cluster Discrimination for Visual Representation Learning},author={Xie, Yin and Yang, Kaicheng and An, Xiang and Wu, Kun and Zhao, Yongle and Deng, Weimo and Ran, Zimin and Wang, Yumeng and Feng, Ziyong and Miles, Roy and Elezi, Ismail and Deng, Jiankang},booktitle={ICCV},year={2025}}@article{lillava,title={LLaVA-OneVision: Easy Visual Task Transfer},author={Li, Bo and Zhang, Yuanhan and Guo, Dong and Zhang, Renrui and Li, Feng and Zhang, Hao and Zhang, Kaichen and Zhang, Peiyuan and Li, Yanwei and Liu, Ziwei and Li, Chunyuan},journal={Transactions on Machine Learning Research}year={2024}}```