From 147ab5eb0ceda47006d8111bae60e9434959007b Mon Sep 17 00:00:00 2001 From: Bartosz Podkanowicz Date: Fri, 10 Nov 2023 15:39:26 +0100 Subject: [PATCH] restore flushing stdout --- examples/contrastive/contrastive.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/contrastive/contrastive.cpp b/examples/contrastive/contrastive.cpp index 24616b347..0e5c01a59 100644 --- a/examples/contrastive/contrastive.cpp +++ b/examples/contrastive/contrastive.cpp @@ -179,6 +179,7 @@ int main(int argc, char ** argv) { } LOG_TEE("%s", llama_token_to_piece(ctx_expert, new_token_id_expert).c_str()); + fflush(stdout); // prepare the next batch llama_batch_clear(batch);