From d67c0b4107112e4790774c3a8169e2e3eb24643b Mon Sep 17 00:00:00 2001 From: helanfxz <126638465+helanfxz@users.noreply.github.com> Date: Sat, 25 Jul 2026 16:23:31 +0800 Subject: [PATCH] tests: synchronize save-load-state generation (#26056) --- tests/test-save-load-state.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test-save-load-state.cpp b/tests/test-save-load-state.cpp index 6e93ce6fb..bbb025617 100644 --- a/tests/test-save-load-state.cpp +++ b/tests/test-save-load-state.cpp @@ -44,6 +44,8 @@ static llama_tokens generate_tokens(llama_context * ctx, llama_sampler * smpl, i n_past++; } + llama_synchronize(ctx); + return result; }