Skip to content

Commit

Permalink
minor add
Browse files Browse the repository at this point in the history
  • Loading branch information
Nuked88 committed Mar 26, 2023
1 parent 1d508b3 commit 0f73e73
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ bool llama_model_load(const std::string & fname, llama_model & model, gpt_vocab
uint32_t magic;
fin.read((char *) &magic, sizeof(magic));
if (magic != 0x67676d6c) {
fprintf(stderr, "%s: invalid model file '%s' (bad magic)\n", __func__, fname.c_str());
fprintf(stderr, "%s: invalid model file '%s' (bad magic (0x%x))\n", __func__, fname.c_str(),magic);
return false;
}
}
Expand Down
4 changes: 2 additions & 2 deletions utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ void gpt_print_usage(int argc, char ** argv, const gpt_params & params) {
fprintf(stderr, "\n");
fprintf(stderr, "options:\n");
fprintf(stderr, " -h, --help show this help message and exit\n");
fprintf(stderr, " -sp, --server-port change the default 8080 port\n");
fprintf(stderr, " -sa, --server-address change the default 0.0.0.0 address\n");
fprintf(stderr, " -sp, --server-port N change the default 8080 port\n");
fprintf(stderr, " -sa, --server-address <address> change the default 0.0.0.0 address\n");
fprintf(stderr, " -r PROMPT, --reverse-prompt PROMPT\n");
fprintf(stderr, " in interactive mode, poll user input upon seeing PROMPT\n");
fprintf(stderr, " --color colorise output to distinguish prompt and user input from generations\n");
Expand Down

0 comments on commit 0f73e73

Please sign in to comment.