Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
881ccca
cuda: a process-wide cap on DeviceBuffer and pinned HostBuffer bytes
plotarmordev Oct 16, 2026
b00dd4e
drama: the temporal codebook tower
plotarmordev Oct 16, 2026
c8af505
drama: the speech codec, with codec.pth read without Python
plotarmordev Oct 16, 2026
e192c0f
engine_api: speech requests, speech info and a submit_speech hook
plotarmordev Oct 16, 2026
ab45904
native: Drama 3 (fish_omni) on CUDA
plotarmordev Oct 16, 2026
7553d00
server: POST /v1/audio/speech
plotarmordev Oct 16, 2026
8ba4307
tests: Drama 3 backbone and tower oracles, replays and stage traces
plotarmordev Oct 16, 2026
20249e9
drama: incremental codec decode, bit-identical to the whole decode
plotarmordev Oct 16, 2026
93fcaab
tests: Drama 3 codec oracle, replays and stage trace
plotarmordev Oct 16, 2026
d84284d
engine_api: audio events, so a speech engine can publish PCM while it…
plotarmordev Oct 16, 2026
71c31a9
build: Drama 3 backbone and tower kernels, the drama module, the nati…
plotarmordev Oct 16, 2026
588f1f1
server: stream: true on /v1/audio/speech sends raw PCM chunks as they…
plotarmordev Oct 16, 2026
10796d4
build: the Drama 3 codec kernels and the codec tool steps
plotarmordev Oct 16, 2026
8bc6814
tests: tf-drama-codec-stream-oracle, whole against chunked codec decodes
plotarmordev Oct 16, 2026
40c7c87
core: a direct read the file system refuses goes through the page cache
plotarmordev Oct 16, 2026
23a7fcc
cuda: Module.holds, whether a loaded image defines a device global
plotarmordev Oct 16, 2026
6f85731
drama: the Drama 3 text backbone on CUDA
plotarmordev Oct 16, 2026
fdee05c
Merge upstream main (6ee828c2) into feat/drama3-cuda
plotarmordev Oct 17, 2026
0f81a2b
Merge align/920-merge-main (upstream main 6ee828c2) into feat/drama3-…
plotarmordev Oct 17, 2026
65cd256
engine_api and native/cuda.zig back under 600 lines: speech and visio…
plotarmordev Oct 17, 2026
f5aa7a5
Merge align/920-merge-main into feat/drama3-streaming: speech and vis…
plotarmordev Oct 17, 2026
118086a
core: lane tests ignore the speech audio event
plotarmordev Oct 17, 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
drama: the Drama 3 text backbone on CUDA
Drama 3's backbone is a Qwen3.5-35B-A3B-style hybrid: 30 Gated DeltaNet and 10 gated full-attention layers,
each with a 256-expert top-8 block-FP8 MoE and a gated shared expert. Model.run appends rows and returns every
row's final-norm hidden state and the last row's semantic logits.

The kernels follow the arithmetic of the sglang-omni reference: the canonical 64-token chunked GDN prefill
(drama_gdn_chunk.cuh, after flash-linear-attention's kernels as SGLang carries them), the packed recurrent decode,
gated attention with Q/K norm and partial NeoX RoPE, dynamic 1 x 128 FP8 activation quantization, and the BF16
tensor-core GEMMs in drama_backbone_gemm.cu. Weights load as stored; nothing is requantized.

THIRD_PARTY_NOTICES.md credits flash-linear-attention (MIT), whose chunked kernels the GDN prefill is adapted from
and whose packed decode the recurrence follows.
  • Loading branch information
plotarmordev committed Oct 16, 2026
commit 6f857315532c88fe8680fe30653c0358c208d8c7
6 changes: 6 additions & 0 deletions THIRD_PARTY_NOTICES.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,12 @@ Flash Next implements transformers' model math under the attribution above. In t
DeltaNet kernel follows flash-linear-attention's numerics, MIT; its NCCL wrapper follows vLLM's stream convention,
Apache-2.0, without copying either implementation.

The native Drama 3 backbone's Gated DeltaNet prefill (`zig/kernels/cuda/drama_gdn_chunk.cuh`, driven by
`zig/src/families/drama/backbone_gdn.zig`) is adapted from SGLang's `chunk_gated_delta_rule` (Apache-2.0), whose
kernels are adapted from [flash-linear-attention](https://github.com/fla-org/flash-linear-attention), MIT License,
Copyright (c) 2023-2025 Songlin Yang, Yu Zhang (text below). Its decode recurrence (`drama_backbone.cu`) follows
the same project's packed decode.

The Python engine's GLM CUDA engine implements transformers' `models/glm5_next/modular_glm5_next.py` math,
Apache-2.0, without including that source. Its draft inputs and thinking-off rendering follow the public GLM recipe
from Mia-AiLab without including recipe code.
Expand Down
410 changes: 410 additions & 0 deletions zig/kernels/cuda/drama_backbone.cu

Large diffs are not rendered by default.

116 changes: 116 additions & 0 deletions zig/kernels/cuda/drama_backbone_attention.cuh
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
// Backbone full attention: Q/K norm and RoPE prologue, KV append and causal GQA; included by drama_backbone.cu.
#pragma once

// Gemma Q/K norm (bf16), NeoX RoPE on the first 64 dims with fp32 cos/sin; k and v go to the caches at pos0 + row.
extern "C" __global__ void __launch_bounds__(32) drama_attn_prep(const __nv_bfloat16* qkv, int ld_qkv,
const __nv_bfloat16* qn_w, const __nv_bfloat16* kn_w,
const float* inv_freq, __nv_bfloat16* q_out,
__nv_bfloat16* kc, __nv_bfloat16* vc, int pos0, int H,
int HK, float eps) {
constexpr int D = 256, ROT = 64, HALF = 32;
const int r = blockIdx.x, h = blockIdx.y, lane = threadIdx.x;
const int pos = pos0 + r;
const __nv_bfloat16* row = qkv + static_cast<size_t>(r) * ld_qkv;
const bool is_q = h < H;
const int kh = h - H;
const __nv_bfloat16* src = is_q ? row + h * 2 * D : row + H * 2 * D + kh * D;
const __nv_bfloat16* w = is_q ? qn_w : kn_w;
float v[8];
float ss = 0.f;
#pragma unroll
for (int i = 0; i < 8; ++i) {
v[i] = bf(src[lane * 8 + i]);
ss += v[i] * v[i];
}
ss = warp_sum(ss);
const float rcp = rsqrtf(ss / static_cast<float>(D) + eps);
#pragma unroll
for (int i = 0; i < 8; ++i) v[i] = round_bf(v[i] * rcp * (1.0f + bf(w[lane * 8 + i])));
// lanes 0..3 hold dims 0..31, lanes 4..7 dims 32..63: partner lane ^ 4
float o[8];
#pragma unroll
for (int i = 0; i < 8; ++i) {
const float other = __shfl_xor_sync(0xffffffffu, v[i], 4);
const int d = lane * 8 + i;
if (d < ROT) {
const float ang = static_cast<float>(pos) * inv_freq[d % HALF];
const float c = cosf(ang), s = sinf(ang);
o[i] = d < HALF ? v[i] * c - other * s : v[i] * c + other * s;
} else {
o[i] = v[i];
}
}
__nv_bfloat16* dst = is_q ? q_out + (static_cast<size_t>(r) * H + h) * D
: kc + (static_cast<size_t>(pos) * HK + kh) * D;
#pragma unroll
for (int i = 0; i < 8; ++i) dst[lane * 8 + i] = tobf(o[i]);
if (!is_q) {
const __nv_bfloat16* vs = row + H * 2 * D + HK * D + kh * D;
__nv_bfloat16* vd = vc + (static_cast<size_t>(pos) * HK + kh) * D;
#pragma unroll
for (int i = 0; i < 8; ++i) vd[lane * 8 + i] = vs[lane * 8 + i];
}
}

// Causal GQA attention with fp32 online softmax and bf16(p) in P.V, as Triton's tl.dot, then the sigmoid gate.
extern "C" __global__ void __launch_bounds__(256) drama_attention(const __nv_bfloat16* q, const __nv_bfloat16* kc,
const __nv_bfloat16* vc, const __nv_bfloat16* qkv,
int ld_qkv, __nv_bfloat16* out, int pos0, int H,
int HK, float scale) {
constexpr int D = 256, NW = 8;
__shared__ float sm_m[NW], sm_l[NW];
__shared__ float sm_o[NW][D];
const int r = blockIdx.x, h = blockIdx.y;
const int warp = threadIdx.x >> 5, lane = threadIdx.x & 31;
const int kh = h / (H / HK);
const int last = pos0 + r;
float qv[8], o[8];
const __nv_bfloat16* qr = q + (static_cast<size_t>(r) * H + h) * D + lane * 8;
#pragma unroll
for (int i = 0; i < 8; ++i) {
qv[i] = bf(qr[i]);
o[i] = 0.f;
}
float m = -INFINITY, l = 0.f;
for (int j = warp; j <= last; j += NW) {
const uint4 kw = *reinterpret_cast<const uint4*>(kc + (static_cast<size_t>(j) * HK + kh) * D + lane * 8);
const __nv_bfloat16* kp = reinterpret_cast<const __nv_bfloat16*>(&kw);
float dot = 0.f;
#pragma unroll
for (int i = 0; i < 8; ++i) dot += qv[i] * bf(kp[i]);
const float sc = warp_sum(dot) * scale;
const float mn = fmaxf(m, sc);
const float corr = expf(m - mn); // m = -inf on the first key: 0
const float p = expf(sc - mn);
l = l * corr + p;
const uint4 vw = *reinterpret_cast<const uint4*>(vc + (static_cast<size_t>(j) * HK + kh) * D + lane * 8);
const __nv_bfloat16* vp = reinterpret_cast<const __nv_bfloat16*>(&vw);
#pragma unroll
for (int i = 0; i < 8; ++i) o[i] = o[i] * corr + round_bf(p) * bf(vp[i]);
m = mn;
}
if (lane == 0) {
sm_m[warp] = m;
sm_l[warp] = l;
}
#pragma unroll
for (int i = 0; i < 8; ++i) sm_o[warp][lane * 8 + i] = o[i];
__syncthreads();
float M = -INFINITY;
#pragma unroll
for (int w = 0; w < NW; ++w) M = fmaxf(M, sm_m[w]);
float L = 0.f;
float f[NW];
#pragma unroll
for (int w = 0; w < NW; ++w) {
f[w] = sm_l[w] > 0.f ? expf(sm_m[w] - M) : 0.f;
L += sm_l[w] * f[w];
}
const int d = threadIdx.x; // 256 threads, one dim each
float acc = 0.f;
#pragma unroll
for (int w = 0; w < NW; ++w) acc += sm_o[w][d] * f[w];
const float attn = round_bf(acc / L);
const float gate = bf(qkv[static_cast<size_t>(r) * ld_qkv + h * 2 * D + D + d]);
out[(static_cast<size_t>(r) * H + h) * D + d] = tobf(attn * sigmoid(gate));
}
247 changes: 247 additions & 0 deletions zig/kernels/cuda/drama_backbone_gemm.cu
Original file line number Diff line number Diff line change
@@ -0,0 +1,247 @@
// Backbone bf16 projections (fp32 accumulate, ascending K16 groups) and the routed experts' block-FP8 W8A8 products.

#include <cuda_bf16.h>
#include <stdint.h>
#include <type_traits>

namespace drama_gemm {

constexpr int WARPS = 4;

__device__ __forceinline__ void mma_bf16(float (&d)[4], uint32_t a0, uint32_t a1, uint32_t a2, uint32_t a3,
uint32_t b0, uint32_t b1) {
asm volatile(
"mma.sync.aligned.m16n8k16.row.col.f32.bf16.bf16.f32 {%0,%1,%2,%3}, {%4,%5,%6,%7}, {%8,%9}, "
"{%0,%1,%2,%3};\n"
: "+f"(d[0]), "+f"(d[1]), "+f"(d[2]), "+f"(d[3])
: "r"(a0), "r"(a1), "r"(a2), "r"(a3), "r"(b0), "r"(b1));
}

// e4m3 mma needs sm_89 or newer; older images trap (Model.init refuses those devices before any launch).
__device__ __forceinline__ void mma_e4m3(float (&d)[4], uint32_t a0, uint32_t a1, uint32_t a2, uint32_t a3,
uint32_t b0, uint32_t b1) {
#if defined(__CUDA_ARCH__) && __CUDA_ARCH__ >= 890
asm volatile(
"mma.sync.aligned.m16n8k32.row.col.f32.e4m3.e4m3.f32 {%0,%1,%2,%3}, {%4,%5,%6,%7}, {%8,%9}, "
"{%0,%1,%2,%3};\n"
: "+f"(d[0]), "+f"(d[1]), "+f"(d[2]), "+f"(d[3])
: "r"(a0), "r"(a1), "r"(a2), "r"(a3), "r"(b0), "r"(b1));
#else
__trap();
#endif
}

__device__ __forceinline__ uint4 ld_nc(const uint4* p) {
uint4 r;
asm volatile("ld.global.nc.L1::no_allocate.v4.u32 {%0, %1, %2, %3}, [%4];\n"
: "=r"(r.x), "=r"(r.y), "=r"(r.z), "=r"(r.w)
: "l"(p));
return r;
}

__device__ __forceinline__ uint32_t word(const uint4& v, int i) {
return i == 0 ? v.x : i == 1 ? v.y : i == 2 ? v.z : v.w;
}

// OUT 0: bf16; 2: fp32 holding the bf16-rounded value (a bf16 torch output read back as float).
template <int OUT>
__device__ __forceinline__ void store(void* y, size_t at, float v) {
if constexpr (OUT == 0) {
static_cast<__nv_bfloat16*>(y)[at] = __float2bfloat16_rn(v);
} else {
static_cast<float*>(y)[at] = __bfloat162float(__float2bfloat16_rn(v));
}
}

// Y[m, n] = sum_k X[m, k] W[n, k]; a warp owns NT 8-column tiles of a 16 * RT-row tile; K % 32 == 0.
template <int RT, int NT, int OUT>
__device__ __forceinline__ void gemm_bf16(const __nv_bfloat16* __restrict__ X, int ldx, int M,
const __nv_bfloat16* __restrict__ W, int N, int K, void* __restrict__ Y,
int ldy) {
const int warp = threadIdx.x >> 5, lane = threadIdx.x & 31, g = lane >> 2, t = lane & 3;
const int col0 = (blockIdx.x * WARPS + warp) * (8 * NT);
if (col0 >= N) return;
const int row0 = blockIdx.y * 16 * RT;
using Load = std::conditional_t<OUT == 0, uint32_t, uint4>;
const Load* xa[RT];
const Load* xb[RT];
bool va[RT], vb[RT];
#pragma unroll
for (int r = 0; r < RT; ++r) {
const int ra = row0 + r * 16 + g, rb = ra + 8;
va[r] = ra < M;
vb[r] = rb < M;
xa[r] = reinterpret_cast<const Load*>(X + static_cast<size_t>(va[r] ? ra : 0) * ldx) + (OUT == 0 ? 0 : t);
xb[r] = reinterpret_cast<const Load*>(X + static_cast<size_t>(vb[r] ? rb : 0) * ldx) + (OUT == 0 ? 0 : t);
}
const Load* wp[NT];
#pragma unroll
for (int j = 0; j < NT; ++j) {
const int n = col0 + j * 8 < N ? col0 + j * 8 + g : g; // dead tiles read row g and store nothing
wp[j] = reinterpret_cast<const Load*>(W + static_cast<size_t>(n) * K) + (OUT == 0 ? 0 : t);
}
float acc[RT][NT][4];
#pragma unroll
for (int r = 0; r < RT; ++r)
#pragma unroll
for (int j = 0; j < NT; ++j) acc[r][j][0] = acc[r][j][1] = acc[r][j][2] = acc[r][j][3] = 0.f;
const int chunks = K / 32;
#pragma unroll 2
for (int c = 0; c < chunks; ++c) {
if constexpr (OUT == 0) {
#pragma unroll
for (int s = 0; s < 2; ++s) {
// Each word holds k=32c+16s+2t and k+1; the second fragment is eight k positions later.
const int lo = 16 * c + 8 * s + t;
uint32_t b0[NT], b1[NT], a0[RT], a1[RT], a2[RT], a3[RT];
#pragma unroll
for (int j = 0; j < NT; ++j) {
b0[j] = __ldg(wp[j] + lo);
b1[j] = __ldg(wp[j] + lo + 4);
}
#pragma unroll
for (int r = 0; r < RT; ++r) {
a0[r] = va[r] ? __ldg(xa[r] + lo) : 0u;
a2[r] = va[r] ? __ldg(xa[r] + lo + 4) : 0u;
a1[r] = vb[r] ? __ldg(xb[r] + lo) : 0u;
a3[r] = vb[r] ? __ldg(xb[r] + lo + 4) : 0u;
}
#pragma unroll
for (int r = 0; r < RT; ++r)
#pragma unroll
for (int j = 0; j < NT; ++j)
mma_bf16(acc[r][j], a0[r], a1[r], a2[r], a3[r], b0[j], b1[j]);
}
} else {
const uint4 zero = make_uint4(0u, 0u, 0u, 0u);
uint4 b[NT], a0[RT], a1[RT];
#pragma unroll
for (int j = 0; j < NT; ++j) b[j] = ld_nc(wp[j] + 4 * c);
#pragma unroll
for (int r = 0; r < RT; ++r) {
a0[r] = va[r] ? __ldg(xa[r] + 4 * c) : zero;
a1[r] = vb[r] ? __ldg(xb[r] + 4 * c) : zero;
}
#pragma unroll
for (int s = 0; s < 2; ++s)
#pragma unroll
for (int r = 0; r < RT; ++r)
#pragma unroll
for (int j = 0; j < NT; ++j)
mma_bf16(acc[r][j], word(a0[r], 2 * s), word(a1[r], 2 * s), word(a0[r], 2 * s + 1),
word(a1[r], 2 * s + 1), word(b[j], 2 * s), word(b[j], 2 * s + 1));
}
}
#pragma unroll
for (int r = 0; r < RT; ++r) {
const int ra = row0 + r * 16 + g, rb = ra + 8;
#pragma unroll
for (int j = 0; j < NT; ++j) {
#pragma unroll
for (int q = 0; q < 2; ++q) {
const int n = col0 + j * 8 + 2 * t + q;
if (n >= N) continue;
if (ra < M) store<OUT>(Y, static_cast<size_t>(ra) * ldy + n, acc[r][j][q]);
if (rb < M) store<OUT>(Y, static_cast<size_t>(rb) * ldy + n, acc[r][j][2 + q]);
}
}
}
}

// Routed experts over the experts.cu plan: per 128-k block acc += dot(a_q, w_q) * a_scale * w_scale, as fused_moe.
template <int NT, int MODE>
__device__ __forceinline__ void expert_fp8(const uint8_t* __restrict__ A, int a_div, const float* __restrict__ As,
const uint8_t* __restrict__ W, const float* __restrict__ Ws, int N, int K,
const int* __restrict__ items, const int* __restrict__ counts,
const int* __restrict__ members, const float* __restrict__ rw,
__nv_bfloat16* __restrict__ Y) {
const int item = blockIdx.x;
if (item >= __ldg(counts)) return;
const int warp = threadIdx.x >> 5, lane = threadIdx.x & 31, g = lane >> 2, t = lane & 3;
const int col0 = (blockIdx.y * WARPS + warp) * (8 * NT);
if (col0 >= N) return;
const int e = __ldg(items + 3 * item), first = __ldg(items + 3 * item + 1), cnt = __ldg(items + 3 * item + 2);
const bool v0 = g < cnt, v1 = g + 8 < cnt;
const int p0 = v0 ? __ldg(members + first + g) : 0, p1 = v1 ? __ldg(members + first + g + 8) : 0;
const int r0 = p0 / a_div, r1 = p1 / a_div;
const int KB = K / 128;
const uint4* a0p = reinterpret_cast<const uint4*>(A + static_cast<size_t>(r0) * K) + 2 * t;
const uint4* a1p = reinterpret_cast<const uint4*>(A + static_cast<size_t>(r1) * K) + 2 * t;
const float* s0p = As + static_cast<size_t>(r0) * KB;
const float* s1p = As + static_cast<size_t>(r1) * KB;
const uint8_t* we = W + static_cast<size_t>(e) * N * K;
const uint4* wp[NT];
#pragma unroll
for (int j = 0; j < NT; ++j) wp[j] = reinterpret_cast<const uint4*>(we + static_cast<size_t>(col0 + j * 8 + g) * K) + 2 * t;
const float* wsp = Ws + (static_cast<size_t>(e) * (N / 128) + col0 / 128) * KB;
float acc[NT][4];
#pragma unroll
for (int j = 0; j < NT; ++j) acc[j][0] = acc[j][1] = acc[j][2] = acc[j][3] = 0.f;
const uint4 zero = make_uint4(0u, 0u, 0u, 0u);
for (int kb = 0; kb < KB; ++kb) {
// 128 k a block: 32 bytes a lane (two uint4), four k32 steps on the words in pairs
const uint4 a0l = v0 ? __ldg(a0p + 8 * kb) : zero, a0h = v0 ? __ldg(a0p + 8 * kb + 1) : zero;
const uint4 a1l = v1 ? __ldg(a1p + 8 * kb) : zero, a1h = v1 ? __ldg(a1p + 8 * kb + 1) : zero;
float part[NT][4];
#pragma unroll
for (int j = 0; j < NT; ++j) {
const uint4 bl = ld_nc(wp[j] + 8 * kb), bh = ld_nc(wp[j] + 8 * kb + 1);
part[j][0] = part[j][1] = part[j][2] = part[j][3] = 0.f;
#pragma unroll
for (int s = 0; s < 4; ++s) {
const uint4& a0 = s < 2 ? a0l : a0h;
const uint4& a1 = s < 2 ? a1l : a1h;
const uint4& b = s < 2 ? bl : bh;
const int w0 = 2 * (s & 1);
mma_e4m3(part[j], word(a0, w0), word(a1, w0), word(a0, w0 + 1), word(a1, w0 + 1), word(b, w0),
word(b, w0 + 1));
}
}
const float sa0 = v0 ? __ldg(s0p + kb) : 0.f, sa1 = v1 ? __ldg(s1p + kb) : 0.f;
const float sw = __ldg(wsp + kb);
#pragma unroll
for (int j = 0; j < NT; ++j) {
acc[j][0] += part[j][0] * sa0 * sw;
acc[j][1] += part[j][1] * sa0 * sw;
acc[j][2] += part[j][2] * sa1 * sw;
acc[j][3] += part[j][3] * sa1 * sw;
}
}
const float w0 = MODE == 1 && v0 ? __ldg(rw + p0) : 1.f;
const float w1 = MODE == 1 && v1 ? __ldg(rw + p1) : 1.f;
#pragma unroll
for (int j = 0; j < NT; ++j) {
#pragma unroll
for (int q = 0; q < 2; ++q) {
const int n = col0 + j * 8 + 2 * t + q;
if (v0) Y[static_cast<size_t>(p0) * N + n] = __float2bfloat16_rn(MODE == 1 ? acc[j][q] * w0 : acc[j][q]);
if (v1)
Y[static_cast<size_t>(p1) * N + n] =
__float2bfloat16_rn(MODE == 1 ? acc[j][2 + q] * w1 : acc[j][2 + q]);
}
}
}

} // namespace drama_gemm

#define DRAMA_GEMM(RT, NT, OUT) \
extern "C" __global__ void __launch_bounds__(32 * drama_gemm::WARPS) \
drama_gemm_bf16_r##RT##_n##NT##_o##OUT(const __nv_bfloat16* X, int ldx, int M, const __nv_bfloat16* W, \
int N, int K, void* Y, int ldy) { \
drama_gemm::gemm_bf16<RT, NT, OUT>(X, ldx, M, W, N, K, Y, ldy); \
}
DRAMA_GEMM(1, 1, 0)
DRAMA_GEMM(2, 2, 0)
DRAMA_GEMM(4, 2, 0)
DRAMA_GEMM(1, 1, 2) // the semantic head: the last row, bf16-rounded logits widened to fp32

#define DRAMA_EXPERT(NT, MODE) \
extern "C" __global__ void __launch_bounds__(32 * drama_gemm::WARPS) drama_expert_fp8_n##NT##_m##MODE( \
const uint8_t* A, int a_div, const float* As, const uint8_t* W, const float* Ws, int N, int K, \
const int* items, const int* counts, const int* members, const float* rw, __nv_bfloat16* Y) { \
drama_gemm::expert_fp8<NT, MODE>(A, a_div, As, W, Ws, N, K, items, counts, members, rw, Y); \
}
DRAMA_EXPERT(1, 0)
DRAMA_EXPERT(2, 0)
DRAMA_EXPERT(1, 1)
DRAMA_EXPERT(2, 1)
Loading