Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
f1f7f9a
cuda: serve losslessly packed MXFP8 projections through native qlinear
akol1 Oct 16, 2026
f6a0055
Expose FP32 lane projection outputs before residual reduction
akol1 Oct 16, 2026
d40bc9e
Merge upstream main and add MXFP8 numerical contract coverage
akol1 Oct 16, 2026
cb23d3d
Merge current main and retain FP32 projections across packed formats
akol1 Oct 16, 2026
ff97f72
Merge refreshed MXFP8 dependency and numerical contract harness
akol1 Oct 16, 2026
50c4f56
Exercise FP32 packed projections through numerical contract gates
akol1 Oct 16, 2026
37578da
Cover served dense and attention projection dimensions
akol1 Oct 16, 2026
a008b5c
test(cuda): register MXFP8 launch resource limits
akol1 Oct 16, 2026
b3d4713
Merge commit 'a008b5cd' into codex/cuda-f32-projections
akol1 Oct 16, 2026
5bb7392
test(cuda): register FP32 projection launch resources
akol1 Oct 16, 2026
cb2c749
cuda: refresh compiler-derived launch resource records
akol1 Oct 16, 2026
839a5a4
Merge compiler resource records into MXFP8 qualification
akol1 Oct 16, 2026
787064f
Merge qualified resource records through MXFP8 dependency
akol1 Oct 16, 2026
df44f51
Reject non-finite errors in CUDA reference comparisons
cwschroeder Oct 16, 2026
5a94b2f
Merge remote-tracking branch 'origin/main' into codex/mxfp8-checker-r…
akol1 Oct 16, 2026
6b78da2
Merge branch 'codex/mxfp8-checker-review' into codex/projection-fixtu…
akol1 Oct 16, 2026
37359a1
test: poison each FP32 projection dispatch and reduction scratch
cwschroeder Oct 16, 2026
4544c5c
test(cuda): reject no-op projection dispatches after stale prefixes
akol1 Oct 16, 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
Expose FP32 lane projection outputs before residual reduction
  • Loading branch information
akol1 committed Oct 16, 2026
commit f6a0055f5d84dfe9f61342ef4923cd6c233bc037
36 changes: 36 additions & 0 deletions zig/kernels/cuda/qmmf.cu
Original file line number Diff line number Diff line change
Expand Up @@ -335,5 +335,41 @@ template __global__ void qmmf_kernel<BF16, 32, 64, 1, 4, 4, false, true, false>(
template __global__ void qmmf_kernel<BF16, 64, 64, 1, 4, 4, false, false, false>(const __nv_bfloat16* __restrict__, const unsigned char* __restrict__, const uint8_t* __restrict__, float, void* __restrict__, float* __restrict__, int, int, int, int, int, int, int);
template __global__ void qmmf_kernel<BF16, 64, 64, 1, 4, 4, false, true, false>(const __nv_bfloat16* __restrict__, const unsigned char* __restrict__, const uint8_t* __restrict__, float, void* __restrict__, float* __restrict__, int, int, int, int, int, int, int);
template __global__ void qmmf_kernel<BF16, 64, 64, 1, 4, 4, false, false, true>(const __nv_bfloat16* __restrict__, const unsigned char* __restrict__, const uint8_t* __restrict__, float, void* __restrict__, float* __restrict__, int, int, int, int, int, int, int);
template __global__ void qmmf_kernel<MXFP8, 16, 64, 1, 4, 4, true, false, false>(const __nv_bfloat16* __restrict__, const unsigned char* __restrict__, const uint8_t* __restrict__, float, void* __restrict__, float* __restrict__, int, int, int, int, int, int, int);
template __global__ void qmmf_kernel<MXFP8, 16, 64, 1, 4, 4, true, true, false>(const __nv_bfloat16* __restrict__, const unsigned char* __restrict__, const uint8_t* __restrict__, float, void* __restrict__, float* __restrict__, int, int, int, int, int, int, int);
template __global__ void qmmf_kernel<MXFP8, 32, 64, 1, 4, 4, true, false, false>(const __nv_bfloat16* __restrict__, const unsigned char* __restrict__, const uint8_t* __restrict__, float, void* __restrict__, float* __restrict__, int, int, int, int, int, int, int);
template __global__ void qmmf_kernel<MXFP8, 32, 64, 1, 4, 4, true, true, false>(const __nv_bfloat16* __restrict__, const unsigned char* __restrict__, const uint8_t* __restrict__, float, void* __restrict__, float* __restrict__, int, int, int, int, int, int, int);
template __global__ void qmmf_kernel<MXFP8, 64, 64, 1, 4, 4, true, false, false>(const __nv_bfloat16* __restrict__, const unsigned char* __restrict__, const uint8_t* __restrict__, float, void* __restrict__, float* __restrict__, int, int, int, int, int, int, int);
template __global__ void qmmf_kernel<MXFP8, 64, 64, 1, 4, 4, true, true, false>(const __nv_bfloat16* __restrict__, const unsigned char* __restrict__, const uint8_t* __restrict__, float, void* __restrict__, float* __restrict__, int, int, int, int, int, int, int);
template __global__ void qmmf_kernel<MXFP8, 64, 64, 1, 4, 4, true, false, true>(const __nv_bfloat16* __restrict__, const unsigned char* __restrict__, const uint8_t* __restrict__, float, void* __restrict__, float* __restrict__, int, int, int, int, int, int, int);
template __global__ void qmmf_kernel<FP8G, 16, 64, 1, 4, 4, true, false, false>(const __nv_bfloat16* __restrict__, const unsigned char* __restrict__, const uint8_t* __restrict__, float, void* __restrict__, float* __restrict__, int, int, int, int, int, int, int);
template __global__ void qmmf_kernel<FP8G, 16, 64, 1, 4, 4, true, true, false>(const __nv_bfloat16* __restrict__, const unsigned char* __restrict__, const uint8_t* __restrict__, float, void* __restrict__, float* __restrict__, int, int, int, int, int, int, int);
template __global__ void qmmf_kernel<FP8G, 32, 64, 1, 4, 4, true, false, false>(const __nv_bfloat16* __restrict__, const unsigned char* __restrict__, const uint8_t* __restrict__, float, void* __restrict__, float* __restrict__, int, int, int, int, int, int, int);
template __global__ void qmmf_kernel<FP8G, 32, 64, 1, 4, 4, true, true, false>(const __nv_bfloat16* __restrict__, const unsigned char* __restrict__, const uint8_t* __restrict__, float, void* __restrict__, float* __restrict__, int, int, int, int, int, int, int);
template __global__ void qmmf_kernel<FP8G, 64, 64, 1, 4, 4, true, false, false>(const __nv_bfloat16* __restrict__, const unsigned char* __restrict__, const uint8_t* __restrict__, float, void* __restrict__, float* __restrict__, int, int, int, int, int, int, int);
template __global__ void qmmf_kernel<FP8G, 64, 64, 1, 4, 4, true, true, false>(const __nv_bfloat16* __restrict__, const unsigned char* __restrict__, const uint8_t* __restrict__, float, void* __restrict__, float* __restrict__, int, int, int, int, int, int, int);
template __global__ void qmmf_kernel<FP8G, 64, 64, 1, 4, 4, true, false, true>(const __nv_bfloat16* __restrict__, const unsigned char* __restrict__, const uint8_t* __restrict__, float, void* __restrict__, float* __restrict__, int, int, int, int, int, int, int);
template __global__ void qmmf_kernel<FP4, 16, 64, 1, 4, 4, true, false, false>(const __nv_bfloat16* __restrict__, const unsigned char* __restrict__, const uint8_t* __restrict__, float, void* __restrict__, float* __restrict__, int, int, int, int, int, int, int);
template __global__ void qmmf_kernel<FP4, 16, 64, 1, 4, 4, true, true, false>(const __nv_bfloat16* __restrict__, const unsigned char* __restrict__, const uint8_t* __restrict__, float, void* __restrict__, float* __restrict__, int, int, int, int, int, int, int);
template __global__ void qmmf_kernel<FP4, 32, 64, 1, 4, 4, true, false, false>(const __nv_bfloat16* __restrict__, const unsigned char* __restrict__, const uint8_t* __restrict__, float, void* __restrict__, float* __restrict__, int, int, int, int, int, int, int);
template __global__ void qmmf_kernel<FP4, 32, 64, 1, 4, 4, true, true, false>(const __nv_bfloat16* __restrict__, const unsigned char* __restrict__, const uint8_t* __restrict__, float, void* __restrict__, float* __restrict__, int, int, int, int, int, int, int);
template __global__ void qmmf_kernel<FP4, 64, 64, 1, 4, 4, true, false, false>(const __nv_bfloat16* __restrict__, const unsigned char* __restrict__, const uint8_t* __restrict__, float, void* __restrict__, float* __restrict__, int, int, int, int, int, int, int);
template __global__ void qmmf_kernel<FP4, 64, 64, 1, 4, 4, true, true, false>(const __nv_bfloat16* __restrict__, const unsigned char* __restrict__, const uint8_t* __restrict__, float, void* __restrict__, float* __restrict__, int, int, int, int, int, int, int);
template __global__ void qmmf_kernel<FP4, 64, 64, 1, 4, 4, true, false, true>(const __nv_bfloat16* __restrict__, const unsigned char* __restrict__, const uint8_t* __restrict__, float, void* __restrict__, float* __restrict__, int, int, int, int, int, int, int);
template __global__ void qmmf_kernel<FP8, 16, 64, 1, 4, 4, true, false, false>(const __nv_bfloat16* __restrict__, const unsigned char* __restrict__, const uint8_t* __restrict__, float, void* __restrict__, float* __restrict__, int, int, int, int, int, int, int);
template __global__ void qmmf_kernel<FP8, 16, 64, 1, 4, 4, true, true, false>(const __nv_bfloat16* __restrict__, const unsigned char* __restrict__, const uint8_t* __restrict__, float, void* __restrict__, float* __restrict__, int, int, int, int, int, int, int);
template __global__ void qmmf_kernel<FP8, 32, 64, 1, 4, 4, true, false, false>(const __nv_bfloat16* __restrict__, const unsigned char* __restrict__, const uint8_t* __restrict__, float, void* __restrict__, float* __restrict__, int, int, int, int, int, int, int);
template __global__ void qmmf_kernel<FP8, 32, 64, 1, 4, 4, true, true, false>(const __nv_bfloat16* __restrict__, const unsigned char* __restrict__, const uint8_t* __restrict__, float, void* __restrict__, float* __restrict__, int, int, int, int, int, int, int);
template __global__ void qmmf_kernel<FP8, 64, 64, 1, 4, 4, true, false, false>(const __nv_bfloat16* __restrict__, const unsigned char* __restrict__, const uint8_t* __restrict__, float, void* __restrict__, float* __restrict__, int, int, int, int, int, int, int);
template __global__ void qmmf_kernel<FP8, 64, 64, 1, 4, 4, true, true, false>(const __nv_bfloat16* __restrict__, const unsigned char* __restrict__, const uint8_t* __restrict__, float, void* __restrict__, float* __restrict__, int, int, int, int, int, int, int);
template __global__ void qmmf_kernel<FP8, 64, 64, 1, 4, 4, true, false, true>(const __nv_bfloat16* __restrict__, const unsigned char* __restrict__, const uint8_t* __restrict__, float, void* __restrict__, float* __restrict__, int, int, int, int, int, int, int);
template __global__ void qmmf_kernel<BF16, 16, 64, 1, 4, 4, true, false, false>(const __nv_bfloat16* __restrict__, const unsigned char* __restrict__, const uint8_t* __restrict__, float, void* __restrict__, float* __restrict__, int, int, int, int, int, int, int);
template __global__ void qmmf_kernel<BF16, 16, 64, 1, 4, 4, true, true, false>(const __nv_bfloat16* __restrict__, const unsigned char* __restrict__, const uint8_t* __restrict__, float, void* __restrict__, float* __restrict__, int, int, int, int, int, int, int);
template __global__ void qmmf_kernel<BF16, 32, 64, 1, 4, 4, true, false, false>(const __nv_bfloat16* __restrict__, const unsigned char* __restrict__, const uint8_t* __restrict__, float, void* __restrict__, float* __restrict__, int, int, int, int, int, int, int);
template __global__ void qmmf_kernel<BF16, 32, 64, 1, 4, 4, true, true, false>(const __nv_bfloat16* __restrict__, const unsigned char* __restrict__, const uint8_t* __restrict__, float, void* __restrict__, float* __restrict__, int, int, int, int, int, int, int);
template __global__ void qmmf_kernel<BF16, 64, 64, 1, 4, 4, true, false, false>(const __nv_bfloat16* __restrict__, const unsigned char* __restrict__, const uint8_t* __restrict__, float, void* __restrict__, float* __restrict__, int, int, int, int, int, int, int);
template __global__ void qmmf_kernel<BF16, 64, 64, 1, 4, 4, true, true, false>(const __nv_bfloat16* __restrict__, const unsigned char* __restrict__, const uint8_t* __restrict__, float, void* __restrict__, float* __restrict__, int, int, int, int, int, int, int);
template __global__ void qmmf_kernel<BF16, 64, 64, 1, 4, 4, true, false, true>(const __nv_bfloat16* __restrict__, const unsigned char* __restrict__, const uint8_t* __restrict__, float, void* __restrict__, float* __restrict__, int, int, int, int, int, int, int);
template __global__ void reduce_kernel<true>(const float* __restrict__, void* __restrict__, long long, int, float);
template __global__ void reduce_kernel<false>(const float* __restrict__, void* __restrict__, long long, int, float);
}
19 changes: 19 additions & 0 deletions zig/src/cuda/qmmf.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# FP32 projection outputs

`cuda.qmmf.Lane.matmulF32` has the same inputs, packed weights, stride,
shape-driven split-K plan and scratch contract as `matmul`. Its output is
`[M, N]` FP32, requiring `M * N * 4` bytes. It preserves FP32 output for a
later residual or tensor-rank sum; the caller chooses when to round to BF16.

All five lane formats are supported: NVFP4, tensor-scaled FP8, MXFP8,
block-scaled FP8 and BF16. The change exposes the existing kernel template's
FP32 output path. It does not change weight packing or accumulation order.
Rebuild the qmmf fatbin together with the native runtime: older fatbins do
not contain the FP32 instances or reduction symbol.

`tf-cuda-test projection-f32` compares each format against an independent
FP64 calculation, checks conversion to the existing BF16 result, and varies
row count, activation stride, partial output tiles, fused reduction,
cluster reduction and explicit split reduction. The fixture is synthetic;
model correctness and multi-device collective behavior require separate
qualification.
40 changes: 29 additions & 11 deletions zig/src/cuda/qmmf.zig
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ pub fn plan(m: usize, n: usize, k: usize, clusters: bool) Plan {
}

/// qmmf.cu's instance names, per mode: row tiles 16, 32, 64 (each plain, then with a cluster), then the fused kernel.
fn symbol(comptime mode: Mode, comptime bm: u32, comptime cluster: bool, comptime fused: bool) [:0]const u8 {
const name = "_ZN7tf_qmmf11qmmf_kernelILi{d}ELi{d}ELi64ELi1ELi4ELi4ELb0ELb{d}ELb{d}EEEvPK13__nv_bfloat16PKhS5_fPvPfiiiiiii";
return std.fmt.comptimePrint(name, .{ @backingInt(mode), bm, @intFromBool(cluster), @intFromBool(fused) });
fn symbol(comptime mode: Mode, comptime bm: u32, comptime cluster: bool, comptime fused: bool, comptime f32_out: bool) [:0]const u8 {
const name = "_ZN7tf_qmmf11qmmf_kernelILi{d}ELi{d}ELi64ELi1ELi4ELi4ELb{d}ELb{d}ELb{d}EEEvPK13__nv_bfloat16PKhS5_fPvPfiiiiiii";
return std.fmt.comptimePrint(name, .{ @backingInt(mode), bm, @intFromBool(f32_out), @intFromBool(cluster), @intFromBool(fused) });
}

pub const reduce_symbol = "_ZN7tf_qmmf13reduce_kernelILb0EEEvPKfPvxif";
Expand All @@ -78,22 +78,30 @@ pub const Lane = struct {
mod: Module,
fns: [modes.len][7]Function, // per mode: lane16, lane16c, lane32, lane32c, lane64, lane64c, fused
reduce: Function,
f32_fns: [modes.len][7]Function,
reduce_f32: Function,
clusters: bool, // sm_90 on: slices meet in a cluster's shared memory

pub fn load(d: *const Driver, capability_major: u32) !Lane {
if (!kernels.available) return error.BuiltWithoutKernels;
var mod = try Module.load(d, kernels.qmmf);
errdefer mod.unload();
var l: Lane = .{ .mod = mod, .fns = undefined, .reduce = try mod.function(reduce_symbol), .clusters = capability_major >= 9 };
var l: Lane = .{ .mod = mod, .fns = undefined, .f32_fns = undefined, .reduce = try mod.function(reduce_symbol), .reduce_f32 = try mod.function("_ZN7tf_qmmf13reduce_kernelILb1EEEvPKfPvxif"), .clusters = capability_major >= 9 };
inline for (modes, 0..) |mode, mi| {
inline for (row_tiles, 0..) |bm, ti| inline for (.{ false, true }, 0..) |cl, ci| {
const f = try mod.function(symbol(mode, bm, cl, false));
const f = try mod.function(symbol(mode, bm, cl, false, false));
try f.allowDynamicShared(sharedBytes(mode, bm));
l.fns[mi][ti * 2 + ci] = f;
const fp32_fn = try mod.function(symbol(mode, bm, cl, false, true));
try fp32_fn.allowDynamicShared(sharedBytes(mode, bm));
l.f32_fns[mi][ti * 2 + ci] = fp32_fn;
};
const f = try mod.function(symbol(mode, 64, false, true));
const f = try mod.function(symbol(mode, 64, false, true, false));
try f.allowDynamicShared(sharedBytes(mode, 64));
l.fns[mi][6] = f;
const fp32_fn = try mod.function(symbol(mode, 64, false, true, true));
try fp32_fn.allowDynamicShared(sharedBytes(mode, 64));
l.f32_fns[mi][6] = fp32_fn;
}
return l;
}
Expand All @@ -110,8 +118,17 @@ pub const Lane = struct {

/// y [m, n] bf16 = x [m, k] bf16 (rows `ldx` apart) times the weight, fp32 sums; `part` holds partBytes.
pub fn matmul(l: Lane, s: Stream, x: u64, ldx: usize, m: usize, w: Weight, y: u64, part: u64) !void {
return l.matmulTo(s, x, ldx, m, w, y, part, false);
}

/// The same accumulation and reduction, preserving FP32 outputs for a later residual or tensor-rank sum.
pub fn matmulF32(l: Lane, s: Stream, x: u64, ldx: usize, m: usize, w: Weight, y: u64, part: u64) !void {
return l.matmulTo(s, x, ldx, m, w, y, part, true);
}

fn matmulTo(l: Lane, s: Stream, x: u64, ldx: usize, m: usize, w: Weight, y: u64, part: u64, f32_out: bool) !void {
const p = plan(m, w.n, w.k, l.clusters);
const set = l.fns[modeIndex(w.mode)];
const set = (if (f32_out) l.f32_fns else l.fns)[modeIndex(w.mode)];
const ti: usize = if (p.bm == 16) 0 else if (p.bm == 32) 1 else 2;
const f = if (p.fused) set[6] else set[ti * 2 + @intFromBool(p.cluster)];
const rows_t = (m + p.bm - 1) / p.bm;
Expand Down Expand Up @@ -144,7 +161,7 @@ pub const Lane = struct {
r.add(@as(i64, @intCast(total)));
r.add(@as(i32, @intCast(p.sk)));
r.add(w.scale);
try launch_.launch(l.reduce, .{ .grid = .{ .x = @intCast((total + 255) / 256), .y = 1, .z = 1 }, .block = .{ .x = 256, .y = 1, .z = 1 } }, s, &r);
try launch_.launch(if (f32_out) l.reduce_f32 else l.reduce, .{ .grid = .{ .x = @intCast((total + 255) / 256), .y = 1, .z = 1 }, .block = .{ .x = 256, .y = 1, .z = 1 } }, s, &r);
}
}
};
Expand Down Expand Up @@ -212,7 +229,8 @@ test "tile shared bytes, slices and row tiles as the Python host picks them" {
}

test "instance names are qmmf.cu's" {
try std.testing.expectEqualStrings("_ZN7tf_qmmf11qmmf_kernelILi2ELi16ELi64ELi1ELi4ELi4ELb0ELb1ELb0EEEvPK13__nv_bfloat16PKhS5_fPvPfiiiiiii", symbol(.mxfp8, 16, true, false));
try std.testing.expectEqualStrings("_ZN7tf_qmmf11qmmf_kernelILi3ELi16ELi64ELi1ELi4ELi4ELb0ELb1ELb0EEEvPK13__nv_bfloat16PKhS5_fPvPfiiiiiii", symbol(.fp8g, 16, true, false));
try std.testing.expectEqualStrings("_ZN7tf_qmmf11qmmf_kernelILi0ELi64ELi64ELi1ELi4ELi4ELb0ELb0ELb1EEEvPK13__nv_bfloat16PKhS5_fPvPfiiiiiii", symbol(.fp4, 64, false, true));
try std.testing.expectEqualStrings("_ZN7tf_qmmf11qmmf_kernelILi4ELi64ELi64ELi1ELi4ELi4ELb1ELb0ELb1EEEvPK13__nv_bfloat16PKhS5_fPvPfiiiiiii", symbol(.bf16, 64, false, true, true));
try std.testing.expectEqualStrings("_ZN7tf_qmmf11qmmf_kernelILi2ELi16ELi64ELi1ELi4ELi4ELb0ELb1ELb0EEEvPK13__nv_bfloat16PKhS5_fPvPfiiiiiii", symbol(.mxfp8, 16, true, false, false));
try std.testing.expectEqualStrings("_ZN7tf_qmmf11qmmf_kernelILi3ELi16ELi64ELi1ELi4ELi4ELb0ELb1ELb0EEEvPK13__nv_bfloat16PKhS5_fPvPfiiiiiii", symbol(.fp8g, 16, true, false, false));
try std.testing.expectEqualStrings("_ZN7tf_qmmf11qmmf_kernelILi0ELi64ELi64ELi1ELi4ELi4ELb0ELb0ELb1EEEvPK13__nv_bfloat16PKhS5_fPvPfiiiiiii", symbol(.fp4, 64, false, true, false));
}
3 changes: 3 additions & 0 deletions zig/tests/cuda/main.zig
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ const chunk_costs = @import("chunk_costs.zig");
const grouped_tests = @import("grouped_tests.zig");
const fp8_tests = @import("fp8_tests.zig");
const mxfp8_tests = @import("mxfp8_tests.zig");
const projection_f32_tests = @import("projection_f32_tests.zig");
const fp8_experts_tests = @import("fp8_experts_tests.zig");
const nvfp4_experts_tests = @import("nvfp4_experts_tests.zig");
const quant_ref_tests = @import("quant_ref_tests.zig");
Expand Down Expand Up @@ -62,6 +63,7 @@ const usage =
\\ fp8-lane <dir> block-FP8 projections against the Python lane matmul's bytes (oracle/fp8_lane.py)
\\ fp8-experts <dir> grouped block-FP8 experts against recorded fixture bytes
\\ nvfp4-experts <dir> grouped NVFP4 experts against recorded fixture bytes
\\ projection-f32 FP32 projection outputs against FP64, rounding and row/reduction invariance
\\ mxfp8 MXFP8 strided projections against FP64 and row-count invariance
\\ quant-ref FP8 and NVFP4 projections and experts against float64 references (synthetic)
\\ carveout [MiB] [card] GB10 display memory: round trips and bandwidth (SKIP without the card)
Expand Down Expand Up @@ -124,6 +126,7 @@ fn run(gpu: check.Gpu, cmd: []const u8, rest: []const [:0]const u8) !void {
if (std.mem.eql(u8, cmd, "fp8-experts")) return fp8_experts_tests.experts(gpu, try arg(rest, 0));
if (std.mem.eql(u8, cmd, "nvfp4")) return nvfp4_tests.run(gpu, try arg(rest, 0));
if (std.mem.eql(u8, cmd, "nvfp4-experts")) return nvfp4_experts_tests.experts(gpu, try arg(rest, 0));
if (std.mem.eql(u8, cmd, "projection-f32")) return projection_f32_tests.run(gpu);
if (std.mem.eql(u8, cmd, "mxfp8")) return mxfp8_tests.run(gpu);
if (std.mem.eql(u8, cmd, "quant-ref")) return quant_ref_tests.run(gpu);
if (std.mem.eql(u8, cmd, "modelopt")) return modelopt_tests.run(gpu);
Expand Down
Loading
Loading