Distribute and run LLMs with a single file.
C++ cross-platformggufllama-cpplocal-ailocal-inferencelocal-llmopen-source-aisingle-file-executablespeech-to-text
Add special tokens to server llama_decode() inputs
Justine Tunney790029485fdd
diff --git a/llama.cpp/main/main.1 b/llama.cpp/main/main.1index f1a96c09..d2f51bfc 100644--- a/llama.cpp/main/main.1+++ b/llama.cpp/main/main.1@@ -559,6 +559,19 @@ Print token count everytokens..PpDefault: -1+.It Fl Fl pooling Ar KIND+Specifies pooling type for embeddings. This may be one of:+.Pp+.Bl -dash -compact+.It+none+.It+mean+.It+cls+.El+.Pp+The model default is used if unspecified..El.Sh CLI OPTIONSThe following options may be specified when@@ -741,10 +754,6 @@ Path from which to serve static files..PpDefault:.Pa /zip/llama.cpp/server/public-.It Fl Fl embedding-Enable embedding vector output.-.Pp-Default: disabled.It Fl Fl nobrowserDo not attempt to open a web browser tab at startup..It Fl gan Ar N , Fl Fl grp-attn-n Ar Ndiff --git a/llama.cpp/main/main.1.asc b/llama.cpp/main/main.1.ascindex 1da9ca4c..df24c93c 100644--- a/llama.cpp/main/main.1.asc+++ b/llama.cpp/main/main.1.asc@@ -537,6 +537,15 @@Default: ‐1+ [1m--pooling [4m[22mKIND[0m+ Specifies pooling type for embeddings. This may be one of:++ [1m- [22mnone+ [1m- [22mmean+ [1m- [22mcls++ The model default is used if unspecified.+[1mCLI OPTIONS[0mThe following options may be specified when [1mllamafile [22mis running in[1m--cli [22mmode.@@ -737,11 +746,6 @@Default: [4m/zip/llama.cpp/server/public[0m- [1m--embedding[0m- Enable embedding vector output.-- Default: disabled-[1m--nobrowser[0mDo not attempt to open a web browser tab at startup.diff --git a/llama.cpp/server/server.cpp b/llama.cpp/server/server.cppindex 31e79b16..26d765f6 100644--- a/llama.cpp/server/server.cpp+++ b/llama.cpp/server/server.cpp@@ -1783,7 +1783,7 @@ struct llama_server_context}else{- prompt_tokens = tokenize(slot.prompt, system_prompt.empty() && add_bos_token); // add BOS if there isn't system prompt+ prompt_tokens = tokenize(slot.prompt, system_prompt.empty()); // add BOS if there isn't system prompt}slot.num_prompt_tokens = prompt_tokens.size();