Skip to content

Commit

Permalink
fix: health
Browse files Browse the repository at this point in the history
Signed-off-by: thxCode <thxcode0824@gmail.com>
  • Loading branch information
thxCode committed Jul 18, 2024
1 parent 6f56cb9 commit ec29b8a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions llama-box/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2592,14 +2592,18 @@ int main(int argc, char **argv) {

// load the model
if (!ctx_server.load_model(bparams)) {
state.store(SERVER_STATE_ERROR);
return 1;
}
LOG_INFO("model loaded", {});

// init server
if (!ctx_server.init()) {
state.store(SERVER_STATE_ERROR);
return 1;
}
LOG_INFO("server initialized", {});
state.store(SERVER_STATE_READY);

// if a custom chat template is not supplied, we will use the one that comes
// with the model (if any)
Expand Down
2 changes: 1 addition & 1 deletion llama-box/tools/completion.sh
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ echo "SEED : ${SEED}"
printf "=====================================================\n\n"

if [[ -f "${LOG_FILE}" ]]; then
rm -f "${LOG_FILE}"
: > "${LOG_FILE}"
fi
if [[ ! -f "${LOG_FILE}" ]]; then
touch "${LOG_FILE}"
Expand Down

0 comments on commit ec29b8a

Please sign in to comment.