Skip to content

DeepSeek OCR specifies an incorrect tokenizer class on the Hub#45739

Merged
hmellor merged 1 commit into
huggingface:mainfrom
hmellor:fix-deepseek-ocr-for-vllm
May 4, 2026
Merged

DeepSeek OCR specifies an incorrect tokenizer class on the Hub#45739
hmellor merged 1 commit into
huggingface:mainfrom
hmellor:fix-deepseek-ocr-for-vllm

Conversation

@hmellor

@hmellor hmellor commented May 1, 2026

Copy link
Copy Markdown
Member

vLLM updates the model type from the DeepSeek OCR checkpoints to deepseek_ocr and deepseek_ocr2 in https://github.com/vllm-project/vllm/blob/bc635fad2389e228a31d6bc6e698caf53d395e13/vllm/transformers_utils/configs/deepseek_vl2.py#L135-L138.

These models specify LlamaTokenizerFast in tokenizer_config.json which is incorrect. With this patch these models work correctly with vLLM again.

cc @molbap as you are working on #41797

Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
@github-actions

github-actions Bot commented May 1, 2026

Copy link
Copy Markdown
Contributor

[For maintainers] Suggested jobs to run (before merge)

run-slow: auto

@hmellor
hmellor requested a review from itazap May 1, 2026 14:56
@HuggingFaceDocBuilderDev

Copy link
Copy Markdown

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@zucchini-nlp

Copy link
Copy Markdown
Member

also linking #45075, which is close to be merged

@itazap itazap left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

@itazap
itazap added this pull request to the merge queue May 4, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks May 4, 2026
@itazap
itazap added this pull request to the merge queue May 4, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks May 4, 2026
@hmellor
hmellor added this pull request to the merge queue May 4, 2026
Merged via the queue into huggingface:main with commit 54e90e0 May 4, 2026
29 checks passed
@hmellor
hmellor deleted the fix-deepseek-ocr-for-vllm branch May 4, 2026 07:41
Exile333 pushed a commit to Exile333/transformers that referenced this pull request May 6, 2026
…ngface#45739)

Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants