Replies: 3 comments 5 replies
-
I think it would be good to have an unified logging system in ggml. Some suggestions about the proposed API:
Remove the
Remove these entirely, and do any required initialization on the first call. |
Beta Was this translation helpful? Give feedback.
-
@ggerganov |
Beta Was this translation helpful? Give feedback.
-
I created #9706 to track the GGML logging changes. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I would like to propose a new GGML logger subsystem. I am happy to do the work on the implementation. Here are some of the ideas I have come up with so far:
Add two new files to the GGML library:
Where the interface defined within
ggml-logger.h
is something like:The motivation is to allow log events to be tracked to a given subsystem (like ggml backend, ggml, llama, application etc...). This modularity will allow us to clean up the various
fprintf(stderr,...)
statements, and make logging capabilities more robust. In addition to the above changes, this will require changes to thellama.h/cpp
sources to incorporate the above interface as well, and also in thecommon
library.In terms of the implementation in
ggml-logger.cpp
, I think a reasonable start would be to simply use something like:Beta Was this translation helpful? Give feedback.
All reactions