]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
main : update log text (EOS to EOG) (#7104)
authorRhinoDevel <redacted>
Tue, 7 May 2024 17:51:31 +0000 (19:51 +0200)
committerGitHub <redacted>
Tue, 7 May 2024 17:51:31 +0000 (20:51 +0300)
* Update log text (EOS to EOG)

The log text "found EOS" is no longer always correct, here, because there is now an is-EOG check that also returns true for EOT.

* Improve log msg. further by using "an" instead of "some".

As suggested, to avoid misunderstanding (no multiple EOG tokens found, just one).

examples/main/main.cpp

index eabbc2db382861c78c415a961f438f91c21a8b67..f676ea1ba8a1372041679d8fe635cbdba057b414 100644 (file)
@@ -796,7 +796,7 @@ int main(int argc, char ** argv) {
 
             // deal with end of generation tokens in interactive mode
             if (llama_token_is_eog(model, llama_sampling_last(ctx_sampling))) {
-                LOG("found EOS token\n");
+                LOG("found an EOG token\n");
 
                 if (params.interactive) {
                     if (!params.antiprompt.empty()) {