Skip to content

Conversation

DamonFool
Copy link
Contributor

Help msg about context shift is incorrect

After #15416 , context shift had been disabled by default.
However, the help msg is incorrect.

For example, if we run llama-cli -h

--no-context-shift                      disables context shift on infinite text generation (default: enabled)
                                        (env: LLAMA_ARG_NO_CONTEXT_SHIFT)
--context-shift                         enables context shift on infinite text generation (default: enabled)
                                        (env: LLAMA_ARG_CONTEXT_SHIFT)

After this patch, it would be

--no-context-shift                      disables context shift on infinite text generation (default: enabled)
                                        (env: LLAMA_ARG_NO_CONTEXT_SHIFT)
--context-shift                         enables context shift on infinite text generation (default: disabled)
                                        (env: LLAMA_ARG_CONTEXT_SHIFT)

The patch also fixes a typo about ctx_shift (inifinite --> infinite).

@ggerganov ggerganov merged commit ec5ab1a into ggml-org:master Aug 20, 2025
47 checks passed
@DamonFool
Copy link
Contributor Author

Thanks @ggerganov .

@DamonFool DamonFool deleted the context-shift branch August 20, 2025 10:40
qnixsynapse pushed a commit to menloresearch/llama.cpp that referenced this pull request Aug 22, 2025
Minh141120 pushed a commit to menloresearch/llama.cpp that referenced this pull request Aug 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants