百科.dev
全部条目AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
D

DeepSeek-VL2

> 编程语言
开源

DeepSeek-VL2: 专家混合视觉-语言模型用于高级多模态理解

5.3K stars0 点赞0 次浏览
访问官网GitHub

工具介绍

DeepSeek-VL2: 专家混合视觉-语言模型用于高级多模态理解


Model Download | ⚡ Quick Start | License | Citation
Paper Link | Arxiv Paper Link | ️ Demo

## 1. Introduction Introducing DeepSeek-VL2, an advanced series of large Mixture-of-Experts (MoE) Vision-Language Models that significantly improves upon its predecessor, DeepSeek-VL. DeepSeek-VL2 demonstrates superior capabilities across various tasks, including but not limited to visual question answering, optical character recognition, document/table/chart understanding, and visual grounding. Our model series is composed of three variants: DeepSeek-VL2-Tiny, DeepSeek-VL2-Small and DeepSeek-VL2, with 1.0B, 2.8B and 4.5B activated parameters respectively. DeepSeek-VL2 achieves competitive or state-of-the-art performance with similar or fewer activated parameters compared to existing open-source dense and MoE-based models. [DeepSeek-VL2: Mixture-of-Experts Vision-Language Models for Advanced Multimodal Understanding]() Zhiyu Wu*, Xiaokang Chen*, Zizheng Pan*, Xingchao Liu*, Wen Liu**, Damai Dai, Huazuo Gao, Yiyang Ma, Chengyue Wu, Bingxuan Wang, Zhenda Xie, Yu Wu, Kai Hu, Jiawei Wang, Yaofeng Sun, Yukun Li, Yishi Piao, Kang Guan, Aixin Liu, Xin Xie, Yuxiang You, Kai Dong, Xingkai Yu, Haowei Zhang, Liang Zhao, Yisong Wang, Chong Ruan*** (* Equal Contribution, ** Project Lead, *** Corresponding author) ## 2. Release ✅ 2025-2-6: Naive Implemented Gradio Demo on Huggingface Space [deepseek-vl2-small](https://huggingface.co/spaces/deepseek-ai/deepseek-vl2-small). ✅ 2024-12-25: Gradio Demo Example, Incremental Prefilling and VLMEvalKit Support. ✅ 2024-12-13: DeepSeek-VL2 family released, including DeepSeek-VL2-tiny, DeepSeek-VL2-small, DeepSeek-VL2. ## 3. Model Download We release the DeepSeek-VL2 family, including DeepSeek-VL2-tiny, DeepSeek-VL2-small, DeepSeek-VL2. To support a broader and more diverse range of research within both academic and commercial communities. Please note that the use of this model is subject to the terms outlined in [License section](#5-license). ### Huggingface | Model | Sequence Length | Download | |--------------|-----------------|-----------------------------------------------------------------------------| | DeepSeek-VL2-tiny | 4096 | [ Hugging Face](https://huggingface.co/deepseek-ai/deepseek-vl2-tiny) | | DeepSeek-VL2-small | 4096 | [ Hugging Face](https://huggingface.co/deepseek-ai/deepseek-vl2-small) | | DeepSeek-VL2 | 4096 | [ Hugging Face](https://huggingface.co/deepseek-ai/deepseek-vl2) | ## 4. Quick Start ### Installation On the basis of `Python >= 3.8` environment, install the necessary dependencies by running the following command: ```shell pip install -e . ``` ### Simple Inference Example with One Image **Note: You may need 80GB GPU memory to run this script with deepseek-vl2-small and even larger for deepseek-vl2.** ``` … ``` And the output is something like: ``` <|User|>: <|ref|>The giraffe at the back.<|/ref|>. <|Assistant|>: <|ref|>The giraffe at the back.<|/ref|><|det|>[[580, 270, 999, 900]]<|/det|><|end▁of▁sentence|> ``` ### Simple Inference Example with Multiple Images **Note: You may need 80GB GPU memory to run this script with deepseek-vl2-small and even larger for deepseek-vl2.** ``` … ``` And the output is something like: ``` <|User|>: This is image_1: This is image_2: This is image_3: Can you tell me what are in the images? <|Assistant|>: The images show three different types of vegetables. Image_1 features carrots, which are orange with green tops. Image_2 displays corn cobs, which are yellow with green husks. Image_3 contains raw pork ribs, which are pinkish-red with some marbling.<|end▁of▁sentence|> ``` ### Simple Inference Example with Incremental Prefilling **Note: We use incremental prefilling to inference within 40GB GPU using deepseek-vl2-small.** ``` … ``` And the output is something like: ``` <|User|>: This is image_1: This is image_2: This is image_3: Can you tell me what are in the images? <|Assistant|>: The first image contains carrots. The second image contains corn. The third image contains meat.<|end▁of▁sentence|> ``` Parse the bounding box coordinates, please refer to [parse_ref_bbox](https://github.com/deepseek-ai/DeepSeek-VL2/blob/main/deepseek_vl2/serve/app_modules/utils.py#L270-L298). ### Full Inference Example ```shell # without incremental prefilling CUDA_VISIBLE_DEVICES=0 python inference.py --model_path "deepseek-ai/deepseek-vl2" # with incremental prefilling, when using 40G GPU for vl2-small CUDA_VISIBLE_DEVICES=0 python inference.py --model_path "deepseek-ai/deepseek-vl2-small" --chunk_size 512 ``` ### Gradio Demo * Install the necessary dependencies: ```shell pip install -e .[gradio] ``` * then run the following command: ``` … ``` * **Important**: This is a basic and native demo implementation without any deployment optimizations, which may result in slower performance. For production environments, consider using optimized deployment solutions, such as vllm, sglang, lmdeploy, etc. These optimizations will help achieve faster response times and better cost efficiency. ## 5. License This code repository is licensed under [MIT License](./LICENSE-CODE). The use of DeepSeek-VL2 models is subject to [DeepSeek Model License](./LICENSE-MODEL). DeepSeek-VL2 series supports commercial use. ## 6. Citation ``` … ``` ## 7. Contact If you have any questions, please raise an issue or contact us at [[email protected]](mailto:[email protected]).

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Python

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言