-
Notifications
You must be signed in to change notification settings - Fork 11.4k
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
Add chatLLaMa script #198
Add chatLLaMa script #198
Conversation
@j3k0 Nice script for new user like me. |
In very rare instances, LLaMa will decide to end the conversation. It was occurring way more often before I told it it's a "never ending conversation" and a "10000 pages year long dialog". I'm quite happy, even impressed with the result. Note that the examples I gave it (cat, Moscow) are excerpts from Wikipedia, I found that it reinforced LLaMa to use similar content as a source and tone for the answers, instead of the reddit/forums tone it had a tendency to produce. |
Very nice, I am using your script to avoid it auto end the conversation. |
This script could benefit from static analysis, please use https://www.shellcheck.net/ to make it more robust |
is there trickery here? I'd (as a human) see this and expect not to reply / talk at all anymore and I am reading a past experience? I assume you had to add this to get it to keep staying on or something? |
@G2G2G2G The language model just tries to continue the text and make it self consistent. If you start with "here are 10 step to do XYZ. Step 1, do X. Step 2", then it will auto-complete it until it generated those 10 steps. In this script, insisting in different ways that what comes below is a very long dialog, that never ends (etc.), reduces the likelihood that the auto-completion decides that the dialog is over ( At that point it's just dark magic, I didn't do any statistical analysis or whatever to find the best prompt, just solving issues I experience with trial and error. |
Well I think I was clear that I did understand that. But the specific text I outlined seems to suggest it's already over and to end it lol anyway I thought issue 71 is the main reason stuff ends early. |
@D0han done |
@G2G2G2G You can increase |
Great script, thank you! I had been trying to build my own chat script and your prompt seems to be the key! |
@j3k0 ah I see, thanks for the input.
wow maybe it has dementia =[ |
How about making a directory named |
Good Idea. but let's keep it consistent with whisper.cpp. There is the https://github.com/ggerganov/whisper.cpp/tree/master/examples |
May I suggest increasing n_predict to 2048? From my understanding having |
Done and rebased my branch onto master. |
README.md - Update notable forks section
I'm not sure if this has a place in the repository. I did a bit of prompt engineering to get a conversation going with LLaMa, this is the script I use, which can serve as an example and "quickstart" to new users.