llama.cpp icon indicating copy to clipboard operation
llama.cpp copied to clipboard

Bug: Empty response in interactive mode or incomplete answer

Open batmanonline opened this issue 3 years ago • 3 comments

When running with the -t 12 -i -r "### Human:" flags llama returns control the cpu activity goes to 0 and the user sends a new input however, llama now continues responding to the previous input (or returns no response) completely ignoring the new input...

from here llama completely breaks the chat, it even generates the prompt "### Human:" and starts completing the questions written by a human

Using the --ignore-eos does not help, llama keeps stopping randomly.

Note: tested this many times with vicuna and gpt4all Note: this might be related to issues https://github.com/ggerganov/llama.cpp/discussions/990 https://github.com/ggerganov/llama.cpp/issues/941 https://github.com/ggerganov/llama.cpp/discussions/993

batmanonline avatar Apr 22 '23 22:04 batmanonline

If you have a way to reproduce this reliably, it would be easy to find the problem.

slaren avatar Apr 22 '23 22:04 slaren

The problem may be that you are reaching the token limit. Try adding -n -1 -c 2048 to allow for longer responses.

However, we should probably re-evaluate the behavior of the token limit with interactive mode, as it can be very confusing when this happens. Maybe at least we could inject the anti-prompt, otherwise the input of the user will added in the middle of the response, and if the user doesn't realize this and tries to enter another question, without the anti-prompt the model will just take it as part of its response and produce nonsense.

slaren avatar Apr 22 '23 23:04 slaren

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

github-actions[bot] avatar Apr 09 '24 01:04 github-actions[bot]