Skip to content

Distribute and run LLMs with a single file.

Ignore --repeat-penalty in server

Justine Tunneyd2be73287337
diff --git a/llama.cpp/server/server.cpp b/llama.cpp/server/server.cpp
index d78fbc82..bf9d29a8 100644
--- a/llama.cpp/server/server.cpp
+++ b/llama.cpp/server/server.cpp
@@ -2229,6 +2229,15 @@ static void server_params_parse(int argc, char **argv, server_params &sparams,
}
// ignored
}
+ else if (arg == "--repeat-penalty")
+ {
+ if (++i >= argc)
+ {
+ invalid_param = true;
+ break;
+ }
+ // ignored
+ }
else if (arg == "--path")
{
if (++i >= argc)