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

main: option to disable context shift #9484

Merged
merged 11 commits into from
Sep 16, 2024

Conversation

VJHack
Copy link
Contributor

@VJHack VJHack commented Sep 14, 2024

Added the option to disable context shift on infinite text generation with command line argument (--no-context-shift) for llama-cli.

@VJHack
Copy link
Contributor Author

VJHack commented Sep 14, 2024

Partly addresses #9390

common/arg.cpp Outdated Show resolved Hide resolved
@VJHack
Copy link
Contributor Author

VJHack commented Sep 16, 2024

@ggerganov Thanks for the review! I resolved some merge conflicts and removed the server.cpp changes. I'll tackle applying --no-context-shift to the server in a subsequent PR.

@ggerganov ggerganov merged commit 441b72b into ggerganov:master Sep 16, 2024
52 checks passed
@VJHack VJHack deleted the server-disable-context-shift branch September 17, 2024 02:10
dsx1986 pushed a commit to dsx1986/llama.cpp that referenced this pull request Oct 29, 2024
* added cli arg to disable context shift

* reverted precommit

* updated README.md for main

* white space

* allow disabling context shift in the server

* Update common/arg.cpp

no-context-shift only works for main example

Co-authored-by: Georgi Gerganov <[email protected]>

* added server example to --no-context-shift args

* removed server changes

* white space

---------

Co-authored-by: Georgi Gerganov <[email protected]>
arthw pushed a commit to arthw/llama.cpp that referenced this pull request Nov 15, 2024
* added cli arg to disable context shift

* reverted precommit

* updated README.md for main

* white space

* allow disabling context shift in the server

* Update common/arg.cpp

no-context-shift only works for main example

Co-authored-by: Georgi Gerganov <[email protected]>

* added server example to --no-context-shift args

* removed server changes

* white space

---------

Co-authored-by: Georgi Gerganov <[email protected]>
arthw pushed a commit to arthw/llama.cpp that referenced this pull request Nov 18, 2024
* added cli arg to disable context shift

* reverted precommit

* updated README.md for main

* white space

* allow disabling context shift in the server

* Update common/arg.cpp

no-context-shift only works for main example

Co-authored-by: Georgi Gerganov <[email protected]>

* added server example to --no-context-shift args

* removed server changes

* white space

---------

Co-authored-by: Georgi Gerganov <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants