print suppressed newline tokens as string "\n"
printing too much actual newlines is suppressed to avoid flooding the console.
This commit is contained in:
parent
93eb8f7752
commit
37c69435f0
1 changed files with 2 additions and 0 deletions
|
@ -1247,6 +1247,8 @@ void print_tokens_batch(struct llama_context* ctx, struct ggml_tensor * tokens)
|
|||
}
|
||||
if (!isnl || (num_newline < 2)) {
|
||||
print_token(ctx, token);
|
||||
} else {
|
||||
printf("\\n");
|
||||
}
|
||||
}
|
||||
printf("\n--\n");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue