https://github.com/ggerganov/llama.cpp/blob/8b679987cdce292ff36bd741f6715e4927e26f9b/llama.cpp#L1558 Is currently single threaded. Quantization is quite slow (vicuna 7B: 65156.31 ms, vicuna 13B: 129902.48 ms).
Activity
sw commentedon Apr 12, 2023
@ikawrakow did that in #896, see
kQuantizeQ4in ggml_extra.cpp, but that's for a new quantization scheme. https://github.com/ggerganov/llama.cpp/blob/6bfb00a53b1a06e209f1b814356dd79ee96b89af/ggml_extra.cpp#L287-L291It did indeed speed things up. This could probably be integrated into
llama_model_quantize_internalso that a new cpp module isn't necessary.jon-chuang commentedon Apr 12, 2023
Is the new quantization scheme the one that minimizes MSE against the original weights?
sw commentedon Apr 22, 2023
Resolved by #1075
Bug fixes for completions and prompt caching in server (ggml-org#906)