Georgi Gerganov
bcc0eb4591
llama : per-layer KV cache + quantum K cache (#4309)
* per-layer KV
* remove unnecessary copies
* less code duplication, offload k and v separately
* llama : offload KV cache per-layer
* llama : offload K shift tensors
* llama : offload for rest of the model arches
* llama : enable offload debug temporarily
* llama : keep the KV related layers on the device
* llama : remove mirrors, perform Device -> Host when partial offload
* common : add command-line arg to disable KV cache offloading
* llama : update session save/load
* llama : support quantum K cache (#4312)
* llama : support quantum K cache (wip)
* metal : add F32 -> Q8_0 copy kernel
* cuda : add F32 -> Q8_0 copy kernel
ggml-ci
* cuda : use mmv kernel for quantum cache ops
* llama : pass KV cache type through API
* llama : fix build
ggml-ci
* metal : add F32 -> Q4_0 copy kernel
* metal : add F32 -> Q4_1 copy kernel
* cuda : wip
* cuda : add F32 -> Q4_0 and F32 -> Q4_1 copy kernels
* llama-bench : support type_k/type_v
* metal : use mm kernel only for quantum KV cache
* cuda : add comment
* llama : remove memory_f16 and kv_f16 flags
---------
Co-authored-by: slaren <slarengh@gmail.com>
* readme : add API change notice
---------
Co-authored-by: slaren <slarengh@gmail.com>
2023-12-07 13:03:17 +02:00
..
2023-09-28 17:41:44 -04:00
2023-10-24 16:48:37 +03:00
2023-12-01 10:51:24 +02:00
2023-12-04 15:43:45 +02:00
2023-10-23 22:40:03 +03:00
2023-11-13 14:16:23 +02:00
2023-10-20 14:19:40 +03:00
2023-11-02 08:50:16 +02:00
2023-11-13 14:16:23 +02:00
2023-11-20 19:30:00 +01:00
2023-09-15 15:38:27 -04:00
2023-11-20 14:56:59 +01:00
2023-10-06 16:16:38 +03:00
2023-12-07 13:03:17 +02:00
2023-12-04 18:03:49 +02:00
2023-11-30 23:11:14 +01:00
2023-11-29 11:00:17 +02:00
2023-12-05 12:05:51 +02:00
2023-10-24 20:48:45 +03:00
2023-11-13 14:16:23 +02:00
2023-11-23 19:07:56 +02:00
2023-11-16 19:14:37 -07:00
2023-11-02 08:50:16 +02:00
2023-12-07 13:03:17 +02:00
2023-11-02 08:50:16 +02:00
2023-12-07 13:03:17 +02:00
2023-12-04 18:04:21 +02:00
2023-12-06 10:08:17 +02:00
2023-11-18 14:48:17 -07:00
2023-12-07 12:25:22 +02:00
2023-07-06 19:17:50 +03:00
2023-03-29 20:21:09 +03:00
2023-05-03 20:58:11 +03:00
2023-10-03 21:04:01 +03:00
2023-06-15 21:05:53 +03:00
2023-08-30 09:29:32 +03:00
2023-11-26 20:33:07 +02:00
2023-04-13 16:03:39 +03:00
2023-08-23 17:29:09 +03:00
2023-07-21 13:53:27 +03:00
2023-07-21 13:53:27 +03:00
2023-08-08 14:44:48 +03:00
2023-08-30 09:50:55 +03:00
2023-09-27 19:25:12 +03:00
2023-07-21 11:13:18 +03:00
2023-08-23 17:29:09 +03:00
2023-08-23 17:29:09 +03:00