Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
qwen27 CUDA: a pre-sm_90 decode matmul (qmm_lane), one launch for wei…
…ghts sharing an input

Before sm_90, decode matmuls take qmm_lane.cu: the weights as the mma's A operand, so 1-16 rows fill a tile, and
each tile's K slices added in slice order, the bits of 0.6.6's qmm.cu on the same card. Weights over one input
(GDN qkv/z/b/a, attention q/k/v, gate/up) share one segmented launch, each at its own K split, so every output
equals its lone launch. Wider rounds take row tiles of 16-64, 128 rows a turn.
  • Loading branch information
CanadaApollo6 committed Oct 13, 2026
commit 083532cf86f085c91927a26f13e71dc19169b1ea
1 change: 1 addition & 0 deletions zig/build/cuda.zig
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ const kernels = [_]Kernel{
.{ .name = "nemotron_ops", .flags = &.{"-O3"} }, // ours: Nemotron's serial feed, routed plan and rests
.{ .name = "affine4_pack", .flags = &.{"-O3"} }, // ours: the MLX affine-4 repack into qlinear's tiles
.{ .name = "lane_gemv", .flags = &.{"-O3"} }, // ours: qmm_group's arithmetic, a column tile's K slices in one CTA
.{ .name = "qmm_lane", .flags = &.{"-O3"} }, // pre-sm_90 decode matmuls, K slices in slice order
.{ .name = "sample", .flags = &.{ "-O3", "--fmad=false", "--ftz=false" } }, // ours: the Metal engine's keyed draws
.{ .name = "qwen_ops", .flags = &.{"-O3"} }, // ours: the 27B's batched state copies, taps, drafter norms and rotary
.{ .name = "nemotron_norms", .flags = glue }, // ours, each with a host reference (glue_ref.zig): Nemotron's glue
Expand Down
Loading