Better HN
topnewbestaskshowjobs
Log inSign up

compilade

1 karma · joined Apr 17, 2025 (1y ago) · 1 submissions

https://compilade.net

email: hn@compilade.net

Submissions

comment 1y ago · link · parent

Because lookup tables are not necessarily faster compared to 8-bit SIMD operations, at least when implemented naïvely.

Lookup tables can be fast, but it's not simpler, see T-MAC https://arxiv.org/abs/2407.00088 (Note that all comparisons with `llama.cpp` were made before I introduced the types from https://github.com/ggml-org/llama.cpp/pull/8151 where the 1.6-bit type uses the techniques described in the aforementioned blog post).

I wanted to try without lookup tables to at least have a baseline, and also because the fixed point packing idea lent itself naturally to using multiplications by powers of 3 when unpacking.