davanstrien HF Staff Claude Opus 4.6 commited on
Commit
aad164c
·
1 Parent(s): d28bb20

Add DeepSeek-OCR-2 vLLM script (rewrite from fixed v1 pattern)

Browse files

Rewrites the broken draft (base64/llm.chat/resolution modes) to use the
proven v1 pattern: llm.generate() with PIL images + NGramPerReqLogitsProcessor.
Key v2 change: limit_mm_per_prompt={"image": 1} for the new architecture.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

1 file changed +62 -200
deepseek-ocr2-vllm.py+62-200