Skip to content

Commit

Permalink
Release llamafile v0.8.17
Browse files Browse the repository at this point in the history
  • Loading branch information
jart committed Dec 1, 2024
1 parent 4f88da6 commit c88f2d3
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 4 deletions.
3 changes: 2 additions & 1 deletion llama.cpp/common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -311,9 +311,10 @@ bool gpt_params_find_arg(int argc, char ** argv, const std::string & arg, gpt_pa
}
return true;
}
if (arg == "-p" || arg == "--prompt") {
if (arg == "-p" || arg == "--prompt" || arg == "--system-prompt") {
CHECK_ARG
params.prompt = argv[i];
FLAG_prompt = argv[i]; // [jart]
return true;
}
if (arg == "-e" || arg == "--escape") {
Expand Down
7 changes: 7 additions & 0 deletions llamafile/flags.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,13 @@ void llamafile_get_flags(int argc, char **argv) {
continue;
}

if (!strcmp(flag, "--prompt") || !strcmp(flag, "--system-prompt")) {
if (i == argc)
missing("--prompt");
FLAG_prompt = argv[i++];
continue;
}

if (!strcmp(flag, "--db")) {
if (i == argc)
missing("--db");
Expand Down
2 changes: 1 addition & 1 deletion llamafile/server/main.1
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ resources, and control how much completion parallelism can happen.
Please note that
.Fl Fl ctx-size
has a strong influence on how many slots can be created.
.It Fl p Ar TEXT , Fl Fl prompt Ar TEXT
.It Fl p Ar TEXT , Fl Fl prompt Ar TEXT , Fl Fl system-prompt Ar TEXT
Specifies system prompt. This value is passed along to the web frontend.
.It Fl Fl no-display-prompt
Hide system prompt from web user interface.
Expand Down
2 changes: 1 addition & 1 deletion llamafile/server/main.1.asc
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
note that --ctx-size has a strong influence on how many slots
can be created.

[1m-p [4m[22mTEXT[24m, [1m--prompt [4m[22mTEXT[0m
[1m-p [4m[22mTEXT[24m, [1m--prompt [4m[22mTEXT[24m, [1m--system-prompt [4m[22mTEXT[0m
Specifies system prompt. This value is passed along to the web
frontend.

Expand Down
2 changes: 1 addition & 1 deletion llamafile/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#define LLAMAFILE_MAJOR 0
#define LLAMAFILE_MINOR 8
#define LLAMAFILE_PATCH 16
#define LLAMAFILE_PATCH 17
#define LLAMAFILE_VERSION \
(100000000 * LLAMAFILE_MAJOR + 1000000 * LLAMAFILE_MINOR + LLAMAFILE_PATCH)

Expand Down

0 comments on commit c88f2d3

Please sign in to comment.