Skip to content

Conversation

clibdev
Copy link
Contributor

@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

@clibdev
Copy link
Contributor Author

clibdev commented Sep 11, 2025

@leejet Are you interested in this PR, or should I go ahead and close it?

@leejet
Copy link
Owner

leejet commented Sep 11, 2025

Sorry for the late reply. I think this change looks good, and I will merge it.

@leejet leejet merged commit 87cdbd5 into leejet:master Sep 11, 2025
8 checks passed
@leejet
Copy link
Owner

leejet commented Sep 11, 2025

Thank you for your contribution.

@clibdev clibdev deleted the ggml_logs branch September 13, 2025 07:56
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.

3 participants