Repository navigation
Conversation
GLM-OCR reads a page as Markdown without boxes, so a reader now states its geometry, a block's quad is optional, and GLM-OCR offers an Ocr reader with the model card's text recognition prompt and no geometry: the page becomes one block whose Markdown is the model's reply, with HTML tables rewritten as pipe tables or clean spanned HTML and \( \) and \[ \] math as $ and $$, cells included, while fenced and inline code stays verbatim in a linear scan. A reader without boxes refuses header and footer extraction, the page pixel limit grows to GLM-OCR's, and greedy Hugging Face oracle outputs pin the prompt and the parser in the fixture tests.
Issue 2440 asks that GLM-OCR's Markdown equal what the chat route returns for the same image and prompt. The prompt-id test gains GLM-OCR's prompt, so both routes give the model the same ids, and a scripted reply sent through POST /v1/ocr with a reader of GLM-OCR's contract and through /v1/chat/completions gives page Markdown equal to the chat content; the reader test shows the reply kept verbatim but for HTML tables and LaTeX delimiters.
The API guide named one reader. It now lists GLM-OCR with its single page block, the header and footer refusal for a reader without boxes, and the context a dense page needs under GLM-OCR's default window; the changelog line stays with the maintainer.
…f the visual-token budget (#2510) The default stays the per-request split, so replies without the flag are unchanged. With fixed, each image takes --vision-image-tokens / --vision-max-images whatever the request's image count, so a turn that adds an image leaves earlier images' rows where they were and the prompt cache resumes from the first image. A share of 0 is refused naming both flags.
Owner
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
CI for a landing train: #2572 #2717 stacked on main in that order. Nothing merges from this PR: each PR above lands on its own once this tip is green, and this PR is then closed.