Skip to content

Add command mode to interactive mode. #1022

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

wbpxre150
Copy link
Contributor

Allows changing of startup params on the fly using ??? Command Argument.

For example: ??? top_k 50 changes the top_k value to 50.

Can anyone test this and comment here with their findings?

@grencez
Copy link
Contributor

grencez commented Apr 17, 2023

I don't think context_size can change. It's used to initialize the ctx.
Not sure if there are edge cases for keep or n_predict. It seems odd to want to change those.
The other settings (and n_threads if you want) can be changed dynamically (I did something similar in a dependent project).

@wbpxre150
Copy link
Contributor Author

I didn't test which values work and which do not, just that they set and nothing crashes. Thanks for the heads up. I like your project also, looks interesting! I will do some investigation and testing of parameters and add some documentation over the next couple of days using your work as an example :)

@mofosyne mofosyne added enhancement New feature or request Review Complexity : Medium Generally require more time to grok but manageable by beginner to medium expertise level labels May 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Review Complexity : Medium Generally require more time to grok but manageable by beginner to medium expertise level
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants