Skip to content

train 1124044449: #3790 #4153 #4755 #2573 (CI only) - #4837

Closed
ashhart wants to merge 53 commits into
mainfrom
lead/train-1124044449
Closed

ashhart wants to merge 53 commits into
mainfrom
lead/train-1124044449

Conversation

@ashhart

@ashhart ashhart commented Nov 24, 2026

Copy link
Copy Markdown
Owner

CI for a landing train: #3790 #4153 #4755 #2573 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.

ultradaoto and others added 30 commits November 24, 2026 04:44
Follow main 7948cc4, which routes the vision launch helper through cuda_pdl.launch. The new glm_vis_qk entry must open with glm_pdl::enter() before reading its predecessor outputs, like every existing GLM vision entry. Keep the incoming arithmetic and both current serving pins unchanged.
…ernelEx

Follows main's 7948cc4 (GLM's CUDA kernels as dependent launches), which sends every GLM launch through
cuLaunchKernelEx; the test hands those to its recording cuLaunchKernel with cuda_pdl.forwardEx, as main's GLM tests do.
Reference the new vision_attn module from the GLM CUDA test block so the default GLM host test root discovers its launch-geometry coverage.
Combine the PR glm_vision image entry with main’s expanded image list, including idol_decoder and all four Inkling2 images, so every registered CUDA launch resolves its own image.
…metic tests and contract entry; GB10 check rejects empty PCM and reference-less voices

(cherry picked from commit f4cbd22)
…gamma above 1 to change PCM and cached-reference hits

(cherry picked from commit 0b38180)
… rows

Gate 1 probes every kernel at small(k.spec, 5, 8), which clamps the mix
spec's served rows = 1 up to 5; prepare refused any shape.rows != 1, so
the kernel-contract run failed the kernel on 'refused a served shape'.
The launch depends only on n ((n+255)/256 blocks), so the row guard is
dropped and prepare sizes from shape.n, as Norm.prepare does.
Main's note and the PR's list comment both stay, each on one line.
ashhart and others added 23 commits November 24, 2026 04:44
The /ocr clients post multipart/form-data and pass options as query
parameters, which the server never read before. multipart.zig
parses a body already read into parts that are slices of it,
keeping the raw Content-Type and a normalized media type, with
bounded headers and part counts; query.zig decodes one parameter,
refuses a name sent twice so a repeated option cannot mean two
things, and reads pydantic's boolean words.
The line contracts on /ocr carry plain-text lines, while block
readers give one box a block, so markdown.zig reads a block's
normalized Markdown as plain-text lines, table rows included, and
lines.zig divides the block's box into equal bands along its reading
edges, one per line, and a line's box into words in proportion to
each word's character count, splitting on the whitespace Python's
str.split uses. Every derived quad passes the shared validation, so
no encoder sees a zero-area box.
LiteParse's --ocr-server-url sends one page image as a multipart
file part and reads text items with boxes in the image's pixels, so
POST /ocr now chooses its contract from ?format=, the media type and
the part names, and answers LiteParse with one result a line: text,
an axis-aligned bbox and confidence 1.0, the fields LiteParse's
published OCR API spec defines. A reader without boxes and a PDF
are refused, files parts are refused on every path rather than
dropped, a repeated format is refused, and the client's captured
request is replayed. Refusals made before the contract is known use
the OpenAI envelope, and a model without a reader or a server
without --vision gives the gate's refusal on every path.
The API guide gains the /ocr route: how it picks its contract and
which refusals use the OpenAI envelope, the gate's refusal on every
path, the refusal of a repeated query name, LiteParse's failure
column, the estimated lines and scores, and the LiteParse section on
its published OCR spec with the refusal of readers without boxes;
the inference scope lists /ocr.
A body line `--XyZ--junk`, with boundary XyZ, was taken as the close
delimiter, so the parser stopped there and ignored any later parts.
RFC 2046 lets only transport padding and a line break, or the end
of the body, follow `--boundary--`, so the close now needs exactly
that, and a line with more text stays in the part body like any
other boundary-like text; a regression test reads a later part past
such a line and checks the accepted close forms.
@ashhart

ashhart commented Nov 24, 2026

Copy link
Copy Markdown
Owner Author

CI red on this tip (zig-windows); the PRs go on as two smaller trains.

@ashhart ashhart closed this Nov 24, 2026
@ashhart
ashhart deleted the lead/train-1124044449 branch November 24, 2026 08:23
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