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

The ggml logs go through SD log_printf #545

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

clibdev
Copy link

@clibdev clibdev commented Jan 4, 2025

Currently, there is no straightforward way to disable ggml logs. This PR redirects ggml logs to go through the SD log_printf function. For example:

[INFO ] ggml_extend.hpp:61   - ggml_cuda_init: GGML_CUDA_FORCE_MMQ:    no
[INFO ] ggml_extend.hpp:61   - ggml_cuda_init: GGML_CUDA_FORCE_CUBLAS: no
[INFO ] ggml_extend.hpp:61   - ggml_cuda_init: found 1 CUDA devices:
...
[INFO ] stable-diffusion.cpp:243  - Version: SD 1.x 
[INFO ] stable-diffusion.cpp:276  - Weight type:                 f32
[INFO ] stable-diffusion.cpp:277  - Conditioner weight type:     f32
[INFO ] stable-diffusion.cpp:278  - Diffusion model weight type: f32
[INFO ] stable-diffusion.cpp:279  - VAE weight type:             f32

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

Successfully merging this pull request may close these issues.

2 participants