Skip to content

Gemma 4 26B-A4B inference in ~2 GB of RAM on any M-series MacBook

243 B
Raw Blame

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;