]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
fit-params : fix race condition in fit-params output (#18276)
authorAadeshveer Singh <redacted>
Wed, 24 Dec 2025 14:57:38 +0000 (20:27 +0530)
committerGitHub <redacted>
Wed, 24 Dec 2025 14:57:38 +0000 (15:57 +0100)
tools/fit-params/fit-params.cpp

index 2c113c453e3a6531c5e14ec03848d2959d758fa2..de47763d3e72407ebf804063c9b199d5ec9e4b24 100644 (file)
@@ -35,7 +35,7 @@ int main(int argc, char ** argv) {
     }
 
     LOG_INF("%s: printing fitted CLI arguments to stdout...\n", __func__);
-    std::this_thread::sleep_for(10ms); // to avoid a race between stderr and stdout
+    common_log_flush(common_log_main());
     printf("-c %" PRIu32 " -ngl %" PRIu32, cparams.n_ctx, mparams.n_gpu_layers);
 
     size_t nd = llama_max_devices();