]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
tests: synchronize save-load-state generation (#26056)
authorhelanfxz <redacted>
Sat, 25 Jul 2026 08:23:31 +0000 (16:23 +0800)
committerGitHub <redacted>
Sat, 25 Jul 2026 08:23:31 +0000 (10:23 +0200)
tests/test-save-load-state.cpp

index 6e93ce6fb8dab00cce4a5d325d49e9cf99f02b00..bbb025617f6f0397ee456591da7c81d29b37c2de 100644 (file)
@@ -44,6 +44,8 @@ static llama_tokens generate_tokens(llama_context * ctx, llama_sampler * smpl, i
         n_past++;
     }
 
+    llama_synchronize(ctx);
+
     return result;
 }