Distribute and run LLMs with a single file.
C++ cross-platformggufllama-cpplocal-ailocal-inferencelocal-llmopen-source-aisingle-file-executablespeech-to-text
Support flash attention in --server mode
Justine Tunney4aea6060b202
diff --git a/llama.cpp/server/server.cpp b/llama.cpp/server/server.cppindex 72d1580e..132796c3 100644--- a/llama.cpp/server/server.cpp+++ b/llama.cpp/server/server.cpp@@ -2278,6 +2278,10 @@ static void server_params_parse(int argc, char **argv, server_params &sparams,sparams.read_timeout = std::stoi(argv[i]);sparams.write_timeout = std::stoi(argv[i]);}+ else if (arg == "-fa" || arg == "--flash-attn") {+ params.flash_attn = true;+ FLAG_flash_attn = true;+ }else if (arg == "-m" || arg == "--model"){if (++i >= argc)