Skip to content

Attempted fix for main example getting stuck when -n -2 and --interactive#2767

Merged
KerfuffleV2 merged 2 commits into
ggml-org:masterfrom
KerfuffleV2:fix-main-stuck-interacting
Aug 24, 2023
Merged

Attempted fix for main example getting stuck when -n -2 and --interactive#2767
KerfuffleV2 merged 2 commits into
ggml-org:masterfrom
KerfuffleV2:fix-main-stuck-interacting

Conversation

@KerfuffleV2
Copy link
Copy Markdown
Contributor

@KerfuffleV2 KerfuffleV2 commented Aug 24, 2023

I'm not sure this is the correct fix (seems fairly likely though since setting n_remain to -2 looks pretty weird).

Closes #2754

@KerfuffleV2 KerfuffleV2 added the bug Something isn't working label Aug 24, 2023
@ghost ghost mentioned this pull request Aug 24, 2023
Comment thread examples/main/main.cpp
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent! 🤣

@KerfuffleV2 KerfuffleV2 merged commit 7694add into ggml-org:master Aug 24, 2023
@KerfuffleV2 KerfuffleV2 deleted the fix-main-stuck-interacting branch August 27, 2023 07:17
Seunghhon pushed a commit to Seunghhon/llama.cpp that referenced this pull request Apr 26, 2026
…-org#2767)

* Fix for main example getting stuck when -n -2 and --interactive

* Add a comment so future generations may suffer less.
phuongncn pushed a commit to phuongncn/llama.cpp-gx10-dgx-sparks-deepseekv4 that referenced this pull request Apr 28, 2026
…-org#2767)

* Fix for main example getting stuck when -n -2 and --interactive

* Add a comment so future generations may suffer less.
ljubomirj pushed a commit to ljubomirj/llama.cpp that referenced this pull request May 6, 2026
…-org#2767)

* Fix for main example getting stuck when -n -2 and --interactive

* Add a comment so future generations may suffer less.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[User] -n -2 generates nothing

2 participants