Skip to content

Commit 319dc9a

Browse files
authored
fit-params : fix race condition in fit-params output (ggml-org#18276)
1 parent 47929d0 commit 319dc9a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tools/fit-params/fit-params.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ int main(int argc, char ** argv) {
3535
}
3636

3737
LOG_INF("%s: printing fitted CLI arguments to stdout...\n", __func__);
38-
std::this_thread::sleep_for(10ms); // to avoid a race between stderr and stdout
38+
common_log_flush(common_log_main());
3939
printf("-c %" PRIu32 " -ngl %" PRIu32, cparams.n_ctx, mparams.n_gpu_layers);
4040

4141
size_t nd = llama_max_devices();

0 commit comments

Comments
 (0)