Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
300 commits
Select commit Hold shift + click to select a range
30bf66a
changelog: #3780 under Unreleased
ashhart Nov 19, 2026
f5df7ae
changelog: each line once under Unreleased
ashhart Nov 19, 2026
d5a069b
changelog: #3522 under Unreleased
ashhart Nov 19, 2026
082b47c
changelog: #3748 under Unreleased
ashhart Nov 19, 2026
84f78db
Use the compiler library path in the cache restat tests
AIFlowML Nov 18, 2026
302c4c8
changelog: #3786 under Unreleased
ashhart Nov 19, 2026
4cb084d
changelog: each line once under Unreleased
ashhart Nov 19, 2026
c5a47b4
app: preserve per-agent reasoning effort across Room runs
AIFlowML Nov 16, 2026
35adffa
app: pass the Room run snapshot directly to ticket workers
AIFlowML Nov 16, 2026
517a445
changelog: #3514 under Unreleased
ashhart Nov 19, 2026
d3b0d69
inkling2: config parsing and its refusals
Nipale-ai Nov 16, 2026
021a952
inkling2: safetensors header reading
Nipale-ai Nov 16, 2026
9ca9f9f
inkling2: weight map and layer plan
Nipale-ai Nov 16, 2026
6a9c293
inkling2: refuse image parts, audio parts and --vision
Nipale-ai Nov 16, 2026
e880c24
inkling2: chat template and tokenizer against the reference's ids
Nipale-ai Nov 16, 2026
9bca234
tools: rebuild the Inkling 2 fixtures
Nipale-ai Nov 16, 2026
92ea24f
inkling2: third-party notice for the fixtures
Nipale-ai Nov 16, 2026
97aeb2f
inkling2: take the refusals out of this slice
Nipale-ai Nov 18, 2026
0676898
tools: load the release's tokenizer from local files only
Nipale-ai Nov 18, 2026
10d4176
inkling2: read safetensors headers with the core reader
Nipale-ai Nov 18, 2026
e2bf8ce
changelog: #3578 under Unreleased
ashhart Nov 19, 2026
f16ff54
changelog: #3578 under Unreleased
ashhart Nov 19, 2026
83bc871
cuda: tf_qmm_prefill_many works out its copy addresses once, before t…
GumbiiDigital Nov 6, 2026
b89ad3b
cuda: update both #2825 serving pins and describe the retained copies…
ashhart Nov 19, 2026
4dd46ea
changelog: #2825 under Unreleased
ashhart Nov 19, 2026
67fd032
changelog: #3578 under Unreleased
ashhart Nov 19, 2026
99a58f9
changelog: #2825 under Unreleased
ashhart Nov 19, 2026
ce9a6e8
feat(radix): a checkpoint inside a page keeps a writable tail
laudney Nov 14, 2026
b62f506
test(kv-pool): resume at a tail through a real pool
laudney Nov 14, 2026
ea9939e
changelog: #3329 under Unreleased
ashhart Nov 19, 2026
6e7f308
changelog: each line once under Unreleased
ashhart Nov 19, 2026
4674fde
server: replies written as messages to recipients split into reasonin…
ajensenwaud Oct 25, 2026
9fa1c4d
server: recipient replies: a cut call is the reply's cut call, the pr…
ajensenwaud Oct 26, 2026
58367b2
server: recipient replies: a streamed split reads only the bytes sinc…
ajensenwaud Oct 26, 2026
a682fde
server: recipient replies: a streamed message holds its trailing whit…
ajensenwaud Oct 27, 2026
108a20d
server: the sampling-field flag reader moves to fields.zig
ajensenwaud Oct 27, 2026
b0b5ec1
server: move the late-system probe to keep server.zig within 600 lines
ashhart Nov 19, 2026
5d2556a
changelog: #1336 under Unreleased
ashhart Nov 19, 2026
3136581
changelog: #1336 under Unreleased
ashhart Nov 19, 2026
0083c20
glm: resolve TF_NCCL_LIB in the shared NCCL library loader
vdalesandro Nov 13, 2026
b357d59
nccl: the TP session reads TF_NCCL_LIB by the loader's rule; nccl.zig…
vdalesandro Nov 14, 2026
905ce9b
changelog: #3106 under Unreleased
ashhart Nov 19, 2026
e35b78e
Bind stored Responses and live cancellation to the creating key identity
ashhart Nov 18, 2026
dd43c13
server responses: every stored response names its owner
ashhart Nov 18, 2026
f0e98fb
Cover response ownership across the background job lifecycle
ashhart Nov 19, 2026
edcf407
Fold an adjacent blank to keep Responses at 600 lines
ashhart Nov 19, 2026
16b31bc
changelog: #3756 under Unreleased
ashhart Nov 19, 2026
6f68a97
glm/cuda: key the window-cost cache by TF_GLM_KDA_PAD, TF_ROCE, TF_GL…
ultradaoto Nov 16, 2026
34cecd1
changelog: #3495 under Unreleased
ashhart Nov 19, 2026
674703e
core: typed config field readers and named EOS policies
jschmied Nov 17, 2026
6a3e959
qwen3_5, qwen27: read config fields and EOS through core, each rule kept
jschmied Nov 17, 2026
555b355
qwen27: the config Problem is named problem, so the later widths.Why …
jschmied Nov 17, 2026
6858510
changelog: #3716 under Unreleased
ashhart Nov 19, 2026
17b7448
native hip: size RDNA3.5 lane-round MoE plans to the round's rows and…
gilby Nov 17, 2026
d7c969c
changelog: #3774 under Unreleased
ashhart Nov 19, 2026
6edd443
feat(dots): dots.mocr's image tower on CUDA
laudney Nov 10, 2026
e90cc3e
test(cuda): a GB10 runner for dots.mocr's tower
laudney Nov 10, 2026
689d6a3
test(dots): pin the tower's GEMM plan trim at max_plans
laudney Nov 10, 2026
8f2f717
test(cuda): dots-image names another SM instead of its pin
laudney Nov 10, 2026
1e4def9
style(dots): move long trailing comments and share the test dir
laudney Nov 10, 2026
d278c74
docs(dots): describe vision_inv_freq.txt with the tower
laudney Nov 10, 2026
de5312f
style(cuda): keep the dots test runner within 600 lines
ashhart Nov 19, 2026
50fd864
Adapt #2770 help to main's extracted CUDA usage module
ashhart Nov 19, 2026
8c3e7b8
changelog: #2770 under Unreleased
ashhart Nov 19, 2026
2a00e2c
xpu qwen27: a sampled row draws from a top-k kept on the card, and a …
Mirrdhyn Nov 11, 2026
8374093
xpu contract: the Qwen3.8-27B top-k with a merge breaking ties the wr…
Mirrdhyn Nov 11, 2026
032b82c
xpu qwen27: changelog and receipt for the top-k a sampled row draws f…
Mirrdhyn Nov 11, 2026
3c29352
xpu qwen27: a short top-k group pads with the sentinel, candidates no…
Mirrdhyn Nov 11, 2026
1f02edd
xpu contract: a top-k row of fp16 subnormals of both signs; receipt s…
Mirrdhyn Nov 11, 2026
19ff910
Trim trailing blank line in supplied host-test receipt
ashhart Nov 14, 2026
ad2cc61
xpu: retain sampled top-k receipt details within source limits
ashhart Nov 17, 2026
fd82492
changelog: #3340 under Unreleased
ashhart Nov 19, 2026
bcc45ec
feat(server): optional JSON lines for request access, ended and refused
mvanhorn Nov 18, 2026
8836b98
server: keep CLI within 600 lines after --log-json
ashhart Nov 19, 2026
f34a75f
changelog: #3195 under Unreleased
ashhart Nov 19, 2026
4523bf0
flashnext cuda: the paged decode attention loads each tile's page ids…
Arminova Nov 9, 2026
da86649
flashnext cuda: the page pool's arena maps 256 MiB pieces as its page…
Arminova Nov 10, 2026
e75548a
flashnext cuda: the page pool's arena allocates through its own hook,…
Arminova Nov 11, 2026
ee1269b
flashnext cuda: an arena piece whose zeroing fails goes back unmarked
Arminova Nov 11, 2026
698af2b
flashnext cuda: the arena's comment says what it does, without measur…
Arminova Nov 11, 2026
172d09c
flashnext cuda: the page pool maps ahead the pieces the next open rea…
Arminova Nov 11, 2026
b65499f
flashnext cuda: mapping ahead skips the run the next open claims firs…
Arminova Nov 11, 2026
95a8725
flashnext cuda: the page pool's arena maps ahead on its own thread, s…
Arminova Nov 11, 2026
a97b549
tests: re-pin the four serving sources this change moves
Arminova Nov 12, 2026
0b33fff
changelog: Flash Next paged KV maps its arena as used under Unrelease…
Arminova Nov 12, 2026
0c8d29b
flashnext cuda: the paged decode attention goes back to main's, its p…
Arminova Nov 13, 2026
d12b8d0
flashnext cuda: the page pool's arena maps pieces on Linux only; else…
Arminova Nov 13, 2026
96c0bfa
flashnext cuda: a test opens a lane through the pool with a map that …
Arminova Nov 13, 2026
27d834c
flashnext cuda: an open beside running streams waits for the arena's …
Arminova Nov 13, 2026
146db26
changelog: #3066's line gives the memory left free at load, the arena…
Arminova Nov 13, 2026
42e9862
changelog: #3066's line gives the final head's measured memory at load
Arminova Nov 13, 2026
b202c99
flashnext cuda: the arena wait's comments are one line each, as the l…
Arminova Nov 13, 2026
1bf95a0
flashnext cuda: reconcile the serving pin and changelog on main (#3066)
ashhart Nov 17, 2026
f758f3d
changelog: #3066's line moves to its lines file for landing
ashhart Nov 17, 2026
19e0698
flashnext cuda: keep cuda_lanes.zig under 600 lines
ashhart Nov 18, 2026
1826b74
Answer #3066's fixture-conflict ask: retain main notes and pin the me…
ashhart Nov 19, 2026
a0767ff
changelog: #3066 under Unreleased
ashhart Nov 19, 2026
1f1112d
qwen27 metal: with tensor units, a prefix threadgroup runs two query …
mrv777 Nov 17, 2026
33e820d
qwen27 metal: the prefix tile choice keeps its comment on its line, a…
mrv777 Nov 19, 2026
703513f
changelog: #3704 under Unreleased
ashhart Nov 19, 2026
478c2d7
changelog: #3704 under Unreleased
ashhart Nov 19, 2026
4dac281
template: str.format() with positional fields and brace escapes; othe…
atakann Nov 18, 2026
4cd5dc3
template: the str.format() probes in the parity tool's list
atakann Nov 18, 2026
4c3aa87
template: str.format() takes a field as an index only when it is all …
atakann Nov 19, 2026
aa763cd
changelog: #3816 under Unreleased
ashhart Nov 19, 2026
0b2e099
hip ranks: a follower bounds rank 0's page and slot indices by its ow…
ashhart Nov 12, 2026
1548175
changelog: #3081 under Unreleased
ashhart Nov 19, 2026
aaaff58
changelog: #3081 under Unreleased
ashhart Nov 19, 2026
8116c32
dsv41 metal: prompt attention two heads a simdgroup, bf16 widened thr…
ashhart Nov 14, 2026
63a55f3
changelog: #3351 under Unreleased
ashhart Nov 19, 2026
6b05a18
gpt-oss: add host-only metadata and MXFP4 family package
ashhart Nov 16, 2026
c6d9311
changelog: #3513 under Unreleased
ashhart Nov 19, 2026
cd64ae6
cli: tensorfold models lists what fits this machine, with a rough one…
ashhart Nov 15, 2026
ec8a490
cli: tensorfold models shows each checkpoint's score on TensorFold We…
ashhart Nov 16, 2026
8acab3f
quality: Lightning MLX 4-bit on a GB10 scores 191 against the M5 Max'…
ashhart Nov 16, 2026
6a247d3
quality: Qwen3.6-35B-A3B MLX 4-bit scores 204 of 228 on a GB10
ashhart Nov 16, 2026
017acea
Keep the quality runner comment on one line
ashhart Nov 17, 2026
7b5c1f2
changelog: #3483 under Unreleased
ashhart Nov 19, 2026
8ddcb75
qwen3_5: its CUDA and HIP settings read through platform/environment.zig
ashhart Nov 16, 2026
27d1438
changelog: 1.3.0 lines fact-checked against their PRs
ashhart Nov 19, 2026
3ba2e75
Release 1.3.0: the version, install examples and changelog
ashhart Nov 19, 2026
2462b15
changelog: Unreleased above 1.3.0
ashhart Nov 19, 2026
ca74f69
feat(server): measure and render selected PDF pages per call
laudney Nov 13, 2026
d21ebb4
feat(ocr): read PDF documents and pages on POST /v1/ocr
laudney Nov 13, 2026
141ccf3
docs(ocr): document PDF documents and pages on POST /v1/ocr
laudney Nov 13, 2026
ccee532
changelog: #2571 under Unreleased
ashhart Nov 19, 2026
548a3c5
flashnext hip: a verify window holds eight rows, so a copy lands up t…
gilby Nov 10, 2026
79fe298
flashnext hip: shared rounds keep three-token copies; a lone stream's…
gilby Nov 10, 2026
a53d9ae
changelog: the HIP Flash Next eight-row window under Unreleased
gilby Nov 10, 2026
04aa4b9
flashnext hip: a host test drives the facts' copy widths through the …
gilby Nov 10, 2026
8c871f6
changelog: the eight-row window's line ends with its number and the t…
gilby Nov 10, 2026
26a94af
flashnext hip: the MTP head's three-draft cap is a named constant the…
gilby Nov 10, 2026
27af712
native hip: a host test refuses --mtp-drafts 4 by name, so the head's…
gilby Nov 12, 2026
23ee869
changelog: #2730's line once, under Unreleased (rebase onto main)
ashhart Nov 13, 2026
f2d6524
flashnext hip: the MTP draft cap lives in facts.zig, so lanes.zig sta…
ashhart Nov 13, 2026
2027e7a
flashnext hip: one refusal test for --drafter and --mtp-drafts, so hi…
ashhart Nov 14, 2026
992f619
flashnext hip: preserve drafting facts and leave #2730 changelog to l…
ashhart Nov 19, 2026
03553f3
changelog: #2730 under Unreleased
ashhart Nov 19, 2026
c70d3d0
changelog: #2571 under Unreleased
ashhart Nov 19, 2026
c0027b9
metal: a Metal 4 backend under the queue, command buffer and encoder …
ashhart Nov 14, 2026
9bf8e2c
dsv41 metal: TF_METAL4=1 runs the family on a Metal 4 queue, decode r…
ashhart Nov 14, 2026
494be49
dsv41 metal: Metal 4 by default where the Mac has it, TF_METAL4=0 kee…
ashhart Nov 14, 2026
b5380d9
metal 4: a closing queue keeps its memory while a feedback is owed, a…
ashhart Nov 14, 2026
9f23d0d
metal: Metal 4 compiled in only for a binary whose engines use it, an…
ashhart Nov 15, 2026
3db9e48
changelog: #3374 under Unreleased
ashhart Nov 19, 2026
722601c
changelog: #2571 under Unreleased
ashhart Nov 19, 2026
c07c29c
changelog: #3374 under Unreleased
ashhart Nov 19, 2026
cf78f24
flashnext hip: the chunk fallback measures room after the window plan…
gilby Nov 15, 2026
67bd896
changelog: #3419 under Unreleased
ashhart Nov 19, 2026
61fe903
changelog: each line once under Unreleased
ashhart Nov 19, 2026
ab4d7cf
Keep MCP startup stderr diagnostics together
AIFlowML Nov 19, 2026
3838bdf
changelog: #3759 under Unreleased
ashhart Nov 19, 2026
675e222
changelog: #3759 under Unreleased
ashhart Nov 19, 2026
7007cfa
app: the Desktop benchmark accepts the engine's community-v2 suite an…
ashhart Nov 19, 2026
ee59125
app: a refused benchmark run keeps no metadata, not null (#3942)
ashhart Nov 19, 2026
a2f4c9d
changelog: #4031 under Unreleased
ashhart Nov 19, 2026
f9d9da0
build: the TP options read once and one mailbox module for every runn…
ajensenwaud Oct 25, 2026
cdbdc5a
Muse Spark family: muse_spark on the shared EXL3 operators, fp16 KV, …
ajensenwaud Oct 26, 2026
fa20eeb
kernel contract: every Muse Spark kernel through gates 1-4, its launc…
ajensenwaud Oct 26, 2026
a94e712
Muse Spark: the lane backend's round on the host (verify, keep, draft…
ajensenwaud Oct 26, 2026
cafc951
docs: Muse Spark's recipe names its licences
ajensenwaud Oct 27, 2026
bd2927b
Muse Spark: a bad TF_TP_* refuses the weight share instead of sizing …
ajensenwaud Oct 28, 2026
5792eba
Muse Spark: admitted on GB10 (sm_121) at two ranks only, refused by n…
ajensenwaud Oct 28, 2026
e6e7bb0
docs: Muse Spark's recipe serves plain decode; the DFlash2 drafter st…
ajensenwaud Oct 28, 2026
339aae0
docs: Muse Spark's recipe builds rank 1's tf-muse from source; the re…
ajensenwaud Oct 30, 2026
18e7eef
build: tp.module returns the module it already made for that cuda module
ajensenwaud Nov 1, 2026
926b028
Muse Spark: the cluster glue kernels trap below sm_90
ashhart Nov 12, 2026
f257654
Muse Spark: settings read the way main's lean rule asks
ashhart Nov 12, 2026
5be3878
tests: re-pin zig/src/cuda/kernels.zig for #1295's Muse Spark images
ashhart Nov 12, 2026
5ec847a
cuda common: list Muse Spark's own warp and block sums with their rea…
ashhart Nov 12, 2026
1f6c4db
Retain the supplied Muse merge adaptations on the current build and r…
ashhart Nov 19, 2026
5071aa8
muse_spark: named in TENSORFOLD_PROMPT_CACHE_KEEP_OTHERS's CUDA famil…
ashhart Nov 19, 2026
23c3904
build: keep the native CUDA POSIX host suite off Windows
ashhart Nov 19, 2026
193e888
changelog: #1295 under Unreleased
ashhart Nov 19, 2026
b80e495
changelog: #1295 under Unreleased
ashhart Nov 19, 2026
5020ca6
benchmark: its serve child, SSE framing and JSON fetch take another c…
ashhart Nov 16, 2026
e7152f8
cli: tensorfold chat talks to a model in the terminal, through a serv…
ashhart Nov 16, 2026
9339065
chat: the serve child answers only the chat, by a fresh random key in…
ashhart Nov 16, 2026
bd8b087
changelog: #3538 under Unreleased
ashhart Nov 19, 2026
5243552
changelog: #1295 under Unreleased
ashhart Nov 19, 2026
0c91d1e
changelog: #3538 under Unreleased
ashhart Nov 19, 2026
ab2c91d
qwen27 metal: before M5, decode rounds read cached keys through the p…
hobbesd Nov 16, 2026
0227586
qwen27 metal: the rewrite's and the contract control's comments name …
hobbesd Nov 17, 2026
81c47b4
qwen27 contract: check the decode control edit on the pre-M5 source (…
ashhart Nov 18, 2026
a487f45
qwen27 shared prefix follows main's reserve.fit extraction
ashhart Nov 19, 2026
d5a1b8a
changelog: #3677 under Unreleased
ashhart Nov 19, 2026
5d43ad5
changelog: each line once under Unreleased
ashhart Nov 19, 2026
68035cc
feat(dots): dots.mocr's image tower on CUDA
laudney Nov 10, 2026
e08e855
test(cuda): a GB10 runner for dots.mocr's tower
laudney Nov 10, 2026
cfb34d5
test(cuda): dots-image names another SM instead of its pin
laudney Nov 10, 2026
42244f9
style(dots): move long trailing comments and share the test dir
laudney Nov 10, 2026
abdf287
feat(dots): serve dots.mocr's image tower with --vision
laudney Nov 10, 2026
64c7e72
test(dots): pin dots.mocr's greedy text replies on the GB10
laudney Nov 10, 2026
47671f1
test(cuda): dots-text pins its replies without --vision too
laudney Nov 10, 2026
b6777f4
docs(dots): say how own-prompts.json was made
laudney Nov 10, 2026
144964f
changelog: #2771 under Unreleased
ashhart Nov 19, 2026
7948cc4
feat(glm): launch GLM's CUDA kernels as dependent launches
laudney Nov 16, 2026
85048e5
feat(qmmf): decode linears as weight-first dependent launches
laudney Nov 16, 2026
1ed5b09
test(contract): GLM records nvcc 13.3 takes with the entry wait
laudney Nov 16, 2026
963aa71
test(glm): prove dependent GLM launches read finished inputs on GB10
laudney Nov 16, 2026
a05e24b
test(glm): keep the dependent-launch tests within the lean rules
laudney Nov 16, 2026
c4f29fb
fix(glm): read a dependent launch's inputs past the wait
laudney Nov 17, 2026
b730f1d
test(cuda): fail a global read placed above a dependent launch's wait
laudney Nov 17, 2026
d18b7d0
docs(ledger): add dependent launches as optimization 30
laudney Nov 17, 2026
720f207
docs(ledger): dependent launches are row 33, after main's rows 30-32
ashhart Nov 19, 2026
010f2f4
fix(contract): keep main's records of qmmf's 16-row cluster tiles
laudney Nov 17, 2026
7b13937
docs(receipts): GLM decode as dependent launches on 2 x GB10
laudney Nov 17, 2026
e14e0a6
test(cuda): fail a dependent launch's wait that a path can skip
laudney Nov 17, 2026
8db055c
test(glm): cover FP4 and MXFP8 tiles and weight-only early copies
laudney Nov 17, 2026
6625158
docs(receipts): rerun the order test and SASS check on the guards
laudney Nov 17, 2026
d3cb98c
docs(receipts): name the record commit by its subject, not its hash
laudney Nov 17, 2026
229239a
refactor(glm): wait and trigger through qmm_frag's shared helpers
laudney Nov 17, 2026
76b5c1e
ci: run the dependent-launch SASS checker's fixtures without a GPU
laudney Nov 17, 2026
6285fc2
fix(glm): keep host tests and the index emulator building with PDL
laudney Nov 17, 2026
812e993
docs(changelog): GLM decode kernels as dependent launches
ultradaoto Nov 18, 2026
757989e
fix(glm): a prompt chunk's KDA chain launches plain
ultradaoto Nov 18, 2026
b534f23
docs(receipts): drop trailing spaces from the SASS check's captured log
ultradaoto Nov 19, 2026
1022683
changelog: #3776's line from lines/3776.txt in place of its own
ashhart Nov 19, 2026
4e8d67e
changelog: #3776's line from lines/3776.txt in place of its own
ashhart Nov 19, 2026
518312c
qwen3_5: a head count of 0 is refused as ZeroHeadCount before any div…
jschmied Nov 18, 2026
0827b29
nemotron, gemma4 Metal DFlash, deepseek_v41 Metal vision: refuse a he…
jschmied Nov 18, 2026
868fd9f
metal: the engine's test block reaches deepseek_v41's vision config, …
jschmied Nov 18, 2026
b0b17e8
changelog: #3777 under Unreleased
ashhart Nov 19, 2026
c7d8679
hip exl3: the input rotation and trellis linear for decode rows, unde…
Shoestring-dev Nov 13, 2026
7df6839
hip build: the Qwen capture and image-exact tools move to lighton_hip…
Shoestring-dev Nov 17, 2026
82304e8
changelog: #3314 under Unreleased
ashhart Nov 19, 2026
795b867
test: bound retirement work for a four-row trim in a large context
ashhart Nov 18, 2026
ac5e30a
core: track only retired KV pages during a cache trim
ashhart Nov 18, 2026
b15fd65
changelog: #3852 under Unreleased
ashhart Nov 19, 2026
1907086
changelog: #3852 under Unreleased
ashhart Nov 19, 2026
5befb4f
server: the next turn's background prefill carries the reply's reasoning
ashhart Nov 13, 2026
dc7af70
server: keep first-turn warm guess on main's rendering
ashhart Nov 17, 2026
20dc018
changelog: #3264 under Unreleased
ashhart Nov 19, 2026
0cb7656
changelog: #3852 under Unreleased
ashhart Nov 19, 2026
3b14594
changelog: #3264 under Unreleased
ashhart Nov 19, 2026
2b5a038
server: GET /v1/models/{id} returns one served model's entry
ashhart Nov 18, 2026
95b8a4b
changelog: #3535 under Unreleased
ashhart Nov 19, 2026
8dd827e
changelog: each line once under Unreleased
ashhart Nov 19, 2026
3eeffaf
glm cuda: the sampled rule from cuda.sample.rule, in place of its han…
jschmied Nov 17, 2026
e3d86f0
changelog: #3705 under Unreleased
ashhart Nov 19, 2026
bb07853
changelog: #3705 under Unreleased
ashhart Nov 19, 2026
e172bcc
perf(flashnext): a prompt pass holds 3,072 rows by default
BadAd84 Nov 16, 2026
76fb593
docs/receipts: the 3,072-row prompt pass measured against main on a GB10
BadAd84 Nov 17, 2026
ff68472
perf(flashnext): the default chunk is read from default_chunk in the …
BadAd84 Nov 18, 2026
66d2794
changelog: #3726 under Unreleased
BadAd84 Nov 19, 2026
bc99bab
changelog: #3726's line from lines/3726.txt in place of its own
ashhart Nov 19, 2026
8671440
Merge remote-tracking branch 'upstream/main' into feat/133-merge-upst…
plotarmordev Nov 19, 2026
e800caa
fix(qwen): refuse unqualified SM110 serving modes
IF-YFXJ Nov 15, 2026
81de26f
changelog: #3057 under Unreleased
ashhart Nov 19, 2026
f17699b
Merge remote-tracking branch 'upstream/main' into feat/133-merge-upst…
plotarmordev Nov 19, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
7 changes: 5 additions & 2 deletions .github/workflows/no-gpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ jobs:
python3 tools/zig/cuda_common_check.py
python3 tools/zig/cuda_fragment_check.py
python3 -m unittest discover -s tools/zig -p cuda_common_check_test.py -v
# check-pdl-loads needs nvcc; its SASS rules and planted early reads are checked here on fixtures.
- name: Dependent-launch SASS checker fixtures
run: python3 tools/test_pdl_early_loads.py -v
# The lean rule (600-line files, one-line comments within 120 columns, no direct getenv of a setting): no problem the base branch lacks.
- name: lean check
if: ${{ github.event_name != 'schedule' }}
Expand Down Expand Up @@ -154,8 +157,8 @@ jobs:
run: zig build -Dfixed-cpu test-golden
# The serving pins ran only in the nightly, so a PR that touched a pinned file landed green and turned the
# next nightly red (10-12 Nov). Run them on every PR: a changed pinned file needs its re-pin in the same PR.
- name: zig build test-gradient-serving test-qwen-serving-host
run: zig build -Dfixed-cpu test-gradient-serving test-qwen-serving-host
- name: zig build test-gradient-serving test-qwen-serving-host test-glm-pdl-scan
run: zig build -Dfixed-cpu test-gradient-serving test-qwen-serving-host test-glm-pdl-scan
# Hostile HTTP framing, API keys and download paths, on the CPU.
- name: zig build test-server-security test-pull-security
run: zig build -Dfixed-cpu test-server-security test-pull-security
Expand Down
129 changes: 119 additions & 10 deletions CHANGELOG.md

Large diffs are not rendered by default.

13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Needs glibc 2.28 or newer and NVIDIA driver R580 or newer (CUDA 13.0). The [run
lists the archive's requirements; Windows has [its own guide](docs/WINDOWS.md).

```sh
V=1.2.10
V=1.3.0
case "$(uname -m)" in
aarch64|arm64) PLATFORM=linux-aarch64 ;;
x86_64) PLATFORM=linux-x86_64 ;;
Expand Down Expand Up @@ -64,6 +64,17 @@ curl -fsS http://127.0.0.1:8080/v1/chat/completions \

The API also serves completions, Responses and Anthropic Messages. `/v1/models` lists the served name.

To talk to a model in the terminal in one command, `tensorfold chat MODEL` starts the server itself, streams each
reply and stops the server when the chat ends; `/help` lists the chat's commands, and `/bye` or Ctrl-D ends it:

```sh
tensorfold chat mlx-community/Qwen3.5-2B-MLX-4bit
```

With the server above still running, `tensorfold chat --url http://127.0.0.1:8080` chats with it instead, and
`echo "Say hello." | tensorfold chat --url http://127.0.0.1:8080` prints one reply for a script.
See [the chat command](docs/chat.md) for its flags and the serve flags it passes on.

## Docs

- [Run guide](docs/run-guide.md): platform setup, requests, parallel requests, exact decoding, context compaction,
Expand Down
5 changes: 3 additions & 2 deletions RUNBOOK.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ For an archive installation, download the arm64 asset and its companion checksum
[latest release](https://github.com/ashhart/TensorFold/releases/latest), with `V` set to its version:

```sh
V=1.2.10
V=1.3.0
curl -fLO https://github.com/ashhart/TensorFold/releases/download/v$V/tensorfold-$V-macos-arm64.tar.gz
curl -fLO https://github.com/ashhart/TensorFold/releases/download/v$V/tensorfold-$V-macos-arm64.tar.gz.sha256
shasum -a 256 -c tensorfold-$V-macos-arm64.tar.gz.sha256
Expand Down Expand Up @@ -210,7 +210,7 @@ Qwen4 has synthetic gates only.
On a GB10 arm64 host (an x86_64 host uses `linux-x86_64` in the same commands):

```sh
V=1.2.10
V=1.3.0
curl -fLO https://github.com/ashhart/TensorFold/releases/download/v$V/tensorfold-$V-linux-aarch64.tar.gz
curl -fLO https://github.com/ashhart/TensorFold/releases/download/v$V/tensorfold-$V-linux-aarch64.tar.gz.sha256
sha256sum -c tensorfold-$V-linux-aarch64.tar.gz.sha256
Expand Down Expand Up @@ -494,3 +494,4 @@ Python 0.6.6 remains a separate release line.

For a bug report, include the version, checkpoint revision, public reproducing request, exact command and relevant startup/request logs.
`TENSORFOLD_LOG_TIME=1` starts each server log line, the `[tensorfold]` lines and every engine's warnings, with its UTC time (`2026-10-30T18:54:04.123Z [tensorfold] ...`), to match the log against other records.
`serve --log-json` writes the access, `ended` and `refused` lines as one JSON object each on that `[tensorfold]` line, with `event` set to `access`, `ended` or `refused`. `access` is written when the response starts, with the HTTP status and the request id once one is assigned. `ended` is written only when the client left or the reply failed, with `prompt` and `tokens`. `refused` is written for an error reply, before its `access` line. Long fields are cut so each line still parses. Without the flag the text lines are unchanged. JSON never includes API keys, Authorization headers or request bodies.
12 changes: 12 additions & 0 deletions THIRD_PARTY_NOTICES.md
Original file line number Diff line number Diff line change
Expand Up @@ -545,3 +545,15 @@ own code as the reference.
[IN22-Gen](https://huggingface.co/datasets/ai4bharat/IN22-Gen) (AI4Bharat) in its 22 languages, unchanged, under
[CC BY 4.0](https://creativecommons.org/licenses/by/4.0/). It is tokenizer test input only. The composition exclusions
and ZWJ/ZWNJ conjuncts after it are TensorFold's own.

## Inkling 2 Small test fixtures

`zig/src/families/inkling2/fixtures/` holds files and values taken from Thinking Machines' Inkling 2 Small release at
revision `2ad1157016e1aac77b6ff1b770e7c05229403134`, under the Apache License 2.0 stated on its model card (see
[the license text](LICENSES/Apache-2.0.txt)): `config.json`, `chat_template.jinja`, `mini_tokenizer.json` (its
`tokenizer.json` cut to the added tokens, the byte alphabet and the first 1,500 merges) and the prompts and ids in
`prompt_cases.json` and `mini_cases.json`, which the Hugging Face transformers and tokenizers libraries produced from
those files. `tiny_config.json` and the tensor tables
`tiny_model_header.txt` and `tiny_mtp_header.txt` describe `tiny-random/inkling-2` at revision
`0a57c72e4e5b68aafe1d983dbb62980344a5fcd7`, a randomly initialised model whose model card names that release as its base
model and states no licence; no weights are included. `tools/zig/inkling2_fixtures.py` rebuilds all of these files.
2 changes: 1 addition & 1 deletion app/docs/benchmarks.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ The feature uses the bundled TensorFold 1.0.12 `benchmark` command and an instal
Hugging Face checkpoint already present in the configured cache.
Linked-folder models are currently unsupported; a run never downloads a model.

The standard community-v1 run uses fixed Code and Chat fixtures, temperatures 1
The standard community-v2 run uses fixed Code and Chat fixtures, temperatures 1
and 0, five measured repetitions per cell, a 4,096-token context and a 256-token
output limit.
Four warm-ups plus 20 measured requests produce 24 requests in total.
Expand Down
4 changes: 2 additions & 2 deletions app/electron/agent/delegation-route.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,15 +179,15 @@ async function run() {
// --- Source pins: both spawn paths route through the resolver ------------------------
{
const source = (rel: string) => readFileSync(fileURLToPath(new URL(rel, import.meta.url)), 'utf8')
const roomIpc = source('../main/host/workspace-runtime-ipc.ts')
const roomIpc = source('../main/host/room-tools-runtime.ts')
const delegateStart = roomIpc.indexOf('delegate: async (args, seat)')
const delegateEnd = roomIpc.indexOf('read_file: async', delegateStart)
assert.ok(delegateStart >= 0 && delegateEnd > delegateStart, 'room delegate tool remains discoverable')
const delegate = roomIpc.slice(delegateStart, delegateEnd)
assert.match(delegate, /resolveDelegationRoute\(store\.settings\.providers/, 'room delegate resolves the cross-model route')
assert.match(delegate, /!routed\.route\) return `Cannot delegate:/, 'route errors surface as tool errors, not crashes')
assert.match(delegate, /runReadOnlySubAgent\(created\.agent, prov, routed\.route\.model/, 'room delegate runs the sub-agent on the routed model')
assert.match(delegate, /parent: parentForRoomSeat\(room, s\)/, 'delegated sub-agent lineage stays under the delegating seat')
assert.match(delegate, /parent: parentForRoomSeat\(runtimeScope\.room, s\)/, 'delegated sub-agent lineage stays under the delegating seat')

const threadRuntime = source('../main/host/tool-context-runtime.ts')
assert.match(threadRuntime, /resolveDelegationRoute\(store\.settings\.providers/, 'thread sub-agent launcher resolves the cross-model route')
Expand Down
9 changes: 7 additions & 2 deletions app/electron/agent/delegation-route.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Provider, Seat } from './types'
import type { Provider, ReasoningEffortSetting, Seat } from './types'
import { resolveProviderModel, selectProviderAccount } from './provider-accounts'

// Cross-model delegation routing (Traycer-style): a single spawn binds provider/account/model,
Expand All @@ -10,6 +10,7 @@ export interface DelegationRouteBase {
// "fall back to the active/default account" while null means "no account".
providerAccountId?: string | null
model: string
reasoningEffort?: ReasoningEffortSetting
}

export interface DelegationRouteOverride {
Expand Down Expand Up @@ -49,10 +50,14 @@ export function resolveDelegationRoute(
const seat = seats?.find((candidate) => candidate.name === targetSeat)
if (!seat) return { error: `unknown seat "${targetSeat}"` }
route = { providerId: seat.providerId, providerAccountId: seat.providerAccountId, model: seat.model }
if (seat.reasoningEffort !== undefined) route.reasoningEffort = seat.reasoningEffort
}
// A same-provider override keeps the inherited account; only a cross-provider switch
// resets it (the account id is meaningless on the new provider).
if (providerId && providerId !== route.providerId) route = { providerId, model: route.model }
if (providerId && providerId !== route.providerId) {
route = { providerId, model: route.model,
...(route.reasoningEffort === undefined ? {} : { reasoningEffort: route.reasoningEffort }) }
}
const provider = providers.find((candidate) => candidate.id === route.providerId)
if (!provider) return { error: `unknown provider "${route.providerId}"` }
if (localOnly && provider.kind !== 'local') return { error: `provider "${provider.name}" must be a local provider for this local-only project` }
Expand Down
18 changes: 18 additions & 0 deletions app/electron/agent/engine/benchmark/controller.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,4 +109,22 @@ assert.equal((await quitting.controller.snapshot())?.state, 'cancelled')
assert.equal((await quitting.controller.snapshot())?.restored, false)
assert.equal(quitting.stats().restores, 0, 'app closing saves cancellation without reloading the previous model')
await assert.rejects(quitting.controller.start({ ...input, id: 'benchmark_after_closing' }), /current local benchmark/)
const kept = fixture(); kept.missing()
const details = (({ runtime, model, hardware, settings }) => ({ runtime, model, hardware, settings }))(syntheticBenchmarkReceipt(input.model))
let asked: unknown = null
Object.assign(kept.deps, { readDetails: async (_file: string, expected: unknown) => { asked = expected; return structuredClone(details) } })
await kept.controller.start(input); await running(kept); kept.finish(1); await kept.controller.settle()
const keptRun = (await kept.controller.snapshot())!
assert.equal(keptRun.state, 'failed')
assert.equal(keptRun.receiptAvailable, false)
assert.deepEqual(keptRun.metadata, details, 'a failed run keeps its checked hardware, engine and checkpoint details')
assert.equal(Reflect.get(asked as object, 'engineVersion'), BENCHMARK_ENGINE_VERSION)
assert.equal((await absent.controller.snapshot())?.metadata, undefined, 'without details a failed run has no metadata')
const refused = fixture(); refused.missing()
Object.assign(refused.deps, { readDetails: async () => null })
await refused.controller.start(input); await running(refused); refused.finish(1); await refused.controller.settle()
const refusedRun = (await refused.controller.snapshot())!
assert.equal(refusedRun.state, 'failed')
assert.equal(refusedRun.metadata, undefined, 'a receipt whose details fail their checks leaves no metadata, not null')
assert.equal(Object.hasOwn(refusedRun, 'metadata'), false)
console.log('Benchmark controller exact-job admission/drain, cancel, restart/export, storage and restoration failures passed')
15 changes: 13 additions & 2 deletions app/electron/agent/engine/benchmark/controller.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { isRepoId } from '../paths'
import type { ModelBenchmarkInput, ModelBenchmarkReceipt, ModelBenchmarkSnapshot } from '../../../../shared/model-benchmark'
import { benchmarkCells, benchmarkProtocolComplete, parseBenchmarkReceipt } from './receipt'
import { benchmarkCells, benchmarkProtocolComplete, parseBenchmarkReceipt, type BenchmarkDetails } from './receipt'
import type { BenchmarkProcessHandle } from './process'
import type { ModelBenchmarkStore, SavedModelBenchmark } from './storage'
import { BENCHMARK_ENGINE_VERSION } from './version'
Expand All @@ -13,6 +13,7 @@ export interface ModelBenchmarkDependencies {
workspace(): Promise<{ receiptPath: string; directory: string; remove(): Promise<void> }>
process(input: Required<ModelBenchmarkInput>, workspace: { receiptPath: string; directory: string }, progress: (value: ModelBenchmarkSnapshot['progress']) => void, signal: AbortSignal): BenchmarkProcessHandle
readReceipt(path: string, input: Required<ModelBenchmarkInput>): Promise<ModelBenchmarkReceipt | null>
readDetails?(path: string, expected: Required<ModelBenchmarkInput> & { engineVersion: string }): Promise<BenchmarkDetails | null>
store: ModelBenchmarkStore
changed?(snapshot: ModelBenchmarkSnapshot): void
now?: () => number
Expand Down Expand Up @@ -104,11 +105,14 @@ export class ModelBenchmarks {
let duplicate = false
let unsafeCleanup = false
let phase: 'validation' | 'process' | 'receipt' = 'validation'
let engineVersion = BENCHMARK_ENGINE_VERSION
let checkpointChanged = false
const assertAllowed = () => { if (job.controller.signal.aborted || this.disposed) throw new Error('Benchmark cancelled.'); this.deps.assertAllowed() }
try {
const history = await this.deps.store.list()
if (history.some(record => record.snapshot.id === input.id)) { duplicate = true; throw new Error('Duplicate benchmark identifier.') }
assertAllowed(); const checkpoint = await this.deps.validateModel(input.model); assertAllowed()
engineVersion = checkpoint?.engineVersion ?? BENCHMARK_ENGINE_VERSION
lease = await this.deps.reserve(); job.snapshot.previousModel = lease.previousModel
assertAllowed(); await lease.pause(); assertAllowed()
workspace = await this.deps.workspace(); assertAllowed()
Expand All @@ -124,7 +128,7 @@ export class ModelBenchmarks {
const receipt = await this.deps.readReceipt(workspace.receiptPath, input)
job.receipt = receipt ? parseBenchmarkReceipt(JSON.stringify(receipt), { ...input, engineVersion: checkpoint?.engineVersion ?? BENCHMARK_ENGINE_VERSION }, this.now()) : null
if (job.receipt) {
if (checkpoint && (job.receipt.model.revision !== checkpoint.revision || job.receipt.model.config_sha256 !== checkpoint.configSha256)) { job.receipt = null; throw new Error('The cached checkpoint changed during the benchmark.') }
if (checkpoint && (job.receipt.model.revision !== checkpoint.revision || job.receipt.model.config_sha256 !== checkpoint.configSha256)) { job.receipt = null; checkpointChanged = true; throw new Error('The cached checkpoint changed during the benchmark.') }
job.snapshot.metadata = structuredClone({ runtime: job.receipt.runtime, model: job.receipt.model, hardware: job.receipt.hardware, settings: job.receipt.settings })
job.snapshot.cells = benchmarkCells(job.receipt)
job.snapshot.receiptAvailable = true
Expand All @@ -142,6 +146,13 @@ export class ModelBenchmarks {
else try { await lease.restore(job.restoration.signal); job.snapshot.restored = true } catch { job.snapshot.restored = false; job.snapshot.restoreError = 'The previous local model could not be restored. Reload it from My models.' }
lease.release()
}
// a run without a valid receipt keeps the checked hardware, engine and checkpoint details its receipt file has
if (!job.snapshot.metadata && workspace && !checkpointChanged && this.deps.readDetails) {
try {
const details = await this.deps.readDetails(workspace.receiptPath, { ...input, engineVersion })
if (details) job.snapshot.metadata = details // a refused receipt's details fail their checks: no metadata
} catch {}
}
const finalState = job.controller.signal.aborted ? 'cancelled' : job.snapshot.error || job.snapshot.restoreError || code !== 0 || !job.snapshot.cells.every(cell => cell.complete) ? 'failed' : 'complete'
if (finalState === 'failed' && !job.snapshot.error && !job.snapshot.restoreError) job.snapshot.error = 'The local benchmark did not complete every measured attempt.'
job.snapshot.finishedAt = this.now()
Expand Down
3 changes: 2 additions & 1 deletion app/electron/agent/engine/benchmark/fake-benchmark.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,13 @@ if (args[0] !== 'benchmark') {
const fixture = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '../test-fixtures/fake-engine.mjs')
process.exit(spawnSync(process.execPath, [fixture, ...args], { stdio: 'inherit', env: process.env }).status ?? 1)
}
const suites = JSON.parse(readFileSync(path.resolve(path.dirname(fileURLToPath(import.meta.url)), '../../../../shared/benchmark-suites.json'), 'utf8'))
const model = args[1], output = args[args.indexOf('--output') + 1]
const serial = args.includes('--serial')
const root = path.join(process.env.HF_HUB_CACHE ?? '', `models--${model.replace('/', '--')}`)
let revision = 'a'.repeat(40), config = Buffer.from('{}')
try { revision = readFileSync(path.join(root, 'refs', 'main'), 'utf8').trim(); config = readFileSync(path.join(root, 'snapshots', revision, 'config.json')) } catch {}
const receipt = { schema_version: 1, suite: { id: 'community-v1', sha256: '9bb717da00666b90b4006174abd9ed46108affc37456b43c64a224a9c938d5be' }, run_id: '00000000-0000-4000-8000-000000000001', created_at: '2026-01-01T00:00:00Z', runtime: { tensorfold_version: scenario === 'mismatched-receipt' ? '1.0.12' : engineVersion, backend: 'mlx', python_version: 'none', platform: 'macos', dependencies: {} }, model: { repo_id: model, revision, family: 'qwen3_5', config_sha256: createHash('sha256').update(config).digest('hex'), tokenizer_sha256: null, quantization: 'mlx-4bit-g64', drafter_repo_id: null, local: false }, hardware: { cpu_model: 'Synthetic CPU', system_memory_bytes: 16 * 1024 ** 3, memory_type: 'unified', gpus: [{ name: 'Synthetic GPU', memory_bytes: null, cores: 8 }], gpu_count: 1, source: 'detected' }, settings: { tokens: 256, repetitions: 5, temperatures: [1, 0], serial, context_tokens: 4096, managed: true, rank_count: 1 }, samples: [] }
const receipt = { schema_version: 1, suite: { id: 'community-v2', sha256: suites['community-v2'] }, run_id: '00000000-0000-4000-8000-000000000001', created_at: '2026-01-01T00:00:00Z', runtime: { tensorfold_version: scenario === 'mismatched-receipt' ? '1.0.12' : engineVersion, backend: 'mlx', python_version: 'none', platform: 'macos', dependencies: {} }, model: { repo_id: model, revision, family: 'qwen3_5', config_sha256: createHash('sha256').update(config).digest('hex'), tokenizer_sha256: null, quantization: 'mlx-4bit-g64', drafter_repo_id: null, local: false }, hardware: { cpu_model: 'Synthetic CPU', system_memory_bytes: 16 * 1024 ** 3, memory_type: 'unified', gpus: [{ name: 'Synthetic GPU', memory_bytes: null, cores: 8 }], gpu_count: 1, source: 'detected' }, settings: { tokens: 256, repetitions: 5, temperatures: [1, 0], serial, context_tokens: 4096, managed: true, rank_count: 1 }, samples: [] }
const sample = (fixture_id, temperature, repeat) => ({ fixture_id, temperature, repeat, seed: 1234 + Math.max(0, repeat), status: 'ok', prompt_tokens: 24, completion_tokens: 256, cached_tokens: 0, delivery_seconds: 2.55, delivery_tps: 100, ttft_seconds: 0.1, end_to_end_seconds: 2.8, server_decode_tps: 110, server_decode_seconds: null, prefill_seconds: null, token_sha: 'd'.repeat(12), error_code: null })
const save = () => writeFileSync(output, JSON.stringify(receipt), { mode: 0o600, flag: 'wx' })
const say = text => scenario === 'stderr' ? console.error(text) : console.log(text)
Expand Down
Loading