Skip to content

MSYS2/MinGW64 Text generation continues even when reverse prompts are specified. #941

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

Closed
1OOyan opened this issue Apr 13, 2023 · 3 comments
Labels

Comments

@1OOyan
Copy link

1OOyan commented Apr 13, 2023

llama.cpp often continues to generate tokens even I specify the necessary reverse prompts: '### Human:' or 'Character:'
I am running in interactive mode, sometimes I get back the control, but often it takes one or more turns where llama.cpp skips to detect that the reverse prompt strings are in the token stream and hand back control.
Impact: bad chat experience.

Environment: MSYS2/Mingw64. Latest llama.cpp version from master.

Interestingly I don't experience the same problem if I compile with VS2019.

Model used: Vicuna 13B:
ggml-vicuna-13B-1.1-q4_0.bin

Command line:
./main.exe -i -f prompts/chat-with-samantha.txt -m ggml-vicuna-13B-1.1-q4_0.bin -r 'You:' -r '### Human:' -r 'Stan:' --color -t 8 --keep -1 -c 2048 -n -1

Tried specifying the reverse prompt both with single and double quotes - same result.

@1OOyan 1OOyan changed the title Text generation continues even when reverse prompts are specified. MSYS2/MinGW64 Text generation continues even when reverse prompts are specified. Apr 13, 2023
@taka-tuos
Copy link

I ran into the same problem, but using '###' for the reverse prompt stopped the output correctly. However, '### ' (adding a space at the end) did not stop it, so I think there is a high possibility that there is a problem with handling spaces.

@batmanonline
Copy link

Possible duplicate of issues #990 #941

Copy link
Contributor

This issue was closed because it has been inactive for 14 days since being marked as stale.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants