Skip to content
Merged
Show file tree
Hide file tree
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
server inkling2: required calls take the template's own per-message form
Inkling 2's chat template writes every tool call as its own model message,
<|message_model|>NAME<|content_invoke_tool_json|>{"name":NAME,"args":{...}}
<|end_message|>, back to back, and ends the turn with its end of sampling.
The required-tool grammar instead forced the generic
<tool_call>{...}</tool_call> envelope with blanks between calls, a form the
model was not trained on. Unconstrained, its top choice after each
</tool_call> is a newline, so a two-call request kept calling to the cap.

With the native Inkling 2 template, a required or named call now compiles
a grammar in that per-message form: one call message, or with parallel
calls one or more, the grammar's stop being the end of sampling. It is
compiled on the shared compiler, whose stops are the eos ids alone, since
the end of message is now part of each call. The generic grammar, its
compiler and the complete-call stop are unchanged for every other case;
auto, plain and JSON-schema requests and every other family are untouched.

Whether the grammar library lets a grammar constant match Inkling 2's
special tokens is checked by a probe that skips without the library.
  • Loading branch information
ashhart committed Nov 24, 2026
commit 40bf172c45cb7d7d4b2dd9745418c155807e559a
9 changes: 7 additions & 2 deletions zig/src/server/inkling2_chat_test.zig
Original file line number Diff line number Diff line change
Expand Up @@ -128,11 +128,14 @@ pub const Seen = struct {
grammars: usize = 0, // grammars the shared compiler compiled (ends: the eos ids)
tool_grammars: usize = 0, // grammars the required-call compiler compiled (ends: eos and the end of message)
token_ids: []const u8 = "", // the tensorfold block's token_ids, as JSON, when the request asked for them
grammar: []const u8 = "", // the shared compiler's last grammar text
};

/// Grammars accepted as compiled, with no grammar library: the route attaches them, the script ignores them.
const Grammars = struct {
compiled: usize = 0,
text: [16384]u8 = undefined, // the last grammar's text, cut at the buffer
len: usize = 0,
fn compiler(g: *Grammars) api.grammar.Compiler {
var out: api.grammar.Compiler = undefined;
out.h = g;
Expand All @@ -142,9 +145,11 @@ const Grammars = struct {
out.f.close = free;
return out;
}
fn compile(ptr: *anyopaque, _: c_int, _: [*]const u8, _: usize, _: [*]u8, _: usize) callconv(.c) ?*anyopaque {
fn compile(ptr: *anyopaque, _: c_int, text: [*]const u8, len: usize, _: [*]u8, _: usize) callconv(.c) ?*anyopaque {
const g: *Grammars = @ptrCast(@alignCast(ptr));
g.compiled += 1;
g.len = @min(len, g.text.len);
@memcpy(g.text[0..g.len], text[0..g.len]);
return ptr;
}
fn free(_: *anyopaque) callconv(.c) void {}
Expand Down Expand Up @@ -265,7 +270,7 @@ fn runMode(a: std.mem.Allocator, kind: []const u8, reply: []const u32, extra: []
if (d.get("text")) |c| if (c == .string) try content.appendSlice(a, c.string);
if (d.get("tool_calls")) |calls| if (calls == .array) for (calls.array) |call| try appendCall(a, call, &ids, &names, &arguments);
}
return .{ .reasoning = reasoning.items, .content = content.items, .ids = ids.items, .names = names.items, .arguments = arguments.items, .rejected = rejected, .finish = finish, .usage = usage, .kept = kept, .eos_len = script.eos_len, .grammars = grammars.compiled, .tool_grammars = tool_grammars.compiled, .token_ids = token_ids };
return .{ .reasoning = reasoning.items, .content = content.items, .ids = ids.items, .names = names.items, .arguments = arguments.items, .rejected = rejected, .finish = finish, .usage = usage, .kept = kept, .eos_len = script.eos_len, .grammars = grammars.compiled, .tool_grammars = tool_grammars.compiled, .token_ids = token_ids, .grammar = try a.dupe(u8, grammars.text[0..grammars.len]) };
}

pub fn ask(a: std.mem.Allocator, kind: []const u8, reply: []const u32, extra: []const u8, stream: bool, stride: usize) !Seen {
Expand Down
99 changes: 99 additions & 0 deletions zig/src/server/inkling2_native_required_test.zig
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
//! Inkling 2's required calls under its native per-message grammar: the route, and the grammar library's own masks.
const std = @import("std");
const json = @import("json");
const api = @import("engine_api");
const h = @import("inkling2_chat_test.zig");
const inkling = @import("tool_grammar_inkling.zig");
const t = std.testing;

const required = h.lookup ++ ",\"tool_choice\":\"required\",\"return_token_ids\":true";
const eos: u32 = 2; // the fixture's end of sampling (generation_config.json)

inline fn message(comptime q: []const u8) []const u8 {
return inkling.open ++ "lookup" ++ inkling.invoke ++ "{\"name\":\"lookup\",\"args\":{\"q\":\"" ++ q ++ "\"}}" ++ inkling.end;
}

/// Native call messages ended by the end of sampling, whole and at every stride: names, arguments, finish and grammar.
fn expectCalls(a: std.mem.Allocator, raw: []const u8, comptime extra: []const u8, names: []const u8, arguments: []const u8, star: bool) !void {
const reply = try std.mem.concat(a, u32, &.{ try h.encodeReply(a, raw), &.{eos} });
for ([_]usize{ 0, 1, 2, 3, 256 }) |stride| {
const got = try h.ask(a, "release", reply, required ++ extra, stride > 0, @max(stride, 1));
try t.expectEqualStrings(names, got.names);
try t.expectEqualStrings(arguments, got.arguments);
try t.expectEqualStrings("tool_calls", got.finish);
// the template's own call form on the shared compiler, whose stops are the eos ids alone
try t.expectEqual(@as(usize, 1), got.grammars);
try t.expectEqual(@as(usize, 0), got.tool_grammars);
try t.expect(std.mem.indexOf(u8, got.grammar, inkling.open ++ "lookup" ++ inkling.invoke) != null);
try t.expect(std.mem.indexOf(u8, got.grammar, "<tool_call>") == null);
try t.expectEqual(star, std.mem.indexOf(u8, got.grammar, "\"type\":\"star\"") != null);
}
}

test "Inkling 2 reply: a required request takes the native grammar; two call messages give two calls" {
var arena = std.heap.ArenaAllocator.init(t.allocator);
defer arena.deinit();
const a = arena.allocator();
try expectCalls(a, message("Paris") ++ message("Tokyo"), "", "lookuplookup", "{\"q\":\"Paris\"}{\"q\":\"Tokyo\"}", true);
}

test "Inkling 2 reply: one and three native call messages, parallel calls on and off" {
var arena = std.heap.ArenaAllocator.init(t.allocator);
defer arena.deinit();
const a = arena.allocator();
try expectCalls(a, message("x"), "", "lookup", "{\"q\":\"x\"}", true);
try expectCalls(a, message("x") ++ message("y") ++ message("z"), "", "lookuplookuplookup", "{\"q\":\"x\"}{\"q\":\"y\"}{\"q\":\"z\"}", true);
try expectCalls(a, message("x"), ",\"parallel_tool_calls\":false", "lookup", "{\"q\":\"x\"}", false);
}

/// The fixture's real tokenizer (Inkling 2's special tokens at their ids) and its logits width.
fn tokenizer(a: std.mem.Allocator) !struct { text: []const u8, vocab: u32 } {
const at = "zig/src/families/inkling2/fixtures/";
const text = try std.Io.Dir.cwd().readFileAlloc(t.io, at ++ "mini_tokenizer.json", a, .limited(1 << 26));
const config = (try json.parseText(a, try std.Io.Dir.cwd().readFileAlloc(t.io, at ++ "mini_config.json", a, .limited(1 << 20)))).ok;
const vocab = config.get("text_config").?.get("vocab_size").?;
return .{ .text = text, .vocab = try std.fmt.parseInt(u32, vocab.int, 10) };
}

fn allowed(words: []const u32, id: u32) bool {
return words[id / 32] >> @intCast(id % 32) & 1 == 1;
}

// The grammar library decides whether a constant may spell a special token; this host has none, so the test skips.
test "Inkling 2 reply: probe, the grammar library opens a native reply on <|message_model|> and ends it at the end of sampling" {
var arena = std.heap.ArenaAllocator.init(t.allocator);
defer arena.deinit();
const a = arena.allocator();
const tok = try tokenizer(a);
const end_sampling: u32 = 200006;
var err: [512]u8 = undefined;
var c = api.grammar.Compiler.open(t.io, a, tok.text, tok.vocab, &.{end_sampling}, &err) catch |e| switch (e) {
error.NoGrammarLibrary => return error.SkipZigTest,
else => return e,
};
defer c.close();
const tools = (try json.parse(a, "[" ++ h.lookup[",\"tools\":[".len..])).ok;
const g = try c.compile(t.io, .structural_tag, try inkling.build(a, tools.array, true), &err);
defer g.free();
const m = try g.matcher();
const r = m.rules();
defer r.vtable.free(r.ptr);
const words = try a.alloc(u32, c.words);
const ids = try h.encodeReply(a, message("x") ++ message("y"));
const model: u32 = 200001;
try t.expectEqual(model, ids[0]);
// the one-token probe: the reply's first token may be <|message_model|>, and nothing generic is
try r.vtable.fill(r.ptr, words);
try t.expect(allowed(words, model));
try t.expect(!allowed(words, end_sampling));
const first_end = std.mem.indexOfScalar(u32, ids, 200010).?;
for (ids, 0..) |id, i| {
try t.expect(try r.vtable.accept(r.ptr, id));
if (i == first_end) { // after a whole call: another call's message, or the end of sampling
try r.vtable.fill(r.ptr, words);
try t.expect(allowed(words, model) and allowed(words, end_sampling));
}
}
try t.expect(try r.vtable.accept(r.ptr, end_sampling));
try t.expect(r.vtable.terminated(r.ptr));
}
1 change: 1 addition & 0 deletions zig/src/server/inkling2_required_test.zig
Original file line number Diff line number Diff line change
Expand Up @@ -178,4 +178,5 @@ test "Inkling 2 reply: a json_schema reply ends on the same token ids as before
test {
_ = @import("inkling2_stop_test.zig");
_ = @import("inkling2_thinking_test.zig");
_ = @import("inkling2_native_required_test.zig");
}
3 changes: 2 additions & 1 deletion zig/src/server/inkling2_stop_test.zig
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@ fn partialSecond(lane: bool) !void {
var failures: usize = 0;
for ([_]usize{ 0, 1, 2, 3, 256 }) |stride| {
const got = if (lane) try h.askLane(a, "release", reply, required, stride > 0, @max(stride, 1)) else try h.ask(a, "release", reply, required, stride > 0, @max(stride, 1));
// the required grammar is Inkling 2's native form, on the shared compiler
const exact = std.mem.eql(u8, "lookuplookup", got.names) and
std.mem.eql(u8, "{\"q\":\"x\"}{\"q\":\"y\"}", got.arguments) and
std.mem.eql(u8, "tool_calls", got.finish) and std.mem.eql(u8, want, got.token_ids) and
got.eos_len == plain.eos_len and got.grammars == 0 and got.tool_grammars == 1;
got.eos_len == plain.eos_len and got.grammars == 1 and got.tool_grammars == 0;
std.debug.print("INKLING_STOP_CELL lane={any} stride={d} exact={any} calls={s} eos={d}/{d}\n", .{ lane, stride, exact, got.names, got.eos_len, plain.eos_len });
if (!exact) failures += 1;
}
Expand Down
25 changes: 21 additions & 4 deletions zig/src/server/tool_grammar.zig
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const prompt = @import("prompt.zig");
const tool_specs = @import("tool_specs.zig");
const lfm2 = @import("tool_grammar_lfm2.zig");
const deepseek = @import("tool_grammar_deepseek.zig");
const inkling = @import("tool_grammar_inkling.zig");
const max_text = @import("grammar.zig").max_text;
const Server = @import("server.zig").Server;
const Value = json.Value;
Expand Down Expand Up @@ -44,6 +45,7 @@ const mm = "]<]minimax[>[";
/// The grammar for a reply that must call one of `tools`: one call, or (`parallel`) one or more, then the end.
pub fn structure(srv: *Server, cx: *Cx, tools: []const Value, parallel: bool, thinking: bool) errors.Refused!api.Structure {
const rendered = try probed(srv, cx);
if (@import("chat_inkling2.zig").enabled(srv) and inkling.isNative(rendered, probe)) return native(srv, cx, tools, parallel, thinking);
const s = style(rendered) orelse .json; // unrecognized markup uses the canonical call form the parser accepts
const markup = lfm2.isStyle(rendered, probe, key);
// measured for one call: parallel calls repeat that call's rule, and the limit counts each tool once
Expand All @@ -57,6 +59,17 @@ pub fn structure(srv: *Server, cx: *Cx, tools: []const Value, parallel: bool, th
return st;
}

/// Inkling 2's required calls as its template writes them, on the shared compiler: its stops are the eos ids alone.
fn native(srv: *Server, cx: *Cx, tools: []const Value, parallel: bool, thinking: bool) errors.Refused!api.Structure {
const once = try inkling.build(cx.a, tools, false);
try fits(cx, once);
const text = if (parallel) try inkling.build(cx.a, tools, true) else once;
const reason = try std.fmt.allocPrint(cx.a, "tool_choice \"required\" or a named function on backend '{s}'", .{srv.backendName()});
var st = try srv.compiledStructure(cx, .structural_tag, text, reason, thinking);
st.field = "tool_choice";
return st;
}

/// An auto reply's grammar: free text or calls, strict tools' arguments in their schema; null for LFM2's markup.
pub fn optionalStructure(srv: *Server, cx: *Cx, tools: []const Value, all: bool, parallel: bool, thinking: bool) errors.Refused!?api.Structure {
const rendered = try probed(srv, cx);
Expand Down Expand Up @@ -241,7 +254,7 @@ fn call(a: Allocator, s: Style, name: []const u8, schema: Value, constrained: bo
}

/// The tool's parameter schema (OpenAI's function.parameters, a bare tool's parameters or input_schema).
fn parameters(a: Allocator, tool: Value) Allocator.Error!Value {
pub fn parameters(a: Allocator, tool: Value) Allocator.Error!Value {
const function = if (tool.get("function")) |f| (if (f == .object) f else tool) else tool;
for ([_][]const u8{ "parameters", "input_schema" }) |k| if (function.get(k)) |p| if (p == .object) return p;
const empty = try json.newObject(a);
Expand All @@ -255,15 +268,15 @@ fn anyObject(a: Allocator) Allocator.Error!Value {
return node(a, "object", &.{.{ "additionalProperties", .{ .bool = true } }});
}

fn arguments(a: Allocator, schema: Value, style_name: []const u8) Allocator.Error!Value {
pub fn arguments(a: Allocator, schema: Value, style_name: []const u8) Allocator.Error!Value {
return node(a, "json_schema", &.{ .{ "json_schema", schema }, .{ "style", .{ .string = style_name } }, .{ "max_whitespace_cnt", try json.intValue(a, value_blanks) } });
}

fn constant(a: Allocator, text: []const u8) Allocator.Error!Value {
pub fn constant(a: Allocator, text: []const u8) Allocator.Error!Value {
return node(a, "const_string", &.{.{ "value", .{ .string = text } }});
}

fn list(a: Allocator, items: []const Value) Allocator.Error!Value {
pub fn list(a: Allocator, items: []const Value) Allocator.Error!Value {
return .{ .array = try a.dupe(Value, items) };
}

Expand All @@ -275,6 +288,10 @@ pub fn node(a: Allocator, kind: []const u8, entries: []const struct { []const u8
return .{ .object = o };
}

test {
_ = inkling;
}

test "the probe call's markup picks the style" {
try std.testing.expectEqual(Style.xml, style("<think></think><tool_call>\n<function=tfprobe_fn>\n<parameter=tfprobe_k>\nv\n</parameter>\n</function>\n</tool_call>\n").?);
try std.testing.expectEqual(Style.json, style("<tool_call>\n{\"name\": \"tfprobe_fn\", \"arguments\": {\"tfprobe_k\": \"v\"}}\n</tool_call>").?);
Expand Down
55 changes: 55 additions & 0 deletions zig/src/server/tool_grammar_inkling.zig
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
//! Inkling 2's required calls in its template's own form: each call a model message, then the end of sampling.
const std = @import("std");
const json = @import("json");
const tg = @import("tool_grammar.zig");
const tool_specs = @import("tool_specs.zig");
const Value = json.Value;
const Allocator = std.mem.Allocator;

pub const open = "<|message_model|>";
pub const invoke = "<|content_invoke_tool_json|>";
pub const end = "<|end_message|>";

/// Whether `rendered`, the template's turn calling `probe`, writes Inkling 2's own call message.
pub fn isNative(rendered: []const u8, comptime probe: []const u8) bool {
return std.mem.indexOf(u8, rendered, open ++ probe ++ invoke) != null;
}

/// The structural tag: one call message, or (`parallel`) one or more back to back; the stop is the end of sampling.
pub fn build(a: Allocator, tools: []const Value, parallel: bool) Allocator.Error![]const u8 {
const calls = try a.alloc(Value, tools.len);
for (tools, calls) |tool, *c| c.* = try call(a, try tool_specs.toolName(a, tool), try tg.parameters(a, tool));
const one = if (calls.len == 1) calls[0] else try tg.node(a, "or", &.{.{ "elements", .{ .array = calls } }});
const format = if (!parallel) one else try tg.node(a, "sequence", &.{.{ "elements", try tg.list(a, &.{ one, try tg.node(a, "star", &.{.{ "content", one }}) }) }});
return json.stringify(a, try tg.node(a, "structural_tag", &.{.{ "format", format }}), .{ .ascii = false, .compact = true });
}

/// `<|message_model|>NAME<|content_invoke_tool_json|>{"name":NAME,"args":{...}}<|end_message|>`, args in `schema`.
fn call(a: Allocator, name: []const u8, schema: Value) Allocator.Error!Value {
const fixed = try json.newObject(a);
try fixed.put(a, "const", .{ .string = name });
const props = try json.newObject(a);
try props.put(a, "name", .{ .object = fixed });
try props.put(a, "args", schema);
const whole = try json.newObject(a);
try whole.put(a, "type", .{ .string = "object" });
try whole.put(a, "properties", .{ .object = props });
try whole.put(a, "required", try tg.list(a, &.{ .{ .string = "name" }, .{ .string = "args" } }));
const opener = try std.mem.concat(a, u8, &.{ open, name, invoke });
return tg.node(a, "sequence", &.{.{ "elements", try tg.list(a, &.{ try tg.constant(a, opener), try tg.arguments(a, .{ .object = whole }, "json"), try tg.constant(a, end) }) }});
}

test "Inkling 2 reply: the native required grammar writes each call as its own model message, repeated only in parallel" {
var arena = std.heap.ArenaAllocator.init(std.testing.allocator);
defer arena.deinit();
const a = arena.allocator();
const tools = (try json.parse(a, "[{\"type\":\"function\",\"function\":{\"name\":\"get_weather\",\"parameters\":{\"type\":\"object\",\"properties\":{\"city\":{\"type\":\"string\"}},\"required\":[\"city\"]}}}]")).ok;
const single = try build(a, tools.array, false);
for ([_][]const u8{ "<|message_model|>get_weather<|content_invoke_tool_json|>", "\"args\"", "\"const\":\"get_weather\"", "\"city\"", "<|end_message|>" }) |text|
try std.testing.expect(std.mem.indexOf(u8, single, text) != null);
// no generic envelope, no blanks rule and no repeat without parallel calls
for ([_][]const u8{ "<tool_call>", "\"regex\"", "\"type\":\"star\"" }) |text| try std.testing.expect(std.mem.indexOf(u8, single, text) == null);
try std.testing.expect(std.mem.indexOf(u8, try build(a, tools.array, true), "\"type\":\"star\"") != null);
try std.testing.expect(isNative("<|message_model|>tfprobe_fn<|content_invoke_tool_json|>{\"name\":\"tfprobe_fn\",\"args\":{}}<|end_message|>", "tfprobe_fn"));
try std.testing.expect(!isNative("<tool_call>{\"name\":\"tfprobe_fn\",\"arguments\":{}}</tool_call>", "tfprobe_fn"));
}