Skip to content

add command line mode #977

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
wants to merge 3 commits into from
Closed

add command line mode #977

wants to merge 3 commits into from

Conversation

wbpxre150
Copy link
Contributor

@wbpxre150 wbpxre150 commented Apr 14, 2023

This commit adds a print of timing stats at the press of ctrl+c to exit the program along with command line mode, where ??? command argument changes the runtime parameters for the following variables:

n_predict, top_k, ctx_size, top_p, temp, repeat_last_n, repeat_penalty, batch_size, reverse-prompt, keep

It also has the option to print stats by typing ??? stats 0

Its easy enough to add more commands as we see fit in the future. Feedback welcome! Recent commits made me recreate the pull request due to conflicts.

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

Successfully merging this pull request may close these issues.

1 participant