Run this model with HF Jobs

Run deepseek-ai/deepseek-vl2 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/deepseek-ai/deepseek-vl2. 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/deepseek-ai/deepseek-vl2 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/deepseek-ai/deepseek-vl2. 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/deepseek-ai/deepseek-vl2. 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.

Run on vLLM

#3
by Dayubian - opened

Got the error below:
ValueError: The checkpoint you are trying to load has model type deepseek_vl_v2 but Transformers does not recognize this architecture. This could be because of an issue with the checkpoint, or because your version of Transformers is out of date.

•
This comment has been hidden

Got the error below:
ValueError: The checkpoint you are trying to load has model type deepseek_vl_v2 but Transformers does not recognize this architecture. This could be because of an issue with the checkpoint, or because your version of Transformers is out of date.

same error when deploying using vllm. Did you manage to solve? Thanks

Got the error below:
ValueError: The checkpoint you are trying to load has model type deepseek_vl_v2 but Transformers does not recognize this architecture. This could be because of an issue with the checkpoint, or because your version of Transformers is out of date.

same error when deploying using vllm. Did you manage to solve? Thanks

Hi, Have you solved the problem, Thanks

Got the error below:
ValueError: The checkpoint you are trying to load has model type deepseek_vl_v2 but Transformers does not recognize this architecture. This could be because of an issue with the checkpoint, or because your version of Transformers is out of date.

same error when deploying using vllm. Did you manage to solve? Thanks

Hi, Have you solved the problem, Thanks

same

I also got the same error

Transformers supported model list does not contain DeepSeek. You will have to import the model provided by DeepSeek source code

import torch
from transformers import AutoModelForCausalLM

from deepseek_vl.models import DeepseekVLV2Processor, DeepseekVLV2ForCausalLM

# 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

model = AutoModelForCausalLM.from_pretrained(model_path, trust_remote_code=True)

After upgrade vllm to the latest version e.g. v0.7.2, and run vllm with option --hf_overrides '{"architectures": ["DeepseekVLV2ForCausalLM"]}', then everything is OK.

Sign up or log in to comment