feat: use log_printf to print ggml logs (#545)

This commit is contained in:
clibdev
2025-09-11 17:16:05 +03:00
committed by GitHub
parent b017918106
commit 87cdbd5978
4 changed files with 26 additions and 10 deletions

View File

@@ -145,7 +145,6 @@ public:
#endif
#ifdef SD_USE_METAL
LOG_DEBUG("Using Metal backend");
ggml_log_set(ggml_log_callback_default, nullptr);
backend = ggml_backend_metal_init();
#endif
#ifdef SD_USE_VULKAN
@@ -192,6 +191,8 @@ public:
rng = std::make_shared<PhiloxRNG>();
}
ggml_log_set(ggml_log_callback_default, nullptr);
init_backend();
ModelLoader model_loader;