Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
MaybeShewill-CV committed Dec 5, 2024
1 parent 5c9992a commit fc224f4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/server/llm/llama/llama3_chat_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,13 @@ void Llama3ChatServer::Impl::serve_process(WFHttpTask* task) {
task->get_resp()->append_output_body("<html>Hello World !!!</html>");
return;
}
// check model stat
else if (strcmp(task->get_req()->get_request_uri(), "/check_model_stat") == 0) {
auto model_stat = _m_generator.get_model_stat();
task->get_resp()->append_output_body(fmt::format(
"<html>n_ctx: {}\n kv cache used: {}</html>", model_stat.n_ctx_size, model_stat.kv_cache_cell_nums));
return;
}
// model service
else if (strcmp(task->get_req()->get_request_uri(), _m_server_uri.c_str()) == 0) {
// parse request body
Expand Down

0 comments on commit fc224f4

Please sign in to comment.