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

Stop llama.cpp spamming stderr #236

Open
andreib1 opened this issue Sep 25, 2023 · 1 comment
Open

Stop llama.cpp spamming stderr #236

andreib1 opened this issue Sep 25, 2023 · 1 comment

Comments

@andreib1
Copy link

Is there any way to mute all of the chatter coming from llama.cpp?

@amorroxic
Copy link

I do this if that helps, not sure this is the right way. In binding.cpp:

#include "log.h"

and then in void* load_model function adding this (before return load_binding_model):

log_disable();

or from what I read in llama.cpp/common/log.h another avenue would be defining some flags like so (this would prevent creation of .log files for instance, not tested):

#define LOG_TARGET stderr
#include "log.h"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants