Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

log : add CONT level for continuing previous log entry #9610

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ggerganov
Copy link
Owner

ref #9418 (comment)

Useful to print things on the same line as the previous log message which might have a prefix (e.g. timestamp, level, etc.). For example:

            LOG_INF("%s: static prompt based on n_keep: '", __func__);
            for (int i = 0; i < params.n_keep; i++) {
                LOG_CNT("%s", llama_token_to_piece(ctx, embd_inp[i]).c_str());
            }
            LOG_CNT("'\n");
0.00.815.053 I    198 -> '
'
0.00.815.053 I main: static prompt based on n_keep: '<|im_start|>system
You are'
0.00.815.060 I 
0.00.815.062 I main: interactive mode on.

@github-actions github-actions bot added examples ggml changes relating to the ggml tensor library for machine learning labels Sep 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
examples ggml changes relating to the ggml tensor library for machine learning
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant