Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

turn off logging for llama cpp #81

Merged
merged 1 commit into from
Oct 18, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 3 additions & 32 deletions controllers/llamaCPP.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "log.h"
#include <drogon/HttpTypes.h>
#if defined(_WIN32)
#define NOMINMAX
Expand Down Expand Up @@ -1258,38 +1259,8 @@ namespace inferences {
class llamaCPP : public drogon::HttpController<llamaCPP> {
public:
llamaCPP() {
// gpt_params params;
// auto conf = drogon::app().getCustomConfig();
// params.model = conf["llama_model_path"].asString();
// params.n_gpu_layers = conf["ngl"].asInt();
// params.n_ctx = conf["ctx_len"].asInt();
// params.embedding = conf["embedding"].asBool();
// #ifdef GGML_USE_CUBLAS
// LOG_INFO_LLAMA << "Setting up GGML CUBLAS PARAMS";
// params.mul_mat_q = false;
// #endif // GGML_USE_CUBLAS
// if (params.model_alias == "unknown") {
// params.model_alias = params.model;
// }
//
// llama_backend_init(params.numa);
//
// LOG_INFO_LLAMA_LLAMA("build info",
// {{"build", BUILD_NUMBER}, {"commit", BUILD_COMMIT}});
// LOG_INFO_LLAMA_LLAMA("system info",
// {
// {"n_threads", params.n_threads},
// {"total_threads",
// std::thread::hardware_concurrency()},
// {"system_info", llama_print_system_info()},
// });
//
// // load the model
// if (!llama.loadModel(params)) {
// LOG_ERROR_LLAMA << "Error loading the model will exit the program";
// std::terminate();
// }
// deprecate this if find no usecase
// Some default values for now below
log_disable(); //Disable the log to file feature, reduce bloat for target system ()
}
METHOD_LIST_BEGIN
// list path definitions here;
Expand Down
Loading