Skip to content
Merged
Show file tree
Hide file tree
Changes from 42 commits
Commits
Show all changes
495 commits
Select commit Hold shift + click to select a range
da58fab
ling: batch 4 prompt rows per Q4_K_8x4 weight block pass in fast mode
ThinkOffApp Nov 20, 2026
6540ec5
ling: batch 4 prompt rows per Q6_K_8x4 weight block pass in fast mode
ThinkOffApp Nov 20, 2026
f591e29
ling: group routed experts across prompt chunk rows in fast mode
ThinkOffApp Nov 20, 2026
683af48
ling: guard madvise in releaseSourcePages for Windows builds
ThinkOffApp Nov 20, 2026
c0934b6
ling: skip discarded non-final lm_head rows during prompt prefill
ThinkOffApp Nov 20, 2026
d2d042c
Replace Ling interleaved kernels with native eight-row GGUF block tiles
ThinkOffApp Nov 21, 2026
9d21d37
ling: validate repack cache source SHA, entry table, and payload SHA …
ThinkOffApp Nov 21, 2026
6ef0c86
ling: add direct GGUF metadata, KV-head, clamp, EOS, and tensor-plan …
ThinkOffApp Nov 21, 2026
cf5ea1b
Ling CPU recipe: fast-mode accuracy, fast-core affinity, v5 cache name
ThinkOffApp Nov 21, 2026
cfd3f85
Share GGUF block decoding across Ling prompt rows
ThinkOffApp Nov 21, 2026
ba01540
Ling CPU recipe: cache check cost, measured exact and fast figures, t…
ThinkOffApp Nov 21, 2026
b28d9e0
Ling CPU recipe: exact figures from the final-head receipt
ThinkOffApp Nov 21, 2026
32ccfa2
Ling CPU: remove --fast mode
ThinkOffApp Nov 22, 2026
d86cf92
Ling CPU recipe: exact path only
ThinkOffApp Nov 22, 2026
c5df6a2
Ling CPU recipe: describe the thread pinning the pool does
ThinkOffApp Nov 22, 2026
a96e998
Ling CPU recipe: exact figures from the round 3 board receipt
ThinkOffApp Nov 22, 2026
802053d
changelog: #4266 under Unreleased
ashhart Nov 24, 2026
0a64f77
Revert "uocr: cancel-test fakes build Model and Decoder without std.m…
plotarmordev Nov 24, 2026
d0fbf6b
glm cuda: retain completed shared-cache prefixes on prefill cancellation
MaverickKB Nov 23, 2026
3993128
changelog: #4694 under Unreleased
ashhart Nov 24, 2026
847baad
Merge remote-tracking branch 'upstream/main' into feat/249-merge-upst…
plotarmordev Nov 24, 2026
e6b739c
Merge remote-tracking branch 'upstream/main' into feat/249-merge-upst…
plotarmordev Nov 24, 2026
50d823e
Desktop: restore the two engine types the Discover revision change dr…
ashhart Nov 24, 2026
3bca5ea
changelog: #4829 under Unreleased
ashhart Nov 24, 2026
b75d166
flashnext cuda: the MTP rows' row best runs over 32 blocks a row, fn_…
jayleaton Nov 21, 2026
d2cab46
flashnext cuda: the MTP head's bytes count the split row best's scratch
jayleaton Nov 23, 2026
025f0f4
changelog: #4632's line from lines/4632.txt in place of its own
ashhart Nov 24, 2026
f390857
changelog: #4632's line from lines/4632.txt in place of its own
ashhart Nov 24, 2026
e19ce95
idol: tf-idol-generate runs one picture end to end on Metal, both enc…
jayleaton Oct 31, 2026
d9015cd
idol: tf-idol-generate refuses a picture tensor in the other layout, …
jayleaton Nov 20, 2026
e184b0b
docs: Idol's end-to-end generation moves to idol-generate.md, keeping…
jayleaton Nov 20, 2026
cce47f7
docs: kernel-contract.md's Idol paragraph condensed, keeping the file…
jayleaton Nov 20, 2026
b068a7b
idol: pin torch's seed-42 starting noise in a host test, as review asks
jayleaton Nov 23, 2026
1092163
changelog: #1780 under Unreleased
ashhart Nov 24, 2026
358f2bb
idol: free finalized coordinates on descent failure
ashhart Nov 21, 2026
28a2438
idol: balance root and trace allocation failures
ashhart Nov 21, 2026
4ec627a
changelog: #4304 under Unreleased
ashhart Nov 24, 2026
6a90103
changelog: #4304 under Unreleased
ashhart Nov 24, 2026
6efef02
qwen27 metal: opt-in MTP absorb fusion and GPU draft pick
ashhart Nov 22, 2026
c8fb7b5
tests: TF_Q27_MTP_GPU_PICK's valid forms are in the environment table
ashhart Nov 22, 2026
3cde06a
changelog: #4570 under Unreleased
ashhart Nov 24, 2026
b77c2d8
qwen27: Qwen3.6-35B-A3B on #1125's routed path, 16 query heads over 2…
cshintov Nov 6, 2026
bb1208d
contract: the routed block's kernels at Qwen3.6-35B-A3B's served widt…
cshintov Nov 6, 2026
dedac97
docs: the kernel contract's qwen27 attention and the 35B-A3B's routed…
cshintov Nov 6, 2026
8411558
qwen27, contract: comments on one line within 120 columns (lean)
cshintov Nov 6, 2026
a12f955
qwen27: staged references on Metal (tf-qwen27-run --stages) against a…
cshintov Nov 6, 2026
754fc35
qwen27: staged references take a headless prompt chunk (0 logit rows)…
cshintov Nov 6, 2026
b02c668
contract: qwen27 attention's decode and prompt rows at the 35B-A3B's …
cshintov Nov 6, 2026
7fea7db
core: export qwen35_stages for the qwen27 stage recorder
cshintov Nov 14, 2026
b6b59e2
Qwen3.5 host tables: the 35B-A3B's row; stage_ref test skips without mlx
cshintov Nov 16, 2026
f055d4a
qwen35 rules: the zero head count test counts the 35B-A3B's Metal 27B…
cshintov Nov 20, 2026
ef41a36
qwen27: the stage recorder is built into tf-qwen27-run only; --vision…
cshintov Nov 22, 2026
7523423
qwen27: stage_planes.begin starts a round's planes and marks the last…
cshintov Nov 22, 2026
8466dfa
changelog: #3239 under Unreleased
ashhart Nov 24, 2026
7d3e737
refactor(contract): share Inkling 2's attention reference from core
AbrahamCete Nov 22, 2026
7997cf5
feat(hip): Inkling 2 attention kernels under the kernel contract
AbrahamCete Nov 22, 2026
7def053
test(contract): pin the shared Inkling 2 reference on every branch
AbrahamCete Nov 22, 2026
8c8c330
test(hip): Inkling 2 global rows below the extent and NaN sink and gate
AbrahamCete Nov 22, 2026
5bad7f0
fix(hip): refuse an Inkling 2 ring the attention tiles cannot read
AbrahamCete Nov 22, 2026
0cc8040
test(hip): pin Inkling 2's bf16 P with exact sliding and fold rows
AbrahamCete Nov 22, 2026
c5717b6
fix(hip): Inkling 2 attend takes its stream count and partial room as…
AbrahamCete Nov 22, 2026
ef4dd75
changelog: #4633 under Unreleased
ashhart Nov 24, 2026
8ebcb82
glm metal: size the rows-store staging permit from the deepest state …
devopsfortunato Nov 20, 2026
a061e05
changelog: #4216 under Unreleased
ashhart Nov 24, 2026
d0e3929
changelog: #4216 under Unreleased
ashhart Nov 24, 2026
c5ebf04
drama3 compact GB10 check: codec-chunk PCM reported, not gated; every…
plotarmordev Nov 21, 2026
36b7e54
drama3 compact GB10 check: replay may stop at the chunk 4 or 16 PCM c…
plotarmordev Nov 21, 2026
203567f
drama3 compact GB10 check: replay goes through drama3_replay_gate.sh
plotarmordev Nov 21, 2026
592e3db
drama3 compact GB10 check: each PCM measurement is its own command, s…
plotarmordev Nov 21, 2026
dfb2e9b
door: card 166 GB10 receipt on PR head b2dbff0a7, main's script vs th…
plotarmordev Nov 21, 2026
3901096
Revert "door: card 166 GB10 receipt on PR head b2dbff0a7, main's scri…
plotarmordev Nov 22, 2026
9ade596
drama3 replay: a codec chunk 4 or 16 PCM difference waits for the for…
plotarmordev Nov 22, 2026
ea11d85
drama3 replay gate: only the PCM-only outcome line passes, never the …
plotarmordev Nov 22, 2026
72b0364
drama3 replay gate: the PCM-only line must carry both numbers in repl…
plotarmordev Nov 22, 2026
0eae64d
drama3 replay: bound every codec PCM difference before gate acceptance
plotarmordev Nov 23, 2026
bd8def9
drama3 gate: keep source comment single-line
plotarmordev Nov 23, 2026
82ec0c1
changelog: #4463 under Unreleased
ashhart Nov 24, 2026
69bd368
qwen35 cuda: opt-in grouped same-input projections keeping each proje…
ashhart Nov 22, 2026
cabaf4b
cuda tests: group-proj, each grouped projection's bytes against its o…
ashhart Nov 22, 2026
609dc59
rebase: retain main environment test coverage
ashhart Nov 23, 2026
e4f5074
rebase: repair serving pins and mixed GDN grouping
ashhart Nov 23, 2026
5dc043d
changelog: #4515 under Unreleased
ashhart Nov 24, 2026
59c0ffc
Merge remote-tracking branch 'upstream/main' into feat/249-merge-upst…
plotarmordev Nov 24, 2026
904ed74
metal: split-plane 5-bit and 6-bit register-direct lane kernels
gilby Nov 21, 2026
aafebc9
changelog: #4419 under Unreleased
ashhart Nov 24, 2026
4b77f32
qwen27: the family test root imports bf16_topk, which upstream's mtp_…
plotarmordev Nov 24, 2026
fac987d
info: the refused-shape test uses 20 heads over 2, since upstream b77…
plotarmordev Nov 24, 2026
860ce11
test flashnext: reproduce refused SSD pool budgets without devices
ashhart Nov 23, 2026
347b565
flashnext metal: fit a refused SSD pool maximum inside the load ceiling
ashhart Nov 23, 2026
3078d84
test(flashnext): expose host admission and reproduce SSD review failures
ashhart Nov 23, 2026
84169f3
fix(flashnext): validate admission before selecting a mutable SSD pool
ashhart Nov 23, 2026
2ef5eab
fix(ci): include SSD budget and review checks in host coverage
ashhart Nov 23, 2026
2bab66d
fix(flashnext): cap automatic cache by allocated SSD pool headroom
ashhart Nov 23, 2026
5807f02
fix(flashnext): reprice placement overhead after fitting the pool
ashhart Nov 23, 2026
5b84f1f
fix(flashnext): retain rotary headroom when fitting refused SSD pools
ashhart Nov 23, 2026
46e6d4e
fix(fsr): account forecast jobs within the existing Flash Next allowance
ashhart Nov 23, 2026
24cc933
fix(fsr): free a slab when held-buffer registration fails
ashhart Nov 23, 2026
3e62851
fix(flashnext): keep existing automatic-cache receipts when their gra…
ashhart Nov 23, 2026
81829ac
style(flashnext): format SSD review controls and budget guards
ashhart Nov 23, 2026
7333374
fix(fsr): itemize forecast tickets without changing legacy plan bytes
ashhart Nov 23, 2026
7877797
test(cache): retain an automatic maximum without a footprint reading
ashhart Nov 23, 2026
ca028b7
fix(cache): retain automatic maximum when footprint readings disappear
ashhart Nov 23, 2026
d402399
changelog: Flash Next on Metal: fit an oversized SSD expert pool to t…
ashhart Nov 23, 2026
5529de1
test(flashnext): guard selected loader budgets and every load entry
ashhart Nov 24, 2026
ea37382
changelog: #4811's line from lines/4811.txt in place of its own
ashhart Nov 24, 2026
2f59589
inkling2: accept Mini host config and checkpoint names
ashhart Nov 21, 2026
da3516e
inkling2: model the Mini loop on the host
ashhart Nov 21, 2026
5f4b3bf
inkling2: run checkpoint-packed experts on CUDA
ashhart Nov 21, 2026
ab5df3e
inkling2: run Mini loop math on CUDA
ashhart Nov 21, 2026
c1abe27
inkling2: serve Mini text on one CUDA rank
ashhart Nov 21, 2026
ba1733b
lanes: make full lone-window commits opt-in
ashhart Nov 21, 2026
178a1d3
inkling2: add Mini Metal kernels and contracts
ashhart Nov 21, 2026
0561282
inkling2: serve Mini natively on Metal
ashhart Nov 21, 2026
8e97f05
inkling2: document Mini fixture and reference provenance
ashhart Nov 21, 2026
db36991
inkling2: normalize before CUDA query reductions
ashhart Nov 21, 2026
4377650
inkling2: control packed-expert contracts by phase
ashhart Nov 21, 2026
812e059
inkling2: fix native Metal Mini admission and serving
ashhart Nov 21, 2026
7ce15f1
inkling2: prove Mini CUDA serving equivalence
ashhart Nov 21, 2026
a49305b
inkling2: compile Mini CUDA tests against current lane types
ashhart Nov 21, 2026
c990086
inkling2: link Metal host tests on macOS
ashhart Nov 21, 2026
4909af1
inkling2: fix nonfinite prompt expert launches
ashhart Nov 21, 2026
fb021f1
inkling2: refresh Mini limits and quiet shape refusal
ashhart Nov 21, 2026
ec277c1
inkling2: complete native Metal admission and serving tests
ashhart Nov 21, 2026
8060651
inkling2: adapt Metal checkpoint modules to main
ashhart Nov 23, 2026
42161cd
inkling2 cuda: load the Mini checkpoint (one precision a layer, one a…
jschmied Nov 22, 2026
bd57586
inkling2 cuda: pass the attention gate and sink to tf_ink2_merge raw
jschmied Nov 22, 2026
a4f40f4
inkling2 cuda: write cross-pass messages plane-major, as the gates re…
jschmied Nov 22, 2026
6ef5833
inkling2 cuda: a cache slot per served stream
jschmied Nov 22, 2026
c79a58f
inkling2 cuda: copy prompt-cache states per key head
jschmied Nov 22, 2026
20ebd5c
inkling2 cuda: stream_bytes counts a stream's rewind sites, last-logi…
jschmied Nov 23, 2026
1ba8d16
inkling2 metal: norm binds its arguments and its output where sp_norm…
sethforprivacy Nov 21, 2026
3697114
inkling2 metal: a later stream of a shared forward reads its relative…
sethforprivacy Nov 22, 2026
7a07321
inkling2 metal: a snapshot copies each key-value head's live rows, so…
sethforprivacy Nov 22, 2026
25dc1ac
inkling2 metal: the real-checkpoint serving tests draw the first toke…
sethforprivacy Nov 22, 2026
7a5c0da
inkling2 metal: a window's grammar masks step by the padded vocabular…
sethforprivacy Nov 22, 2026
a8026de
inkling2: record Mini's CUDA kernel usage on every SM
ashhart Nov 23, 2026
1a33743
server inkling2: split native blocks by token identity
ashhart Nov 23, 2026
86fbb0f
server inkling2: special tokens never payload, sampling end closes no…
ashhart Nov 23, 2026
38bb1c2
server inkling2: serve Mini's split, raw stops, role boundaries and w…
ashhart Nov 23, 2026
1a17e16
server inkling2: stops in exact bytes, cut bare calls, whole replacem…
ashhart Nov 24, 2026
4286fe6
server inkling2: one stop coordinate, the tokenizer's lossy decode, b…
ashhart Nov 24, 2026
a083fe2
server inkling2: skip only owned continuation bytes; bare calls as th…
ashhart Nov 24, 2026
6ec54dd
notices: name Inkling 2 Mini's release tokenizer and template fixtures
ashhart Nov 24, 2026
5b2480f
server inkling2: a grammar's end of message ends the turn; calls at t…
ashhart Nov 24, 2026
b4aea80
server inkling2: the end-of-message stop belongs to the required call…
ashhart Nov 24, 2026
09f428e
server inkling2: a required reply ends at its end of message only whe…
ashhart Nov 24, 2026
f94e593
test(inkling2): reproduce request EOS cutting an open second call
ashhart Nov 24, 2026
83298c4
test(inkling2): cover every stop stride before asserting the result
ashhart Nov 24, 2026
ee93e7f
fix(inkling2): stop required replies only at complete calls
ashhart Nov 24, 2026
4dcaca4
lanes: test the lone-keep opt-in against main's rule, not against zer…
ashhart Nov 24, 2026
c4b9248
qwen27 tools: one engine_api module, and core's checkpoint_file_cache
ashhart Nov 24, 2026
d13e677
inkling2: Metal host test on macOS only; Inkling's CUDA prompt cache …
ashhart Nov 24, 2026
5e39051
changelog: #4387 under Unreleased
ashhart Nov 24, 2026
9adc6e0
qmmf: opt-in half-column tiles for FP4, FP8 and FP8G on many-SM GPUs
ashhart Nov 22, 2026
504df0a
cuda tests: lane-half-n, FP4, FP8 and FP8G half tiles against the 64-…
ashhart Nov 22, 2026
ecff17d
cuda tests: pin opt-in half-tile serving identities
ashhart Nov 23, 2026
834237b
changelog: #4533 under Unreleased
ashhart Nov 24, 2026
b209e15
flashnext: opt into short-row CUDA TPR chains
ashhart Nov 22, 2026
0e50ca5
flashnext: repair GDN fixture pins
ashhart Nov 23, 2026
f9ea5e0
tests: correct Flash Next environment count after rebase
ashhart Nov 24, 2026
31726c0
changelog: #4484 under Unreleased
ashhart Nov 24, 2026
2cd2855
changelog: #4484 under Unreleased
ashhart Nov 24, 2026
a9a9676
refuse leftover tensors in gemma4 assistant/dflash and hy4_flash loads
ashhart Nov 22, 2026
52bd1e8
mark direct Hy4 Engram tables used for checkpoint audit
ashhart Nov 23, 2026
fe6ff39
test Hy4 CUDA auxiliary checkpoint ownership
ashhart Nov 24, 2026
f98281e
own Hy4 CUDA auxiliary checkpoint tensors
ashhart Nov 24, 2026
9fa8863
changelog: #4566 under Unreleased
ashhart Nov 24, 2026
bf9dec9
tools/exact_restarts.py: bit-identical restarts, parallel levels and …
ashhart Nov 22, 2026
25f6e21
tools: check every busy peer; report unrunnable attached scenarios as…
ashhart Nov 22, 2026
67cc425
tools: plant serial tree resume receipt divergences
ashhart Nov 23, 2026
9c3c676
tools: issue public cross-backend exact receipts
ashhart Nov 23, 2026
11318cb
tools: receipt missing launched binary failures
ashhart Nov 23, 2026
b887339
tools: retain text completion replies on follow-up
ashhart Nov 23, 2026
42bbc8e
changelog: #4574 under Unreleased
ashhart Nov 24, 2026
c902620
Merge remote-tracking branch 'upstream/main' into feat/249-merge-upst…
plotarmordev Nov 24, 2026
96cb2cb
web tests: sort test_server_access imports so ruff passes on main
ashhart Nov 24, 2026
8897946
minimax_m3 metal: shared rounds of 12-32 rows are timed at load, not …
ashhart Nov 13, 2026
a7abb38
minimax_m3 metal: time real 16-row verification windows
ashhart Nov 24, 2026
c4a5077
changelog: #3120 under Unreleased
ashhart Nov 24, 2026
1489c48
changelog: #3120 under Unreleased
ashhart Nov 24, 2026
7b94ea1
opt in to aged background admission
ashhart Nov 24, 2026
bb8b1cd
lane host: an aged background passes the foreground head only if it c…
ashhart Nov 24, 2026
ef0ecb9
changelog: #4833 under Unreleased
ashhart Nov 24, 2026
69f0599
Merge remote-tracking branch 'upstream/main' into feat/249-merge-upst…
plotarmordev Nov 24, 2026
5edd4d4
changelog: number twenty Unreleased lines and drop an override #4216 …
ashhart Nov 24, 2026
af0ad62
drama3: guide lifecycle shared by Metal and CUDA; Metal backboneChunk…
plotarmordev Nov 11, 2026
a2dab11
drama3 CUDA: semantic CFG guide over shared weights (d3_cfg_mix, back…
plotarmordev Nov 11, 2026
e4f8244
drama3 CUDA host: guide lifecycle, admission counts guide state, CFG …
plotarmordev Nov 11, 2026
67c9e27
drama3: GB10 guidance check (paired vs separate PCM, gamma 1 identity…
plotarmordev Nov 11, 2026
df57ca6
drama3 guidance: guide prefills before the first frame; CFG mix arith…
plotarmordev Nov 11, 2026
0a6120a
drama3 guidance: lane drain waits the guide stream; GB10 check needs …
plotarmordev Nov 11, 2026
f4d1bfb
drama host: conditional prompt round in its own module
plotarmordev Nov 11, 2026
1ef6aab
drama3 CUDA: reference entry's live buffers gathered in reference_rows
plotarmordev Nov 11, 2026
6479db3
contract: drama3 registrations from contract_drama3's Set
plotarmordev Nov 11, 2026
1ac9b75
drama3 guidance: single-line comments
plotarmordev Nov 11, 2026
af58ab6
contract: d3_cfg_mix's prepare sizes from n alone, as the gates probe…
plotarmordev Nov 20, 2026
f9ad8d8
contract: d3_cfg_mix's sm_121 nvcc 13.0 receipt from TOP (12 register…
plotarmordev Nov 20, 2026
06c3053
drama3-cuda: d3_cfg_mix's GB10 kernel-contract job
plotarmordev Nov 20, 2026
f281f78
contract: drama3's two doc comments within the lean rule's 120 columns
plotarmordev Nov 21, 2026
8bb861f
drama3: a planted gamma - 1 d3_cfg_mix control, solo lane controls in…
plotarmordev Nov 21, 2026
48dcea0
contract: the compact router's note beside its pending record
ashhart Nov 21, 2026
700c049
drama3: the guidance check takes and records the checkpoint's pinned …
plotarmordev Nov 21, 2026
feaf982
changelog: #4153 under Unreleased
ashhart Nov 24, 2026
e0a819c
changelog: #4153 under Unreleased
ashhart Nov 24, 2026
25e19db
lanes: interleave Metal window timing and retime high outliers
ashhart Nov 23, 2026
28667d6
lanes: heal saved Metal window prices with bounded rotating probes
ashhart Nov 23, 2026
6d4a12f
metal: recheck cached planner widths and share robust timing across f…
ashhart Nov 23, 2026
b1f15a8
metal: finish bounded probe setup and format timing policies
ashhart Nov 23, 2026
e8141cd
test(costs): expose setup budget, real tile edges and inconsistent pa…
ashhart Nov 23, 2026
c26ade5
fix(costs): plan useful warm probes before setup and preserve table o…
ashhart Nov 23, 2026
ba0b61f
fix(metal): admit warm scratch work after selection and charge setup …
ashhart Nov 23, 2026
77fb6ee
style(costs): format prepared timing adapters
ashhart Nov 23, 2026
8d9000e
test(metal): exercise family timing controllers and tight-context wor…
ashhart Nov 23, 2026
8965b5c
test(metal): root family policy imports at zig and count actual prefi…
ashhart Nov 23, 2026
88cc19d
fix(costs): alternate sweep direction to bound tight-context refills;…
ashhart Nov 23, 2026
cc4deb2
fix(costs): reserve rotating probe budget before ordering edges; chec…
ashhart Nov 23, 2026
66a3546
style(costs): format final timing checks and adapters
ashhart Nov 23, 2026
9627de3
fix(costs): refuse a fresh table with no valid timing sample
ashhart Nov 23, 2026
5ab5a7f
style(costs): format invalid timing refusal test
ashhart Nov 23, 2026
cffa172
fix(glm): agree on invalid timing tables before either rank leaves ca…
ashhart Nov 23, 2026
3c74a2a
Fix Metal warm cost probe rotation and fallback
ashhart Nov 23, 2026
6a2e680
Recover Qwen27 startup probes before retaining cached costs
ashhart Nov 23, 2026
4dff3eb
fix(qwen27): keep cold window timing serial on stateful scratch
ashhart Nov 23, 2026
b50c4b9
fix(glm): keep paired cold window timing serial on stateful scratch
ashhart Nov 24, 2026
d9e81bd
changelog: #4755 under Unreleased
ashhart Nov 24, 2026
9424012
Write Qwen output in bounded chunks
joshuaswarren Nov 21, 2026
7acdff0
Keep writer comments within lean rules
joshuaswarren Nov 21, 2026
d35773a
Chunk cap is a parameter; sink errors pass through
joshuaswarren Nov 21, 2026
a9f4e0f
chunked write: refuse a zero cap on a nonempty buffer
joshuaswarren Nov 23, 2026
60df664
style(chunked-write): keep the writer contract on one comment line
ashhart Nov 24, 2026
efa287b
changelog: #4296 under Unreleased
ashhart Nov 24, 2026
a757b3f
changelog: #4296 under Unreleased
ashhart Nov 24, 2026
4a23aba
vision: one gate for --vision at open, on CUDA and HIP
jschmied Nov 15, 2026
5c5e382
docs: vision.md's gate paragraph wrapped under 120 columns
jschmied Nov 15, 2026
386d314
gradient-serving pins: the three Flash Next files #3456 changes
jschmied Nov 16, 2026
4eb8494
Refresh merged source checks and serving pins
ashhart Nov 21, 2026
18a1bc7
cuda: LFM2's --vision reaches core's gate; its old refusal goes, rank…
jschmied Nov 23, 2026
e4d7851
hip native: keep the Qwen engine file at the 600-line cap
ashhart Nov 24, 2026
f05bfdc
flashnext cuda: the vision test passes main's rank and world to visio…
ashhart Nov 24, 2026
68ff0ad
changelog: #3456 under Unreleased
ashhart Nov 24, 2026
61087b8
Merge remote-tracking branch 'origin/main' into feat/249-merge-upstre…
plotarmordev Nov 24, 2026
bcfd3ac
metal: the two pairs of u32 copy kernels from one source (#2251)
jschmied Nov 23, 2026
fd43b51
drama3 metal: codec.metal's compile lists core/copy_u32.metal as an i…
jschmied Nov 23, 2026
1baa88e
changelog: #4740 under Unreleased
ashhart Nov 24, 2026
bfa5710
changelog: #4740 under Unreleased
ashhart Nov 24, 2026
a085c90
flashnext: opt into grouped shared expert rounds
ashhart Nov 24, 2026
6609ffb
changelog: #4834 under Unreleased
ashhart Nov 24, 2026
9cd3986
Merge remote-tracking branch 'upstream/main' into feat/249-merge-upst…
plotarmordev Nov 24, 2026
33f0cbe
docs: the card 64 live signal and live publisher sections stay, since…
plotarmordev Nov 24, 2026
b448cc4
Merge remote-tracking branch 'upstream/main' into feat/249-merge-upst…
plotarmordev Nov 24, 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
48 changes: 27 additions & 21 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ Each release's page on GitHub has its notes and measurements. See [the 1.0.0 rel

## Unreleased

- Lanes: window-cost tables are measured in interleaved sweeps and saved tables are repaired at startup inside a fixed time budget; a table with no valid timing is refused. Tokens unchanged (#4755).

- Drama 3 on CUDA: semantic guidance (`--cfg-gamma` and the other guidance flags) now works, as it does on Metal (#4153). Thanks @plotarmordev.



- Server: `TENSORFOLD_PRIORITY_AGE_MS` (default 0, unchanged order) lets a background request that has waited that long start before foreground work, without letting any request wait forever (#4833)

- MiniMax-M3 on Metal: shared decode rounds of 12 to 32 rows are timed at load instead of priced at 2x and 4x the 8-row window, so window choice uses measured costs; tokens are unchanged, and a `--context` under 256 tokens leaves those rounds untimed instead of failing to open the model (#3120).
Expand All @@ -26,17 +32,17 @@ Each release's page on GitHub has its notes and measurements. See [the 1.0.0 rel

- Metal on M5: 5-bit and 6-bit group-64 checkpoints get split-plane storage and register-direct lane kernels (#4419). Thanks @gilby.

- Qwen3.5/3.8 on CUDA: `TF_Q35_GROUP_PROJ=1` runs same-input projections (MLP gate+up, GDN qkv+z and a+b, attention q+k+v) as segments of one qmmf launch, each keeping its own split-K and K-slice accumulation, so every output is computed exactly as by its own launch; off by default (#N).
- Qwen3.5/3.8 on CUDA: `TF_Q35_GROUP_PROJ=1` runs same-input projections (MLP gate+up, GDN qkv+z and a+b, attention q+k+v) as segments of one qmmf launch, each keeping its own split-K and K-slice accumulation, so every output is computed exactly as by its own launch; off by default (#4515).

- Drama 3: the GB10 check script passes again after #4144. A PCM-only difference within one 16-bit step is reported, and every exact check still has to pass (#4463). Thanks @plotarmordev.

- GLM-5.3-Flash on Metal: the rows-store staging permit is now sized from the model's whole image at the window, so deep saves past 1 GiB are kept and a restarted server resumes instead of prefilling again; `TF_GLM_STAGING_GIB` overrides it (#4216). Thanks @devopsfortunato.
- GLM-5.3-Flash on Metal: the rows-store staging permit is now sized from the model's whole image at the window, so deep saves past 1 GiB are kept and a restarted server resumes instead of prefilling again (#4216). Thanks @devopsfortunato.

- Inkling 2 on HIP: attention kernels under the kernel contract (#N).
- Inkling 2 on HIP: attention kernels under the kernel contract (#4633).

- Qwen3.6-35B-A3B on Metal: the text-only checkpoint serves on the routed expert path, `--vision` refuses it by name, and `tf-qwen27-run --stages DIR` writes each layer's stream for a float64 comparison (#3239). Thanks to @cshintov.

- Metal Qwen3.8-27B with MTP drafts: `TF_Q27_MTP_GPU_PICK=1` runs each MTP absorb in one command buffer and picks draft tokens on the GPU, removing two blocking waits per absorb and the CPU pass over the vocabulary; off by default (#N).
- Metal Qwen3.8-27B with MTP drafts: `TF_Q27_MTP_GPU_PICK=1` runs each MTP absorb in one command buffer and picks draft tokens on the GPU, removing two blocking waits per absorb and the CPU pass over the vocabulary; off by default (#4570).

- Idol: octree and decode-trace allocation failures now unwind cleanly and free what they hold, with successful output unchanged (#4304).

Expand All @@ -46,51 +52,51 @@ Each release's page on GitHub has its notes and measurements. See [the 1.0.0 rel

- Desktop: the app typecheck passes again after two engine types were restored (#4829).

- GLM on CUDA: a prefill cancelled between chunks keeps its completed shared-cache prefix (#N).
- GLM on CUDA: a prefill cancelled between chunks keeps its completed shared-cache prefix (#4694).

- Ling-3.0-tiny on ARM CPUs: an exact decoder for the published 4-bit GGUF, built and launched on aarch64 Linux (#N).
- Ling-3.0-tiny on ARM CPUs: an exact decoder for the published 4-bit GGUF, built and launched on aarch64 Linux (#4266).

- DFlash2 drafter on CUDA: `TF_DFLASH_QL_SPAN=1` reads only the vocabulary span the drafter uses from an NVFP4 or FP8 target lm_head, and `TF_DFLASH_GRAPH=1` captures the drafter's hold and absorb steps in CUDA graphs; target outputs and accepted tokens are unchanged; both off by default (#N).
- DFlash2 drafter on CUDA: `TF_DFLASH_QL_SPAN=1` reads only the vocabulary span the drafter uses from an NVFP4 or FP8 target lm_head, and `TF_DFLASH_GRAPH=1` captures the drafter's hold and absorb steps in CUDA graphs; target outputs and accepted tokens are unchanged; both off by default (#4516).

- Flint on Metal: a shared round's sampled rows draw in one launch instead of one serial launch a row, with the same tokens (#4780).

- HIP Qwen: use the policy prompt step on lone RDNA 3.5 iGPUs while preserving admitted streams and requested prompt caches (#4207). Thanks to @AbrahamCete.

- MOSS-Image contract: the reference for `tf_me_conv` now follows fp32 `expf` overflow, so its sums check no longer fails on inputs near -89 (#4794).

- HIP decode: multi-row rounds weigh each slot's rows from one read of their values (#N).
- HIP decode: multi-row rounds weigh each slot's rows from one read of their values (#4754).

- H3 on Macs: long image renders give way to live speech on the GPU (#N).
- H3 on Macs: long image renders give way to live speech on the GPU (#4650).

- GLM TP=2 decode on CUDA: `TF_GLM_WIDE_EXPERT_TILE=1` runs routed-expert down for decode windows wider than 16 rows with the 64-pair factored tile that matches gate-up, keeping each output's K order; off by default (#N).
- GLM TP=2 decode on CUDA: `TF_GLM_WIDE_EXPERT_TILE=1` runs routed-expert down for decode windows wider than 16 rows with the 64-pair factored tile that matches gate-up, keeping each output's K order; off by default (#4565).

- Qwen 3.5 on Metal: `TF_QWEN35_CHUNK` sets the prefill chunk size for measurement; the default stays 128 rows (#N).
- Qwen 3.5 on Metal: `TF_QWEN35_CHUNK` sets the prefill chunk size for measurement; the default stays 128 rows (#3762).

- CUDA: Ripple-65B-Preview (ricursive) serves on the native engine from the publisher's NVFP4 release as published, with prompt chunks and decode, lane rounds as CUDA graphs, greedy and sampled draws, kept states and the prompt cache; the bf16 release is refused by name, and structured output and forced tool calls are refused until masked sampling lands (#2302, fixes #2300). Thanks to @jrb-ai.

- GLM-5.3-Flash on CUDA: with `--learn-conversations`, conversation states are kept on disk through the rows store, so after an eviction or a restart the next turn reads its state back instead of prefilling the whole conversation; at TP>1 every rank's part goes to rank 0's disk, so a state is read back on every rank or none (#1411, fixes #1312). Thanks to @wojo.

- Qwen on Metal: with `TF_Q27_KV_GROW=<rows>` (a multiple of 16; 0 or unset is off) a serve's K/V slots start at that many rows, grow as their streams do and give the rows back when a stream ends, and drafter tap rings grow the same way; replies are byte-identical with it on or off (#1896). Thanks to @grantoverton.

- LFM3 on Metal: warm turns, so a tool loop whose re-rendered history changes mid-conversation re-prefills only from the first changed token, with outputs identical to a fresh run (#N).
- LFM3 on Metal: warm turns, so a tool loop whose re-rendered history changes mid-conversation re-prefills only from the first changed token, with outputs identical to a fresh run (#4585).

- GLM, MiniMax and Nemotron on CUDA: each is placed by `--tp`, `--rank`, `--master` and `--master-port`, and `--master` with `--master-port` sets `NCCL_COMM_ID` when it is unset (a different one refuses); `TF_GLM_RANK`/`TF_GLM_WORLD`, `TF_MINIMAX_RANK`/`TF_MINIMAX_WORLD` and `TF_NEMOTRON_RANK`/`TF_NEMOTRON_WORLD` still work as aliases until 1.3.1, with a start-up warning, and a flag and an alias that differ refuse (#2919, part of #2560). Thanks to @laudney.

- Gemma 4 on Metal: a new stream's prompt fills one chunk per call at the same chunk cuts as before, with other streams' decode rounds running between chunks, so a long prompt no longer freezes their replies; a cancel between chunks keeps the last finished chunk, and a drafting stream's drafter takes each chunk's tapped rows as it lands (#3025, fixes #3021).

- Qwen3.5/3.8 on CUDA: `TF_QWEN35_ATTN_ALL_ROWS=1` sends multi-row BF16 decode windows to the existing rows attention kernel at every context length (it already matches the one-row kernel's score and reduction order), removing the dead second launch below 8K; off by default (#N).
- Qwen3.5/3.8 on CUDA: `TF_QWEN35_ATTN_ALL_ROWS=1` sends multi-row BF16 decode windows to the existing rows attention kernel at every context length (it already matches the one-row kernel's score and reduction order), removing the dead second launch below 8K; off by default (#4496).

- Tests: a GB10 check compares Qwen CUDA prompts run in one pass against 512-row capped cuts with a second stream live, byte for byte and over the next 64 greedy tokens (#N).
- Tests: a GB10 check compares Qwen CUDA prompts run in one pass against 512-row capped cuts with a second stream live, byte for byte and over the next 64 greedy tokens (#4586).

- Flash Next on Metal: `TF_FLASHNEXT_BATCH_GDN_WIDE=1` runs 8- and 16-row batch segments on the existing non-replay GDN kernel instead of the recorded pipe; off by default until the M3 and M5 checks (#N).
- Flash Next on Metal: `TF_FLASHNEXT_BATCH_GDN_WIDE=1` runs 8- and 16-row batch segments on the existing non-replay GDN kernel instead of the recorded pipe; off by default until the M3 and M5 checks (#4489).

- Host status: the lane host's status read copies a snapshot the engine thread publishes, so a monitoring client polling the status no longer holds the lock every decode round takes; a torn read retries and the round waits for no reader (#3200).

- Qwen3.8-27B family on Metal: tied embedding heads are accepted, binding the output projection to the embedding weights; small tied Qwen shapes still wait for their own size qualification (#N).
- Qwen3.8-27B family on Metal: tied embedding heads are accepted, binding the output projection to the embedding weights; small tied Qwen shapes still wait for their own size qualification (#4519).

- Server: `tensorfold capabilities --json` now lists `TENSORFOLD_PARALLEL` and the other environment variables `serve` honours, so the desktop app's Engine variables page accepts them (#N, fixes #3684).
- Server: `tensorfold capabilities --json` now lists `TENSORFOLD_PARALLEL` and the other environment variables `serve` honours, so the desktop app's Engine variables page accepts them (#4588, fixes #3684).

- Tests: host tests record where capped prompt chunks cut while another stream is live, family by family (#N).
- Tests: host tests record where capped prompt chunks cut while another stream is live, family by family (#4579).

- Tests: the lone-driver third-prompt test no longer hangs when its poller is descheduled (#4783).

Expand Down Expand Up @@ -120,13 +126,13 @@ Each release's page on GitHub has its notes and measurements. See [the 1.0.0 rel

- Docs: the optimization ledger's cells catch up with PRs that landed since it was last updated (#4580). Thanks @jschmied.

- Unlimited-OCR-2: a cancelled request now stops before image encoding, between images and between decoder prefill chunks instead of running the whole prefill; uncancelled replies are unchanged (#N).
- Unlimited-OCR-2: a cancelled request now stops before image encoding, between images and between decoder prefill chunks instead of running the whole prefill; uncancelled replies are unchanged (#4528).

- Lane host: under stepped prefill, a waiting stream no longer pins its kept prompt state, so another stream's cache can't be allocated past the budget; an evicted state is looked up again before the first call. Tokens unchanged (#4751).

- Tests: a per-template tool-call conformance test renders tool definitions, round-trips calls and results, keeps multi-call order and rejects malformed calls for every chat template family we ship (#N).
- Tests: a per-template tool-call conformance test renders tool definitions, round-trips calls and results, keeps multi-call order and rejects malformed calls for every chat template family we ship (#4555).

- Server web fetches: hostname lookup now uses the shared bounded resolver, so a request's deadline holds even when the system lookup is slow, and long answer lists are read while they arrive (#N).
- Server web fetches: hostname lookup now uses the shared bounded resolver, so a request's deadline holds even when the system lookup is slow, and long answer lists are read while they arrive (#4551).

- Qwen 3.5 and 3.8: one EOS rule for every family reader, and qwen27 now reads `generation_config.json`, so its stop tokens match the served set on the ten configs that declare `<|im_end|>` (#4678). Thanks @devopsfortunato.

Expand Down
1 change: 1 addition & 0 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ pub fn build(b: *std.Build) void {
for ([_][]const u8{ "noise", "schedule" }) |name| {
test_step.dependOn(&b.addRunArtifact(b.addTest(.{ .root_module = b.createModule(.{ .root_source_file = b.path(b.fmt("zig/src/families/moss_image/{s}.zig", .{name})), .target = target }) })).step);
}
@import("zig/build/metal_cost_host.zig").compile(b, draft_ids);
const cost_cases = b.addTest(.{ .root_module = b.createModule(.{
.root_source_file = b.path("zig/cost_rule_cases.zig"),
.target = target,
Expand Down
11 changes: 11 additions & 0 deletions docs/recipes/drama3-cuda/cfg-mix-gb10.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/sh
# d3_cfg_mix's kernel contract on a DGX Spark (GB10, sm_121) with Zig 0.17.0 and CUDA 13.0's nvcc on PATH:
# sh docs/recipes/drama3-cuda/cfg-mix-gb10.sh
# Gates 1-4, the planted gamma - 1 control (must go red) and the limits check; exits with tf-cuda-test's status.
set -eu
nvcc=$(command -v nvcc)
echo "commit $(git rev-parse HEAD)"
"$nvcc" --version | tail -n 1
zig build install fatbins kernel-contract-fatbins -Dsm=121 -Dnvcc="$nvcc" -Doptimize=ReleaseFast --prefix zig-out/sm121
zig build -Dgpu=spark -Dnvcc="$nvcc" --prefix zig-out/sm121
exec zig-out/sm121/bin/tf-cuda-test kernel-contract d3_cfg_mix
8 changes: 4 additions & 4 deletions docs/run-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,10 @@ The binary's `capabilities --json` response lists its supported flags and platfo
| `--drafter-bits 0\|4` | Drafter weight precision where the model offers a choice: 4 bits (the default), or 0 to keep bf16. Qwen3.8-27B on CUDA takes 4 only. |
| `--record DIR` | Write each stream's committed tokens, positions and tapped rows under DIR, for drafter training. CUDA Nemotron only; a single stream runs through the lane rounds, and recording stops below 25 GiB free disk. |
| `--keep-warm SECONDS` | Keep the Metal GPU active while idle for this long after a request, default 900; zero disables it. |
| `--cfg-gamma GAMMA` | Metal Drama speech: semantic guidance strength, finite 1–5; 0/default disables it. Only reference-conditioned requests are guided. Enabled replies report `X-Cfg-Gamma`; codec heads stay conditional. |
| `--cfg-allow-request-gamma` | Metal Drama speech: allow a finite 1–5 `X-Cfg-Gamma` request header; invalid values return 400 before engine submission. Without this opt-in, the server's gamma is fixed. |
| `--cfg-force-guided` | With an enabled Metal Drama guidance policy, exercise the unconditional state even at gamma 1. The semantic mix at 1 remains exact conditional-logit identity. |
| `--cfg-batched` | With enabled Metal Drama guidance, submit both independent backbone states in one command buffer rather than separate submissions. Weights are shared; extra state is included in admission. Not vectorized batching. |
| `--cfg-gamma GAMMA` | Drama speech on Metal and CUDA: semantic guidance strength, finite 1–5; 0/default disables it. Only reference-conditioned requests are guided. Enabled replies report `X-Cfg-Gamma`; codec heads stay conditional. |
| `--cfg-allow-request-gamma` | Drama speech on Metal and CUDA: allow a finite 1–5 `X-Cfg-Gamma` request header; invalid values return 400 before engine submission. Without this opt-in, the server's gamma is fixed. |
| `--cfg-force-guided` | With an enabled Drama guidance policy, exercise the unconditional state even at gamma 1. The semantic mix at 1 remains exact conditional-logit identity. |
| `--cfg-batched` | With enabled Drama guidance, run both independent backbone states without a host wait between them: one command buffer on Metal, two streams joined by events on CUDA, rather than separate submissions. Weights are shared; extra state is included in admission. Not vectorized batching. |
| `--silence-floor-dbfs DBFS` | Drama speech only: explicit frame-power floor for the silence guard, with no default floor. Calibrate below quiet intended speech using public or built-in speech. |
| `--silence-seconds SECONDS` | Drama speech only: stop after this continuous duration below the explicit floor, retaining audio and reporting `silence`. Unset by default: off; calibrate above intentional pauses. |
| `--silence-onset-s SECONDS` | Drama speech only: with the silence guard on, stop once this many seconds run below its floor while the synthesis has voiced less than `--silence-onset-voiced-s`, retaining audio and reporting `silence`. Off unless given; must be below `--silence-seconds`. |
Expand Down
Loading