-
Notifications
You must be signed in to change notification settings - Fork 11.4k
examples : switch input_noecho to input_echo to remove negation #979
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good. I had to manually merge the bool input_echo = true;
line in because it is now preceded by bool is_antiprompt = false;
.
Everything works the same and it makes the examples easier to read. No downside in that. I can't speak for the developers of the project, but I like this change.
It will need to be rebased before being committed but I approve.
Signed-off-by: deadprogram <ron@hybridgroup.com>
8a0b82a
to
618fda5
Compare
Thanks for the review @DannyDaemonic I just replaced the previous commit with another one that does the same thing, but matches the latest |
Pinging maintainers... 😸 |
I'm in favor of this change but unfortunately improving I think part of the issue is that those with permissions are so busy iterating over the LLM code that they don't have time to spend on patches that only improve something that's currently working. When I have a patch that fixes something that's broken or helps fix something that's causing problems, it goes through at reasonable speeds, but when my patch just adds a convenience or even fixes something that's being done wrong but isn't actively crashing (like this), it tends to slip through the cracks. I assume when the ggml and llama stuff has slowed down some more, things like this can be addressed. I can't think of a reason they would prefer using They could add a maintainer whose focus is just on |
@DannyDaemonic perhaps this PR should be closed then, and revisit this topic at a future moment to reduce noise level? |
Closing, will revisit developer experience improvements in future iterations. |
@@ -250,7 +250,7 @@ int main(int argc, char ** argv) { | |||
} | |||
|
|||
bool is_antiprompt = false; | |||
bool input_noecho = false; | |||
bool input_echo = true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bool input_echo = true; | |
bool input_echo = true; |
@ggerganov thanks for merging. What do you think about a PR that added a make task to use something like |
Automatic style won't work - I really like vertical aligning things and AFAIK no formatter supports this |
…#979) Signed-off-by: deadprogram <ron@hybridgroup.com>
This PR modifies the example to change the boolean
input_noecho
toinput_echo
to remove negation.I was reading thru the code, and thought it would probably make it easier for further refactoring later.
Thanks to everyone who has been committing to this project!