Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
365 commits
Select commit Hold shift + click to select a range
1dfcfc6
Flash Next on CUDA: part holds the MTP head's fc_h lane
BadAd84 Nov 21, 2026
cb440a0
changelog: #4801 under Unreleased
ashhart Nov 24, 2026
08b108f
feat(glm): the image tower on vit full attention, behind TF_GLM_VISIO…
ultradaoto Nov 18, 2026
a41b3b0
glm vision: wait before the new dependent image-tower launch reads
ashhart Nov 20, 2026
eb17dc0
glm vision: the fused-attention launch test records through cuLaunchK…
ashhart Nov 21, 2026
0b119df
glm vision: register the fused-attention launch tests
ashhart Nov 21, 2026
b3d00eb
glm vision: restore the contract image resolution
ashhart Nov 21, 2026
5cd1370
glm vision: retain RADIO and re-pin shared attention
ashhart Nov 23, 2026
8d1175e
glm vision: finish fused attention cleanup and pin coverage
ashhart Nov 23, 2026
2353e87
changelog: #3790 under Unreleased
ashhart Nov 24, 2026
240e92f
changelog: #1501's line from lines/1501.txt in place of its own
ashhart Nov 24, 2026
af553f0
changelog: #4801 under Unreleased
ashhart Nov 24, 2026
8783501
retain recent states through prompt cache flush
ashhart Nov 24, 2026
6db2eaa
prompt cache flush: a partial flush keeps exactly the retained states…
ashhart Nov 24, 2026
3f3b971
prompt cache flush: a body that is not read, or is refused, keeps mai…
ashhart Nov 24, 2026
5d967bb
prompt cache flush: preserve the full flush when body parsing fails
ashhart Nov 24, 2026
1bf981c
prompt cache flush tests: a reply that is not JSON fails on its statu…
ashhart Nov 24, 2026
23984f4
changelog: #4856 under Unreleased
ashhart Nov 24, 2026
5c9e83e
changelog: each line once under Unreleased
ashhart Nov 24, 2026
8040521
minimax_m3 cuda: opt-in CUDA graphs for one-stream decode verify windows
ashhart Nov 22, 2026
33bf8c1
tests: re-pin cuda/root.zig, whose test block imports graph_cache_ref…
ashhart Nov 22, 2026
e30ee20
changelog: #4610 under Unreleased
ashhart Nov 24, 2026
5f0de4f
server: /v1/completions takes echo, the prompt's text and legacy logp…
ashhart Nov 18, 2026
1867fc7
test: reject completions echo with an empty messages array
ashhart Nov 24, 2026
220cbd5
server: refuse completions echo whenever messages is present
ashhart Nov 24, 2026
7ab4e93
changelog: #3526 under Unreleased
ashhart Nov 24, 2026
4b541ef
glm metal: GLM_ROUND_PROF per-round host and GPU summary
gilby Nov 18, 2026
00e0e98
changelog: #3894 under Unreleased
ashhart Nov 24, 2026
475c2b6
glm metal: shortest-remaining-first prompt order by default on one Mac
gilby Nov 18, 2026
99df7d3
changelog: #3903 under Unreleased
ashhart Nov 24, 2026
7035016
changelog: #3903 under Unreleased
ashhart Nov 24, 2026
67e686e
tools: add model-agnostic bench_prose.py (8-novel decode, KV loss, di…
GrgaPalcic Nov 23, 2026
e1e2e50
tools: harden bench_prose evidence, logprobs, and mock-server tests
GrgaPalcic Nov 24, 2026
2e269bb
tools: tighten bench_prose qualification, EOS/hash/prefix guards, and…
GrgaPalcic Nov 24, 2026
26fac6b
tools: require affirmative loss token evidence and shared-interval de…
GrgaPalcic Nov 24, 2026
1acf0a2
changelog: #4797 under Unreleased
ashhart Nov 24, 2026
4166db3
inkling2 cuda: split Mini's loop gate into a down half a rank pair a …
jschmied Nov 22, 2026
de85eef
inkling2 cuda: the gate halves' compiled usage on sm_80, 86, 89 and 1…
jschmied Nov 23, 2026
eeeee24
changelog: #4697 under Unreleased
ashhart Nov 24, 2026
41cb783
changelog: #4697 under Unreleased
ashhart Nov 24, 2026
eea0560
server inkling2: thinking off reaches the template as reasoning_effor…
ashhart Nov 24, 2026
e3c6f79
changelog: #4876 under Unreleased
ashhart Nov 24, 2026
b4779ce
ricursive: the publisher's DFlash2 drafter
BobClawblaw Nov 6, 2026
e98eec8
ricursive: a --drafter server answers logprobs, drafting on or off
BobClawblaw Nov 23, 2026
7620d57
docs: Ripple's recipe quotes the 75-kernel contract run and the draft…
BobClawblaw Nov 23, 2026
3e51d24
ricursive: a drafting stream's ring stays in the ledger from admissio…
BobClawblaw Nov 24, 2026
ef6bf1b
changelog: #2260 under Unreleased
ashhart Nov 24, 2026
dcdb528
flashnext cuda: the fused BF16 read-out is on by default
BadAd84 Nov 20, 2026
9edf2f8
changelog: #4799 under Unreleased
ashhart Nov 24, 2026
0495b34
h3: MiniMax-H3-Image's prompt path and image decoder on CUDA, with th…
plotarmordev Nov 19, 2026
485d4a0
adapt: join the H3 CUDA registry records to main s list
ashhart Nov 21, 2026
c1e5dea
adapt: register the H3 picture tools once, without duplicate Metal steps
ashhart Nov 22, 2026
bb475a7
Merge ashhart main: keep main's H3 picture stack, the CUDA prompt and…
plotarmordev Nov 22, 2026
c13c597
h3 contract: a planted first-block control for every image decoder an…
plotarmordev Nov 22, 2026
9f178f7
h3 contract: exactly one planted first-block control per decoder and …
plotarmordev Nov 22, 2026
fdbb219
receipts: PR 3733 ask 4 (why the clip comparison can't run) and CI state
plotarmordev Nov 22, 2026
c43926e
receipts: ask 4 names what the loader diff changes
plotarmordev Nov 22, 2026
9d84046
receipts: PR 3733 ask 3's 19 planted controls from TOP, CI at c203accb0
plotarmordev Nov 22, 2026
8d2066a
receipts: PR 3733 ask 5 from TOP job top-7c6183220113 (H3 contract cl…
plotarmordev Nov 22, 2026
fc1a1b8
receipts: PR 3733 ask 4's checkpoint search on this Mac, the full con…
plotarmordev Nov 23, 2026
a0f7530
cuda contract: -WORD drops kernels from gates 1-4 and keeps the run full
plotarmordev Nov 23, 2026
4a71066
receipts: PR 3733 ask 5's one TOP job without tf_md_conv3x3, CI green…
plotarmordev Nov 23, 2026
c1ba17f
cuda contract: one-line doc on live's -word filter (lean check)
plotarmordev Nov 23, 2026
af9c217
receipts: PR 3733 asks 3-5 from TOP job top-a4a49aacbcd1 (contract st…
plotarmordev Nov 23, 2026
fb6591d
changelog: #3733 under Unreleased
ashhart Nov 24, 2026
66aa87e
changelog: #3733 under Unreleased
ashhart Nov 24, 2026
26abf60
inkling2 cuda: Mini expert weights staged a warp in whole 128-byte ro…
jschmied Nov 22, 2026
10b93fc
inkling2 cuda: Mini expert scale loads stop at a row's last scale byt…
jschmied Nov 23, 2026
beaa431
inkling2 cuda: record the rewritten up launches' usage on every SM
ashhart Nov 24, 2026
0d8cbb2
changelog: #4728 under Unreleased
ashhart Nov 24, 2026
268e4c5
feat(ocr): POST /ocr in docTR's API contract
laudney Nov 24, 2026
ab223fc
docs(ocr): document POST /ocr in docTR's contract
laudney Nov 24, 2026
217055d
changelog: #2574 under Unreleased
ashhart Nov 24, 2026
8402286
changelog: #2574 under Unreleased
ashhart Nov 24, 2026
3e24695
hy4_flash: the NVFP4 build's quantization block and weight map, with …
atakann Nov 22, 2026
83acba0
hy4_flash: one-line comments in the NVFP4 map and its test (lean check)
atakann Nov 22, 2026
9a38b1f
changelog: #4110 under Unreleased
ashhart Nov 24, 2026
5093db5
inkling2: the Mini Metal serving test lives with native, so the famil…
ashhart Nov 24, 2026
d230489
inkling2 metal dspark: attention scale 1/sqrt(128), and the recurrent…
sethforprivacy Nov 21, 2026
6ecc6c9
inkling2 metal dspark: the recurrent step's z scratch holds the three…
sethforprivacy Nov 22, 2026
191b7e8
changelog: #4447 under Unreleased
ashhart Nov 24, 2026
68653c2
changelog: #4447 under Unreleased
ashhart Nov 24, 2026
9719d03
perf(lanes): the host GPU-rule sampler keeps the best 1,024 candidate…
BlivionIaG Nov 23, 2026
af3e226
changelog: name #4744 on the sampler bullet
BlivionIaG Nov 23, 2026
b1bb795
changelog: #4744's line from lines/4744.txt in place of its own
ashhart Nov 24, 2026
2731472
tools tests: the serialized-stream bench_prose case keeps a gap a bus…
ashhart Nov 24, 2026
220bf2d
tools tests: the overlapping-stream bench_prose case holds both strea…
ashhart Nov 24, 2026
7ea9ec2
changelog: #4930's line from lines/4930.txt in place of its own
ashhart Nov 24, 2026
0566962
qwen3_8 cuda: dependent launches by default on sm_12x GPUs
ashhart Nov 24, 2026
c9abcf9
changelog: qwen3_8 cuda: dependent launches by default on sm_12x GPUs
ashhart Nov 24, 2026
3942d68
changelog: #4881's line from lines/4881.txt in place of its own
ashhart Nov 24, 2026
ac62f6c
dsv41 metal: TF_DSV41_ROUND_PROF times each decode round and the draf…
gilby Nov 11, 2026
c11675d
dsv41 metal: the release-layer timing test covers 1 to 16 rows, 4 slo…
gilby Nov 11, 2026
97778c9
dsv41 metal: the round profile skips a round it cannot allocate for, …
gilby Nov 12, 2026
1405a36
dsv41 metal: the round profile writes no summary when no round was bo…
gilby Nov 13, 2026
339d7af
Profile queued speculative chains at their existing wait
ashhart Nov 21, 2026
b82d295
dsv41 metal: TF_DSV41_ROUND_PROF times each decode round and the draf…
gilby Nov 11, 2026
da871aa
dsv41 metal: include tree launches in the round profile
ashhart Nov 23, 2026
0568fc3
dsv41 metal: keep drafter timings drained after a periodic summary
ashhart Nov 23, 2026
120c55f
tests: make DSV41 profiler regressions host-runnable
ashhart Nov 23, 2026
5c8eaa4
dsv41 metal: guard optional indexer shape in FP8 timing and add host …
gilby Nov 24, 2026
c576f59
changelog: #2951 under Unreleased
ashhart Nov 24, 2026
d507f1e
changelog: #2951 under Unreleased
ashhart Nov 24, 2026
99c6f06
glm metal: GLM_POOL_TOKENS sizes the shared latent pool apart from th…
gilby Nov 18, 2026
0c935dc
glm: skip Metal Arena allocations at comptime off macOS for host tests
gilby Nov 19, 2026
ea773ad
glm metal: keep explicit GLM_POOL_TOKENS refusal with MTP and point s…
gilby Nov 24, 2026
d30325d
changelog: #3906 under Unreleased
ashhart Nov 24, 2026
54c32ba
xpu: route Qwen27 and TP peer opens through detectDeviceId
ashhart Nov 23, 2026
257d248
xpu: keep B70 default until NoDevice
ashhart Nov 23, 2026
c27941f
xpu: share device detection module
ashhart Nov 23, 2026
04a02ad
xpu build: one host device_id module for the Qwen27, Flash Next and d…
ashhart Nov 24, 2026
75977e9
xpu: device detection reports no loader off Linux instead of opening one
ashhart Nov 24, 2026
5b2de1c
xpu build: device_id for the 27B device checks that compile qwen27.zig
ashhart Nov 24, 2026
a0fe348
changelog: #4802 under Unreleased
ashhart Nov 24, 2026
deb041e
changelog: #4802 under Unreleased
ashhart Nov 24, 2026
ff73e74
inkling2 metal: routed experts and combine one thread an output, each…
ashhart Nov 23, 2026
aa3422f
inkling2 metal contract: the expert grid byte for byte against main's…
ashhart Nov 24, 2026
439c04b
changelog: inkling2 metal: routed experts and combine one thread an o…
ashhart Nov 24, 2026
7aadce5
changelog: #4894's line from lines/4894.txt in place of its own
ashhart Nov 24, 2026
375b08b
flashnext: a lone stream's copy window takes the width the boot check…
BadAd84 Nov 20, 2026
5e0d6e2
flashnext: the window's waits predicts with the rows its open takes
BadAd84 Nov 23, 2026
447cfb4
flashnext env test: count TF_FLASHNEXT_WINDOW_CHECK (39 settings, 27 …
ashhart Nov 24, 2026
b2fe9c5
docs: Flash Next checks 41 settings with TF_FLASHNEXT_WINDOW_CHECK
ashhart Nov 24, 2026
1b3798b
changelog: #4075 under Unreleased
ashhart Nov 24, 2026
e119ed3
changelog: #4075 under Unreleased
ashhart Nov 24, 2026
38a69cd
XPU qwen27: attn_decode takes a key's twelve exponentials as one vect…
Mirrdhyn Nov 22, 2026
4ae11c8
XPU contract: attn_decode's exponential vector gets a planted control
Mirrdhyn Nov 22, 2026
562b0bc
XPU qwen27: attn_decode vector exp receipts and changelog
Mirrdhyn Nov 22, 2026
b7e7b79
changelog: the attn_decode vector exp line names #4651
Mirrdhyn Nov 22, 2026
19651c1
receipt: the exp and fmax proofs name the IGC and compute-runtime ver…
Mirrdhyn Nov 23, 2026
4219086
xpu: qwen27 decode broadcasts the head max on every lane before lane …
Mirrdhyn Nov 24, 2026
faf9563
receipt: the review fix rerun, contract and served token hashes uncha…
Mirrdhyn Nov 24, 2026
2f34edf
changelog: #4651's line from lines/4651.txt in place of its own
ashhart Nov 24, 2026
0d01898
refactor(server): move the UUID v4 helper to ids.zig
laudney Nov 24, 2026
4638171
feat(ocr): POST /ocr in PaddleX's OCR serving contract
laudney Nov 24, 2026
a7151ef
docs(ocr): document POST /ocr in PaddleX's contract
laudney Nov 24, 2026
a15c7b0
changelog: #2575 under Unreleased
ashhart Nov 24, 2026
40bf172
server inkling2: required calls take the template's own per-message form
ashhart Nov 24, 2026
1d241b0
test(inkling2): the native grammar probe walks the reply in the libra…
ashhart Nov 24, 2026
2df6a90
changelog: inkling2: required tool calls use the template's own messa…
ashhart Nov 24, 2026
fa43c48
changelog: #4898's line from lines/4898.txt in place of its own
ashhart Nov 24, 2026
ad09eda
inkling2 cuda: Mini decode experts a warp 8 output columns, gate and …
jschmied Nov 23, 2026
4c379f9
inkling2 cuda: Mini decode experts take whole scale words in one test…
jschmied Nov 23, 2026
ee2fca2
inkling2 cuda: record the warp-column up launch's usage on every SM
ashhart Nov 24, 2026
df64c54
changelog: #4729 under Unreleased
ashhart Nov 24, 2026
8d12304
changelog: #4729 under Unreleased
ashhart Nov 24, 2026
cd00818
kolibri1 cuda: decode rounds of several rows replay CUDA graphs
ashhart Nov 24, 2026
8385d3c
changelog: kolibri1 cuda: decode rounds of several rows replay CUDA g…
ashhart Nov 24, 2026
0652b79
changelog: #4884's line from lines/4884.txt in place of its own
ashhart Nov 24, 2026
a9f2d99
Metal text-only loads hold no vision weights: Gemma 4 and LFM3-VL pac…
jschmied Nov 15, 2026
55c7dfe
LFM3-VL on Metal keeps both text namespaces: a bare model.* checkpoin…
jschmied Nov 15, 2026
22f6d04
Split Step-5 out: this PR covers Gemma 4 and LFM3-VL only
jschmied Nov 24, 2026
1480565
Drop the Gemma 4 part: main already reads its shards without the tower
jschmied Nov 24, 2026
d66b998
changelog: #3420 under Unreleased
ashhart Nov 24, 2026
2b1758c
inkling2 metal: the router and loop-gate dots a thread an output, bit…
ashhart Nov 24, 2026
8b22692
inkling2 metal: the split shaders' first comments name main's kernels…
ashhart Nov 24, 2026
ea14ffe
inkling2 metal: the 2D split kernels take a 2D thread position
ashhart Nov 24, 2026
17a6ca4
inkling2 metal: one row keeps main's router and loop gate kernels
ashhart Nov 24, 2026
0f1890e
changelog: inkling2 metal: the router and loop-gate dots a thread an …
ashhart Nov 24, 2026
1e5072a
changelog: #4912's line from lines/4912.txt in place of its own
ashhart Nov 24, 2026
4e9c3d7
inkling2 metal: the startup line reports what the serve asks for
BlivionIaG Nov 24, 2026
a098859
inkling2: the Mini admission test lives with native, beside the servi…
ashhart Nov 24, 2026
a191976
changelog: #4705's line from lines/4705.txt in place of its own
ashhart Nov 24, 2026
75cb8fa
nemotron cuda, tests/cuda: room under 600 lines after the rebase onto…
ashhart Nov 17, 2026
ae899da
CHANGELOG, gradient-serving: Nemotron 3.5 Transcribe on CUDA (#1631);…
ashhart Nov 17, 2026
71c7161
server: audio input for Nemotron 3.5 Transcribe (input_audio and audi…
BobClawblaw Oct 30, 2026
4235cab
nemotron transcribe: its trained 65536-token window, an hour of audio…
BobClawblaw Oct 30, 2026
7f238a1
docs: the Nemotron 3.5 Transcribe recipe (one GB10, the bf16 release,…
BobClawblaw Oct 30, 2026
4302fe2
server, lanes: room under 600 lines after the rebase onto main
ashhart Nov 17, 2026
25480da
server: /v1/models lists audio in input_types when the engine takes it
ashhart Nov 17, 2026
bd8d904
nemotron cuda: merge repairs — drop the doubled record/recordBody in …
ashhart Nov 22, 2026
83dea9a
nemotron cuda: carry audio through split lane prefill
ashhart Nov 23, 2026
b3f9691
server: preserve speech voice startup with audio input
ashhart Nov 23, 2026
9687019
cuda: Nemotron 3.5 Transcribe takes --mtp-drafts and --mtp-confidence…
BobClawblaw Nov 24, 2026
b344443
changelog: #1632 under Unreleased
ashhart Nov 24, 2026
95591a9
app changelog: #4072 (titles wait for the reply) under Unreleased
ashhart Nov 24, 2026
9852a75
CONTRIBUTING: a changed reduction order or rounding point keeps every…
ashhart Nov 24, 2026
549b55a
changelog: CONTRIBUTING: a changed reduction order or rounding point …
ashhart Nov 24, 2026
373f828
qwen27 metal: 5-bit and 6-bit g64 keep v1.3.4's K splits on M5
ashhart Nov 24, 2026
ac79d6d
changelog: #4962's line from lines/4962.txt in place of its own
ashhart Nov 24, 2026
a1da855
environment: register TF_Q27_KV_GROW and TF_QWEN_KV_SNAPSHOT_GPU
ashhart Nov 24, 2026
c4af696
docs: the settings and start flag missing before 1.3.5
ashhart Nov 24, 2026
f196d62
changelog: #4963's line from lines/4963.txt in place of its own
ashhart Nov 24, 2026
9d24938
inkling2 metal: serve images under --vision with the image tower, pat…
BlivionIaG Nov 23, 2026
29d03a5
inkling2 metal: log each picture the tower runs with the SHA-256 of i…
BlivionIaG Nov 24, 2026
313131b
docs: the changelog line names the tower log line
BlivionIaG Nov 24, 2026
6862833
changelog: #4704's line from lines/4704.txt in place of its own
ashhart Nov 24, 2026
c2c4366
flashnext cuda: non-final one-rank prompt chunks skip the unread last…
ashhart Nov 24, 2026
e641337
changelog: flashnext cuda: non-final one-rank prompt chunks skip the …
ashhart Nov 24, 2026
3e1c4c5
changelog: #4885's line from lines/4885.txt in place of its own
ashhart Nov 24, 2026
6eb6d13
zonos3: ZONOS3 Mini's backbone on CUDA, checked against the reference…
BobClawblaw Nov 16, 2026
eb0a7c9
zonos3: the frame sampler and the generation loop on the host, checke…
BobClawblaw Nov 16, 2026
57fd2ef
zonos3: the codec decoder on CUDA in fp32, checked against the refere…
BobClawblaw Nov 16, 2026
819f35e
zonos3: text to WAV end to end: the prompt rows, the release's layout…
BobClawblaw Nov 16, 2026
f7fc8e9
zonos3: one-line comments
BobClawblaw Nov 16, 2026
29bb4c5
zonos3: served on /v1/audio/speech: a one-lane CUDA host, the release…
BobClawblaw Nov 20, 2026
d5ad72e
zonos3: streamed replies in growing chunks, the codec's settled sampl…
BobClawblaw Nov 16, 2026
564e5d2
zonos3: a one-line comment
BobClawblaw Nov 16, 2026
971a3f5
zonos3: a request's own voice as reference codes (speaker_reference_c…
BobClawblaw Nov 16, 2026
411a9fc
zonos3: the codec encoder's acoustic branch on CUDA in fp32, checked …
BobClawblaw Nov 16, 2026
a5d476f
zonos3: the SSL teacher on CUDA and its input features on the host, c…
BobClawblaw Nov 16, 2026
10a6175
zonos3: the recipe page (sources, pins, how each check was run and wh…
BobClawblaw Nov 17, 2026
c0b2a4f
zonos3: the reference tool writes four requests
BobClawblaw Nov 17, 2026
0bfa07b
zonos3: the codec quantizer, and a clip's first lane encoded end to e…
BobClawblaw Nov 17, 2026
f99c607
zonos3: a whole reference clip encoded natively in lanes: codes equal…
BobClawblaw Nov 17, 2026
d02c00d
zonos3: voice cloning from an uploaded clip (ref_audio), encoded by t…
BobClawblaw Nov 17, 2026
a129232
zonos3: the recipe page covers the codec encoder and cloning from a clip
BobClawblaw Nov 17, 2026
fc10986
zonos3: the speech field check keeps refusing ref_audio and reference…
BobClawblaw Nov 17, 2026
1cab5f7
zonos3: a browser test page and its pass-through server, and how to r…
BobClawblaw Nov 17, 2026
63ced50
zonos3: draw sampled codes with the lane core's keyed sampler
BobClawblaw Nov 17, 2026
fc080c6
zonos3: launch records for all 40 kernels, contract tests for the nor…
BobClawblaw Nov 17, 2026
ca081af
zonos3 docs: seeded replies from the served build repeat, streamed or…
BobClawblaw Nov 17, 2026
ba1a707
zonos3: memory admission for the load and for the clip encoder
BobClawblaw Nov 17, 2026
9a8eb83
zonos3 docs: the whole kernel-contract run's summary
BobClawblaw Nov 17, 2026
8bb233d
zonos3 docs: the arithmetic reference is the publisher's code in fp32…
BobClawblaw Nov 17, 2026
7bbc1ee
zonos3: contract tests for the other 36 kernels and a planted control…
BobClawblaw Nov 17, 2026
fcbd993
zonos3 docs: the contract tests and controls for all 40 kernels
BobClawblaw Nov 17, 2026
ab95f98
zonos3: the DeepSeek server build gets the request module; kernels.zi…
BobClawblaw Nov 17, 2026
6891c21
zonos3 docs: the repo's checks, the whole contract run and the served…
BobClawblaw Nov 17, 2026
bc896d4
zonos3 docs: the macOS build and unit tests
BobClawblaw Nov 17, 2026
2482121
zonos3 docs: the checks rerun on main 6d0a128b0, and Drama 3 from mai…
BobClawblaw Nov 17, 2026
a1c2f20
zonos3 docs: the Drama speeds to two places
BobClawblaw Nov 17, 2026
64af850
zonos3 docs: the status line names the pull request
BobClawblaw Nov 17, 2026
527ad7c
zonos3 docs: the page after the rebase onto main with #4609: reply op…
BobClawblaw Nov 23, 2026
0141bd0
zonos3: every frame budget a load admits opens the codec, its pass no…
BobClawblaw Nov 24, 2026
3795e60
changelog: #3720 under Unreleased
ashhart Nov 25, 2026
f2bacd2
Merge upstream main into feat/264-merge-upstream-main
plotarmordev Nov 25, 2026
1b78b1a
Merge remote-tracking branch 'upstream/main' into feat/264-merge-upst…
plotarmordev Nov 25, 2026
6b58c71
contract: resolve the glm_vision image both sides registered
plotarmordev Nov 25, 2026
63bfba0
gradient-serving: pin the merged cublaslt, vit and qwen27_slots
plotarmordev Nov 25, 2026
b7ca5fa
fix: review round 1 — startup-tail bound, upstream modelopt records, …
plotarmordev Nov 25, 2026
d569ab4
qwen27 metal: serve SenseNova-Loop-9B natively (BF16 and AWQ g128)
gilby Nov 19, 2026
294f7d0
qwen27: follow main 881e224d's prompt-tail layout within the file limit
ashhart Nov 20, 2026
467d1e5
qwen27: extract routed Metal contract probes for file limit
ashhart Nov 21, 2026
d4e78a2
residency_owner_tests: export sensenova_loop for #3859
gilby Nov 21, 2026
6b4c3d9
qwen27: main's moved keysForward passes shift and rope
ashhart Nov 22, 2026
9bf0962
qwen27 metal: serve SenseNova-Loop-9B natively (BF16 and AWQ g128)
gilby Nov 19, 2026
09c2c24
lanes: fuse drafter absorb and hold via draft_round
gilby Nov 18, 2026
1db7595
qwen27 metal: SenseNova-Loop native MTP drafter
gilby Nov 18, 2026
cedf8f1
docs: SenseNova-Loop MTP environment and recipe receipts
gilby Nov 18, 2026
40d3cbf
qwen27: guard optional mtp host field in residency helpers
gilby Nov 21, 2026
ad658c7
qwen27: SenseNova-Loop's MTP head beside main's Qwen3.8-27B MTP head,…
ashhart Nov 21, 2026
ce0c40c
qwen27: extract served and lane helpers for file limits
ashhart Nov 23, 2026
c8ff827
environment: scope TF_MTP_DRAFTS to CUDA and Metal so XPU ignores it
gilby Nov 24, 2026
4619b51
qwen27: keep qwen27_lanes.zig within 600 lines after the rebase onto …
ashhart Nov 24, 2026
95dcf04
tests: re-pin four Qwen27 serving sources after the rebase onto main'…
ashhart Nov 24, 2026
94e0f2d
changelog: #3868 under Unreleased
ashhart Nov 25, 2026
2249932
Merge upstream/main into feat/264-merge-upstream-main
plotarmordev Nov 25, 2026
ae78e0c
test: bound the startup-tail log check on the deadline, not the clock
plotarmordev Nov 25, 2026
021d7db
Merge remote-tracking branch 'origin/main' into feat/264-merge-upstre…
plotarmordev Nov 25, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
docs(ocr): document POST /ocr in docTR's contract
The API guide adds docTR to the /ocr contract choice, with the
refusal of a body holding both files and file parts, its failure
column, word estimates and scores, whole-page boxes for a reader
without boxes, and the docTR section with its part types and query
options, a repeated option refused; the changelog stays with the
maintainer.
  • Loading branch information
laudney authored and ashhart committed Nov 24, 2026
commit ab223fc73fdde08a8b72d2e198f94b3278de25e9
64 changes: 45 additions & 19 deletions docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -275,12 +275,13 @@ context-window check still applies. Cohere-style requests retain the reranker's

## OCR

The native HIP engine reads pages through two OCR contracts when it serves a model with an OCR reader and
`--vision`. One route answers Mistral's contract; `/ocr` (and `/ocr/`) answers LiteParse's.
The native HIP engine reads pages through three OCR contracts when it serves a model with an OCR reader and
`--vision`. One route answers Mistral's contract; `/ocr` (and `/ocr/`) answers two more, chosen from the request.

| Route | Contract | Request | Reply | Written for |
| --- | --- | --- | --- | --- |
| `POST /v1/ocr` | Mistral OCR | JSON `{"model", "document", ...}` | `{"pages", "model", "document_annotation", "usage_info"}` | the `mistralai` Python and `@mistralai/mistralai` TypeScript SDKs, with `server_url` set to the server root |
| `POST /ocr` | docTR API | multipart, one or more `files` parts, options in the query | one `OCROut` a page | the docTR API template's client |
| `POST /ocr` | LiteParse HTTP OCR | multipart, one `file` part | `{"results": [...]}` | `lit parse --ocr-server-url http://HOST:PORT/ocr` |

Two families have a reader. A reader gives Markdown blocks in pixels of the page the client sent (after EXIF
Expand All @@ -298,11 +299,11 @@ Embedding, reranker and readout engines refuse the OCR routes as they refuse cha

`POST /ocr` picks its contract in this order:

1. `?format=liteparse`. A query parameter sent twice is HTTP 400 ("the format query parameter is repeated; send
it once"), because servers differ on which copy wins.
2. `multipart/form-data`: exactly one part named `file` is LiteParse; any other set of parts is HTTP 400, and so
is a body with any `files` part ("a multipart OCR request has files parts, which this server does not read;
LiteParse sends one file part"), even when `?format=` names the contract.
1. `?format=doctr` or `?format=liteparse`. A query parameter sent twice is HTTP 400 ("the format query parameter is
repeated; send it once", and the same for docTR's parameters), because servers differ on which copy wins.
2. `multipart/form-data`: one or more parts named `files` is docTR; exactly one part named `file` is LiteParse;
any other set of parts is HTTP 400, and so is a body with both `files` and `file` parts, even when `?format=`
names the contract.
3. Any other content type, or none, is HTTP 415.

Refusals made before the contract is known (415, those 400s, a drain's 503 and an admission 429 with
Expand Down Expand Up @@ -349,13 +350,13 @@ stops on its end token and the reader can parse it.

### Failures

| Failure | Mistral | LiteParse |
| --- | --- | --- |
| Bad input: an undecodable or unsupported file, a page or option the server cannot serve, over the page budget | 400 | 400 |
| Unreadable page: the reply was cut at the context limit, repeated without end, broke the model's format or gave a box that is not finite; the image budget was crossed | 422 | 422 |
| The engine stopped the page (it closed or drained) | 503, `Retry-After: 1` | 503, `Retry-After: 1` |
| Engine fault, out of memory, PDF renderer crash or deadline | 500 | 500 |
| Envelope | `{"detail": [{"loc", "msg", "type"}]}`, `type` `bad_input`, `unreadable_page`, `capacity` or `internal` | `{"error": "..."}` |
| Failure | Mistral | docTR | LiteParse |
| --- | --- | --- | --- |
| Bad input: an undecodable or unsupported file, a page or option the server cannot serve, over the page budget | 400 | 400 | 400 |
| Unreadable page: the reply was cut at the context limit, repeated without end, broke the model's format or gave a box that is not finite; the image budget was crossed | 422 | 422 | 422 |
| The engine stopped the page (it closed or drained) | 503, `Retry-After: 1` | 503, `Retry-After: 1` | 503, `Retry-After: 1` |
| Engine fault, out of memory, PDF renderer crash or deadline | 500 | 500 | 500 |
| Envelope | `{"detail": [{"loc", "msg", "type"}]}`, `type` `bad_input`, `unreadable_page`, `capacity` or `internal` | `{"detail": "..."}` | `{"error": "..."}` |

A failed page fails the whole request: no reply returns some pages and drops others. An unreadable page's
message names its index, and the model's raw text goes to the server log, never to the client. 422 means the
Expand All @@ -364,13 +365,17 @@ stops the request before its next page or PDF render.

### Estimates

dots.mocr gives one box a block and GLM-OCR none, so LiteParse's lines estimate what the models do not give:
dots.mocr gives one box a block and GLM-OCR none, so the line contracts estimate what the models do not give:

- **Lines.** A block's plain-text lines (Markdown markup removed, a table one line a row with tab-separated
cells, math without its `$`) divide the block's box into equal bands along its left and right edges, first
line at the top. A paragraph written without line breaks stays one line covering the block.
- **Scores.** Every score is `1.0`: LiteParse `confidence`. Mistral replies leave `confidence_scores` out.
- **No geometry.** With GLM-OCR, Mistral returns `blocks: []` and LiteParse is refused.
- **Words.** docTR's words divide a line's box along its reading direction in proportion to each word's character
count.
- **Scores.** Every score is `1.0`: docTR `confidence` and `objectness_score`, LiteParse `confidence`. Mistral
replies leave `confidence_scores` out.
- **No geometry.** With GLM-OCR, Mistral returns `blocks: []`, docTR gives each line the whole page as its box, and
LiteParse is refused.

### Mistral: `POST /v1/ocr`

Expand All @@ -394,12 +399,33 @@ dots.mocr gives one box a block and GLM-OCR none, so LiteParse's lines estimate
`content`, its own Markdown with its tables in the `table_format` form; image blocks add `image_id` and table
blocks `table_id`. `usage_info` gives `pages_processed` and `doc_size_bytes`, the decoded document's size.

### docTR: `POST /ocr`

Each `files` part's type must be exactly `image/jpeg`, `image/png` or `application/pdf` (the types docTR's API README names),
else HTTP 400 naming the part and its type. Files answer in part order, each PDF page with its file's name. Each page's
`OCROut` follows the reply in docTR's API README: `name`, `orientation` (`{"value": 0, "confidence": null}`: the page as
sent), `language` (`{"value": null, "confidence": null}`), `dimensions` `[height, width]`, `items` with one page of
blocks, lines and words; plus `layout` and `tables`, always `[]` (docTR's docs list both in a page's export).

| Query option | Meaning |
| --- | --- |
| `assume_straight_pages` | Default `true`: boxes `[xmin, ymin, xmax, ymax]`; `false`: 4 points TL, TR, BR, BL. Coordinates are relative to the page and not rounded |
| `resolve_blocks` | Default `false`: one block a page; `true`: one block for each reader block |
| `resolve_lines` | Default `true`: one line for each text line; `false`: one line of all the page's words |
| `detect_orientation`, `detect_language` | Accepted; neither is estimated: `orientation` stays 0 and `language` null |
| `detect_tables`, `detect_layout`, `straighten_pages` | Accepted only when false; `layout` and `tables` are always `[]` |
| `paragraph_break` | Accepted only at its documented default, 0.035 |
| `bin_thresh`, `box_thresh` | Refused: TensorFold has no text detector to apply them to |
| `det_arch`, `reco_arch` and the batch options | Ignored: the served model reads every page |

A boolean option takes `true`, `t`, `yes`, `y`, `on` or `1`, or `false`, `f`, `no`, `n`, `off` or `0`, in any case; another
value is HTTP 400.

### LiteParse: `POST /ocr`

The contract is LiteParse's published
[OCR API specification](https://github.com/run-llama/liteparse/blob/main/OCR_API_SPEC.md). One `file` part holds a PNG,
JPEG or WebP page image; `language` and other parts are ignored, but a `files` part is HTTP 400 (above). A PDF is
HTTP 400: the specification sends an image.
JPEG or WebP page image; `language` and other parts are ignored. A PDF is HTTP 400: the specification sends an image.
Each line is one result `{"text", "bbox", "confidence"}`: `bbox` is the line's axis-aligned `[x1, y1, x2, y2]` in
pixels of the image received, and `confidence` is `1.0`, the value the specification asks for when the engine gives
none. The specification's optional `polygon` is not sent: it gives the point order, but not how LiteParse turns a
Expand Down