Skip to content

Commit 3af34c1

Browse files
authored
main : update log text (EOS to EOG) (ggml-org#7104)
* 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).
1 parent 04976db commit 3af34c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/main/main.cpp

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

797797
// deal with end of generation tokens in interactive mode
798798
if (llama_token_is_eog(model, llama_sampling_last(ctx_sampling))) {
799-
LOG("found EOS token\n");
799+
LOG("found an EOG token\n");
800800

801801
if (params.interactive) {
802802
if (!params.antiprompt.empty()) {

0 commit comments

Comments
 (0)