AI SeedbankHelp preserve open and free AI for humanity's future

← All models

deepseek-ai_deepseek-vl2-tiny

deepseek-ai · View on Hugging Face ↗

Get this model

Download TorrentMagnet Link

Seeders: · Leechers:

Model card

The complete upstream card, rendered from this payload's README.md — the same hash-verified bytes the torrent distributes. Images and off-site links are removed; the original card on Hugging Face carries them.


license: other license_name: deepseek license_link: https://github.com/deepseek-ai/DeepSeek-LLM/blob/HEAD/LICENSE-MODEL pipeline_tag: image-text-to-text library_name: transformers

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

Github Repository

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. Model Summary

DeepSeek-VL2-tiny is built on DeepSeekMoE-3B (total activated parameters are 1.0B).

3. Quick Start

Installation

On the basis of Python >= 3.8 environment, install the necessary dependencies by running the following command:

pip install -e .

Notifications

  1. We suggest to use a temperature T <= 0.7 when sampling. We observe a larger temperature decreases the generation quality.
  2. To keep the number of tokens managable in the context window, we apply dynamic tiling strategy to <=2 images. When there are >=3 images, we directly pad the images to 384*384 as inputs without tiling.
  3. The main difference between DeepSeek-VL2-Tiny, DeepSeek-VL2-Small and DeepSeek-VL2 is the base LLM.

Simple Inference Example

import torch
from transformers import AutoModelForCausalLM

from deepseek_vl.models import DeepseekVLV2Processor, DeepseekVLV2ForCausalLM
from deepseek_vl.utils.io import load_pil_images


# specify the path to the model
model_path = "deepseek-ai/deepseek-vl2-small"
vl_chat_processor: DeepseekVLV2Processor = DeepseekVLV2Processor.from_pretrained(model_path)
tokenizer = vl_chat_processor.tokenizer

vl_gpt: DeepseekVLV2ForCausalLM = AutoModelForCausalLM.from_pretrained(model_path, trust_remote_code=True)
vl_gpt = vl_gpt.to(torch.bfloat16).cuda().eval()

## single image conversation example
conversation = [
    {
        "role": "<|User|>",
        "content": "<image>\n<|ref|>The giraffe at the back.<|/ref|>.",
        "images": ["./images/visual_grounding.jpeg"],
    },
    {"role": "<|Assistant|>", "content": ""},
]

## multiple images (or in-context learning) conversation example
# conversation = [
#     {
#         "role": "User",
#         "content": "<image_placeholder>A dog wearing nothing in the foreground, "
#                    "<image_placeholder>a dog wearing a santa hat, "
#                    "<image_placeholder>a dog wearing a wizard outfit, and "
#                    "<image_placeholder>what's the dog wearing?",
#         "images": [
#             "images/dog_a.png",
#             "images/dog_b.png",
#             "images/dog_c.png",
#             "images/dog_d.png",
#         ],
#     },
#     {"role": "Assistant", "content": ""}
# ]

# load images and prepare for inputs
pil_images = load_pil_images(conversation)
prepare_inputs = vl_chat_processor(
    conversations=conversation,
    images=pil_images,
    force_batchify=True,
    system_prompt=""
).to(vl_gpt.device)

# run image encoder to get the image embeddings
inputs_embeds = vl_gpt.prepare_inputs_embeds(**prepare_inputs)

# run the model to get the response
outputs = vl_gpt.language_model.generate(
    inputs_embeds=inputs_embeds,
    attention_mask=prepare_inputs.attention_mask,
    pad_token_id=tokenizer.eos_token_id,
    bos_token_id=tokenizer.bos_token_id,
    eos_token_id=tokenizer.eos_token_id,
    max_new_tokens=512,
    do_sample=False,
    use_cache=True
)

answer = tokenizer.decode(outputs[0].cpu().tolist(), skip_special_tokens=True)
print(f"{prepare_inputs['sft_format'][0]}", answer)

Gradio Demo (TODO)

4. License

This code repository is licensed under MIT License. The use of DeepSeek-VL2 models is subject to DeepSeek Model License. DeepSeek-VL2 series supports commercial use.

5. Citation

@misc{wu2024deepseekvl2mixtureofexpertsvisionlanguagemodels,
      title={DeepSeek-VL2: Mixture-of-Experts Vision-Language Models for Advanced Multimodal Understanding}, 
      author={Zhiyu Wu and Xiaokang Chen and Zizheng Pan and Xingchao Liu and Wen Liu and Damai Dai and Huazuo Gao and Yiyang Ma and Chengyue Wu and Bingxuan Wang and Zhenda Xie and Yu Wu and Kai Hu and Jiawei Wang and Yaofeng Sun and Yukun Li and Yishi Piao and Kang Guan and Aixin Liu and Xin Xie and Yuxiang You and Kai Dong and Xingkai Yu and Haowei Zhang and Liang Zhao and Yisong Wang and Chong Ruan},
      year={2024},
      eprint={2412.10302},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2412.10302}, 
}

6. Contact

If you have any questions, please raise an issue or contact us at [email protected].

Magnet link

Opens the swarm directly in your torrent client — no file download needed. Copy-paste works too:

magnet:?xt=urn:btih:dca78bf376d1242a279dba1d0233dcb8ffc86ba2&dn=deepseek-ai_deepseek-vl2-tiny

Open magnet in torrent client · infohash dca78bf376d1242a279dba1d0233dcb8ffc86ba2

Files & hashes

PathSizesha1sha256
README.md5.7 KB (5,827 B)7e5357011d5e0aa4e22cb1851f6b84ff1cbad867a72ab2d2448b9cd18db9a8dd4e596f3e26a0bc605d40003cb6cfc87aa10d0fd0
config.json2.2 KB (2,287 B)2955d9d012125d5fce66e55db66d4be4eaed21e5377e10dceb803d9a843d9825d1aa7cba8121c2b825888c632ecf807d0834ce97
model-00001-of-000001.safetensors6.28 GB (6,741,334,208 B)bd0ca803881f0b6a4e4545cfd069ca330e56006fcc1e5047280253e224b299677bea16b7960c2436ec676d28911ebd9de3bb0074
model.safetensors.index.json241.5 KB (247,251 B)e475328869a0d01ced22a0d63e06690c3ada95279c1cbcc08d3b37931926b2142e1c9f39a985f589eaf6bf6681bfe63988457dd1
processor_config.json1.2 KB (1,226 B)24bc978114fb92d43d9a3eb523c50a54fc26491cc4f6e766667a3a5b0558b4f6419464026733f3c3ed3726d5e343a2e9d5deb06a
special_tokens_map.json801 B (801 B)d59d312be868edc63b195e19e256c730dba685adab4bd57ce17d62e39e0a39e739de1e407484f090f0b2c7e391312bca7a5b061a
tokenizer.json6.0 MB (6,274,301 B)b0290a95de6395dd061684ad28575c3de883713b6ae3d2a608d82e48196939a2ccfea2a545808c681fceae60afa02117a2c6fccb
tokenizer_config.json161.3 KB (165,218 B)f6752b174c539dc596ebe69ed8fe0644feb037dc2356f8aadc2548ca8703ceabd113c7db0aa3e3beda2dadabc822066005ee1220

Cite this release

Canonical URL
https://aiseedbank.org/models/deepseek-ai_deepseek-vl2-tiny/
Slug
deepseek-ai_deepseek-vl2-tiny
Infohash
dca78bf376d1242a279dba1d0233dcb8ffc86ba2
License
custom/other license
Signing key fingerprint
85a3b32c3712427b

Every file carries a locally computed sha256 — verify a download against the signed sums: deepseek-ai_deepseek-vl2-tiny.SHA256SUMS (+ minisign signature).

Provenance

Upstream repositorydeepseek-ai/deepseek-vl2-tiny
Revision (pinned)66c54660eae7e90c9ba259bfdf92d07d6e3ce8aa
Fetched at2026-09-03T22:15:24Z
License at fetchother
Snapshot toolhuggingface · seedbank 0.1.0

Trackers

✓ verified · rehash-vs-hf-metadata at 2026-09-03T22:17:19Z

custom/other license6.28 GB (6,748,031,119 bytes)transformerssafetensorsdeepseek_vl_v2image-text-to-textendpoints_compatiblepaper: 2412.10302