deepseek-ai / deepseek-vl-1.3b-chat

huggingface.co
Total runs: 7.5K
24-hour runs: 69
7-day runs: 29
30-day runs: 2.6K
Model's Last Updated: March 15 2024
image-text-to-text

Introduction of deepseek-vl-1.3b-chat

Model Details of deepseek-vl-1.3b-chat

1. Introduction

Introducing DeepSeek-VL, an open-source Vision-Language (VL) Model designed for real-world vision and language understanding applications. DeepSeek-VL possesses general multimodal understanding capabilities, capable of processing logical diagrams, web pages, formula recognition, scientific literature, natural images, and embodied intelligence in complex scenarios.

DeepSeek-VL: Towards Real-World Vision-Language Understanding

Github Repository

Haoyu Lu*, Wen Liu*, Bo Zhang**, Bingxuan Wang, Kai Dong, Bo Liu, Jingxiang Sun, Tongzheng Ren, Zhuoshu Li, Hao Yang, Yaofeng Sun, Chengqi Deng, Hanwei Xu, Zhenda Xie, Chong Ruan (*Equal Contribution, **Project Lead)

2. Model Summary

DeepSeek-VL-1.3b-chat is a tiny vision-language model. It uses the SigLIP-L as the vision encoder supporting 384 x 384 image input and is constructed based on the DeepSeek-LLM-1.3b-base which is trained on an approximate corpus of 500B text tokens. The whole DeepSeek-VL-1.3b-base model is finally trained around 400B vision-language tokens. The DeepSeek-VL-1.3b-chat is an instructed version based on DeepSeek-VL-1.3b-base .

3. Quick Start
Installation

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

git clone https://github.com/deepseek-ai/DeepSeek-VL
cd DeepSeek-VL

pip install -e .
Simple Inference Example
import torch
from transformers import AutoModelForCausalLM

from deepseek_vl.models import VLChatProcessor, MultiModalityCausalLM
from deepseek_vl.utils.io import load_pil_images


# specify the path to the model
model_path = "deepseek-ai/deepseek-vl-1.3b-chat"
vl_chat_processor: VLChatProcessor = VLChatProcessor.from_pretrained(model_path)
tokenizer = vl_chat_processor.tokenizer

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

conversation = [
    {
        "role": "User",
        "content": "<image_placeholder>Describe each stage of this image.",
        "images": ["./images/training_pipelines.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
).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)
CLI Chat

python cli_chat.py --model_path "deepseek-ai/deepseek-vl-1.3b-chat"

# or local path
python cli_chat.py --model_path "local model path"
4. License

This code repository is licensed under the MIT License . The use of DeepSeek-VL Base/Chat models is subject to DeepSeek Model License . DeepSeek-VL series (including Base and Chat) supports commercial use.

5. Citation
@misc{lu2024deepseekvl,
      title={DeepSeek-VL: Towards Real-World Vision-Language Understanding}, 
      author={Haoyu Lu and Wen Liu and Bo Zhang and Bingxuan Wang and Kai Dong and Bo Liu and Jingxiang Sun and Tongzheng Ren and Zhuoshu Li and Yaofeng Sun and Chengqi Deng and Hanwei Xu and Zhenda Xie and Chong Ruan},
      year={2024},
      eprint={2403.05525},
      archivePrefix={arXiv},
      primaryClass={cs.AI}
}
6. Contact

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

Runs of deepseek-ai deepseek-vl-1.3b-chat on huggingface.co

7.5K
Total runs
69
24-hour runs
11
3-day runs
29
7-day runs
2.6K
30-day runs

More Information About deepseek-vl-1.3b-chat huggingface.co Model

More deepseek-vl-1.3b-chat license Visit here:

https://choosealicense.com/licenses/deepseek

deepseek-vl-1.3b-chat huggingface.co

deepseek-vl-1.3b-chat huggingface.co is an AI model on huggingface.co that provides deepseek-vl-1.3b-chat's model effect (), which can be used instantly with this deepseek-ai deepseek-vl-1.3b-chat model. huggingface.co supports a free trial of the deepseek-vl-1.3b-chat model, and also provides paid use of the deepseek-vl-1.3b-chat. Support call deepseek-vl-1.3b-chat model through api, including Node.js, Python, http.

deepseek-vl-1.3b-chat huggingface.co Url

https://huggingface.co/deepseek-ai/deepseek-vl-1.3b-chat

deepseek-ai deepseek-vl-1.3b-chat online free

deepseek-vl-1.3b-chat huggingface.co is an online trial and call api platform, which integrates deepseek-vl-1.3b-chat's modeling effects, including api services, and provides a free online trial of deepseek-vl-1.3b-chat, you can try deepseek-vl-1.3b-chat online for free by clicking the link below.

deepseek-ai deepseek-vl-1.3b-chat online free url in huggingface.co:

https://huggingface.co/deepseek-ai/deepseek-vl-1.3b-chat

deepseek-vl-1.3b-chat install

deepseek-vl-1.3b-chat is an open source model from GitHub that offers a free installation service, and any user can find deepseek-vl-1.3b-chat on GitHub to install. At the same time, huggingface.co provides the effect of deepseek-vl-1.3b-chat install, users can directly use deepseek-vl-1.3b-chat installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

deepseek-vl-1.3b-chat install url in huggingface.co:

https://huggingface.co/deepseek-ai/deepseek-vl-1.3b-chat

Url of deepseek-vl-1.3b-chat

deepseek-vl-1.3b-chat huggingface.co Url

Provider of deepseek-vl-1.3b-chat huggingface.co

deepseek-ai
ORGANIZATIONS

Other API from deepseek-ai