gemma.cpp/gemma
Andrey Vlasov 3e92088595 Remove allocation from GEMM_4x4_Tile when decoding compressed weights by implementing
SfpCodec::Dec2F and ComressTraits<T>::Decompress2 for all supported types. It also allows to remove one of the specializations of GEMM_4x4_Tile, handling compressed MatB with one function. As before even when MatA is bf16 it is using 32-bit registers for computations.

Measurements for a 2b-it sfp-encoded model on a  AMD Ryzen Threadripper PRO 3945WX 12-Cores:
baseline:
```
32.6254 prefill tokens / sec
8.91429 tokens / sec
115 milliseconds time to first token
```
this change:
```
54.3045 prefill tokens / sec
16.8191 tokens / sec
56 milliseconds time to first token
```
PiperOrigin-RevId: 651369694
2024-07-11 05:13:39 -07:00
..
evals Add MMLU eval to github 2024-05-20 10:20:53 -07:00
instantiations 7x compile time speedup: shard gemma.cc 2024-07-03 06:35:04 -07:00
activations.h 7x compile time speedup: shard gemma.cc 2024-07-03 06:35:04 -07:00
common.cc 7x compile time speedup: shard gemma.cc 2024-07-03 06:35:04 -07:00
common.h Refactor configurables. 2024-07-10 21:30:58 -07:00
configs.h Refactor configurables. 2024-07-10 21:30:58 -07:00
gemma-inl.h Refactor configurables. 2024-07-10 21:30:58 -07:00
gemma.cc 7x compile time speedup: shard gemma.cc 2024-07-03 06:35:04 -07:00
gemma.h 7x compile time speedup: shard gemma.cc 2024-07-03 06:35:04 -07:00
kv_cache.cc Prep for sharding gemma.cc: split into kv_cache, tokenizer. 2024-07-02 09:31:06 -07:00
kv_cache.h Prep for sharding gemma.cc: split into kv_cache, tokenizer. 2024-07-02 09:31:06 -07:00
ops.h Remove allocation from GEMM_4x4_Tile when decoding compressed weights by implementing 2024-07-11 05:13:39 -07:00
ops_test.cc Record time measurements in MatMul tests. 2024-07-10 10:04:40 -07:00
run.cc Lint fix - string append, remove stale TODO 2024-07-08 04:11:21 -07:00
tokenizer.cc 7x compile time speedup: shard gemma.cc 2024-07-03 06:35:04 -07:00
tokenizer.h 7x compile time speedup: shard gemma.cc 2024-07-03 06:35:04 -07:00
weights.cc Further simplification to ForEachTensor, thanks I.K. 2024-06-17 07:12:26 -07:00
weights.h Refactor configurables. 2024-07-10 21:30:58 -07:00