Gemma 4 26B-A4B inference in ~2 GB of RAM on any M-series MacBook
Here is the kernel so far:
kernel void reduce(device float *out [[buffer(0)]], device const float *in [[buffer(1)]], uint tid [[thread_position_in_threadgroup]]) { out[tid] = in[tid] * 2.0f;