Skip to content

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

@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 ggml-org: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