Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
455 commits
Select commit Hold shift + click to select a range
19ac75d
docs(vulkan): receipts and the changelog line for batched submission …
joshuaswarren Nov 3, 2026
a7a3aa5
style(vulkan): one-line comment on Commands.submit, so lean_check add…
joshuaswarren Nov 3, 2026
b833756
style(vulkan): shorten the Commands.submit comment to 120 columns
joshuaswarren Nov 3, 2026
0c82d90
docs(vulkan): say that Commands.deinit drops unsubmitted dispatches a…
joshuaswarren Nov 3, 2026
6189b7c
vulkan: exit on fence-unknown GPU errors in the datamove and greedy c…
joshuaswarren Nov 5, 2026
0155a05
vulkan: drop unsubmitted records and poison the stream when a contrac…
joshuaswarren Nov 5, 2026
3590cd4
zig: join two-line comments to one line for the lean gate
joshuaswarren Nov 5, 2026
7a61b81
docs: the batched-submission changelog line moves under the Unrelease…
joshuaswarren Nov 11, 2026
9c44709
docs: batched-submission figures measured on the float32-fixed heads
joshuaswarren Nov 11, 2026
76be5c7
docs: restore XPU note and update batch figures
joshuaswarren Nov 13, 2026
148ebab
Add checked BF16 Vulkan tensor operations and operator gate
joshuaswarren Oct 28, 2026
2942288
Add checked BF16 Vulkan norm and MLP operator gate
joshuaswarren Oct 28, 2026
a40bcad
Add native Vulkan attention, recurrent and greedy operator gates
joshuaswarren Oct 28, 2026
d0e88d9
Report the first residual-add class mismatch without changing acceptance
joshuaswarren Oct 28, 2026
a5c8158
Make attention and recurrent probes reject unwritten outputs and matc…
joshuaswarren Oct 28, 2026
8927568
Add the native Vulkan dense Qwen3.5-2B greedy engine and oracle probe
joshuaswarren Oct 28, 2026
008a7b1
Qualify residual denormals by device float controls and request suppo…
joshuaswarren Oct 28, 2026
18ed5b4
Fix Vulkan attention gate widening and diagnose GDN reference failures
joshuaswarren Oct 28, 2026
8f9467c
Separate Vulkan prefill snapshot dummy from read-only slot
joshuaswarren Oct 28, 2026
55851b2
Match Vulkan decode raw-gate flag to the shader mask
joshuaswarren Oct 28, 2026
a394457
fix(vulkan): admit parsed checkpoint geometry and validate full load
joshuaswarren Oct 28, 2026
b27d4c1
feat(vulkan): chunk Qwen3.5 prefill within the context ceiling
joshuaswarren Oct 28, 2026
c2d68c2
fix(vulkan): use one GDN path for prefill and decode
joshuaswarren Oct 28, 2026
0420a30
build(vulkan): give the contract runner every operator's SPIR-V and a…
joshuaswarren Oct 28, 2026
3e354d6
contract(vulkan): the gdn group's GatedDeltaNet shaders under the ker…
joshuaswarren Oct 28, 2026
a45ab09
contract(vulkan): fix the gdn group's fixture against the first devic…
joshuaswarren Oct 28, 2026
a5f5b72
contract(vulkan): keep the gdn split's served a_log normal and state …
joshuaswarren Oct 28, 2026
e8ff4fd
contract(vulkan): the datamove group's seven exact kernels through ga…
joshuaswarren Oct 28, 2026
6e177f8
contract(vulkan): the attention group over the engine's served shapes
joshuaswarren Oct 28, 2026
0ea2088
contract(vulkan): the greedy group's composed draw through gates 1-4
joshuaswarren Oct 28, 2026
f42e1f3
contract(vulkan): the pointwise group's six closures over the product…
joshuaswarren Oct 28, 2026
2eb3f3f
build(vulkan): run the datamove host tests on the build host, not the…
joshuaswarren Oct 28, 2026
ee776a5
contract(vulkan): refuse odd 16-bit edge shapes in the datamove casts…
joshuaswarren Oct 28, 2026
26723c8
contract(vulkan): the gdn prefill's uploads must not slice out past w…
joshuaswarren Oct 28, 2026
29342b3
contract(vulkan): upload the greedy shell's guard pattern instead of …
joshuaswarren Oct 28, 2026
a668e59
contract(vulkan): model the preserve add as the pipeline that is actu…
joshuaswarren Oct 28, 2026
ca00c9b
fix(vulkan): the GDN bf16 store keeps infinity infinity
joshuaswarren Oct 28, 2026
504bef4
contract(vulkan): record the preserve-add subnormal flush as a known …
joshuaswarren Oct 28, 2026
bb10b2b
contract(vulkan): the gated norm gate at the production per-head geom…
joshuaswarren Oct 28, 2026
4847190
style: zig fmt, one-line comments and the changelog entry for #1544
joshuaswarren Oct 30, 2026
e6123bf
style: every comment one line, the changelog credit for #1544
joshuaswarren Oct 30, 2026
33290ed
style: shorten every added comment to one line of at most 120 columns
joshuaswarren Oct 30, 2026
d8050c2
style(vulkan): the attention header's comments one line each
joshuaswarren Nov 3, 2026
b369d3a
lean: the stage 2 fixture's cases in their own file
joshuaswarren Nov 3, 2026
19a2cc8
lean: the stage 3 fixture's cases in their own file
joshuaswarren Nov 3, 2026
f2f34c1
refactor(vulkan): the GDN geometry plans move to their own module
joshuaswarren Nov 3, 2026
7f6562d
refactor(vulkan): the datamove contract's rig moves to its own module
joshuaswarren Nov 3, 2026
34ec94f
refactor(vulkan): the Qwen3.5 probe's receipt moves to its own module
joshuaswarren Nov 3, 2026
0a13e71
build: the Vulkan stages' build steps move into their own file
joshuaswarren Nov 3, 2026
3d472ba
style: the trig header's comments are one line each
joshuaswarren Nov 3, 2026
50670eb
style: split the stage 4 fixture and probe into lean files
joshuaswarren Nov 3, 2026
cf4ce94
lean: the gdn contract's layers in their own files
joshuaswarren Nov 3, 2026
0ed8a77
qwen3_5 Vulkan: drop stale full_every pin, honor prefill max_rows
joshuaswarren Nov 7, 2026
6cd5954
feat(vulkan): qmm_q4_vec4, the q4 projection with 16-byte weight and …
joshuaswarren Nov 3, 2026
755be63
contract(vulkan): register qmm_q4_vec4 and run it through the same ga…
joshuaswarren Nov 3, 2026
fd7c993
docs(vulkan): receipts for qmm_q4_vec4 on a 13-inch M1, and the chang…
joshuaswarren Nov 3, 2026
7190f09
docs(vulkan): contract runner output for qmm_q4_vec4 on a 13-inch M1
joshuaswarren Nov 3, 2026
2e6d7ce
Rename ASH labels to oracle and correct file headers on the vulkan qm…
joshuaswarren Nov 9, 2026
8b3d359
style(vulkan): shorten the two renamed comments to 120 columns, so le…
joshuaswarren Nov 10, 2026
992c471
shaders: f32 activation variants for the wide layers 0-3 stores
joshuaswarren Nov 5, 2026
1c33209
vulkan ops: f32 activation pipelines for the wide-layer stores
joshuaswarren Nov 5, 2026
40809ad
qwen35 engine: per-layer activation kind, layers 0-3 f32
joshuaswarren Nov 5, 2026
e7c8d4b
tests: f32 pipeline fixtures, the wide-layer sweep, lean formatting
joshuaswarren Nov 5, 2026
6a5ecc7
style: one-line comments at the layer-kind call sites
joshuaswarren Nov 5, 2026
3fd3526
style: keep the lean check at base parity
joshuaswarren Nov 5, 2026
87e935e
qwen35 vulkan: make the f32 layers 0-3 path run end to end
joshuaswarren Nov 5, 2026
8478bfe
cli: the backend flag lists only the choices this build serves
joshuaswarren Nov 9, 2026
a4e7d50
docs: the credits page names what the vulkan qwen3.5 engine follows
joshuaswarren Nov 9, 2026
914ca04
server: --backend choices list the whole set so unserved picks get th…
joshuaswarren Nov 10, 2026
1bd5226
server: vulkan joins the backend choices; the credits name the omarch…
joshuaswarren Nov 11, 2026
5e23105
docs: the stack's changelog lines move under a new Unreleased heading
joshuaswarren Nov 11, 2026
07c978e
server: the backend-choice test moves to its own file under the 600-l…
joshuaswarren Nov 11, 2026
980400b
server: the test export keeps cuda_build next to backend_values
joshuaswarren Nov 11, 2026
9103ee0
docs: qmm_q4_vec4 figures measured on the float32-fixed head
joshuaswarren Nov 11, 2026
3b70af8
vulkan: origin and copyright headers, plain comments, and our own nam…
joshuaswarren Nov 12, 2026
87e8c80
contract(vulkan): sync contract_qmm with main's adopt-based Fixture.p…
joshuaswarren Nov 10, 2026
7c74378
feat(vulkan): qmm_q4_tile, the q4 projection over weights repacked in…
joshuaswarren Nov 3, 2026
9b66e56
contract(vulkan): register qmm_q4_tile and run it through the same ga…
joshuaswarren Nov 3, 2026
80fcd51
fix(vulkan): the tiled image serves every n; the last tile is padded …
joshuaswarren Nov 3, 2026
3ea0465
docs(vulkan): receipts and the changelog line for qmm_q4_tile on a 13…
joshuaswarren Nov 3, 2026
3834b78
style(vulkan): one-line comments in the tile files, so lean_check add…
joshuaswarren Nov 3, 2026
033e4d4
fix(vulkan): float32 layers stay on row weights, and each qmm fixture…
joshuaswarren Nov 11, 2026
1828433
docs: the tile changelog line moves under the Unreleased heading
joshuaswarren Nov 11, 2026
b141f08
style(vulkan): format weights.zig and keep the tile doc comment to on…
joshuaswarren Nov 11, 2026
b922ee9
docs: qmm_q4_tile figures measured on the float32-fixed heads
joshuaswarren Nov 11, 2026
62997ef
vulkan: q4 tile image reads and stores f32 activations
joshuaswarren Nov 12, 2026
416380f
vulkan: kernel contract fixture for the f32 q4 tile image
joshuaswarren Nov 12, 2026
6ad1480
vulkan: keep the tiledActivation comment on one line
joshuaswarren Nov 12, 2026
e827641
docs: pinned head-to-head timing and ten runner outputs for qmm_q4_ti…
joshuaswarren Nov 12, 2026
645ae24
perf(vulkan): record dispatches into one command buffer and submit on…
joshuaswarren Nov 3, 2026
fc2ab16
docs(vulkan): receipts and the changelog line for batched submission …
joshuaswarren Nov 3, 2026
a8727cb
style(vulkan): one-line comment on Commands.submit, so lean_check add…
joshuaswarren Nov 3, 2026
9c1967a
style(vulkan): shorten the Commands.submit comment to 120 columns
joshuaswarren Nov 3, 2026
cc35dcd
docs(vulkan): say that Commands.deinit drops unsubmitted dispatches a…
joshuaswarren Nov 3, 2026
619f7c1
vulkan: exit on fence-unknown GPU errors in the datamove and greedy c…
joshuaswarren Nov 5, 2026
8db1674
vulkan: drop unsubmitted records and poison the stream when a contrac…
joshuaswarren Nov 5, 2026
116672f
zig: join two-line comments to one line for the lean gate
joshuaswarren Nov 5, 2026
34eca4b
docs: the batched-submission changelog line moves under the Unrelease…
joshuaswarren Nov 11, 2026
8d19745
docs: batched-submission figures measured on the float32-fixed heads
joshuaswarren Nov 11, 2026
e4122b2
vulkan: qmm_q4_tile_rows computes four rows and two columns of a prom…
joshuaswarren Nov 12, 2026
815ce36
contract(vulkan): register qmm_q4_tile_rows, serve rows 5 and 33, pla…
joshuaswarren Nov 12, 2026
85431a3
docs(vulkan): figures and changelog lines for qmm_q4_tile_rows on a 1…
joshuaswarren Nov 12, 2026
91b7b6b
vulkan: keep the qmm_q4_tile_rows header comment within 120 columns
joshuaswarren Nov 12, 2026
fa02ac9
vulkan: name the tile image choice in tileImage and pin it with a hos…
joshuaswarren Nov 12, 2026
d2c5888
Add checked BF16 Vulkan tensor operations and operator gate
joshuaswarren Oct 28, 2026
1679387
Add checked BF16 Vulkan norm and MLP operator gate
joshuaswarren Oct 28, 2026
4dc0fc5
Add native Vulkan attention, recurrent and greedy operator gates
joshuaswarren Oct 28, 2026
d476441
Report the first residual-add class mismatch without changing acceptance
joshuaswarren Oct 28, 2026
b248724
Make attention and recurrent probes reject unwritten outputs and matc…
joshuaswarren Oct 28, 2026
66783ef
Add the native Vulkan dense Qwen3.5-2B greedy engine and oracle probe
joshuaswarren Oct 28, 2026
53a4e36
Qualify residual denormals by device float controls and request suppo…
joshuaswarren Oct 28, 2026
c711429
Fix Vulkan attention gate widening and diagnose GDN reference failures
joshuaswarren Oct 28, 2026
a0e4750
Separate Vulkan prefill snapshot dummy from read-only slot
joshuaswarren Oct 28, 2026
c4851fd
Match Vulkan decode raw-gate flag to the shader mask
joshuaswarren Oct 28, 2026
796b75d
fix(vulkan): admit parsed checkpoint geometry and validate full load
joshuaswarren Oct 28, 2026
8dfdc26
feat(vulkan): chunk Qwen3.5 prefill within the context ceiling
joshuaswarren Oct 28, 2026
2a8c695
fix(vulkan): use one GDN path for prefill and decode
joshuaswarren Oct 28, 2026
a8b9761
build(vulkan): give the contract runner every operator's SPIR-V and a…
joshuaswarren Oct 28, 2026
00f543f
contract(vulkan): the gdn group's GatedDeltaNet shaders under the ker…
joshuaswarren Oct 28, 2026
8c43adf
contract(vulkan): fix the gdn group's fixture against the first devic…
joshuaswarren Oct 28, 2026
76a268d
contract(vulkan): keep the gdn split's served a_log normal and state …
joshuaswarren Oct 28, 2026
bbf10aa
contract(vulkan): the datamove group's seven exact kernels through ga…
joshuaswarren Oct 28, 2026
36f5c63
contract(vulkan): the attention group over the engine's served shapes
joshuaswarren Oct 28, 2026
72c47f6
contract(vulkan): the greedy group's composed draw through gates 1-4
joshuaswarren Oct 28, 2026
36f5dc7
contract(vulkan): the pointwise group's six closures over the product…
joshuaswarren Oct 28, 2026
38feeb8
build(vulkan): run the datamove host tests on the build host, not the…
joshuaswarren Oct 28, 2026
676c8bc
contract(vulkan): refuse odd 16-bit edge shapes in the datamove casts…
joshuaswarren Oct 28, 2026
6d82154
contract(vulkan): the gdn prefill's uploads must not slice out past w…
joshuaswarren Oct 28, 2026
48cb7c0
contract(vulkan): upload the greedy shell's guard pattern instead of …
joshuaswarren Oct 28, 2026
018c018
contract(vulkan): model the preserve add as the pipeline that is actu…
joshuaswarren Oct 28, 2026
5552ea7
fix(vulkan): the GDN bf16 store keeps infinity infinity
joshuaswarren Oct 28, 2026
07df3ca
contract(vulkan): record the preserve-add subnormal flush as a known …
joshuaswarren Oct 28, 2026
e63d961
contract(vulkan): the gated norm gate at the production per-head geom…
joshuaswarren Oct 28, 2026
b80d9c9
style: zig fmt, one-line comments and the changelog entry for #1544
joshuaswarren Oct 30, 2026
fe8d074
style: every comment one line, the changelog credit for #1544
joshuaswarren Oct 30, 2026
bdb4e20
style: shorten every added comment to one line of at most 120 columns
joshuaswarren Oct 30, 2026
eb8ed9a
style(vulkan): the attention header's comments one line each
joshuaswarren Nov 3, 2026
4154833
lean: the stage 2 fixture's cases in their own file
joshuaswarren Nov 3, 2026
09fdd05
lean: the stage 3 fixture's cases in their own file
joshuaswarren Nov 3, 2026
a7e0e84
refactor(vulkan): the GDN geometry plans move to their own module
joshuaswarren Nov 3, 2026
3e9ba52
refactor(vulkan): the datamove contract's rig moves to its own module
joshuaswarren Nov 3, 2026
07f4a07
refactor(vulkan): the Qwen3.5 probe's receipt moves to its own module
joshuaswarren Nov 3, 2026
3052229
build: the Vulkan stages' build steps move into their own file
joshuaswarren Nov 3, 2026
aa61b90
style: the trig header's comments are one line each
joshuaswarren Nov 3, 2026
cb85fc7
style: split the stage 4 fixture and probe into lean files
joshuaswarren Nov 3, 2026
afa11b2
lean: the gdn contract's layers in their own files
joshuaswarren Nov 3, 2026
ec44426
qwen3_5 Vulkan: drop stale full_every pin, honor prefill max_rows
joshuaswarren Nov 7, 2026
5191227
feat(vulkan): qmm_q4_vec4, the q4 projection with 16-byte weight and …
joshuaswarren Nov 3, 2026
b70bd68
contract(vulkan): register qmm_q4_vec4 and run it through the same ga…
joshuaswarren Nov 3, 2026
d977048
docs(vulkan): receipts for qmm_q4_vec4 on a 13-inch M1, and the chang…
joshuaswarren Nov 3, 2026
32b3c02
docs(vulkan): contract runner output for qmm_q4_vec4 on a 13-inch M1
joshuaswarren Nov 3, 2026
cbfe707
Rename ASH labels to oracle and correct file headers on the vulkan qm…
joshuaswarren Nov 9, 2026
01a1aa1
style(vulkan): shorten the two renamed comments to 120 columns, so le…
joshuaswarren Nov 10, 2026
9ced066
shaders: f32 activation variants for the wide layers 0-3 stores
joshuaswarren Nov 5, 2026
077f88c
vulkan ops: f32 activation pipelines for the wide-layer stores
joshuaswarren Nov 5, 2026
cd9549e
qwen35 engine: per-layer activation kind, layers 0-3 f32
joshuaswarren Nov 5, 2026
f5fabe3
tests: f32 pipeline fixtures, the wide-layer sweep, lean formatting
joshuaswarren Nov 5, 2026
1850c7e
style: one-line comments at the layer-kind call sites
joshuaswarren Nov 5, 2026
d9a7625
style: keep the lean check at base parity
joshuaswarren Nov 5, 2026
a7af01a
qwen35 vulkan: make the f32 layers 0-3 path run end to end
joshuaswarren Nov 5, 2026
ed0791c
cli: the backend flag lists only the choices this build serves
joshuaswarren Nov 9, 2026
16bde5d
docs: the credits page names what the vulkan qwen3.5 engine follows
joshuaswarren Nov 9, 2026
9df737b
server: --backend choices list the whole set so unserved picks get th…
joshuaswarren Nov 10, 2026
0c8dc42
server: vulkan joins the backend choices; the credits name the omarch…
joshuaswarren Nov 11, 2026
09fbc6f
docs: the stack's changelog lines move under a new Unreleased heading
joshuaswarren Nov 11, 2026
96f5321
server: the backend-choice test moves to its own file under the 600-l…
joshuaswarren Nov 11, 2026
b5699e7
server: the test export keeps cuda_build next to backend_values
joshuaswarren Nov 11, 2026
61af950
docs: qmm_q4_vec4 figures measured on the float32-fixed head
joshuaswarren Nov 11, 2026
fcc5a97
vulkan: origin and copyright headers, plain comments, and our own nam…
joshuaswarren Nov 12, 2026
65195f1
contract(vulkan): sync contract_qmm with main's adopt-based Fixture.p…
joshuaswarren Nov 10, 2026
4bacc40
feat(vulkan): qmm_q4_tile, the q4 projection over weights repacked in…
joshuaswarren Nov 3, 2026
61d718d
contract(vulkan): register qmm_q4_tile and run it through the same ga…
joshuaswarren Nov 3, 2026
552bec4
fix(vulkan): the tiled image serves every n; the last tile is padded …
joshuaswarren Nov 3, 2026
bd437ab
docs(vulkan): receipts and the changelog line for qmm_q4_tile on a 13…
joshuaswarren Nov 3, 2026
12f3609
style(vulkan): one-line comments in the tile files, so lean_check add…
joshuaswarren Nov 3, 2026
761e5c4
fix(vulkan): float32 layers stay on row weights, and each qmm fixture…
joshuaswarren Nov 11, 2026
ac8d8fc
docs: the tile changelog line moves under the Unreleased heading
joshuaswarren Nov 11, 2026
68d78b7
style(vulkan): format weights.zig and keep the tile doc comment to on…
joshuaswarren Nov 11, 2026
00b3051
docs: qmm_q4_tile figures measured on the float32-fixed heads
joshuaswarren Nov 11, 2026
7a7b368
vulkan: q4 tile image reads and stores f32 activations
joshuaswarren Nov 12, 2026
9a8263f
vulkan: kernel contract fixture for the f32 q4 tile image
joshuaswarren Nov 12, 2026
9701a31
vulkan: keep the tiledActivation comment on one line
joshuaswarren Nov 12, 2026
9cab4bb
docs: pinned head-to-head timing and ten runner outputs for qmm_q4_ti…
joshuaswarren Nov 12, 2026
8d551eb
perf(vulkan): record dispatches into one command buffer and submit on…
joshuaswarren Nov 3, 2026
c3d0f8d
docs(vulkan): receipts and the changelog line for batched submission …
joshuaswarren Nov 3, 2026
668e1fa
style(vulkan): one-line comment on Commands.submit, so lean_check add…
joshuaswarren Nov 3, 2026
6b49a78
style(vulkan): shorten the Commands.submit comment to 120 columns
joshuaswarren Nov 3, 2026
73c769e
docs(vulkan): say that Commands.deinit drops unsubmitted dispatches a…
joshuaswarren Nov 3, 2026
a4ebcff
vulkan: exit on fence-unknown GPU errors in the datamove and greedy c…
joshuaswarren Nov 5, 2026
9a4a837
vulkan: drop unsubmitted records and poison the stream when a contrac…
joshuaswarren Nov 5, 2026
3bfa804
zig: join two-line comments to one line for the lean gate
joshuaswarren Nov 5, 2026
b55e75e
docs: the batched-submission changelog line moves under the Unrelease…
joshuaswarren Nov 11, 2026
34a6f80
docs: batched-submission figures measured on the float32-fixed heads
joshuaswarren Nov 11, 2026
43bf2e0
vulkan: qmm_q4_tile_rows computes four rows and two columns of a prom…
joshuaswarren Nov 12, 2026
03a2448
contract(vulkan): register qmm_q4_tile_rows, serve rows 5 and 33, pla…
joshuaswarren Nov 12, 2026
322a241
docs(vulkan): figures and changelog lines for qmm_q4_tile_rows on a 1…
joshuaswarren Nov 12, 2026
1a08f3d
vulkan: keep the qmm_q4_tile_rows header comment within 120 columns
joshuaswarren Nov 12, 2026
d969d1e
vulkan: name the tile image choice in tileImage and pin it with a hos…
joshuaswarren Nov 12, 2026
d2536f7
vulkan: skip the dispatch barrier when no earlier dispatch conflicts
joshuaswarren Nov 12, 2026
9314e50
docs: receipts for the vulkan barrier-hazard change (13-inch M1 and t…
joshuaswarren Nov 12, 2026
ed80509
docs(vulkan): ten runners and a three-pair run at the restacked head …
joshuaswarren Nov 12, 2026
e6dab94
style(vulkan): keep three comments inside the lean gate
joshuaswarren Nov 13, 2026
0933309
docs: the stack's changelog lines sit under a new Unreleased heading …
joshuaswarren Nov 13, 2026
70ff845
Merge vulkan-engine-pr2 (8267ec1) into vulkan-qmm-vec4
joshuaswarren Nov 14, 2026
9869e3a
test(server): move the config invalid-choice example off vulkan
joshuaswarren Nov 14, 2026
01ac6f5
test(server): move the config invalid-choice example off vulkan
joshuaswarren Nov 14, 2026
5e2f92b
test(server): move the config invalid-choice example off vulkan
joshuaswarren Nov 14, 2026
7c2e872
Merge commit '70ff84531' into w7p/tf2015-restack
joshuaswarren Nov 14, 2026
5c801f1
docs: name the build behind each qmm tile digest after the #1990 restack
joshuaswarren Nov 14, 2026
bbaa181
fix(ci): restore the committed cuda_engine.zig and the root.zig indent
joshuaswarren Nov 14, 2026
80047f7
fix(ci): restore the committed cuda_engine.zig and the root.zig indent
joshuaswarren Nov 14, 2026
26bc777
Restack on #2015 head 5c801f1af and main 2ba55ec7
joshuaswarren Nov 14, 2026
19fff6b
vulkan: replace three placeholder comments with the facts they stood for
joshuaswarren Nov 14, 2026
811487f
Restack on #2016 head 19fff6b8
joshuaswarren Nov 14, 2026
adb4c66
Restack #2038 on #2017 at 811487faa with the maintainer cleanup
joshuaswarren Nov 14, 2026
0576745
chore: restore the fabric/tp README and name the shader comments and …
joshuaswarren Nov 14, 2026
ca86964
Merge #1990 head (05767456c) into #2015: CI fix and parent cleanup
joshuaswarren Nov 14, 2026
57de84c
Merge #2015 head (ca869643c) into #2016: CI fix and parent cleanup
joshuaswarren Nov 14, 2026
2375e43
Merge #2016 head (57de84caa) into #2017: CI fix and parent cleanup
joshuaswarren Nov 14, 2026
692b4c3
Merge #2017 head (2375e43b1) into #2038: CI fix and parent cleanup
joshuaswarren Nov 14, 2026
5bb25cd
vulkan qwen35: prefill chunks of 64 rows
joshuaswarren Nov 15, 2026
432e77c
vulkan qwen35: extractQPlan test uses max_prefill_rows + 1
joshuaswarren Nov 15, 2026
eccdde2
vulkan qwen35: contract cases and probe label follow 64-row prefill
joshuaswarren Nov 15, 2026
56f9eac
vulkan: serve prompts in the engine's 64-row chunks too
joshuaswarren Nov 15, 2026
9994f52
Merge main 41a72fd2 into vulkan-dispatch-batch
joshuaswarren Nov 15, 2026
5a0b0d8
Merge restacked vulkan-dispatch-batch (9994f5274cd599e42fc7b2b3a68d3c…
joshuaswarren Nov 15, 2026
0abe3fc
Merge #2017 restacked on main into vulkan-barrier-hazards
joshuaswarren Nov 15, 2026
b14adaf
Merge #2038 restacked on main into vulkan-prefill-64
joshuaswarren Nov 15, 2026
d6917e7
gpu: raise the Vulkan qwen3.5 context ceiling from 7168 to 8192 keys
joshuaswarren Nov 15, 2026
bed6b62
gpu: keep the new Vulkan comments within the lean rule
joshuaswarren Nov 15, 2026
33d268f
Merge main 05c5d3ca into vulkan-dispatch-batch
joshuaswarren Nov 15, 2026
30e069b
Merge restacked vulkan-dispatch-batch (33d268fb98af3745769c56d0f3f4d0…
joshuaswarren Nov 15, 2026
54f9b40
Merge restacked vulkan-qmm-tile-rows (30e069b31f3825c2256432c5938dc89…
joshuaswarren Nov 15, 2026
096df4e
Merge restacked vulkan-barrier-hazards (54f9b409c0ee0f977e677f9f02065…
joshuaswarren Nov 15, 2026
a52027e
Merge restacked vulkan-prefill-64 (096df4eae0ee83a532309829619f3dfb3a…
joshuaswarren Nov 15, 2026
4e9940a
gpu: tile prefill SDPA over 2..64-row chunks
joshuaswarren Nov 15, 2026
80b2c09
gpu: add a decode throughput mode to the Qwen3.5 Vulkan model probe
joshuaswarren Nov 15, 2026
8613ae9
gpu: split k across 8 slices in the decode q4 tile matmul
joshuaswarren Nov 15, 2026
38458a9
Merge vulkan-qmm-ksplit (8613ae9aa) into vulkan-sdpa-decode
joshuaswarren Nov 15, 2026
b8b6341
gpu: run 1-row decode attention over 512 or more keys on the tiled path
joshuaswarren Nov 15, 2026
f57eab3
Merge remote-tracking branch 'origin/main' into HEAD
joshuaswarren Nov 15, 2026
724dfb4
Merge remote-tracking branch 'origin/main' into HEAD
joshuaswarren Nov 15, 2026
0b15feb
Merge remote-tracking branch 'fork/tf-vulkan-ctx8192' into vulkan-qmm…
joshuaswarren Nov 15, 2026
0f11514
docs: changelog entry and measurements for the k-split decode matmul
joshuaswarren Nov 15, 2026
3cf4cc5
Merge remote-tracking branch 'fork/vulkan-sdpa-tile' into vulkan-sdpa…
joshuaswarren Nov 15, 2026
8f9bb1a
Merge remote-tracking branch 'fork/vulkan-qmm-ksplit' into vulkan-sdp…
joshuaswarren Nov 15, 2026
3e2ab4a
Merge remote-tracking branch 'origin/main' into HEAD
joshuaswarren Nov 15, 2026
547a96f
style: move the decode bench out of the probe and keep one comment wi…
joshuaswarren Nov 15, 2026
2e0f414
style: the decode bench owns its exit code, one line in the probe
joshuaswarren Nov 15, 2026
9599a2c
style: keep the tiled-attention comments to one line within 120 columns
joshuaswarren Nov 15, 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
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,13 @@ Each release's page on GitHub has its notes and measurements. See [the 1.0.0 rel
is identical to the release's own `infer` in torch bf16, or departs from it only where two candidate tokens lie
within one bf16 step of each other, the same two torch's float32 run weighs. The five-page document is served the
same way; its departures are listed in the recipe beside float32's (#2074). Thanks to @BobClawblaw.

- The Vulkan engine runs one-row decode attention over 512 or more keys on the tiled path (separate scores, row softmax and P times V dispatches over a score scratch) that prompt chunks of 2 to 64 rows already used. The decode attention kernel runs one workgroup for each of the 8 query heads and each walks every key, which leaves the GPU idle at long context. The tiled path keeps the decode kernel's order of sums, so the greedy tokens are identical (same token hash in every run) and the attention contract passes on both machines. On a 14-inch M2 Max with Qwen3.5-2B 4-bit after the k-split matmul, a decoded token took 17.82 ms instead of 23.86 at a 6,173-token prompt (41.9 to 56.1 tokens/s) and 11.53 instead of 12.96 at 1,024 tokens; 24-token prompts, below 512 keys, are unchanged. On a 13-inch M1 it is 4% faster at 6,173 tokens and equal at 1,024. Measurements: [docs/receipts/vulkan-sdpa-decode](docs/receipts/vulkan-sdpa-decode/README.md).
- The Vulkan engine splits k across 8 slices in the one-row decode matmul (`qmm_q4_tile`): a workgroup of 256 lanes now computes one row and a 32-column tile, each lane sums one eighth of k, and the first 32 lanes add the 8 partial sums in slice order. Before, one thread walked all of k for each column, so a 2048-column projection ran 8 workgroups. The order of sums changes, so logits are not byte-identical; the greedy tokens are identical (same token hash in every run) and the QMM kernel contract passes on both machines. On a 14-inch M2 Max with Qwen3.5-2B 4-bit, 128 greedy tokens took 10.65 ms each instead of 18.76 at a 24-token prompt (53.3 to 93.9 tokens/s), 12.91 instead of 21.14 at 1,024 tokens, and 24.23 instead of 31.96 at 6,173 tokens (medians of 5 rounds). On a 13-inch M1 the gain is 15% at 24 tokens and 14% at 1,024 tokens (4 rounds). `TF_VK_DECODE_BENCH=N` makes the Qwen3.5 model probe time N decoded tokens. Measurements: [docs/receipts/vulkan-qmm-ksplit](docs/receipts/vulkan-qmm-ksplit/README.md).
- The Vulkan engine records its dispatches into one command buffer and submits when 128 are waiting, or when the next upload, download or fill needs the queue, instead of one submission and fence wait per dispatch. Each pipeline holds a ring of 256 descriptor sets. No kernel changes, so the logits are byte-identical. On a 13-inch M1 with Qwen3.5-2B 4-bit and tiled projections, a run took 56.0% less time on a 24-token prompt, 42.0% less on a 256-token document and 30.1% less on a 1,024-token document. On a 16-inch M1 Max, it took 84.1%, 82.5% and 61.8% less time on those inputs; the 256-token cell was noisy. Receipts: [docs/receipts/vulkan-submit-batch-m1](docs/receipts/vulkan-submit-batch-m1/README.md).
- The Vulkan engine computes four rows of x and two columns a thread (`qmm_q4_tile_rows`) for prompt chunks of four rows or more, so a weight is dequantized once for four outputs and each activation is unpacked once for two weights. Each output keeps its own accumulator and the same order of sums as `qmm_q4_tile`, so the logits are byte-identical. Decode and chunks of one to three rows keep `qmm_q4_tile`. On a 13-inch M1 with Qwen3.5-2B 4-bit, a run took 4% less time on a 24-token prompt, 12% less on a 256-token document and 15% less on a 1,024-token document (6%, 29% and 38% in an earlier run on older builds, an older kernel and an older Mesa). The kernel contract checks `qmm_q4_tile_rows` with the same gates as `qmm_bf16`. Receipts: [docs/receipts/vulkan-qmm-tile-rows-m1](docs/receipts/vulkan-qmm-tile-rows-m1/README.md).
- The Vulkan engine records a barrier between dispatches only when they conflict, instead of one after every dispatch: `Pipeline.run` keeps the byte ranges that the dispatches since the last barrier read and wrote, and records a barrier before a dispatch that reads what one wrote or writes what one read or wrote. A command buffer begun after a submission opens with one barrier that fences that submission. Callers that record into a command buffer themselves (`Pipeline.record`, the greedy draw) keep their barrier, and `Commands.sync` fences the open dispatches before them. The dispatches and their order do not change, so the logits are byte-identical. On a 13-inch M1 with Qwen3.5-2B 4-bit, a run took 5.9% less time on a 24-token prompt, 4.3% less on a 256-token document and 2.3% less on a 1,024-token document, each the median of three pairs against #2017's build; on a 16-inch M1 Max, 19.7%, 12.6% and 14.0% less. The kernel-contract gates also pass on a 14-inch M2 Max (4 kernels pass gates 1-4, 0 fail, 9 controls caught, 0 missed), measured before the batch-edge barrier was added. Receipts: [docs/receipts/vulkan-barrier-hazards-m1](docs/receipts/vulkan-barrier-hazards-m1/README.md) (#2038, part of #1420). Thanks to @joshuaswarren.

## 1.2.9

- Flash Next on CUDA: a lone stream draws on its own path again; the batched draws #2927 added now run only when two or more streams share a step, so one sampled stream no longer pays the group's whole-buffer download each step. Tokens are unchanged (#3391, after #2927).
Expand Down
29 changes: 24 additions & 5 deletions THIRD_PARTY_NOTICES.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,31 @@ The native engine carries that adaptation. `zig/kernels/metal/qwen3_5/gdn_pre.me
`zig/kernels/metal/core/deltanet.metal` and Flash Next's `zig/kernels/metal/flashnext/q4_gdn_*.metal` run the same
model math.

## Vulkan affine projections
## Vulkan shaders from omarchy-mlx

These files in `zig/kernels/vulkan/` come from [omarchy-mlx](https://github.com/joshuaswarren/omarchy-mlx),
MIT License, Copyright © 2026 Joshua Warren and mlx-omarchy contributors. The first lines of each file name its
source path and commit. The native Vulkan path does not link MLX.

- `argreduce_chunk.comp`
- `argreduce_combine.comp`
- `binary_vec.comp`
- `cast.comp`
- `conv_dw1d.comp`
- `copy_general.comp`
- `dequant.comp`
- `fast_norm.comp`
- `fast_norm_gated.comp`
- `fast_rope.comp`
- `gated_delta_decode.comp`
- `gated_delta_prefill_oracle.comp`
- `gather_take.comp`
- `gdn_conv_decode.comp`
- `omarchy_trig.h`
- `qmm.comp`
- `sdpa_decode_native.comp`
- `swiglu.comp`

`zig/kernels/vulkan/qmm.comp` adapts the GLSL shader from
[mlx-omarchy](https://github.com/joshuaswarren/omarchy-mlx), MIT License,
Copyright © 2026 Joshua Warren and mlx-omarchy contributors.
Its arithmetic is unchanged; the native Vulkan path does not link MLX.
See [the license text](LICENSES/mlx-omarchy-MIT.txt).

## Qwen Flash Next
Expand Down
5 changes: 4 additions & 1 deletion build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,10 @@ pub fn build(b: *std.Build) void {
if (with_hip) hip_build.steps(b, target, optimize, build_options, test_step, hip_options);
const with_vulkan = b.option(bool, "vulkan", "Enable the opt-in Vulkan backend and its host/device targets") orelse false;
const vulkan_options = vulkan_build.options(b); // declared on every target, used only with -Dvulkan=true
if (with_vulkan) vulkan_build.steps(b, target, optimize, test_step, vulkan_options);
if (with_vulkan) {
vulkan_build.steps(b, target, optimize, test_step, vulkan_options);
@import("zig/build/vulkan_model.zig").steps(b, target, optimize, test_step, vulkan_options, build_options);
}
exlr8_build.hostTests(b, target, test_step);
xpu_build.steps(b, target, optimize, build_options);
video_build.steps(b, target, test_step);
Expand Down
9 changes: 9 additions & 0 deletions docs/credits.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,15 @@ contributions are in it.
([lane_qmm.py](https://github.com/ashhart/TensorFold/blob/v0.6.6/src/tensorfold/kernels/qwen/dense/v1/lane_qmm.py)),
widening each group to nibbles for the 4-bit tensor op. The native `zig/kernels/metal/core/lane_projection.metal`
stages 2- and 3-bit codes the same way.
- The native Vulkan dense Qwen3.5-2B engine (`zig/src/families/qwen3_5/backend/vulkan/`) follows the same frozen
dense-lane design ([lane_qmm.py](https://github.com/ashhart/TensorFold/blob/v0.6.6/src/tensorfold/kernels/qwen/dense/v1/lane_qmm.py),
[#34](https://github.com/ashhart/TensorFold/pull/34)) for its per-lane qmm decomposition.
- Nine compute shaders are code-unchanged from Joshua Warren's MIT-licensed omarchy-mlx: `argreduce_chunk`,
`argreduce_combine`, `cast`, `conv_dw1d`, `copy_general`, `dequant`, `gather_take`, `gdn_conv_decode` and
`qmm.comp`. `omarchy_trig.h` is also code-unchanged; its comments are condensed.
- Eight compute shaders are adapted: `binary_vec`, `fast_norm`, `fast_norm_gated`, `fast_rope`, `gated_delta_decode`,
`gated_delta_prefill_oracle`, `sdpa_decode_native` and `swiglu`. Their headers record the changed lines.
- `attention_gate`, `finite_logits`, `gdn_split`, `qmm_q4_vec4` and the contract controls are new work for this engine.
- @di37 made the engine read the GPU generation once from `applegpu_gN`, and a virtual machine's GPU as none, in
[#209](https://github.com/ashhart/TensorFold/pull/209)
([device.py](https://github.com/ashhart/TensorFold/blob/v0.6.6/src/tensorfold/kernels/device.py)), as
Expand Down
70 changes: 70 additions & 0 deletions docs/receipts/vulkan-barrier-hazards-m1/PREREG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
# Compute-to-compute dispatch barrier: pre-registration (2026-11-03, before any GPU run of this change)

## Question

The decode microbenchmark of `qmm_q4_tile` on the real decode shapes (400 dispatches, batched, 13-inch M1) gave 23.85 ms a decode step with the engine's barrier after every
dispatch and 16.99 ms with no barrier (a 16-column dispatch: 80 us against 3 us). The barrier costs about 70 us a dispatch. The engine's barrier lists the transfer stage and transfer
access among its destinations, which a dispatch followed by a dispatch does not need (copies and fills carry their own barriers in both directions). Does narrowing it to compute to compute
(source: shader write; destination: shader read and write) cut the cost? Nothing else changes, so the logits must stay byte-identical.

## Arms and gates

old: the two-columns build (`9eef5a52`). new: the same with the narrower barrier in `Pipeline.record`. Same pairs, order, gates and digests as `PREREG-rows.md`; all three cases.

## Decision rule

Median gain of at least 3 percent on unicode-24, every pair positive, all gates hold. Otherwise not proposed.

## Forecast (a prediction)

50 percent: no gain (under 3 percent; the driver already treats the barrier alike). 35 percent: 3 to 15 percent less time on unicode-24. 15 percent: more than 15 percent.

## Not claimed

Other chips and models. Barriers between dependent dispatches remain; this changes their kind, not their number.


# Hazard-tracked barriers: pre-registration (2026-11-03, before any GPU run of this change)

## Question

The decode microbenchmark on the 13-inch M1 (Honeykrisp Mesa 26.3.0-devel git-9323171c12, real Qwen3.5-2B decode shapes, 175 `qmm_q4_tile` dispatches a step, batched) gave
23.85 ms a decode step with the engine's barrier after every dispatch and 16.99 ms with none; a 16-column dispatch took 80 us against 3 us. A barrier narrowed to compute-to-compute
changed nothing (-0.14 percent on unicode-24), so the cost is the barrier, not its masks. The engine records a barrier after every dispatch, but many dispatches do not depend on the one
before (the q, k and v projections; the gate and up projections; the four GDN input projections). This build tracks the byte ranges every dispatch since the last barrier read and wrote
(each binding's buffer, offset, length and the pipeline's written-bindings mask) and records a barrier only before a dispatch that reads what an earlier one wrote, or writes what one read
or wrote. A full tracking list forces a barrier. Same dispatches in the same order: the logits must stay byte-identical.

## Arms and gates

old: the two-columns build (`9eef5a52`). new: the same plus hazard-tracked barriers. Same pairs, order, gates and digests as `PREREG-rows.md`: exit 0, pinned ids, one logits digest per
case across all six processes, run 2 duration, pairs alternated old,new,new,old,old,new. Cases: unicode-24, document-256, document-1024. A digest that differs from the pinned one fails the case
whatever the time.

## Decision rule

Median gain of at least 3 percent on unicode-24, every pair positive, all gates hold. Otherwise not proposed.

## Forecast (a prediction)

The no-barrier bound for the projections alone is 29 percent of a decode step (7 ms of 23.85), and decode is about 19 percent of the document-1024 run and about 90 percent of unicode-24's.
Dependent chains keep their barriers, so I expect a third to a half of the bound: 8 to 15 percent less time on unicode-24, 2 to 5 percent on document-1024. I give 20 percent to
a gain under 3 percent on unicode-24 (most dispatches are dependent), and 5 percent to a digest difference (a missed hazard).

## Not claimed

Other chips, models and drivers. The bound comes from the projections alone; the other kernels in a step are not in it.

## Record of the first build (added 2026-11-03, after its unicode-24 pair)

The first build of this change failed its digest gate on unicode-24: logits digest `e8535a02dd1e` against the pinned `e5447d9a3ab5` (the run was 5 percent shorter, which does not matter).
Cause: `greedy.zig` records its three dependent dispatches with `Pipeline.record` and relied on the barrier that call used to add, and its first fill needs the dispatches run before it fenced.
Fix: `record` keeps its barrier (it is the API of direct recorders); only `Pipeline.run` elides; `Commands.sync` fences open dispatches before a direct recorder starts. The corrected build is
a new pair under the same arms, decision rule and forecast.

## Restack on #2017's head `cf73ab96` (12 November)

Written to the idle-guard queue before the runs, as the row text. Arms: `cf73ab96` against `240216fe`, three inputs, old, new, new, old, old, new, a 13-inch M1 and a 16-inch M1 Max.
Forecast: a median gain of 5% to 25% at document-256 and document-1024 and under 5% at unicode-24, equal digests (the 16-inch figure at the old head was 22.4% at document-256).
Falsifier: a median gain under 0% at document-1024, any differing digest, or a cell whose three old (or three new) run 2 times differ by more than 5%.
Result: digests equal everywhere. 13-inch M1: 5.9%, 4.3%, 2.3% at unicode-24, document-256, document-1024, so document-256 and document-1024 fall under the 5% floor of the forecast and unicode-24 over its 5% ceiling; the 16-inch M1 Max: 19.7%, 12.6%, 14.0%, with unicode-24 over its ceiling and document-1024 old arm spread 6.2% (a falsifier hit). The forecast did not hold on the 13-inch M1.
9 changes: 9 additions & 0 deletions docs/receipts/vulkan-barrier-hazards-m1/PROVENANCE-M2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Provenance: Apple M2 Max runs at 1aa60a91

Host: 14-inch M2 Max (Apple M2 Max, G14C B1), Linux side.
Kernel: 7.1.12-2-7-ARCH. Driver: Honeykrisp, Mesa 26.2.2-arch1.1. Zig: 0.17.0.

The v2d packet's PROVENANCE.txt names a 16-inch M1 Max. That line is wrong. Runs were on the 14-inch M2 Max; the runner output and vulkaninfo both read "Apple M2 Max (G14C B1)". PROVENANCE.txt is not edited, because SHA256SUMS covers it.

Run: `tf-vulkan-kernel-contract`, head 1aa60a91, binary sha256 19d640ec553b0f97549670fd931284c26700e8988a721d37572b135aac5cb3d4, under `flock` on the GPU lock.
Result: rc 0, 48.5 s wall. SUMMARY: 4 kernels pass gates 1-4, 0 fail, 0 known findings; 9 controls caught, 0 missed; 0 limit failures.
Loading
Loading