Skip to content

Commit 6d3590c

Browse files
committed
Pacify --temp flag when running in server mode
This caused some confusion for the granite 34b llamafiles, which specify the temperature flag in the .args file. While it worked fine for the CLI mode of operation, if you ran the llamafile without arguments, then it'd fail with an error message instead of running the server :'(
1 parent 60404a8 commit 6d3590c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

llama.cpp/server/server.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2220,6 +2220,15 @@ static void server_params_parse(int argc, char **argv, server_params &sparams,
22202220
}
22212221
sparams.hostname = argv[i];
22222222
}
2223+
else if (arg == "--temp")
2224+
{
2225+
if (++i >= argc)
2226+
{
2227+
invalid_param = true;
2228+
break;
2229+
}
2230+
// ignored
2231+
}
22232232
else if (arg == "--path")
22242233
{
22252234
if (++i >= argc)

0 commit comments

Comments
 (0)