Image-Text-to-Text
Transformers
PyTorch
andesvl-aimv2-qwen3
feature-extraction
conversational
custom_code
Run this model with HF Jobs
Run OPPOer/AndesVL-2B-Instruct on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/OPPOer/AndesVL-2B-Instruct. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/OPPOer/AndesVL-2B-Instruct on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/OPPOer/AndesVL-2B-Instruct. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/OPPOer/AndesVL-2B-Instruct. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use OPPOer/AndesVL-2B-Instruct with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use OPPOer/AndesVL-2B-Instruct with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="OPPOer/AndesVL-2B-Instruct", 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("OPPOer/AndesVL-2B-Instruct", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use OPPOer/AndesVL-2B-Instruct with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "OPPOer/AndesVL-2B-Instruct" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "OPPOer/AndesVL-2B-Instruct", "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/OPPOer/AndesVL-2B-Instruct
- SGLang
How to use OPPOer/AndesVL-2B-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 "OPPOer/AndesVL-2B-Instruct" \ --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": "OPPOer/AndesVL-2B-Instruct", "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 "OPPOer/AndesVL-2B-Instruct" \ --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": "OPPOer/AndesVL-2B-Instruct", "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 OPPOer/AndesVL-2B-Instruct with Docker Model Runner:
docker model run hf.co/OPPOer/AndesVL-2B-Instruct
Update README.md
Browse files123---license: apache-2.0---123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263---license: apache-2.0---# AndesVL-2B-InstructAndesVL is a suite of mobile-optimized Multimodal Large Language Models (MLLMs) with **0.6B to 4B parameters**, built upon Qwen3's LLM and various visual encoders. Designed for efficient edge deployment, it achieves first-tier performance on diverse benchmarks including text-rich, reasoning, VQA, and GUI tasks, notably introducing AndesUI-Bench for mobile UI comprehension. Its 1+N LoRA architecture and QALFT framework facilitate efficient task adaptation and compression, maintaining performance (2% degradation) and enabling 200 tokens/s decoding with 1.7 bits/weight compression on mobile chips.Detailed model sizes and components are provided below:| Model | Total Parameters (B) | Visual Encoder | LLM ||---|---|---|---|| AndesVL-0.6B | 0.695 | SigLIP2-Base | Qwen3-0.6B || AndesVL-1B | 0.927 | AIMv2-Large | Qwen3-0.6B || **AndesVL-2B** | 2.055 | AIMv2-Large | Qwen3-1.7B|| AndesVL-4B | 4.360 | AIMv2-Large | Qwen3-4B |# Quick Start```commandline# require transformers>=4.52.4import torchfrom transformers import AutoModel, AutoTokenizer, CLIPImageProcessormodel_dir = "OPPOer/AndesVL-2B-Instruct"model = AutoModel.from_pretrained(model_dir, trust_remote_code=True,torch_dtype=torch.bfloat16).cuda()tokenizer = AutoTokenizer.from_pretrained(model_dir, trust_remote_code=True)image_processor = CLIPImageProcessor.from_pretrained(model_dir, trust_remote_code=True)messages = [{"role": "user","content": [{"type": "text", "text": "描述这张图片。"},{"type": "image_url","image_url": {"url": "https://i-blog.csdnimg.cn/blog_migrate/2f4c88e71f7eabe46d062d2f1ec77d10.jpeg" # image/to/path},}],},]res = model.chat(messages, tokenizer, image_processor, max_new_tokens=1024, do_sample=True, temperature=0.6)print(res)```# CitationIf you find our work helpful, feel free to give us a cite.```@article{andesvl2025jin,title={AndesVL Technical Report: An Efficient Mobile-side Multimodal Large Language Model},author={Zhiwei Jin, NanWang, Yafei Liu, Chao Li, Yuqing Qiu, Xin Li, Ruichen Wang,Zhihao Li, Qi Qi, Xiaohui Song, Ke Chen, Huafei Li, ChuangchuangWang, Kai Tang,Zhiguang Zhu, Wenmei Gao, Rui Wang, Jun Wu, Chao Liu, Qin XieChen Chen∗, and Haonan Lu∗},journal={arXiv preprint arXiv:*****},year={2025}}```# AcknowledgeWe are very grateful for the efforts of the [Qwen](https://huggingface.co/Qwen), [AimV2](https://huggingface.co/apple/aimv2-large-patch14-224) and [Siglip 2](https://arxiv.org/abs/2502.14786) projects.
README.md+63-3