Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,15 @@ Each release's page on GitHub has its notes and measurements. See [the 1.0.0 rel

## Unreleased

- 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: 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.

- 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).

- 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.
Expand Down
7 changes: 5 additions & 2 deletions zig/src/vulkan/ops.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}
Expand Down
Loading