metal-moe-decode
Metal decode kernels for MoE and hybrid linear-attention models on Apple Silicon (e.g. Qwen3.8-Flash-Next with
transformers' streamed experts). Pure torch.mps.compile_shader (no build step, torch-metal noarch variant).
from kernels import get_kernel
k = get_kernel("ArthurZ/metal-moe-decode")
y = k.qmv4(x, w_packed, scales, biases, group_size=32)
Ops: qmv4, experts_down_sum, experts_gate_up_masked, gated_delta_rule, causal_conv1d_fn,
causal_conv1d_update (all torch.library.custom_ops with fakes, compile-friendly).
- Downloads last month
- -
kernels
metal
apache-2.0
Supported hardwares new
Metal


