Compare commits

...

1 Commits

Author SHA1 Message Date
Tucker Morgan
4d32024f0f fix: rename swiglu_fn to activation_fn to match usage
The destructured kernel variable at line 327 was named swiglu_fn but
referenced as activation_fn at line 449, causing E0425. The kernel now
supports multiple activation modes (SiLU + approximate GELU), so
activation_fn is the more accurate name.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-20 20:25:56 +00:00

View File

@@ -324,7 +324,7 @@ impl HostOp for GLUMoE {
let output_ptr = buf_ptr(output_buf, stream);
let cublaslt = self.get_cublaslt(stream)?;
let (_, f32_to_bf16_fn, swiglu_fn) = self.get_kernels(stream);
let (_, f32_to_bf16_fn, activation_fn) = self.get_kernels(stream);
// Read top-k routing values from GPU
let topk_idx_host: Vec<u8> = stream.clone_dtoh(topk_idx_buf)?;