From 74f772f863939e446b851948401ebe06de8f5854 Mon Sep 17 00:00:00 2001 From: Joshua Warren <816217+joshuaswarren@users.noreply.github.com> Date: Sun, 29 Nov 2026 08:23:12 -0600 Subject: [PATCH 1/6] docs: environment-names rows for TF_Q27_FLAT_GLUE and TF_Q27_QK From 6410f4e8f9e58b9f1639b2cdca02afc9a83a9e58 Mon Sep 17 00:00:00 2001 From: ashhart <71890694+ashhart@users.noreply.github.com> Date: Mon, 30 Nov 2026 13:55:56 +0000 Subject: [PATCH 2/6] changelog: #3401 under Unreleased --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0490a266a4a..0c098538227 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,8 @@ Each release's page on GitHub has its notes and measurements. See [the 1.0.0 rel ## Unreleased +- Vulkan: Qwen3.5 prefills in 64-row chunks, cutting first-token time by 12.7% to 16.2% at 512 to 4,096 keys over five paired runs a size with identical token IDs (#3401, refs #1420). Thanks to @joshuaswarren. + - Vulkan: the 4-bit tile kernel computes four rows and two columns of a prompt chunk per thread, cutting prompt run time on Apple M1 (Honeykrisp) with identical logits; it falls back to the previous tile when a grid exceeds the device limit (#2017). - Vulkan: qmm_q4_tile reads the 4-bit projection from 32-column tiles, 29% to 67% less run time on an M1 with the same logits (stacked on #1990) (#2015). Thanks to @joshuaswarren. From 73f4d7107331b7ee025fe04c7f7523a45a10384c Mon Sep 17 00:00:00 2001 From: ashhart <71890694+ashhart@users.noreply.github.com> Date: Mon, 30 Nov 2026 13:55:57 +0000 Subject: [PATCH 3/6] changelog: #2015 under Unreleased --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0c098538227..6df9016daba 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,8 @@ Each release's page on GitHub has its notes and measurements. See [the 1.0.0 rel ## Unreleased +- Vulkan: qmm_q4_tile reads the 4-bit projection from 32-column tiles, 29% to 67% less run time on an M1 with the same logits (stacked on #1990) (#2015). Thanks to @joshuaswarren. + - Vulkan: Qwen3.5 prefills in 64-row chunks, cutting first-token time by 12.7% to 16.2% at 512 to 4,096 keys over five paired runs a size with identical token IDs (#3401, refs #1420). Thanks to @joshuaswarren. - Vulkan: the 4-bit tile kernel computes four rows and two columns of a prompt chunk per thread, cutting prompt run time on Apple M1 (Honeykrisp) with identical logits; it falls back to the previous tile when a grid exceeds the device limit (#2017). From 6ef92d81e253441985e9bd06d2af25427c522ed9 Mon Sep 17 00:00:00 2001 From: Joshua Warren <816217+joshuaswarren@users.noreply.github.com> Date: Sat, 28 Nov 2026 23:04:31 -0600 Subject: [PATCH 4/6] vulkan: the deinit test asserts each pipeline is destroyed exactly once Presence alone let a duplicate destroy slip through (#2038's own review round caught one). The test now fails unless every pipeline's o.X.deinit() appears exactly once in Ops.deinit. --- zig/src/vulkan/ops.zig | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/zig/src/vulkan/ops.zig b/zig/src/vulkan/ops.zig index 63275ab575e..9eeafa3459e 100644 --- a/zig/src/vulkan/ops.zig +++ b/zig/src/vulkan/ops.zig @@ -258,14 +258,17 @@ pub const Ops = struct { const testing = std.testing; -test "deinit destroys every pipeline init builds" { +test "deinit destroys every pipeline init builds exactly once" { const src = @embedFile("ops.zig"); const start = std.mem.indexOf(u8, src, "pub fn deinit(").?; const body = src[start..std.mem.indexOfPos(u8, src, start, "\n }\n").?]; const info = @typeInfo(Ops).@"struct"; inline for (info.field_names, info.field_types) |name, ty| { if (ty == dispatch.Pipeline) { - try testing.expect(std.mem.indexOf(u8, body, "o." ++ name ++ ".deinit();") != null); + const call = "o." ++ name ++ ".deinit();"; + const first = std.mem.indexOf(u8, body, call) orelse + return testing.expect(false); + try testing.expect(std.mem.indexOf(u8, body[first + call.len ..], call) == null); } } } From b934a791b6ec2fcc34168fa471886ed57f1eaae1 Mon Sep 17 00:00:00 2001 From: ashhart <71890694+ashhart@users.noreply.github.com> Date: Mon, 30 Nov 2026 13:56:00 +0000 Subject: [PATCH 5/6] changelog: #2038 under Unreleased --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6df9016daba..3fb7a837933 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,9 @@ Each release's page on GitHub has its notes and measurements. See [the 1.0.0 rel ## Unreleased +- Vulkan: a dispatch records a barrier only when it conflicts with an earlier one (#2038). Thanks @joshuaswarren. +- 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) (#2038). Thanks @joshuaswarren. + - Vulkan: qmm_q4_tile reads the 4-bit projection from 32-column tiles, 29% to 67% less run time on an M1 with the same logits (stacked on #1990) (#2015). Thanks to @joshuaswarren. - Vulkan: Qwen3.5 prefills in 64-row chunks, cutting first-token time by 12.7% to 16.2% at 512 to 4,096 keys over five paired runs a size with identical token IDs (#3401, refs #1420). Thanks to @joshuaswarren. From 0589df18bb3d45f2c804dd0460e30a0be5d63e0a Mon Sep 17 00:00:00 2001 From: ashhart <71890694+ashhart@users.noreply.github.com> Date: Mon, 30 Nov 2026 16:54:14 +0000 Subject: [PATCH 6/6] changelog: each line once under Unreleased --- CHANGELOG.md | 4 ---- 1 file changed, 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3fb7a837933..acd588dda3a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,10 +13,6 @@ Each release's page on GitHub has its notes and measurements. See [the 1.0.0 rel - Vulkan: the 4-bit tile kernel computes four rows and two columns of a prompt chunk per thread, cutting prompt run time on Apple M1 (Honeykrisp) with identical logits; it falls back to the previous tile when a grid exceeds the device limit (#2017). -- Vulkan: qmm_q4_tile reads the 4-bit projection from 32-column tiles, 29% to 67% less run time on an M1 with the same logits (stacked on #1990) (#2015). Thanks to @joshuaswarren. - -- Vulkan: Qwen3.5 prefills in 64-row chunks, cutting first-token time by 12.7% to 16.2% at 512 to 4,096 keys over five paired runs a size with identical token IDs (#3401, refs #1420). Thanks to @joshuaswarren. - - flashnext: decode FP8 PLE rows through a per-table BF16 LUT (#5631). Thanks to @kckylechen1. - cuda: GLM glue and index warp reductions through tf_common (P3 of #4861) (#5694). Thanks to @devopsfortunato.