Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
b731206
feat(hip): the model-free kernels on #463's runtime: attention, Delta…
BlivionIaG Oct 10, 2026
67d9479
feat(core): weight formats behind one interface, MLX affine 2- to 8-b…
BlivionIaG Oct 10, 2026
48abd99
feat(core): a kernel registry that picks a product's tile by tuned co…
BlivionIaG Oct 10, 2026
6254228
feat(hip): the MLX affine products: dot2 tiles, the gfx11 matrix-core…
BlivionIaG Oct 10, 2026
9b6b260
docs(hip): the device bitcode of Ubuntu's packaged HIP, and no rocWMM…
BlivionIaG Oct 11, 2026
1152c67
Merge branch 'hip-kernels-ops' into hip-kernels-affine
BlivionIaG Oct 11, 2026
df83c6f
Merge branch 'hip-kernels-ops' into hip-kernels-affine
BlivionIaG Oct 11, 2026
5d05894
chore(hip): gdn_prefill.hip drops the vLLM SPDX lines it kept from th…
BlivionIaG Oct 11, 2026
a579284
Merge branch 'hip-kernels-affine' into fam-new
BlivionIaG Oct 11, 2026
e6c11fb
feat(qwen3_5): the GPU backends' checkpoint loader, on the host
BlivionIaG Oct 10, 2026
eb9bd0f
fix(qwen3_5): un-center an MTP head shipped zero-centered
BlivionIaG Oct 11, 2026
4c231bf
feat(qwen3_5): the HIP config refuses what the kernels do not compute…
BlivionIaG Oct 11, 2026
02c1dd6
Merge remote-tracking branch 'upstream/main' into fam-r2
BlivionIaG Oct 12, 2026
57fadd1
feat(hip): the runtime pieces an engine uses beyond #463's model-free…
BlivionIaG Oct 10, 2026
211ea81
feat(hip): the kernels a tensor-parallel rank and the MTP head add
BlivionIaG Oct 10, 2026
42664f9
feat(qwen3_5): the Qwen3.5 / Qwen3.6 engine on HIP, its native server…
BlivionIaG Oct 10, 2026
3d9bd2e
feat(hip): one rank source: --speed-up is refused, the HIP engine's r…
BlivionIaG Oct 10, 2026
a25c8e2
feat(qwen3_5): the HIP prompt cache serves serial requests too
BlivionIaG Oct 10, 2026
3092774
test(qwen3_5): chat with the prompt cache equals chat without it thro…
BlivionIaG Oct 10, 2026
9a4e10f
feat(qwen3_5): a prompt runs 512-row chunks while other streams decode
BlivionIaG Oct 11, 2026
3f396fc
feat(hip): RDNA4 runs on the dot2 tiles; matrix=on is refused where n…
BlivionIaG Oct 11, 2026
fc795cb
test(qwen3_5): serve_rewind.py's docstring on one line, as the lean c…
BlivionIaG Oct 11, 2026
10f67d9
refactor(qwen3_5): the engine reaches the other ranks through hip/col…
BlivionIaG Oct 11, 2026
7f5fd5b
build(hip): the HIP server's CLI module takes EXLR8's import, as main…
BlivionIaG Oct 12, 2026
badbb6f
feat(qwen3_5): structured output on HIP: the lane core's grammar mask…
BlivionIaG Oct 11, 2026
13961db
feat(hip): tensor parallelism over RCCL, behind hip/collective.zig
BlivionIaG Oct 11, 2026
ba0bc3c
feat(hip): the graph cache by shape in the hip module, for every HIP …
BlivionIaG Oct 12, 2026
905d9e9
feat(hip): a step recorded as graphs cut at its collectives, the coll…
BlivionIaG Oct 12, 2026
5480055
feat(hip): the graph cache over any replayable step, a caller's own k…
BlivionIaG Oct 12, 2026
ebe69eb
feat(qwen3_5): HIP rounds record split graphs: the collectives run be…
BlivionIaG Oct 12, 2026
10926cf
feat(qwen3_5): HIP rounds replay split graphs at any world size, RCCL…
BlivionIaG Oct 12, 2026
66d8a19
fix(qwen3_5): every rank sizes its streams for rank 0's window, so a …
BlivionIaG Oct 12, 2026
d47b0f8
perf(qwen3_5): the HIP loader drops each part's mapped pages once it …
BlivionIaG Oct 13, 2026
a9bab75
Merge 1.0.9 (c36b536d) into hip-kernels-affine
BlivionIaG Oct 13, 2026
fa4d769
Merge branch 'qwen35-structured' into fn-base3
BlivionIaG Oct 13, 2026
f76877c
Merge branch 'hip-kernels-affine' (1.0.9) into fn-base3
BlivionIaG Oct 13, 2026
996c098
fix(core): MLX affine dequant reads any code width from 2 to 8 bits, …
BlivionIaG Oct 12, 2026
3fa8861
refactor(core): a MoE layer's stacked experts and router rows in core…
BlivionIaG Oct 11, 2026
1ae1078
style(hip): the ops headers end without a blank line, as git diff --c…
BlivionIaG Oct 14, 2026
fbc626d
Merge branch 'hip-kernels-ops' into hip-kernels-affine (ops headers e…
BlivionIaG Oct 14, 2026
47612d0
Merge branch 'hip-kernels-ops' into qwen35-family (ops headers end wi…
BlivionIaG Oct 14, 2026
3850523
Merge branch 'qwen35-family' into qwen35-rccl (ops headers end withou…
BlivionIaG Oct 14, 2026
deec0a9
Merge branch 'qwen35-family' into qwen35-structured (ops headers end …
BlivionIaG Oct 14, 2026
3f4cc24
Merge the ops headers' whitespace fix (#617, through #621, #697 and #…
BlivionIaG Oct 14, 2026
5537d6a
fix(hip): the paged prefill tile calls expf, as the flat tile does
BlivionIaG Oct 14, 2026
bbf83cd
Merge branch 'hip-kernels-ops' into hip-kernels-affine (the paged pre…
BlivionIaG Oct 14, 2026
9178585
Merge branch 'hip-kernels-ops' into qwen35-family (the paged prefill …
BlivionIaG Oct 14, 2026
f5281d5
Merge branch 'qwen35-family' into qwen35-rccl (the paged prefill tile…
BlivionIaG Oct 14, 2026
28c3160
Merge branch 'qwen35-family' into qwen35-structured (the paged prefil…
BlivionIaG Oct 14, 2026
4a91921
Merge the paged prefill tile's expf (#617, through #621, #697 and #655)
BlivionIaG Oct 14, 2026
d91b074
fix(hip): one fp32 DeltaNet recurrence at every length; the chunked p…
BlivionIaG Oct 14, 2026
da96b90
Merge branch 'hip-kernels-ops' into hip-kernels-affine (one fp32 Delt…
BlivionIaG Oct 14, 2026
1da7042
Merge branch 'hip-kernels-ops' into qwen35-family (one fp32 DeltaNet …
BlivionIaG Oct 14, 2026
205b800
Merge branch 'qwen35-family' into qwen35-rccl (one fp32 DeltaNet recu…
BlivionIaG Oct 14, 2026
81d6529
Merge branch 'qwen35-family' into qwen35-structured (one fp32 DeltaNe…
BlivionIaG Oct 14, 2026
1bdd859
refactor(hip): the policy's gdn switch goes with the chunked recurren…
BlivionIaG Oct 14, 2026
edc5b3f
refactor(hip): the policy's gdn switch goes with the chunked recurren…
BlivionIaG Oct 14, 2026
02c3ff0
Merge the one fp32 DeltaNet recurrence (#617, through #655)
BlivionIaG Oct 14, 2026
4d5f7a9
Merge the one fp32 DeltaNet recurrence (through #697)
BlivionIaG Oct 14, 2026
060c30e
Merge the one fp32 DeltaNet recurrence (through #621)
BlivionIaG Oct 14, 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
Prev Previous commit
Next Next commit
feat(hip): RDNA4 runs on the dot2 tiles; matrix=on is refused where n…
…o matrix-core tile exists

gfx1200 and gfx1201 build every target (the server, the model checks, the kernel and runtime tests, the bench)
and run their products on the dot2 and stream tiles: the matrix-core GEMM is gfx11's WMMA layout only. matrix=on
asked for matrix cores and silently got dot2 there; a serve now refuses it, naming the gfx12 tiles as not
implemented yet (RDNA2: no matrix cores). matrix=auto, the default, runs on every GPU in the caps table.
  • Loading branch information
BlivionIaG committed Oct 12, 2026
commit 3f396fc6aaf4da9735df82ad242572e29d4485b5
22 changes: 22 additions & 0 deletions zig/src/native/hip.zig
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,16 @@ fn refuse(a: Allocator, problem: *[]const u8, comptime fmt: []const u8, args: an
return error.Refused;
}

/// Why `matrix=on` cannot run on a GPU of `caps`, or null when its matrix-core tiles exist (gfx11's WMMA).
fn matrixRefused(policy: hip.Policy, caps: hip.Caps) ?[]const u8 {
if (policy.matrix != .on) return null;
return switch (caps.matrix) {
.wmma11 => null,
.wmma12 => "the gfx12 matrix-core tiles (RDNA4's WMMA layout) are not implemented yet",
.none => "this GPU has no matrix cores",
};
}

/// The tensor-parallel flags as the Python ROCm server checks them.
fn checkGroup(a: Allocator, o: api.Open, problem: *[]const u8) Refused!void {
if (o.tp != 1 and o.tp != 2 and o.tp != 4 and o.tp != 8) return refuse(a, problem, "--tp {d} is not a supported ROCm world size; choose 1, 2, 4 or 8", .{o.tp});
Expand Down Expand Up @@ -81,6 +91,7 @@ fn ready(comptime F: type, a: Allocator, gpa: Allocator, io: std.Io, o: api.Open
if (o.mtp_drafts) |n| policy.mtp.drafts = @intCast(n);
if (o.mtp_confidence) |c| policy.mtp.confidence = c;
if (o.keep) |n| policy.slots = @intCast(@min(n, 1 << 16));
if (matrixRefused(policy, caps)) |why| return refuse(a, problem, "matrix=on: {s}; matrix=auto runs the dot2 tiles", .{why});
const group: ?*hip.Group = if (o.tp > 1) hip.Group.join(gpa, io, o.rank, o.tp, o.master, o.master_port, caps, &policy) catch |err| return switch (err) {
error.OutOfMemory => error.OutOfMemory,
error.NoRccl => refuse(a, problem, "tensor parallelism needs RCCL", .{}),
Expand Down Expand Up @@ -230,3 +241,14 @@ test "the group flags: one rank source, a supported world, a master past one ran
outside.rank = 2;
try std.testing.expectError(error.Refused, checkGroup(a, outside, &problem));
}

test "matrix=on runs only where the matrix-core tiles exist; auto runs everywhere" {
var on: hip.Policy = .{};
try on.apply("matrix=on");
try std.testing.expect(matrixRefused(on, hip.Caps.of("gfx1100").?) == null);
try std.testing.expect(matrixRefused(on, hip.Caps.of("gfx1151").?) == null);
try std.testing.expect(std.mem.indexOf(u8, matrixRefused(on, hip.Caps.of("gfx1201").?).?, "not implemented") != null);
try std.testing.expect(matrixRefused(on, hip.Caps.of("gfx1030").?) != null);
const auto: hip.Policy = .{};
for ([_][]const u8{ "gfx1030", "gfx1100", "gfx1151", "gfx1200", "gfx1201" }) |name| try std.testing.expect(matrixRefused(auto, hip.Caps.of(name).?) == null);
}