]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
server : add `LOG_INFO` when model is successfully loaded (#4881)
authorBehnam M <redacted>
Thu, 11 Jan 2024 17:41:39 +0000 (12:41 -0500)
committerGitHub <redacted>
Thu, 11 Jan 2024 17:41:39 +0000 (19:41 +0200)
commiteab67950068e4b125007d027232c47d2a5831cd0
treec4ba752bcef0d5232c13a7879a81a26527231213
parentd8d90aa343c22fe01429d3540e47ded87e9dcb9d
server : add `LOG_INFO` when model is successfully loaded (#4881)

* added /health endpoint to the server

* added comments on the additional /health endpoint

* Better handling of server state

When the model is being loaded, the server state is `LOADING_MODEL`. If model-loading fails, the server state becomes `ERROR`, otherwise it becomes `READY`. The `/health` endpoint provides more granular messages now according to the server_state value.

* initialized server_state

* fixed a typo

* starting http server before initializing the model

* Update server.cpp

* Update server.cpp

* fixes

* fixes

* fixes

* made ServerState atomic and turned two-line spaces into one-line

* updated `server` readme to document the `/health` endpoint too

* used LOG_INFO after successful model loading
examples/server/server.cpp