VLM pipeline reports a page stopped by vLLM repetition detection as a full success
Maintainers usually reply within 2 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 69/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- python
- Domain
- backend, machine-learning
Research direction
Read normalize_stop_reason and VlmPipeline._determine_conversion_status, then inspect the tests covering stop reasons and partial conversion status. Reproduce with a vLLM response whose finish_reason is repetition and check how the reason is normalized. Done means such a page is reported as incomplete, with a test confirming the conversion status.
Written by the indexing model from the issue text.
Description
Bug
vLLM can stop a generation early once the output keeps repeating itself. This is the repetition_detection sampling parameter from vllm-project/vllm#35451, and the response then ends with finish_reason "repetition".
normalize_stop_reason in docling 2.153.0 does not know this value and returns UNSPECIFIED. VlmPipeline._determine_conversion_status only reports PARTIAL_SUCCESS for LENGTH and CONTENT_FILTERED, so a page that was cut in the middle of a loop comes back as a full success. The text after the loop is missing and the caller has no way to know.
Steps to reproduce
- Serve Qwen/Qwen3-VL-8B-Instruct-FP8 with vLLM 0.34.0.
- Convert a PDF with the VLM pipeline and the api engine, temperature 0, and add
"repetition_detection": {"min_pattern_size": 32, "max_pattern_size": 512, "min_count": 6}toparams. - Use a page that makes the model loop. Large scanned engineering drawings do it for us on about one page in three.
- vLLM answers with
finish_reason"repetition" and the conversion status issuccesswith no error item.
I expected the page to be reported as incomplete in the same way as a length stop, so it can be retried or flagged. Mapping "repetition" in _INCOMPLETE_FINISH_REASONS, either to LENGTH or to a new stop reason, would do it. I can open a pull request if that direction works for you.
Docling version
docling 2.153.0 (main), also seen with docling-serve 1.38.2
Python version
Python 3.12
- Dominant language
- Python
- Stars
- 71k
- Forks
- 5.4k
- Avg merge
- 2d 22h
- Merged PRs (30d)
- 161
Getting set up
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from docling-project/docling
-
`api_image_request` logs and propagates the raw error response body, leaking the request's API key on 401Possibly taken @prassu017 claimed this 7 days ago. Openbug priority:critical
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
docling-project/docling#5486 · 1 comment · 1 reaction ·
Maintainers usually reply within 2 days
-
AFP: export_to_doctags() raises ZeroDivisionError because every page has size 0x0Possibly taken @Krushil-Dhankecha claimed this 12 days ago. Openbug priority:medium
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
docling-project/docling#5355 · 1 comment ·
Maintainers usually reply within 2 days
-
AsciiDoc: thematic breaks and page breaks are kept as text or turned into list itemsPossibly taken @sohailshk claimed this 12 days ago. Openasciidoc bug priority:low
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
docling-project/docling#5331 · 1 comment ·
Maintainers usually reply within 2 days
-
Merged paragraph across pages of different heights: continuation bbox uses the first page's heightPossibly taken @galer1us claimed this 15 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
docling-project/docling#5286 ·
Maintainers usually reply within 2 days
-
CSV: a custom delimiter in the sep= hint is rejectedPossibly taken @saiteja-018 claimed this 15 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
docling-project/docling#5284 ·
Maintainers usually reply within 2 days
All issues in docling-project/docling
Similar issues
-
00 - Bug component: numpy.linalg
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
521xueweihan/HelloGitHub#4543 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
emeryberger/CSrankings#15700 ·
Maintainers usually reply within 2 days
-
Bug | 工作不正常 Triage | 待检查
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
OneDragon-Anything/ZenlessZoneZero-OneDragon#3084 ·
Maintainers usually reply within 1 day
-
Task select patterns with uppercase letters never matchPossibly taken @manobhisriram claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day