-
Notifications
You must be signed in to change notification settings - Fork 11.7k
make: *** [Makefile:281: ggml-cuda.o] Error 127, and opt-out logging in llama.cpp. #2940
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
Comments
Can you try editing and moving this (lines 346-349):
to right below (line 80):
so it looks like this:
|
That fixed the compiling issue. I still suggest that logging be moved from compile to runtime parameter and be opt-in instead of opt-out. |
I'm not against that idea, but others would have to agree. Runtime args for disable/enable logs are already there. |
Are you referring to
? Because it is still saving all text to main.923485746264.log files under llama.cpp\ just by compiling without including LLAMA_DISABLE_LOGS=1 without me using -ld or -logdir parameters. |
Yes, by default it behaves as opt-in, your understanding is correct. As a user, I agree that it should change. At least there's
|
Runtime argument for disabling Running Please note, Yaml logs, are a completely different feature with difrent purpose. |
I couldn't see the log-related commands of ./main -h because when I ran the command my main was compiled using LLAMA_DISABLE_LOGS=1, which also hides the commands (which makes sense since now the commands are prevented from working during compile, which is a further argument as for why enabling and disabling logs should not be a part of the compilation process.) Having two separate ways of disabling a feature runs the risk of somewhere down the road their behavior will diverge. If I could disable logging both ways (via compile and adding --log-disable, I would. But as is ./main yells at me with "error: unknown argument: --log-disable" Basically this is a feature that if you want it you should know you want it, and find out how to enable it which you have to do only once (assuming you have a script file to run main). It's better to keep it off by default and avoid all this mess for people who don't want it, which includes people who aren't even aware logging is taking place. |
Using Linux, latest version of llama.cpp.
make -B LLAMA_CUBLAS=1 LLAMA_DISABLE_LOGS=1
results in
I suspect the reason why I'm the first one who posted this issue is because few people are aware that since yesterday, llama.cpp has opt-out logging. All text gets stored on users' systems unless explicitly disabled. This is a huge security and privacy concern. Logging should be opt-in only.
The text was updated successfully, but these errors were encountered: