← Back to context

Comment by neomindryan

1 day ago

hey, I’m the author. That box has 384gb, but loading the model “only” uses about 80gb.

any reason you went with q8 over q4? I'm wondering if q4 would run noticeably faster or not.

  • I think I was just following along with the previous post about running Gemma on a Xeon. Next I’m going to see which model can give the highest tokens/sec

  • Such a system is RAM bandwidth limited and not compute limited Switching to q4 from q8 would decrease the amount of data needing to be loaded by half. The token generation rate would nearly double. But generally if you can do q6 or q8 and you have enough RAM you really should. Even if it's slower.

  • Token generation is nominally bandwidth limited. Prefill/prompt processing is nominally compute limited.

    For CPU inference on old hardware I don't think q4 offers any benefit over q8 since the AVX unit doesn't support such small floats. I don't even think AVX supports 4-bit int math. IIRC AVX2 does.