-
-
Notifications
You must be signed in to change notification settings - Fork 425
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
Description
Flash attention and quantized kv stores are both supported by llama.cpp.
These features allow for much larger contexts with drastically reduced memory footprints. These could be quite convenient for the limited resources on the phone.
Quantized kv cache, with q8, means half of the memory for the context with barely any effect on the quality (q4 is 1/4 memory but you notice degradation in my tests).
The feature could be implemented adding two optional parameters: a checkbox for flash attention (required for the KV quantization) and a dropdown to select a quantization for both the k and v store, f16 — (current) default, f8 and f4.
sotwi, a-ghorbani and sammcj
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request